joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10024fcf
pop dword [ebp - 0x44]
mov eax, 0xd014a08b
sub eax, 0xc01250bc
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x615bb944
add dword [ebp - 0x54], 0xecf68c07
mov dword [ebp - 0x50], 0x90664dcf
sub dword [ebp - 0x50], 0x5e33018a
mov dword [ebp - 0x4c], 0x6d7edd25
sub dword [ebp - 0x4c], 0x213298f7
mov dword [ebp - 0x48], 0x4f4a786f
sub dword [ebp - 0x48], 0x4f4a786f
lea eax, [ebp - 0x54]
push eax
mov eax, 0xacce35a4
add eax, 0x63363b24
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x936f9f9b
add dword [ebp - 0x54], 0xe102c9bb
mov dword [ebp - 0x50], 0x8223813f
sub dword [ebp - 0x50], 0x40b71fca
mov dword [ebp - 0x4c], 0xf7517776
sub dword [ebp - 0x4c], 0x93e20b0a
mov dword [ebp - 0x48], 0x3d709126
sub dword [ebp - 0x48], 0x3d709126
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x99f1d631
add eax, 0x76129ab3
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x42b0e
push 0
call eax
mov ecx, 0x48ef
xor edx, edx
add edx, eax
mov ebx, 0x4b71cb74
add ebx, 0xc494648c
add ebx, dword [ebp - 0x44]
mov esi, 0xc0c01e7d
sub dword [ebp - 0x24], eax
mov edi, dword [ebx]
sub dword [ebp - 0x28], 0x8a981a8
xor edi, esi
add dword [ebp - 0x10], esi
mov dword [edx], edi
add edx, 0xfb8762d5
add edx, 0x4789d2f
add ebx, 0x1d7e6b41
add ebx, 0xe28194c3
loop 0x100250e7
add eax, 0x384c7a6c
sub eax, 0x384b63dd
mov ebx, eax
add eax, 0x628b5c30
add eax, 0x9d74a3d5
mov ecx, 0x403bd062
add ecx, 0xcfc42f9e
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4125ec
Capabilities:
Terminate process

Disassembly:
call fcn.004125f9
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x22eb0d0e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, str._fs
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x66201ac3
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00419398
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x419882
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c684]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41988c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4198e4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x41c774]
mov dl, 1
mov eax, dword [0x419290]
call fcn.0040971c
call fcn.0040420c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004193c8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41a34c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a3bb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea edx, [ebp - 0x104]
lea eax, [ebp - 0x100]
call fcn.004082f4
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x41a3d0
call fcn.00404ab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a3c2
lea eax, [ebp - 0x104]
call fcn.004047ac
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40146a
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4212e0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x421503
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_PhysicalToLogicalPoint]
nop dword [eax]
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
sub byte [edi + ebp], 0x4a
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
xor byte [edi + ebp], 0xaa
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
xor byte [edi + ebp], 0x7f
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0x6b
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0x62
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
xor byte [edi + ebp], 0x13
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0xb1
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0x57
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0x9c
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add esp, 8
xor byte [edi + ebp], 0x4a
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0x1a
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0xd5
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0x26
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
xor byte [edi + ebp], 0xcf
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0xa4
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
xor byte [edi + ebp], 0x9e
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 9
add esp, 8
push 0
push 0
call esi
push str.RX_Engine_n
push 0x5c9238
call fcn.004032bf
add byte [edi + ebp], 0xef
add esp, 8
inc edi
cmp edi, ebx
jb 0x421300
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x403c9c
Capabilities:
Terminate process

Disassembly:
jmp 0x463889
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x46389a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004066ae
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 0x403e27
Capabilities:
Query environment variable

Disassembly:
jmp 0x4ad0db
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ad0ec
pop esi
ret
push ebx
push edi
push esi
call fcn.004acfc2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004048cc
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ad114
push ebx
push esi
push edi
call fcn.00406447
add esp, 0xc
push 0
call fcn.004071e4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x406523
Capabilities:
Parse pe header

