joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d810
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5afd29
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], vtable.boost::exception.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x6046b8
call fcn.00583d7b
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_exception_.0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.0041df10
test byte [0x63599c], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_exception___void_
mov dword [esp + 0x44], 0x604558
mov dword [esp + 0x48], 0x80
jne 0x41d95f
or dword [0x63599c], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.00575996
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x41d8ef
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.0041dae0
jmp 0x41d8f1
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.0041e2d0
mov ecx, dword [eax]
mov dword [0x635994], ecx
mov eax, dword [eax + 4]
mov dword [0x635998], eax
cmp eax, edi
je 0x41d920
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x41d952
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41d952
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41d952
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x5b57b0
call fcn.00583537
add esp, 4
mov eax, dword [0x635994]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x635998]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x41d984
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.0041dfc0
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.std::bad_exception.0
call fcn.00583e48
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x41d9cd
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e7d0
Capabilities:
Delete file
Get file size

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x6357f4]
push 0
push 0x80
push 2
push 0
push 2
mov dword [0x635954], eax
mov eax, dword [esp + 0x18]
push 0x40000000
push ecx
mov dword [0x635958], eax
mov dword [0x63595c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x635978], eax
cmp eax, 0xffffffff
je 0x41e878
mov edx, dword [0x635714]
push 0
push 0
push 0x635954
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x635710]
mov eax, dword [0x635978]
push 0x635960
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
ja 0x41e86c
mov ecx, dword [0x635978]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x6357f4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
mov eax, dword [0x635978]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x41e8a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5b2ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.DBGHELP.DLL
mov dword [0x62e94c], 1
mov dword [0x635714], 2
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41e8f5
push str.MiniDumpWriteDump
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x41e8f7
xor eax, eax
mov dword [0x635710], eax
test eax, eax
je 0x41e990
lea esi, [esp + 8]
call fcn.0041e630
push eax
mov ecx, 0x6357f4
mov dword [esp + 0x3c], 0
call fcn.00401a80
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e948
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x6357f4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e985
mov eax, dword [0x6357f4]
lea edx, [esp + 0xc]
push edx
push eax
call fcn.005859e3
add esp, 8
test eax, eax
jne 0x41e976
cmp dword [esp + 0x20], eax
ja 0x41e985
mov ecx, dword [0x6357f4]
push ecx
call fcn.00586388
add esp, 4
push 0x41e880
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x41ffd0
Capabilities:
Create process on windows
Get common file path
Get program files directory
Print debug messages

Disassembly:
sub esp, 0x20c
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 3
push 0
push 0
push esi
push 0
push 0
call edi
cmp eax, 0x20
ja 0x420064
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x604758
call ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00587fb0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x420063
push 0x60476c
call ebx
push str.Internet_ExplorerIEXPLORE.EXE
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 3
push 0
push esi
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call edi
pop ebx
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
call fcn.005832f8
add esp, 0x20c
ret
Function at 0x423380
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5b2198
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor eax, eax
xor ecx, ecx
mov word [esp + 0x18], ax
xor esi, esi
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x24], cx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
call fcn.005759db
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x423400
push 0x80004005
call fcn.00401b20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], esi
cmp ebx, esi
je 0x4234be
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
test bl, 1
je 0x4234b3
lea ecx, [esi + 0x41]
push ecx
lea edx, [esp + 0x1c]
push 0x6047ec
push edx
call ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
push 0x6047f4
push ecx
call ebp
add esp, 0x18
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4234b3
lea eax, [esi + 0x41]
mov word [esp + 0x14], ax
xor ecx, ecx
lea eax, [esp + 0x14]
mov word [esp + 0x16], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423475
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.00401960
push 2
push 0x604804
lea ecx, [esp + 0x18]
call fcn.00407850
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.005789d3
shr ebx, 1
inc esi
test ebx, ebx
jne 0x423422
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4234e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005832f8
add esp, 0x38
ret
Function at 0x423b50
Capabilities:
Check os version

Disassembly:
sub esp, 0x32c
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x328], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12a]
push ecx
mov dword [esp + 0xc], 0
mov word [esp + 0x12c], ax
call fcn.00587fb0
add esp, 0xc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x103
lea edx, [esp + 0x124]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x118
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00587fb0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x423c03
mov eax, dword [esp + 0xc]
sub eax, 0
je 0x423bfc
sub eax, 1
je 0x423bf5
sub eax, 1
jne 0x423c30
push str.win2003
jmp 0x423c35
push str.winxp
jmp 0x423c35
push str.win2000
jmp 0x423c35
cmp eax, 6
jne 0x423c30
mov eax, dword [esp + 0xc]
sub eax, 0
je 0x423c29
sub eax, 1
je 0x423c22
sub eax, 1
jne 0x423c30
push 0x603804
jmp 0x423c35
push 0x6037f8
jmp 0x423c35
push str.vista
jmp 0x423c35
push 0x602afc
mov ecx, esi
call fcn.004016c0
mov ecx, dword [esp + 0x328]
xor ecx, esp
mov eax, esi
call fcn.005832f8
add esp, 0x32c
ret

