joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d7ee
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov dword [0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.0048e4a6
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.0048d94e
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x48d938
test ebx, ebx
jl 0x48d8dc
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd43c52
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48d8fd
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x48d8ef
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.0048f2be
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.0048f2be
add esp, 8
mov ebx, 0x80070057
jmp 0x48d8dc
Function at 0x4a48ae
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.004a5566
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.004a4a0e
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a49f8
test ebx, ebx
jl 0x4a499c
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd5ad12
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a49bd
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4a49af
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004a637e
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004a637e
add esp, 8
mov ebx, 0x80070057
jmp 0x4a499c
Function at 0x4ba391
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23d0
cmp edx, dword [eax]
je 0x4ba3b3
add eax, 8
inc ecx
cmp eax, 0x4c2460
jl 0x4ba3a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23d0]
jne 0x4ba4e1
mov eax, dword [0x4c6d5c]
cmp eax, 1
je 0x4ba4bb
test eax, eax
jne 0x4ba3e4
cmp dword [0x4c22fc], 1
je 0x4ba4bb
cmp edx, 0xfc
je 0x4ba4e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba41b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bad70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb200
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba45e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb200
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf8d4
push edi
call fcn.004bd0d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bad70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bad80
lea eax, [ebp - 0xa0]
push 0x4bf8b4
push eax
call fcn.004bad80
push dword [esi + 0x4c23d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bad80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd044
add esp, 0x2c
pop edi
jmp 0x4ba4e1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23d4]
push 0
push eax
push dword [esi]
call fcn.004bb200
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1002f8a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001348
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
inc edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005bb8
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
je 0x1003025
cmp edi, 0x190
jl 0x1002f9f
push esi
push 0
push 0x1001344
push dword [esp + 0x124]
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x1003016
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1002fee
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003016

