joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43301b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x144], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
mov ebx, edx
test ecx, ecx
jne 0x43304f
mov eax, 0x80070057
mov edi, eax
push eax
jmp 0x433129
test ebx, ebx
je 0x433042
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x144]
call fcn.0041a4ba
mov esi, dword [ebp - 0x144]
test esi, esi
je 0x43311a
cmp esi, 0xffffffff
je 0x43311a
push 0x40
lea eax, [ebp - 0x48]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x148]
push edi
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43311a
mov eax, 0x5a4d
cmp ax, word [ebp - 0x48]
je 0x4330c7
mov edi, 0x8007000d
jmp 0x433128
mov eax, dword [ebp - 0xc]
push edi
push edi
cdq
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x43311a
push 0xf8
lea eax, [ebp - 0x140]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x148]
push edi
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43311a
mov ax, word [ebp - 0x13c]
mov word [ebx], ax
jmp 0x43312e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov edi, eax
push edi
call fcn.004314fa
push edi
call fcn.00431467
lea ecx, [ebp - 0x144]
call fcn.004316b4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret
Function at 0x433156
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x264], 0xffffffff
push ebx
push esi
mov dword [ebp - 0x26c], eax
xor eax, eax
push edi
mov edi, edx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x27c], edi
mov esi, eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x268], eax
test edi, edi
jne 0x4331be
mov eax, 0x80070057
mov ebx, eax
push eax
call fcn.004314fa
jmp 0x43337d
mov ecx, edi
call fcn.0043383f
mov ebx, eax
test ebx, ebx
jns 0x4331ce
push ebx
jmp 0x4331b4
cmp dword [ebp - 0x26c], esi
je 0x4331ac
lea eax, [ebp - 0x268]
push eax
push 0
push 0x40a92c
push edi
call fcn.004307e7
mov ebx, eax
test ebx, ebx
js 0x4331cb
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x264]
call fcn.0041a4f2
mov edi, dword [ebp - 0x264]
test edi, edi
je 0x43336b
cmp edi, 0xffffffff
je 0x43336b
mov ecx, 0x407390
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43326d
test dx, dx
je 0x433269
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43326d
add eax, 4
add ecx, 4
test dx, dx
jne 0x433247
xor eax, eax
jmp 0x433272
sbb eax, eax
or eax, 1
test eax, eax
je 0x433313
mov ecx, 0x406f00
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4332ab
test dx, dx
je 0x4332a7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4332ab
add eax, 4
add ecx, 4
test dx, dx
jne 0x433285
xor eax, eax
jmp 0x4332b0
sbb eax, eax
or eax, 1
test eax, eax
je 0x433313
test byte [ebp - 0x25c], 0x10
jne 0x433313
test esi, esi
je 0x4332ce
push esi
call fcn.00431523
and dword [ebp - 0x260], 0
lea eax, [ebp - 0x260]
push eax
push 0
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x27c]
call fcn.004307e7
mov ebx, eax
test ebx, ebx
js 0x43335d
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x274]
lea ecx, [ebp - 0x278]
call fcn.00433a31
mov ebx, eax
test ebx, ebx
js 0x43335d
mov esi, dword [ebp - 0x260]
push 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43323c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x43336b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov ebx, eax
jmp 0x4331cb
push ebx
call fcn.004314fa
mov esi, dword [ebp - 0x260]
jmp 0x43337d
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x278]
push eax
call fcn.004306a4
push ebx
call fcn.00431467
lea ecx, [ebp - 0x264]
call fcn.00431692
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x43339e
push eax
call fcn.00431523
test esi, esi
je 0x4333a8
push esi
call fcn.00431523
push 0
lea ecx, [ebp - 0x278]
call fcn.00433af7
lea ecx, [ebp - 0x270]
call fcn.0042dbea
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret 4
Function at 0x43383f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
test ecx, ecx
jne 0x433853
mov esi, 0x80070057
jmp 0x43388e
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43387a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov esi, eax
push esi
call fcn.004314fa
mov ebx, dword [ebp - 4]
push esi
call fcn.00431467
test esi, esi
js 0x43388e
test bl, 0x10
jne 0x433894
mov esi, 0x8007007b
push esi
call fcn.004314fa
push esi
call fcn.00431467
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4338a6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 2
mov edx, 0x406234
mov dword [ebp - 4], ebx
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
call fcn.004357f8
mov esi, eax
test esi, esi
js 0x433903
push ebx
call fcn.00431467
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push 4
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.004317c7
mov esi, dword [ebp - 8]
test eax, eax
jne 0x433909
push esi
call fcn.004314fa
push esi
call fcn.00431467
lea ecx, [ebp - 0xc]
call fcn.0042dbea
cmp dword [ebp - 4], ebx
je 0x433925
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x433c12
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x10], 0
xor eax, eax
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
lea edi, [ebp - 0x24]
xor ebx, ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test edx, edx
jne 0x433c47
mov esi, 0x80070057
push esi
call fcn.004314fa
jmp 0x433d04
push edx
lea eax, [ebp - 8]
push 0x408e60
push eax
call fcn.0041a612
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x433c6d
push esi
call fcn.004314fa
mov ebx, dword [ebp - 8]
jmp 0x433d04
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x24]
mov ebx, dword [ebp - 8]
push edx
push eax
mov ecx, dword [eax + 0x2c]
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
shr ecx, 8
and ecx, 1
push ecx
push eax
push eax
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x433ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov esi, eax
jmp 0x433c3c
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
call fcn.004316d6
push dword [ebp - 0x20]
lea ecx, [ebp - 0xc]
call fcn.004316d6
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x433ce7
cmp eax, 0x102
je 0x433cdd
mov esi, 0x80004005
jmp 0x433c3c
mov esi, 0x800705b4
jmp 0x433c3c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x433c97
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x433d04
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
push esi
call fcn.00431467
test ebx, ebx
je 0x433d14
push ebx
call fcn.00431523
cmp dword [ebp - 0xc], 0
je 0x433d23
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x433d32
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14
Function at 0x43474d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xac], eax
push 0x90
lea eax, [ebp - 0x9c]
mov dword [ebp - 0xa8], edx
push edi
push eax
mov dword [ebp - 0xa4], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4347ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov esi, eax
push esi
call fcn.004314fa
mov ebx, dword [ebp - 0xac]
jmp 0x4347ed
cmp dword [ebp - 0x90], 2
jne 0x4347eb
cmp dword [ebp - 0x9c], 5
ja 0x4347e6
jne 0x4347eb
cmp dword [ebp - 0x98], esi
jbe 0x4347eb
xor ebx, ebx
inc ebx
jmp 0x4347ed
xor ebx, ebx
push esi
call fcn.00431467
test esi, esi
jns 0x434802
push esi
call fcn.004314fa
jmp 0x434891
xor esi, esi
mov eax, ebx
push esi
push esi
push 0xffffffffffffffff
push dword [ebp - 0xa8]
shl eax, 3
push eax
push esi
mov dword [ebp - 0xb0], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
jg 0x434837
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov esi, eax
jmp 0x4347f7
lea eax, [ebp - 0xa4]
push eax
push ebx
push esi
call fcn.0041a571
mov esi, eax
test esi, esi
jns 0x434859
push esi
call fcn.004314fa
mov edi, dword [ebp - 0xa4]
jmp 0x434891
mov edi, dword [ebp - 0xa4]
push ebx
push edi
push 0xffffffffffffffff
push dword [ebp - 0xa8]
push dword [ebp - 0xb0]
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp ebx, eax
je 0x434885
mov esi, 0x8000ffff
jmp 0x4347f7
mov ecx, dword [ebp - 0xac]
mov eax, edi
xor edi, edi
mov dword [ecx], eax
push esi
call fcn.00431467
test edi, edi
je 0x4348a1
push edi
call fcn.00431523
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret 4
Function at 0x435402
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004360d7

