joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431ed0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x640]
sub esp, 0x640
push 0xffffffffffffffff
push 0x46fa30
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp + 0x63c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0x64c]
lea ecx, [ebp]
mov ebx, dword [ebp + 0x648]
mov dword [ebp - 0x10], eax
call fcn.00403a20
mov dword [ebp - 4], 0
mov eax, dword [0x496438]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x18], 0x496438
test eax, eax
je 0x431f45
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x496414
call fcn.00403b30
mov edx, eax
mov esi, dword [edx + 0x10]
test esi, esi
je 0x431f80
mov ecx, 0x496414
call fcn.00403b30
lea ecx, [ebp]
cmp ecx, eax
je 0x432035
cmp dword [edx + 0x14], 8
jb 0x431f79
mov edx, dword [edx]
push esi
push edx
jmp 0x43202d
push 0x20c
lea eax, [ebp + 0x430]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
lea eax, [ebp + 0x430]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4320d4
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x63a], ax
lea eax, [ebp + 0x1c]
push eax
call fcn.0044b5b0
add esp, 0xc
lea eax, [ebp + 0x1c]
push 0x208
push eax
lea eax, [ebp + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x432016
test eax, eax
je 0x432016
add eax, eax
cmp eax, 0x412
jae 0x432127
xor ecx, ecx
mov word [ebp + eax + 0x1c], cx
lea eax, [ebp + 0x1c]
push eax
call fcn.00403f50
add esp, 4
push eax
lea eax, [ebp + 0x1c]
jmp 0x43202c
lea eax, [ebp + 0x430]
push eax
call fcn.00403f50
add esp, 4
push eax
lea eax, [ebp + 0x430]
push eax
lea ecx, [ebp]
call fcn.00403c60
mov byte [ebp - 4], 0
mov eax, dword [0x496438]
test eax, eax
je 0x432049
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x10]
lea eax, [ebp]
push esi
push ebx
push eax
mov ecx, edi
mov dword [ebp + 0x18], 0
call fcn.00431e60
test al, al
je 0x43206b
mov bl, 1
jmp 0x4320f1
push 0x20c
lea eax, [ebp + 0x430]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
lea eax, [ebp + 0x430]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4320ef
xor eax, eax
mov word [ebp + 0x63a], ax
lea eax, [ebp + 0x430]
push eax
call fcn.00403f50
add esp, 4
lea ecx, [ebp]
push eax
lea eax, [ebp + 0x430]
push eax
call fcn.00403c60
push esi
push ebx
lea eax, [ebp]
mov ecx, edi
push eax
call fcn.00431e60
mov bl, al
jmp 0x4320f1
mov byte [ebp - 4], 0
mov eax, dword [0x496438]
test eax, eax
je 0x4320e8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x18], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00403930
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x63c]
xor ecx, ebp
call fcn.004345d1
lea esp, [ebp + 0x640]
pop ebp
ret 8
call fcn.00434eeb
int3
Function at 0x437005
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x40481d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40482c
pop dword [ebp - 0x2c]
mov eax, 0xd3252915
sub eax, 0xd2e4e0e9
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xa1cc88d6
sub dword [ebp - 0x3c], 0x537a438b
mov dword [ebp - 0x38], 0xdc7f74ca
sub dword [ebp - 0x38], 0xaa4c2885
mov dword [ebp - 0x34], 0x14555300
add dword [ebp - 0x34], 0x37f6f12e
mov dword [ebp - 0x30], 0xdef29f67
sub dword [ebp - 0x30], 0xdef29f67
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x671a3507
add eax, 0x9927fb6d
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x6b5f2e69
sub dword [ebp - 0x3c], 0xf6ecc513
mov dword [ebp - 0x38], 0x4ce6c8ce
sub dword [ebp - 0x38], 0xb7a6759
mov dword [ebp - 0x34], 0x642caeb6
sub dword [ebp - 0x34], 0xbd424a
mov dword [ebp - 0x30], 0x396059f1
sub dword [ebp - 0x30], 0x396059f1
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x40501
push 0
call eax
mov ecx, 0x5258
xor edi, edi
add edi, eax
mov edx, 0xe9b10214
add edx, 0x169241ec
add edx, dword [ebp - 0x2c]
mov esi, 0xb5e041ff
add esi, 0xd522fcd
xor dword [ebp - 0x20], ebx
mov ebx, dword [edx]
xor dword [ebp - 0x28], ecx
add ebx, esi
sub dword [ebp - 0x24], 0x76a372fc
mov dword [edi], ebx
add dword [ebp - 0x24], esi
add edi, 4
add edx, 0x619b60a6
add edx, 0x9e649f5e
loop 0x404945
add eax, 0x13c33
xor ebx, ebx
add ebx, eax
add eax, 0xc6e56af4
sub eax, 0xc6e56aef
mov ecx, 0xe8cc2534
add ecx, 0x1773dacc
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x515040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section....._1
lea edi, [esi - 0xe3000]
push edi
or ebp, 0xffffffff
jmp 0x515062
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x515069
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x515058
mov eax, 1
add ebx, ebx
jne 0x51507b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51508c
jne 0x5150ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5150ab
dec eax
add ebx, ebx
jne 0x515098
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x515070
add ebx, ebx
jne 0x5150a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5150fd
xor ecx, ecx
sub eax, 3
jb 0x5150c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x515132
sar eax, 1
mov ebp, eax
jmp 0x5150ce
add ebx, ebx
jne 0x5150ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51509c
inc ecx
add ebx, ebx
jne 0x5150dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51509c
add ebx, ebx
jne 0x5150e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5150de
jne 0x5150fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5150de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51511c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51510e
jmp 0x51505e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51511c
add edi, ecx
jmp 0x51505e
pop esi
mov edi, esi
mov ecx, 0xcc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51513a
cmp byte [edi], 6
jne 0x51513a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x51513f
lea edi, [esi + 0x113000]
mov eax, dword [edi]
or eax, eax
je 0x5151ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17eab4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17eaf0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51516c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17eaf4]
or eax, eax
je 0x5151a8
mov dword [ebx], eax
add ebx, 4
jmp 0x515189
call dword [esi + 0x17eaf8]
popal
jmp 0x403831
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4571bee
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x28227454
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x5d8ab4
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x5d87dc
add eax, 0xa3b71a3d
sub eax, 0x43c18521
call fcn.005d8af3
add eax, 0x4a6b9811
mov eax, 0x25d8cd82
xor dword [edx], edi
add ebx, 0x4edec125
inc eax
add edx, 2
sub ebx, eax
sub ebx, ebx
add eax, ebx
cmp edx, ecx
jl fcn.005d8ab4
or ebx, ebx
ret
Function at 0x4a9961
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4de034]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a99ac
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a9e23
test al, al
jne 0x4a99a6
sub edx, 2
cmp edx, edi
jne 0x4a998c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a99ce
lea eax, [edi + 2]
cmp edx, eax
je 0x4a99ce
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a955a
add esp, 0x10
jmp 0x4a9ac8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a9e23
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a9a11
push dword [ebp - 0x25c]
jmp 0x4a99be
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a9a4e
cmp word [ebp - 0x226], 0
je 0x4a9a6f
cmp word [ebp - 0x226], ax
jne 0x4a9a4e
cmp word [ebp - 0x224], 0
je 0x4a9a6f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a955a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a9abb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a9a28
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a9aa3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a9ac8
push 0x4a8f42
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405bd7
add esp, 0x10
jmp 0x4a9a98
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040335a
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40396d
Capabilities:
Terminate process