Function at 0x10030b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10030c6
pop dword [ebp - 8]
mov eax, 0x10030c6
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x32a79cdc
add dword [ebp - 0x18], 0x1baaa86f
mov dword [ebp - 0x14], 0x1cdfabb9
sub dword [ebp - 0x14], 0xeaac5f74
mov dword [ebp - 0x10], 0x2d32d03e
sub dword [ebp - 0x10], 0xe0e68c10
mov dword [ebp - 0xc], 0xa09f0a79
sub dword [ebp - 0xc], 0xa09f0a79
lea eax, [ebp - 0x18]
push eax
mov eax, 0x30355f23
add eax, 0xd0cab231
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x3f479cc3
sub dword [ebp - 0x18], 0xcad5336d
mov dword [ebp - 0x14], 0x261dfab8
add dword [ebp - 0x14], 0x1b4e66bd
mov dword [ebp - 0x10], 0x4f79668b
add dword [ebp - 0x10], 0x13f605e1
mov dword [ebp - 0xc], 0x36dc996
add dword [ebp - 0xc], 0xfc92366a
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37851
push 0
call eax
mov ecx, 0x485c
mov edi, eax
mov ebx, 0x4337c2e7
sub ebx, 0x422962e7
add ebx, dword [ebp - 8]
mov edx, 0x2f6fa60a
sub dword [ebp - 4], 0xb4f7703c
mov esi, dword [ebx]
sub dword [ebp - 4], ebx
xor esi, edx
xor dword [ebp - 4], ecx
mov dword [edi], esi
xor dword [ebp - 4], 0xa002c526
add edi, 4
add ebx, 4
loop 0x10031d2
add eax, 0x11443
xor ebx, ebx
add ebx, eax
add eax, 0x7542edfe
add eax, 0x8abd1207
mov ecx, 0xe6a3b469
add ecx, 0x1a5c4b97
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x348bc984
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x348bcae2
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x348bcae2
mov esi, dword [ebp]
test esi, esi
je 0x348bcae2
push ebx
mov ebx, dword [esp + 0x20]
cmp ebx, 1
jne 0x348bc9c5
cmp esi, 2
jae 0x348bc9c5
pop ebx
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebp
push edi
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x348bcad7
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x348bca12
cmp ebx, 1
jne 0x348bc9ff
cmp ecx, 2
je 0x348bca1b
pop ebx
pop edi
mov dword [esp + 0x1c], 0x65d
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
ret 0x18
cmp ebx, 1
jne 0x348bcad7
mov eax, dword [ebp]
cmp eax, esi
jae 0x348bca30
shr eax, 1
mov word [edi + eax*2], 0
mov ecx, dword [esp + 0x28]
jmp 0x348bca3b
mov edx, esi
shr edx, 1
mov word [edi + edx*2 - 2], 0
cmp ecx, 2
jne 0x348bcad7
push esi
call dword [sym.imp.msvcr80.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x348bca60
pop ebx
pop edi
pop esi
mov eax, 0xe
pop ebp
ret 0x18
shr esi, 1
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x348bcab9
cmp esi, eax
lea ecx, [eax + eax]
mov dword [ebp], ecx
jae 0x348bca9b
push ebx
mov word [edi], 0
mov dword [esp + 0x28], 0xea
call dword [sym.imp.msvcr80.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
push esi
push edi
push ebx
call dword [sym.imp.MSO.dll_Ordinal_6877]
push ebx
call dword [sym.imp.msvcr80.dll_free]
mov eax, dword [esp + 0x28]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
mov word [edi], 0
push ebx
mov dword [ebp], 0
mov dword [esp + 0x28], 0x57
call dword [sym.imp.msvcr80.dll_free]
add esp, 4
mov eax, dword [esp + 0x24]
pop ebx
pop edi
pop esi
pop ebp
ret 0x18
pop edi
pop esi
mov eax, 0x57
pop ebp
ret 0x18
Function at 0x348d881f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x348d882e
pop dword [ebp - 4]
mov eax, 0xb00ef46
sub eax, 0xd6736718
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x4f173c0c
add dword [ebp - 0x14], 0xff3b093f
mov dword [ebp - 0x10], 0xa5ad372
add dword [ebp - 0x10], 0x27d878d3
mov dword [ebp - 0xc], 0x99e0c4f7
add dword [ebp - 0xc], 0xb26b7f37
mov dword [ebp - 8], 0x4bf604b4
add dword [ebp - 8], 0xb409fb4c
lea eax, [ebp - 0x14]
push eax
mov eax, 0x77a47799
add eax, 0xbce4997b
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x9447491d
sub dword [ebp - 0x14], 0x1fd4dfc7
mov dword [ebp - 0x10], 0x7dbdb6de
sub dword [ebp - 0x10], 0x3c515569
mov dword [ebp - 0xc], 0xd3c53af7
sub dword [ebp - 0xc], 0x7055ce8b
mov dword [ebp - 8], 0xa0213fd8
add dword [ebp - 8], 0x5fdec028
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0x22498d23
sub eax, 0xedc07b6f
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x4947f
push 0
call eax
mov ecx, 0x4802
mov esi, eax
mov edx, 0xc608e754
sub edx, 0x9179c754
add edx, dword [ebp - 4]
mov ebx, 0xd16ea923
mov edi, dword [edx]
xor edi, ebx
mov dword [esi], edi
add esi, 0x8fa2e85a
sub esi, 0x8fa2e856
add edx, 0x8480d322
sub edx, 0x8480d31e
loop 0x348d8944
add eax, 0x2fe7ac4d
sub eax, 0x2fe69972
xor ebx, ebx
add ebx, eax
add eax, 0xcc95b30e
add eax, 0x336a4cf7
mov ecx, 0x73af45a7
sub ecx, 0x3f2645a7
add ecx, dword [ebp - 4]
call ebx
leave
ret

Function at 0x348e43b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x34892d6c]
jne 0x348e4962
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x348ec620], eax
mov dword [0x348ec61c], ecx
mov dword [0x348ec618], edx
mov dword [0x348ec614], ebx
mov dword [0x348ec610], esi
mov dword [0x348ec60c], edi
mov word [0x348ec638], ss
mov word [0x348ec62c], cs
mov word [0x348ec608], ds
mov word [0x348ec604], es
mov word [0x348ec600], fs
mov word [0x348ec5fc], gs
pushfd
pop dword [0x348ec630]
mov eax, dword [ebp]
mov dword [0x348ec624], eax
mov eax, dword [ebp + 4]
mov dword [0x348ec628], eax
lea eax, [ebp + 8]
mov dword [0x348ec634], eax
mov eax, dword [ebp - 0x320]
mov dword [0x348ec570], 0x10001
mov eax, dword [0x348ec628]
mov dword [0x348ec524], eax
mov dword [0x348ec518], 0xc0000409
mov dword [0x348ec51c], 1
mov eax, dword [0x34892d6c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x348e9be0]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x348ec568], eax
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x34892dac
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x348ec568], 0
jne 0x348e4a52
push 1
call sub.msvcr80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x423320
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567631
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5cdde4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 4], 1
mov dword [esi + 0x10], 0
jb 0x423385
mov eax, dword [esi]
jmp 0x423387
mov eax, esi
push 0
push 0x56b684
mov ecx, esi
mov byte [eax], 0
call fcn.00425160
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x34
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x20], eax
test eax, eax
je 0x42343c
lea ebx, [eax + eax]
push ebx
call fcn.00523654
mov edi, eax
add esp, 4
test edi, edi
je 0x4233c3
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push edi
push dword [ebp - 0x20]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x423431
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x56b654
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x423431
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
call fcn.004275b0
add esp, 0x18
mov ecx, esi
push edi
call fcn.00422c70
push 1
push edi
call fcn.00523646
add esp, 8
mov ecx, dword [ebp + 0x20]
cmp ecx, 8
jb 0x423451
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004256a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523ae4
mov esp, ebp
pop ebp
ret
Function at 0x428e40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567a5f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5cdde4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
lea ecx, [edi + 0x20]
mov byte [edi], 1
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x428ea6
mov eax, dword [ecx]
jmp 0x428ea8
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 8]
push 0
push eax
call fcn.00425030
lea ecx, [edi + 0x38]
mov byte [ebp - 4], 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x428ed7
mov eax, dword [ecx]
jmp 0x428ed9
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp + 0x20]
push 0
push eax
call fcn.00425030
lea eax, [edi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x428f02
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0x38]
movsd xmm0, qword [0x56bb28]
mov dword [edi + 0x7c], eax
lea eax, [edi + 0x84]
movsd qword [edi + 0x68], xmm0
mov dword [edi + 0x70], 0xffffffff
mov dword [edi + 0x78], ecx
mov dword [edi + 0x80], ecx
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 0x10
jb 0x428f42
mov eax, dword [eax]
mov byte [eax], 0
lea esi, [edi + 0xa0]
mov dword [edi + 0x9c], 0
mov ecx, esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00423ba0
mov dword [esi], eax
lea eax, [edi + 0x10]
push eax
push 0
push edi
push 0x429fd0
push 0
push 0
call fcn.00549269
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x18
mov dword [edi + 4], eax
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 8], eax
call esi
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x428fc2
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00425650
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x428fe9
inc ecx
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
call fcn.00425650
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x34
Function at 0x42be80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567dfa
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5cdde4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004379ae
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x42bf40
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0053bf94
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x5c45d8
push eax
call fcn.0053c016
push edi
push esi
call fcn.00437fda
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523ae4
mov esp, ebp
pop ebp
ret 4
Function at 0x42fe80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5cdde4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42feb4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42feb4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x42ff9c
push edi
mov edi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x42fed1
cmp ax, 0x5c
jne 0x42fed3
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x42fec5
cmp edi, ebx
je 0x42ff1f
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.0053c460
add esp, 0xc
cmp edi, 0x208
jae 0x42ffac
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0042fe80
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x42ff44
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x42ff34
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x42ff46
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42ff60
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x42ff9c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00523ae4
mov esp, ebp
pop ebp
ret
call fcn.00523c40
int3

Function at 0x430860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x43092d
cmp dword [esi + 4], 0xffffffff
jne 0x43092d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430891
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4308c8
cmp eax, 0x2f
je 0x4308c8
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4308b5
mov eax, dword [0x56b654]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x4308ee
push edi
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4308ee
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00433340
add esp, 0x10
test eax, eax
jne 0x43090e
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.004338e0
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov edx, 0x200
test eax, eax
cmove ecx, edx
pop edi
mov eax, ecx
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x430df0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x56e950]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x56e950]
mov dword [edx + 8], ecx
pop ebp
ret