Function at 0x423c60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x423c7a
pop edi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x423cb8
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x423dd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00587fb0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0
push 0
call esi
test eax, eax
jl 0x423ed7
mov ecx, dword [esp + 4]
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0xc]
push eax
push ecx
call ebp
test eax, eax
je 0x423e42
lea edx, [esp + 0xc]
push edx
mov ecx, edi
call fcn.00401680
mov ecx, edi
call fcn.00423280
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoTaskMemFree]
push eax
call ebx
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.00587fb0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0xb
push 0
call esi
test eax, eax
jl 0x423ebd
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
test eax, eax
je 0x423e99
lea edx, [esp + 0x10]
lea esi, [edi + 4]
push edx
mov ecx, esi
call fcn.00401680
mov ecx, esi
call fcn.00423280
mov eax, dword [esp + 0xc]
push eax
call ebx
pop ebx
pop ebp
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005832f8
add esp, 0x210
ret
pop ebx
pop ebp
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.005832f8
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.005832f8
add esp, 0x210
ret

Function at 0x423ef0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 0x601918
push 1
push 0
push 0x601928
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x423f1a
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
test esi, esi
je 0x423f3c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push esi
push eax
call edx
test edi, edi
je 0x423f4f
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x601948
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x423f13
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 2
push ebx
push eax
call edx
test eax, eax
jl 0x423f13
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push ebx
call fcn.004016c0
call fcn.00423fb0
mov eax, 1
pop ebx
pop ecx
ret 8
Function at 0x4243e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5b113e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62c930]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
lea edi, [esi + 0x30]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov eax, ebp
lea edx, [eax + 1]
mov byte [esp + 0x1c], 2
mov dword [esp + 0x28], edx
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x424450
sub eax, dword [esp + 0x28]
push eax
push ebp
call fcn.00407990
mov ebp, dword [esp + 0x2c]
mov eax, ebp
lea edx, [eax + 1]
jmp 0x424470
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x424470
sub eax, edx
push eax
push ebp
mov ecx, edi
call fcn.00407990
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x433520
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
shrd ecx, edx, 0x14
shr edx, 0x14
push edx
push ecx
push 0x6089b4
shrd ebx, esi, 0x14
shrd ebp, edi, 0x14
push eax
shr esi, 0x14
shr edi, 0x14
call fcn.00407c30
mov ecx, dword [esp + 0x68]
push edi
push ebp
push 0x6089b4
push ecx
call fcn.00407c30
mov edx, dword [esp + 0x7c]
push esi
push ebx
push 0x6089b4
push edx
call fcn.00407c30
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0xc
Function at 0x4371a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
test ecx, ecx
jne 0x4371ab
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x437284
mov esi, edx
shr esi, 3
push edi
lea ecx, [ecx]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x607f38]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x607f38]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x607f38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x607f38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x607f38]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x607f38]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x607f38]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x607f38]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4371c0
pop edi
test edx, edx
je 0x4372ab
jmp 0x437290
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x607f38]
inc ecx
sub edx, 1
jne 0x437290
not eax
pop esi
ret

Function at 0x4372b0
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 + 0x607f38]
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 + 0x607f38]
mov dword [edx + 8], ecx
ret

Function at 0x437300
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 + 0x607f38]
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 + 0x607f38]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x4377f0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ebx
imul esi, dword [esp + 0x10]
cmp byte [edi], 0
je 0x437828
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43781d
mov byte [edi + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x43783b
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.00588160
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret

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

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4382a8
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x43829d
cmp dword [edi + 0x7c], ebx
je 0x4382b7
call fcn.00438680
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004380b0
add esp, 0xc
test eax, eax
je 0x4382dd
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.00586165
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x43831f
push 0x4000
call fcn.00586165
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x43832b
push ebp
call fcn.0058622f
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x438374
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.0045a830
test eax, eax
jne 0x438374
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x43839e
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x4383a7
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x4383e4
mov cl, byte [esi]
cmp cl, bl
je 0x4383e4
call fcn.004372b0
add esi, 1
jne 0x4383d4
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x438780
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x438821
cmp dword [esi + 4], 0xffffffff
jne 0x438821
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4387b0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4387e9
cmp ax, 0x2f
je 0x4387e9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4387d6
mov eax, dword [0x60249c]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00437750
add esp, 4
test eax, eax
jne 0x438807
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.00437b90
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

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

Disassembly:
sub esp, 0x414
mov eax, dword [0x62c930]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x438d80
push esi
call ebp
cmp eax, 0xffffffff
jne 0x438d80
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x438e66
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x438d9f
cmp ax, 0x5c
jne 0x438da1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x438d93
push edi
cmp ecx, ebx
je 0x438de4
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.00588160
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00438d40
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x438e0f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x438e00
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x438e00
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438e13
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x438e30
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x438e30
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x438e66
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005832f8
add esp, 0x414
ret