joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407862
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4078be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x4000
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406ec1
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x407931
push esi
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x3ffe], ax
pop esi
jne 0x407931
cmp dword [ebp - 8], 1
je 0x407936
cmp dword [ebp - 8], 2
je 0x407936
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x40793b
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x40799e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40d0fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 0xc], 0x73006e
mov dword [ebp - 8], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 8], dx
lea eax, [ebp - 0xc]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4079f5
test edi, edi
jne 0x4079ba
mov word [esi], ax
jmp 0x4079f7
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408fb1
leave
ret 8

Function at 0x407ae4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407b06
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4
Function at 0x407d95
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x468424], 0
push esi
jne 0x407dcf
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x407da6
mov dword [ecx*4 + 0x468420], edx
inc ecx
cmp ecx, 0x100
jl 0x407da1
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x407df9
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x468420]
inc esi
sub edx, 1
jne 0x407de1
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x41208a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b1064
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41210a
arpl word [edx + esi], si
mov cl, 0xa5
cdq
invalid
invalid
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1c047c3d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x46d541d7
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x40895c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
and esi, esi
sub edi, esi
call fcn.0040897c
or edi, esi
xor dword [eax], ecx
inc eax
cmp eax, edx
jne fcn.0040895c
ret
Function at 0x401460
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4220f0
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x422277
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_InitializeAcl]
nop dword [eax]
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xc5
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x8a
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x98
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x89
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x12
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb8
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xa4
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x34
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xb2
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x37
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xc6
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x66
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x6b
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xcf
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0x5c
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x3c
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xad
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x25
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xae
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 6
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0xfc
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x73
push 0
push 0
push 0
call esi
add byte [edi + ebp], 9
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x8e
push 0
push 0
push 0
call esi
add byte [edi + ebp], 3
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x3a
push 0
push 0
push 0
call esi
xor byte [edi + ebp], 0xf3
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x66
push 0
push 0
push 0
call esi
add byte [edi + ebp], 0x86
inc edi
cmp edi, ebx
jb 0x422110
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x403c51
Capabilities:
Terminate process

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

Disassembly:
jmp 0x4abed2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4abee3
pop esi
ret
push ebx
push edi
push esi
call fcn.004abdb9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00404863
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4abf0b
push ebx
push esi
push edi
call fcn.00406398
add esp, 0xc
push 0
call fcn.0040713a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x406479
Capabilities:
Parse pe header

