joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406d00
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x44a0d3
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e560]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov dword [esp + 0x154], 0
xor bl, bl
call fcn.00446e58
mov ebp, eax
mov dword [esp + 0x14], ebp
call fcn.00446c86
push 0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00446fa8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x406d71
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x18]
call fcn.00446fd0
lea eax, [esp + 0x14]
lea edi, [esp + 0x15c]
mov byte [esp + 0x154], 1
call fcn.00403890
mov byte [esp + 0x154], 0
test ebp, ebp
je 0x406ddb
push 0
lea ecx, [esp + 0x18]
call fcn.00446fa8
mov eax, dword [ebp + 4]
test eax, eax
jbe 0x406db9
cmp eax, 0xffffffff
jae 0x406db9
dec eax
mov dword [ebp + 4], eax
mov esi, dword [ebp + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, ebp
call fcn.00446fd0
test esi, esi
je 0x406ddb
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push 0
push 2
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406e76
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea esp, [esp]
lea ecx, [esp + 0x40]
push ecx
call fcn.0042f26a
mov eax, dword [esp + 0x164]
add esp, 4
cmp dword [esp + 0x174], 0x10
jae 0x406e35
lea eax, [esp + 0x160]
push eax
lea edx, [esp + 0x44]
push edx
call fcn.0042f2d0
add esp, 8
test eax, eax
je 0x406e67
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x406e67
push ecx
push 0
push 1
call esi
test eax, eax
je 0x406e67
push 0
push eax
call edi
mov bl, 1
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406e10
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x174], 0x10
jb 0x406e97
mov ecx, dword [esp + 0x160]
push ecx
call fcn.0040e8c6
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0042d9c5
add esp, 0x144
ret
Function at 0x407340
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x214
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 4]
push eax
push 0x450d20
push 1
push 0
push 0x450d30
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x4073f9
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push str.SafeConnect
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x450d60
push eax
mov eax, dword [ecx]
call eax
mov esi, eax
test esi, esi
jl 0x4073ed
push 0x104
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push 1
lea ecx, [esp + 0x10]
push ecx
push eax
call edx
mov esi, eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042d9c5
add esp, 0x214
ret

Function at 0x407420
Capabilities:
Create service
Get common file path
Persist via windows service

Disassembly:
sub esp, 0x408
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x404], eax
lea eax, [esp]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str._scManager.sys_servicestart
lea ecx, [esp + 4]
push 0x400
push ecx
call fcn.0042f356
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x407484
xor al, al
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0042d9c5
add esp, 0x408
ret
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 2
push 0x10
push 0xf01ff
push str.SafeConnect_Manager
push str.SCManager
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
je 0x40746d
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x404]
xor ecx, esp
mov al, 1
call fcn.0042d9c5
add esp, 0x408
ret