Disassembly:
jmp 0x4557e9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4557fa
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405fa1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403aa3
Capabilities:
Query environment variable

Disassembly:
jmp 0x4aaf72
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4aaf83
pop esi
ret
push ebx
push edi
push esi
call fcn.004aae59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004043fe
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4aafab
push ebx
push esi
push edi
call fcn.00405d62
add esp, 0xc
push 0
call fcn.004069e7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405e3e
Capabilities:
Parse pe header

Disassembly:
jmp 0x4445a9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4445e8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4445e8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4445e8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4445e8
cmp dword [ecx + 0x74], 0xe
jbe 0x4445e8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a1b2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401edd
mov eax, dword [0x514c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406582
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a1b70
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1ccc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004066fe
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x518aa0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403567
mov ecx, dword [esi*4 + 0x518aa0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a1cc5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1cc5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1cc5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403567
add esp, 0x14
test edx, edx
jl 0x4a1cc5
jg 0x4a1c3b
test eax, eax
jb 0x4a1cc5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1cc5
jl 0x4a1c55
cmp dword [ebp - 0x1008], eax
ja 0x4a1cc5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1c73
test ebx, ebx
je 0x4a1cac
cmp ecx, edi
jae 0x4a1cac
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1c8d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1c99
cmp byte [ecx + 1], 0xa
jne 0x4a1c99
inc ecx
jmp 0x4a1c99
movzx eax, al
movsx eax, byte [eax + 0x514f60]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1c73
cmp edx, ebx
jne 0x4a1c73
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1cca
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403323
leave
ret
Function at 0x4a240b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x518aa0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a244b
cmp byte [ebx], 0xa
jne 0x4a244b
or byte [eax + edi + 0x28], 4
jmp 0x4a2450
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a254e
mov al, byte [edx]
cmp al, 0x1a
je 0x4a2530
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a247f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a24a4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a24ae
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a2461
jmp 0x4a254e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a252b
cmp dword [ebp - 0xc], 0
je 0x4a252b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x518aa0]
test byte [eax + edi + 0x28], 0x48
je 0x4a2505
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a24f0
mov byte [esi], dl
jmp 0x4a2501
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x518aa0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a254e
cmp byte [ebp - 1], 0xa
jne 0x4a2514
cmp esi, ebx
jne 0x4a2514
mov byte [esi], 0xa
jmp 0x4a254d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a254e
mov byte [esi], 0xd
jmp 0x4a254d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x518aa0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a254a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a254e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a25aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x518aa0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a25ed
cmp word [esi], dx
jne 0x4a25ed
or byte [edi + eax + 0x28], 4
jmp 0x4a25f2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a2745
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a2725
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a2634
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a266a
cmp eax, edx
jae 0x4a2676
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a260c
jmp 0x4a2745
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a2721
cmp dword [ebp - 0x14], 0
je 0x4a2721
mov eax, dword [ebx*4 + 0x518aa0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a26f9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a26c2
mov word [esi], cx
jmp 0x4a26f5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x518aa0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x518aa0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x518aa0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a2745
pop ebx
cmp word [ebp - 4], bx
jne 0x4a270a
cmp esi, dword [ebp + 0xc]
jne 0x4a270a
mov word [esi], bx
jmp 0x4a2742
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a0a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a2745
push 0xd
jmp 0x4a273e
mov ecx, dword [ebx*4 + 0x518aa0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a273c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2745
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a9511
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x514c34]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a955c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a99d3
test al, al
jne 0x4a9556
sub edx, 2
cmp edx, edi
jne 0x4a953c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a957e
lea eax, [edi + 2]
cmp edx, eax
je 0x4a957e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a910a
add esp, 0x10
jmp 0x4a9678
push esi
lea ecx, [ebp - 0x255]
call fcn.004a99d3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a95c1
push dword [ebp - 0x25c]
jmp 0x4a956e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a95fe
cmp word [ebp - 0x226], 0
je 0x4a961f
cmp word [ebp - 0x226], ax
jne 0x4a95fe
cmp word [ebp - 0x224], 0
je 0x4a961f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a910a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a966b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a95d8
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a9653
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a9678
push 0x4a8af2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405b6e
add esp, 0x10
jmp 0x4a9648
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403323
leave
ret