Disassembly:
jmp 0x451e78
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x451eb7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x451eb7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x451eb7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x451eb7
cmp dword [ecx + 0x74], 0xe
jbe 0x451eb7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407540
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
jmp 0x423950
sub esp, 0x3c
mov eax, dword [0x593260]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov dword [esp + 0x2c], eax
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ecx, edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x423af3
nop dword [eax]
mov edx, dword [ecx]
xorps xmm0, xmm0
add edx, edi
mov dword [esp + 0x40], 0
mov eax, edx
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x30], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4239c1
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.004060f5
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x24], ebx
test edi, edi
je 0x423aa1
cmp dword [esp + 0x54], 3
jbe 0x423aa1
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x30]
mov edi, edx
mov ebp, edx
xor edi, 0x14d
cmp dword [esp + 0x44], 0x10
cmovae eax, ebx
shr ebp, 2
xor esi, esi
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x423a49
mov ebx, eax
nop dword [eax]
imul ecx, dword [ebx + esi*4], 0x5bd1e991
inc esi
imul edi, edi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor edi, ecx
cmp esi, ebp
jl 0x423a20
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
and edx, 3
lea esi, [eax + ebp*4]
xor ecx, ecx
sub edx, 1
je 0x423a70
sub edx, 1
je 0x423a67
sub edx, 1
jne 0x423a7d
movsx ecx, byte [esi + 2]
shl ecx, 0x10
movsx eax, byte [esi + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor edi, eax
mov eax, edi
shr eax, 0xd
xor eax, edi
imul eax, eax, 0x5bd1e991
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
je 0x423a99
cmp ecx, dword [esp + 0x54]
je 0x423b0c
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp eax, 0x10
jb 0x423ae4
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x423ad6
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423b61
push ecx
push ebx
call fcn.00401bfe
mov ecx, dword [esp + 0x1c]
add esp, 8
inc ebp
mov dword [esp + 0x10], ebp
cmp ebp, dword [esp + 0x28]
jb 0x4239a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035da
add esp, 0x3c
ret
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x423af3
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x423b55
mov ebx, dword [eax - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423b61
push ecx
push ebx
call fcn.00401bfe
add esp, 8
jmp 0x423af3
call fcn.0040517d
int3
Function at 0x41f030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x41ef70
sub esp, 0x6c
mov eax, dword [0x593260]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004013c0
mov ebx, eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x18], ebx
call fcn.00402aae
add esp, 4
mov edi, 0x4c829e
cmp byte [esp + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x4c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x5c], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esp + 0x6c], xmm0
mov eax, dword [eax + 0x28]
mov dword [esp + 0x74], eax
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jne 0x41efe6
mov edi, dword [ebx + 8]
lea eax, [esp + 0x20]
push eax
call fcn.00402aae
mov ecx, edi
add esp, 4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41eff8
sub ecx, edx
push 1
lea ebx, [ecx + 1]
push ebx
call fcn.00403959
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x41f102
test ebx, ebx
je 0x41f028
push ebx
push edi
push ebp
call fcn.00406398
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [esi + 8], ebp
push eax
push 0
push str.false
call fcn.0040371f
mov dword [esi + 0x10], eax
lea eax, [esp + 0x58]
push eax
push 0
push str.true
call fcn.0040371f
add esp, 0x18
mov dword [esi + 0x14], eax
cmp byte [esp + 0x84], 0
je 0x41f0d5
lea eax, [esp + 0x4c]
mov byte [esp + 0x10], 0x2e
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0
push eax
push 1
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x24]
movlpd qword [esp + 0x28], xmm0
push eax
call fcn.00404476
movzx eax, word [esp + 0x28]
xorps xmm0, xmm0
mov word [esi + 0xc], ax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x28], 0x2c
push eax
push 1
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
movlpd qword [esp + 0x3c], xmm0
push eax
call fcn.00404476
movzx eax, word [esp + 0x3c]
add esp, 0x28
jmp 0x41f0e9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
movzx eax, word [eax]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0x34]
movzx eax, word [eax]
mov ecx, dword [esp + 0x78]
pop edi
mov word [esi + 0xe], ax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004035da
add esp, 0x6c
ret 8
call fcn.004010c8
int3
Function at 0x4a5ba8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00402027
mov eax, dword [0x593260]
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.00406c80
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a5bea
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a5d46
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406e15
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 + 0x598560]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403846
mov ecx, dword [esi*4 + 0x598560]
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 0x4a5d3f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a5d3f
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 0x4a5d3f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403846
add esp, 0x14
test edx, edx
jl 0x4a5d3f
jg 0x4a5cb5
test eax, eax
jb 0x4a5d3f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a5d3f
jl 0x4a5ccf
cmp dword [ebp - 0x1008], eax
ja 0x4a5d3f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a5ced
test ebx, ebx
je 0x4a5d26
cmp ecx, edi
jae 0x4a5d26
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a5d07
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a5d13
cmp byte [ecx + 1], 0xa
jne 0x4a5d13
inc ecx
jmp 0x4a5d13
movzx eax, al
movsx eax, byte [eax + 0x593db8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a5ced
cmp edx, ebx
jne 0x4a5ced
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a5d44
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004035da
leave
ret
Function at 0x4aa471
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x593260]
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 0x4aa4bc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004aa933
test al, al
jne 0x4aa4b6
sub edx, 2
cmp edx, edi
jne 0x4aa49c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4aa4de
lea eax, [edi + 2]
cmp edx, eax
je 0x4aa4de
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004aa06a
add esp, 0x10
jmp 0x4aa5d8
push esi
lea ecx, [ebp - 0x255]
call fcn.004aa933
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 0x4aa521
push dword [ebp - 0x25c]
jmp 0x4aa4ce
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 0x4aa55e
cmp word [ebp - 0x226], 0
je 0x4aa57f
cmp word [ebp - 0x226], ax
jne 0x4aa55e
cmp word [ebp - 0x224], 0
je 0x4aa57f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004aa06a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4aa5cb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4aa538
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4aa5b3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4aa5d8
push 0x4a9a52
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004061a9
add esp, 0x10
jmp 0x4aa5a8
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.004035da
leave
ret
Function at 0x4b6299
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 + 0x598560]
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 0x4b62d9
cmp byte [ebx], 0xa
jne 0x4b62d9
or byte [eax + edi + 0x28], 4
jmp 0x4b62de
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b63dc
mov al, byte [edx]
cmp al, 0x1a
je 0x4b63be
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b630d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b6332
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b633c
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 0x4b62ef
jmp 0x4b63dc
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 0x4b63b9
cmp dword [ebp - 0xc], 0
je 0x4b63b9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x598560]
test byte [eax + edi + 0x28], 0x48
je 0x4b6393
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b637e
mov byte [esi], dl
jmp 0x4b638f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x598560]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b63dc
cmp byte [ebp - 1], 0xa
jne 0x4b63a2
cmp esi, ebx
jne 0x4b63a2
mov byte [esi], 0xa
jmp 0x4b63db
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401aeb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b63dc
mov byte [esi], 0xd
jmp 0x4b63db
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x598560]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b63d8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b63dc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b6438
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 + 0x598560]
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 0x4b647b
cmp word [esi], dx
jne 0x4b647b
or byte [edi + eax + 0x28], 4
jmp 0x4b6480
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 0x4b65d3
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 0x4b65b3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b64c2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b64f8
cmp eax, edx
jae 0x4b6504
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 0x4b649a
jmp 0x4b65d3
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 0x4b65af
cmp dword [ebp - 0x14], 0
je 0x4b65af
mov eax, dword [ebx*4 + 0x598560]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b6587
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b6550
mov word [esi], cx
jmp 0x4b6583
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x598560]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x598560]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x598560]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b65d3
pop ebx
cmp word [ebp - 4], bx
jne 0x4b6598
cmp esi, dword [ebp + 0xc]
jne 0x4b6598
mov word [esi], bx
jmp 0x4b65d0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401aeb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b65d3
push 0xd
jmp 0x4b65cc
mov ecx, dword [ebx*4 + 0x598560]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b65ca
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b65d3
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