Function at 0x4074e0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40752d
push esi
push 0x20
push str.SCManager
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40752c
lea eax, [esp + 8]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40752c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
add esp, 0x1c
ret
Function at 0x407540
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
push SysReAllocString
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4075a8
push ebp
push edi
push SysReAllocString
push str.SCManager
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x407588
push esi
call ebp
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4075a0
cmp dword [esp + 0x14], 1
setne bl
push edi
call ebp
push esi
call ebp
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x409710
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a55c
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov eax, dword [0x45e560]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00410c27
mov eax, dword [esi + 0x120]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0x120]
mov ecx, dword [esi + 0x20]
push eax
xor ebx, ebx
push ebx
push 0x80
push ecx
call edi
lea edx, [esp + 0x8c]
push edx
push 0x202
lea edi, [ebx + 1]
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4098bf
lea eax, [esp + 0x6c]
push eax
call fcn.00401230
mov dword [esp + 0x230], ebx
mov edi, 0xf
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x1c]
push edx
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x38], esp
push eax
mov ecx, str.http:__198.31.193.211:8008_downloads_installertemplates_sbpreinstall.htm
mov byte [esp + 0x258], 3
call fcn.00403820
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00401ef0
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
cmp dword [esp + 0x68], 0x10
jb 0x409833
mov edx, dword [esp + 0x54]
push edx
call fcn.0040e8c6
add esp, 4
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x409853
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040e8c6
add esp, 4
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x409873
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0040e8c6
add esp, 4
mov dword [esp + 0x230], 0xffffffff
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0x6c], vtable.genHTTP.0
jb 0x4098a9
mov edx, dword [esp + 0x74]
push edx
call fcn.0040e8c6
add esp, 4
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
push 0x43
push ebx
push ebx
push ebx
push ebx
push 0x4618b0
mov ecx, esi
call fcn.00417fbd
mov ecx, esi
cmp edi, ebx
jne 0x4098ef
push ebx
push ebx
push ebx
push ebx
push ebx
push str.http:__198.31.193.211:8008_downloads_installertemplates_sbpreinstall.htm
mov byte [esi + 0x114], 1
call fcn.0040fa60
jmp 0x4098f9
push 0x8a
call fcn.00410b0f
mov eax, 1
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0042d9c5
mov esp, ebp
pop ebp
ret
Function at 0x40a230
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x44a263
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x45e560]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov dword [esp + 8], 0x462c44
mov dword [0x462c44], 0x452850
mov dword [0x462c60], 0xf
mov dword [0x462c5c], 0
mov byte [0x462c4c], 0
mov dword [esp + 0x54], 0
push 0x462a08
mov dword [0x462a08], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
push eax
push eax
push str.Kernel32
mov dword [0x462c64], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x40a2fa
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a2fa
lea ecx, [esp + 0x28]
push ecx
call eax
jmp 0x40a305
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test esi, esi
je 0x40a310
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x462a0c]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x40a321
jmp dword [eax*4 + 0x40a478]
mov eax, 1
jmp 0x40a3f5
xor eax, eax
cmp dword [0x462a10], eax
jne 0x40a3f5
cmp dword [0x462a18], 2
setne al
dec eax
and eax, 2
jmp 0x40a3f5
mov eax, dword [0x462a10]
sub eax, 0
je 0x40a399
sub eax, 1
je 0x40a381
sub eax, 1
jne case.default.0x40a321
mov al, byte [0x462aa2]
dec al
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
jmp 0x40a3f5
xor eax, eax
mov ecx, 9
cmp cx, word [esp + 0x28]
sete al
lea eax, [eax*8 + 8]
jmp 0x40a3f5
mov eax, 4
jmp 0x40a3f5
mov eax, dword [0x462a10]
sub eax, 0
je 0x40a3ca
sub eax, 1
jne case.default.0x40a321
mov dl, byte [0x462aa2]
dec dl
movzx eax, dl
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x400
jmp 0x40a3f5
cmp byte [0x462aa2], 1
jne 0x40a3ec
mov eax, 9
sub ax, word [esp + 0x28]
movzx eax, ax
neg eax
sbb eax, eax
and eax, 0xffffffc0
sub eax, 0xffffff80
jmp 0x40a3f5
mov eax, 0x200
jmp 0x40a3f5
xor eax, eax
push eax
lea ecx, [esp + 0x10]
mov dword [0x462c64], eax
call fcn.0040a110
mov esi, eax
mov byte [esp + 0x54], 1
cmp dword [0x462c60], 0x10
mov ecx, dword [0x462c4c]
jae 0x40a41f
mov ecx, 0x462c4c
cmp dword [esi + 0x18], 0x10
jb 0x40a42a
mov eax, dword [esi + 4]
jmp 0x40a42d
lea eax, [esi + 4]
cmp ecx, eax
je 0x40a44e
push 0xffffffffffffffff
push 0
mov ecx, 0x462c48
call fcn.00402a60
push 0xffffffffffffffff
push 0
push esi
mov ecx, 0x462c48
call fcn.00402b00
cmp dword [esp + 0x24], 0x10
jb 0x40a462
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040e8c6
add esp, 4
mov eax, 0x462c44
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret
Function at 0x40c240
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x40c247
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x40c324
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x453ce0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x453ce0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x453ce0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x453ce0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x453ce0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x453ce0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x453ce0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x453ce0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x40c260
pop edi
test edx, edx
je 0x40c34b
jmp 0x40c330
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x453ce0]
inc ecx
sub edx, 1
jne 0x40c330
not eax
pop esi
ret

Function at 0x40c350
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x453ce0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x453ce0]
mov dword [edx + 8], ecx
ret

Function at 0x40c3a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x453ce0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x453ce0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x40caf0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x40cb22
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cb18
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x40cb35
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00433f20
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x40cb50
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40cb83
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cb7d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40cbaf
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40cb95
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00433f20
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40cbc6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40cbc0
cmp byte [esi + 8], 0
je 0x40cbc0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40ccb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40ccf5
cmp byte [esi + 1], 0
je 0x40ccfd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40cd12
cmp byte [esi + 1], 0
je 0x40cd04
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40cd1b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40ccce
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40cd1b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40cd2f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0042f459
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40cd4d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x40ce61
jmp 0x40cd70
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x40cd81
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x40cd9a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40cdbf
cmp byte [esi + 1], 0
je 0x40ce61
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40cdc2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40cdea
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40cde4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40ce10
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40cdfb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00433f20
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40ce61
lea eax, [ebp - 3]
test eax, eax
jl 0x40ce4c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40ce3c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40ce3c
cmp byte [eax + ebx + 2], 5
jne 0x40ce3c
cmp byte [eax + ebx + 3], 6
je 0x40ce42
test eax, eax
jge 0x40ce20
jmp 0x40ce4c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40ce61
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40cd64
push ebx
call fcn.0042ef7e
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40d790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40d7ae
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40d7a2
cmp dword [edi + 0x7c], ebx
je 0x40d7bd
call fcn.0040db80
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040d500
add esp, 0xc
test eax, eax
je 0x40d7e4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0042f459
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40d825
push 0x4000
call fcn.0042f459
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x40d832
push esi
call fcn.0042ef7e
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40d87a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040c660
test eax, eax
jne 0x40d87a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40d8a4
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x40d8ad
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x40d8e7
mov cl, byte [ebp]
cmp cl, bl
je 0x40d8e7
call fcn.0040c350
add ebp, 1
jne 0x40d8d6
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40dc80
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40dd20
cmp dword [ebx + 4], 0xffffffff
jne 0x40dd20
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dcb0
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x40dce1
cmp al, 0x2f
je 0x40dce1
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40dcd0
mov ax, word [0x4542d8]
mov word [edi], ax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.0040cab0
add esp, 8
test eax, eax
jne 0x40dd05
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.0040ce80
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop esi
pop ecx
ret 8

Function at 0x40e2a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45e560]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x40e2dd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e2dd
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40e396
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40e2f8
cmp al, 0x5c
jne 0x40e2fa
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40e2f0
cmp esi, ebp
je 0x40e330
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00433f20
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040e2a0
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x40e34b
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e341
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e350
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e360
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x40e396
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.0042d9c5
add esp, 0x20c
ret