Function at 0x436aac
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov eax, ecx
and dword [ebp - 4], esi
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
test eax, eax
je 0x436b94
xor ecx, ecx
cmp cx, word [eax]
je 0x436b94
push edi
lea edx, [ebp - 4]
mov ecx, eax
call fcn.0043659c
mov edi, eax
test edi, edi
je 0x436b80
mov esi, dword [ebp - 4]
test esi, esi
je 0x436af9
add esi, 2
jmp 0x436afb
mov esi, edi
push 0x5c
pop ebx
push ebx
push esi
call sub.msvcrt.dll_wcschr
pop ecx
mov esi, eax
pop ecx
mov ecx, edi
test esi, esi
je 0x436b2d
xor eax, eax
mov word [esi], ax
call fcn.00438064
test eax, eax
jne 0x436b25
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], bx
add esi, 2
jmp 0x436afe
call fcn.00438064
xor esi, esi
inc esi
push 0
pop ebx
cmp eax, esi
je 0x436b6e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, esi
je 0x436b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push dword [ebp - 8]
push 0x40d000
push 0x3000000
push 0x490254
call fcn.0043652a
mov esi, dword [ebp - 0xc]
add esp, 0x14
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x436b88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
jmp 0x436b9e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x437295
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
test ecx, ecx
je 0x437344
test ebx, ebx
je 0x437344
xor edx, edx
call fcn.0043659c
mov edi, eax
test edi, edi
je 0x437308
xor edx, edx
mov ecx, ebx
call fcn.0043659c
mov esi, eax
test esi, esi
je 0x437308
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4372e8
xor edx, edx
mov ecx, esi
call fcn.004379f7
push dword [ebp + 8]
mov edx, esi
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.0043735b
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x437314
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x437338
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x437338
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
jmp 0x43734e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43735b
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 0xc], 0
mov eax, ecx
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
push esi
push edi
mov edi, edx
test ebx, 0xffffffe0
je 0x43738b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4374fc
mov esi, ebx
and esi, 1
test ebx, 8
je 0x43739e
or esi, 0x1000
xor edx, edx
call fcn.0043659c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4374f9
xor edx, edx
mov ecx, edi
call fcn.0043659c
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4374d0
xor eax, eax
and dword [ebp - 4], 0
push esi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 8]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x437452
test ebx, 2
je 0x4374d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x14], ecx
push edx
mov edx, ecx
mov dword [ebp - 8], eax
mov ecx, eax
call fcn.00437920
test eax, eax
je 0x4374d0
push dword [ebp - 4]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0x40d078
push 0x4000000
push 0x490254
call fcn.0043652a
add esp, 0x1c
cmp dword [ebp - 4], 0
jbe 0x43744a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
jmp 0x4373c6
test ebx, 4
je 0x4374d0
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4374d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0x1f
pop ebx
test esi, esi
jne 0x43747e
mov esi, ebx
push esi
push edi
push 0x40d110
push 0x2000000
push 0x490254
call fcn.0043652a
add esp, 0x14
xor edx, edx
mov ecx, edi
call fcn.004379f7
test eax, eax
jne 0x4374c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4374b0
mov ebx, eax
push ebx
push edi
push 0x40d1b0
push 0x2000000
push 0x490254
call fcn.0043652a
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4374f9
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x437f49
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
test ebx, ebx
je 0x438024
xor eax, eax
cmp ax, word [ebx]
je 0x438024
xor edx, edx
call fcn.0043659c
mov edi, eax
test edi, edi
je 0x437ff6
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x437fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
push 0x40d8b8
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
xor edx, edx
mov ecx, edi
call fcn.004379f7
mov ebx, eax
test ebx, ebx
jne 0x437fe1
test esi, esi
jne 0x437fc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x40d940
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, ebx
jmp 0x438019
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
push 0x40d9c0
push 0x3000000
push 0x490254
call fcn.0043652a
add esp, 0x14
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
jmp 0x43802e
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x438064
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
xor esi, esi
test ecx, ecx
je 0x4380d2
xor eax, eax
cmp ax, word [ecx]
je 0x4380d2
push ebx
xor edx, edx
call fcn.0043659c
mov ebx, eax
test ebx, ebx
je 0x4380cd
push edi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x438098
test al, 0x10
je 0x438098
inc esi
jmp 0x4380b5
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x4380ad
mov edi, 0x10b
jmp 0x4380b5
cmp edi, 2
jne 0x4380b5
push 3
pop edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop ebx
mov eax, esi
pop esi
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret

Function at 0x4380e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
test ecx, ecx
je 0x438155
xor eax, eax
cmp ax, word [ecx]
je 0x438155
push esi
push edi
xor edx, edx
call fcn.0043659c
mov edi, eax
test edi, edi
je 0x438140
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x438126
and esi, 0x10
sete bl
neg esi
sbb esi, esi
and esi, 2
jmp 0x43812e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x438148
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, ebx
pop esi
jmp 0x43815f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
pop ebp
ret 4
Function at 0x43889f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov dword [ebp - 4], edx
xor ebx, ebx
push edi
xor edx, edx
call fcn.0043659c
mov edi, eax
test edi, edi
je 0x438909
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp esi, 0xffffffff
je 0x4388e1
test esi, 0x400
je 0x4388e1
xor eax, eax
inc eax
jmp 0x4388e3
xor eax, eax
mov edx, dword [ebp - 4]
xor ebx, ebx
test ecx, ecx
push edi
push 0
mov dword [edx], eax
sete bl
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x439b26
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x25c], edx
push edi
inc esi
xor edi, edi
test ecx, ecx
je 0x439c4b
cmp word [ecx], di
je 0x439c4b
mov edx, 0x409778
call fcn.0043a318
mov ebx, eax
test ebx, ebx
jne 0x439b71
push 8
jmp 0x439c4d
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x439c39
mov eax, dword [ebp - 0x25c]
mov dword [eax], esi
test byte [ebp - 0x258], 0x10
je 0x439c29
mov ecx, 0x407390
lea eax, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x439bd0
test dx, dx
je 0x439bcc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x439bd0
add eax, 4
add ecx, 4
test dx, dx
jne 0x439baa
xor eax, eax
jmp 0x439bd4
sbb eax, eax
or eax, esi
test eax, eax
je 0x439c11
mov ecx, 0x406f00
lea eax, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x439c09
test dx, dx
je 0x439c05
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x439c09
add eax, 4
add ecx, 4
test dx, dx
jne 0x439be3
xor eax, eax
jmp 0x439c0d
sbb eax, eax
or eax, esi
test eax, eax
jne 0x439c29
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x439b92
jmp 0x439c32
mov eax, dword [ebp - 0x25c]
and dword [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x439c55
push 0x57
mov esi, edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret

Function at 0x43a0cd
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x208], eax
xor eax, eax
push 0x200
push eax
lea eax, [ebp - 0x204]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x43a19c
xor ecx, ecx
cmp word [esi], cx
je 0x43a19c
test edi, edi
je 0x43a194
cmp word [edi], cx
je 0x43a194
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x43a170
cmp word [eax], cx
je 0x43a170
push esi
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push 0x40e8b0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test ebx, ebx
je 0x43a184
xor eax, eax
cmp word [ebx], ax
je 0x43a184
lea eax, [ebp - 0x204]
push ebx
push eax
call sub.msvcrt.dll__wcsicmp
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x43a19e
push esi
push 0x100
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
xor ecx, ecx
xor eax, eax
cmp cx, word [ebp - 0x204]
setne al
jmp 0x43a19e
push esi
call fcn.004380e4
jmp 0x43a19e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret 0x10