Disassembly:
jmp 0x4525c7
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x452606
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x452606
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x452606
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x452606
cmp dword [ecx + 0x74], 0xe
jbe 0x452606
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4075ef
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x422f00
sub esp, 0x2c
mov eax, dword [0x5c5328]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
mov dword [esp + 0x10], 0
mov eax, dword [eax + ebx + 0x78]
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ebx
mov dword [esp + 0x18], eax
test eax, eax
je 0x422fe9
mov ebp, dword [esp + 0x44]
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x30], 0
mov eax, edx
mov dword [esp + 0x34], 0
movups xmmword [esp + 0x20], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422f70
sub eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00406195
test ebx, ebx
je 0x422fa9
cmp ebp, 3
jbe 0x422fa9
lea eax, [esp + 0x20]
push 0x14d
push eax
call fcn.0040320b
add esp, 8
test eax, eax
je 0x422fa9
cmp eax, ebp
je 0x423002
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x422fde
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x422fd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423051
push ecx
push edx
call fcn.00401c12
add esp, 8
inc esi
cmp esi, dword [esp + 0x18]
jb 0x422f45
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035fd
add esp, 0x2c
ret
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 0x10
jb 0x422fe9
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x423045
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423051
push ecx
push edx
call fcn.00401c12
add esp, 8
jmp 0x422fe9
call fcn.004051eb
int3
Function at 0x4a6451
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402027
mov eax, dword [0x5c5328]
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.00406d2a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a6493
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a65ef
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406eb5
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 + 0x5ca750]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403873
mov ecx, dword [esi*4 + 0x5ca750]
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 0x4a65e8
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a65e8
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 0x4a65e8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403873
add esp, 0x14
test edx, edx
jl 0x4a65e8
jg 0x4a655e
test eax, eax
jb 0x4a65e8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a65e8
jl 0x4a6578
cmp dword [ebp - 0x1008], eax
ja 0x4a65e8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a6596
test ebx, ebx
je 0x4a65cf
cmp ecx, edi
jae 0x4a65cf
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a65b0
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a65bc
cmp byte [ecx + 1], 0xa
jne 0x4a65bc
inc ecx
jmp 0x4a65bc
movzx eax, al
movsx eax, byte [eax + 0x5c5648]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a6596
cmp edx, ebx
jne 0x4a6596
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a65ed
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035fd
leave
ret
Function at 0x4a67f4
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 + 0x5ca750]
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 0x4a6834
cmp byte [ebx], 0xa
jne 0x4a6834
or byte [eax + edi + 0x28], 4
jmp 0x4a6839
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a6937
mov al, byte [edx]
cmp al, 0x1a
je 0x4a6919
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a6868
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a688d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a6897
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 0x4a684a
jmp 0x4a6937
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 0x4a6914
cmp dword [ebp - 0xc], 0
je 0x4a6914
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5ca750]
test byte [eax + edi + 0x28], 0x48
je 0x4a68ee
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a68d9
mov byte [esi], dl
jmp 0x4a68ea
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5ca750]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a6937
cmp byte [ebp - 1], 0xa
jne 0x4a68fd
cmp esi, ebx
jne 0x4a68fd
mov byte [esi], 0xa
jmp 0x4a6936
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a6937
mov byte [esi], 0xd
jmp 0x4a6936
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5ca750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6933
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6937
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a6993
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 + 0x5ca750]
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 0x4a69d6
cmp word [esi], dx
jne 0x4a69d6
or byte [edi + eax + 0x28], 4
jmp 0x4a69db
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 0x4a6b2e
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 0x4a6b0e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6a1d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a6a53
cmp eax, edx
jae 0x4a6a5f
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 0x4a69f5
jmp 0x4a6b2e
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 0x4a6b0a
cmp dword [ebp - 0x14], 0
je 0x4a6b0a
mov eax, dword [ebx*4 + 0x5ca750]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a6ae2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a6aab
mov word [esi], cx
jmp 0x4a6ade
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5ca750]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5ca750]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5ca750]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a6b2e
pop ebx
cmp word [ebp - 4], bx
jne 0x4a6af3
cmp esi, dword [ebp + 0xc]
jne 0x4a6af3
mov word [esi], bx
jmp 0x4a6b2b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401afa
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a6b2e
push 0xd
jmp 0x4a6b27
mov ecx, dword [ebx*4 + 0x5ca750]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6b25
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6b2e
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 0x4ab5b4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5c5328]
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 0x4ab5ff
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004aba76
test al, al
jne 0x4ab5f9
sub edx, 2
cmp edx, edi
jne 0x4ab5df
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ab621
lea eax, [edi + 2]
cmp edx, eax
je 0x4ab621
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ab1ad
add esp, 0x10
jmp 0x4ab71b
push esi
lea ecx, [ebp - 0x255]
call fcn.004aba76
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 0x4ab664
push dword [ebp - 0x25c]
jmp 0x4ab611
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 0x4ab6a1
cmp word [ebp - 0x226], 0
je 0x4ab6c2
cmp word [ebp - 0x226], ax
jne 0x4ab6a1
cmp word [ebp - 0x224], 0
je 0x4ab6c2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ab1ad
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ab70e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ab67b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ab6f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ab71b
push 0x4aab95
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00406249
add esp, 0x10
jmp 0x4ab6eb
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.004035fd
leave
ret