joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f180
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4e71f3
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x14]
call sub.mfc90.dll_Ordinal_580
mov byte [esp + 0x30], 1
push 0x4ff418
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00492540
add esp, 0xc
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x1c]
lea edx, [eax - 1]
xor esi, esi
test edx, edx
jle 0x42f252
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
jl 0x42f293
cmp esi, eax
jge 0x42f293
mov eax, dword [esp + 0x18]
lea eax, [eax + esi*4]
push 0x4ff418
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402a60
add esp, 0xc
mov byte [esp + 0x30], 3
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_941]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov edx, dword [esp + 0xc]
push 0
push edx
call edi
mov eax, dword [esp + 0x1c]
inc esi
lea ecx, [eax - 1]
cmp esi, ecx
jl 0x42f1f4
mov byte [esp + 0x30], 1
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x14]
call sub.mfc90.dll_Ordinal_781
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
call sub.mfc90.dll_Ordinal_1252
int3
Function at 0x431be0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e7711
mov eax, dword fs:[0]
push eax
sub esp, 0x54c
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0x548], eax
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x55c]
mov dword fs:[0], eax
mov dword [esp + 0x564], 0
mov ecx, 0x10dd2d0
call sub.mfc90.dll_Ordinal_5870
cmp dword [0x103a97c], 0x66
jne 0x431c47
push str.CTrojanCutDlg_ReadLogsFtp_call
push 8
call fcn.0043d500
add esp, 8
push 0x1ff
lea eax, [esp + 0x35d]
push 0
push eax
mov byte [esp + 0x364], 0
call sub.MSVCR90.dll_memset
push 0x1ff
lea ecx, [esp + 0x169]
push 0
push ecx
mov byte [esp + 0x170], 0
call sub.MSVCR90.dll_memset
add esp, 0x18
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0x564], 1
mov eax, dword [esp + 0x56c]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x200
jg 0x431dc0
jae 0x431cbf
lea edx, [esp + 0x158]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x431cb5
lea eax, [esp + 0x158]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x431cc7
mov edx, dword [0x5027e0]
mov cl, byte [0x5027e4]
mov dword [eax], edx
lea edx, [esp + 0x18]
mov byte [eax + 4], cl
push edx
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x431dc0
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ebx, [ebx]
mov eax, dword [esp + 0x56c]
cmp dword [eax - 0xc], 0x200
ja 0x431db9
lea ecx, [esp + 0x44]
push ecx
push eax
lea edx, [esp + 0x360]
push 0x5027d8
push edx
call ebp
add esp, 0x10
test byte [esp + 0x18], 0x10
jne 0x431da9
lea eax, [esp + 0x358]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_820]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x358]
push ecx
push edx
call fcn.00492210
add esp, 8
push 0
push str..tclog
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_2481]
test eax, eax
jl 0x431da9
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call dword [sym.imp.mfc90.dll_Ordinal_300]
mov byte [esp + 0x568], 2
mov byte [esp + 0x568], 1
call fcn.00431580
add esp, 4
lea eax, [esp + 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x431d10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x564], 0
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0x564], 0xffffffff
lea ecx, [esp + 0x56c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x55c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.004e0148
add esp, 0x558
ret
Function at 0x432e50
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4e7911
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
call fcn.00427b50
mov dword [esp + 0x24], 0
lea ecx, [edi + 0x74]
mov dword [edi], vtable.CHelp.0
call sub.mfc90.dll_Ordinal_580
mov byte [esp + 0x24], 1
mov ebx, 0xe
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x12
jne 0x432ee3
push str.MS_Sans_Serif
mov ecx, 0x103aeec
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
je 0x432ee3
push 0x4feef0
mov ecx, 0x103aeec
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
je 0x432ee3
mov ebx, 0xb
push 8
call sub.mfc90.dll_Ordinal_798
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 2
test eax, eax
je 0x432f05
mov ecx, eax
call fcn.00404450
mov esi, eax
jmp 0x432f07
xor esi, esi
mov byte [esp + 0x24], 1
mov ebp, dword [sym.imp.GDI32.dll_CreateFontA]
mov dword [edi + 0x68], esi
test esi, esi
je 0x432f49
mov edx, dword [0x103aeec]
push edx
push 0
push 2
push 1
push 2
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
lea eax, [ebx + 2]
push eax
call ebp
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_1358
push 8
call sub.mfc90.dll_Ordinal_798
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 3
test eax, eax
je 0x432f6b
mov ecx, eax
call fcn.00404450
mov esi, eax
jmp 0x432f6d
xor esi, esi
mov byte [esp + 0x24], 1
mov dword [edi + 0x6c], esi
test esi, esi
je 0x432fa6
mov ecx, dword [0x103aeec]
push ecx
push 0
push 2
push 1
push 2
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push ebx
call ebp
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_1358
push 8
call sub.mfc90.dll_Ordinal_798
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 4
test eax, eax
je 0x432fc8
mov ecx, eax
call fcn.00404450
mov esi, eax
jmp 0x432fca
xor esi, esi
mov byte [esp + 0x24], 1
mov dword [edi + 0x70], esi
test esi, esi
je 0x433003
mov edx, dword [0x103aeec]
push edx
push 0
push 2
push 1
push 2
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push ebx
call ebp
push eax
mov ecx, esi
call sub.mfc90.dll_Ordinal_1358
push 0x1de6b5
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [edi + 0x64], eax
mov dword [edi + 0x60], 1
mov dword [edi + 0x5c], 0
mov dword [esp + 0x24], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x433850
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4e7a12
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.00433680
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esi], vtable.CHoverButton.0
mov byte [esi + 0x6c], bl
mov dword [esi + 0x58], ebx
lea ebp, [ebx + 0xe]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x12
jne 0x4338d6
push str.MS_Sans_Serif
mov ecx, 0x103aeec
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
je 0x4338d6
push 0x4feef0
mov ecx, 0x103aeec
call dword [sym.imp.mfc90.dll_Ordinal_1603]
test eax, eax
je 0x4338d6
lea ebp, [ebx + 0xb]
push 8
call sub.mfc90.dll_Ordinal_798
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 1
cmp eax, ebx
je 0x4338f8
mov ecx, eax
call fcn.00404450
mov edi, eax
jmp 0x4338fa
xor edi, edi
mov byte [esp + 0x24], bl
mov dword [esi + 0x70], edi
cmp edi, ebx
je 0x43392f
mov edx, dword [0x103aeec]
push edx
push ebx
push 2
push 1
push 2
push 1
push ebx
push ebx
push ebx
push 0x190
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov ecx, edi
call sub.mfc90.dll_Ordinal_1358
mov dword [esp + 0x24], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x435ef0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0xa0c
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0xa08], eax
mov eax, dword [esp + 0xa10]
push ebx
mov ebx, dword [esp + 0xa18]
push esi
push edi
push eax
xor esi, esi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x435f61
push 0x7fc
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x20], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x800
lea eax, [esp + 0x1c]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x435f7b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa08]
xor ecx, esp
call fcn.004e0148
add esp, 0xa0c
ret
mov eax, dword [esp + 0x10]
shr eax, 2
cmp eax, esi
push ebp
mov dword [esp + 0x10], eax
jle 0x435fe1
mov ebp, dword [sym.imp.MSVCR90.dll__stricmp]
push 0x1ff
lea ecx, [esp + 0x81d]
push 0
push ecx
mov byte [esp + 0x824], 0
call sub.MSVCR90.dll_memset
mov eax, dword [esp + esi*4 + 0x24]
add esp, 0xc
push 0x200
lea edx, [esp + 0x81c]
push edx
push eax
push edi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea ecx, [esp + 0x818]
push ebx
push ecx
call ebp
add esp, 8
test eax, eax
je 0x436003
inc esi
cmp esi, dword [esp + 0x10]
jl 0x435f91
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xa18]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e0148
add esp, 0xa0c
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + esi*4 + 0x18]
jmp 0x435fea
Function at 0x436010
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xfffffffffffffffe
push 0x52b548
push 0x4e02e2
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x53fa2c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x810]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push 0x506d34
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
jne 0x436097
mov dword [ebp - 4], 0xfffffffe
or eax, 0xffffffff
jmp 0x4361df
mov edi, dword [ebp + 0x80c]
push edi
push ebx
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x436088
mov ecx, dword [ebp - 0x24]
push ecx
push edi
call fcn.00435ef0
add esp, 8
mov edi, eax
test edi, edi
jne 0x4360db
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4361df
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x43613d
push edi
mov edx, dword [ebp - 0x28]
push edx
push ebx
call fcn.00435bb0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x43613d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp]
push eax
call fcn.004568b0
lea ecx, [ebp]
push ecx
push str.EjectLib_catch_error__s_
push 8
call fcn.0043d500
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4361df
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x103a97c], 0x97
jne 0x43616b
mov edx, dword [ebp + 0x80c]
push edx
push str.EjectLib___d_
push 8
call fcn.0043d500
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x4361df
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004e0148
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x436cb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
not eax
cmp edx, 8
jb 0x436d86
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x506d40]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x506d40]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x506d40]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x506d40]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x506d40]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x506d40]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x506d40]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x506d40]
inc ecx
sub edx, 8
sub esi, 1
jne 0x436cc2
pop edi
test edx, edx
je 0x436dab
lea ebx, [ebx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x506d40]
inc ecx
sub edx, 1
jne 0x436d90
not eax
pop esi
ret

Function at 0x436db0
Capabilities:
Read file on windows

Disassembly:
push ecx
test byte [esi], 1
push edi
mov edi, eax
jne 0x436de1
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 8]
push eax
push edi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x436dda
mov dword [esi + 8], 7
pop edi
pop ecx
ret
mov eax, dword [esp + 4]
pop edi
pop ecx
ret
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push ebx
lea ebx, [ecx + edi]
cmp ebx, eax
pop ebx
jbe 0x436df4
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 4]
push edi
add eax, ecx
push eax
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
pop edi
pop ecx
ret
Function at 0x437a70
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
cmp byte [ecx], 0
mov dword [esp], 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], ecx
je 0x437aa0
cmp byte [ecx + 1], 0x3a
jne 0x437aa0
add ecx, 2
cmp byte [ecx], 0x5c
jne 0x437aa6
inc ecx
mov al, byte [ecx]
push ebx
push ebp
push esi
push edi
test al, al
je 0x437ada
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp al, 0x5c
je 0x437ad0
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x437ac0
xor esi, esi
jmp 0x437ad6
mov esi, ecx
test ecx, ecx
jne 0x437ae7
test edi, edi
jne 0x437aea
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
mov byte [ecx], 0
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
call ebx
test eax, eax
jne 0x437b03
call ebp
cmp eax, 0xb7
jne 0x437b20
test esi, esi
je 0x437ada
lea ecx, [esi + 1]
mov byte [esi], 0x5c
mov al, byte [ecx]
test al, al
jne 0x437ac0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
test esi, esi
je 0x437b27
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x437b40
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
cmp word [ecx], 0
mov dword [esp], 0xc
mov dword [esp + 4], 0
mov dword [esp + 8], 1
mov dword [esp + 0x10], ecx
je 0x437b72
cmp word [ecx + 2], 0x3a
jne 0x437b72
add ecx, 4
cmp word [ecx], 0x5c
jne 0x437b7b
add ecx, 2
movzx eax, word [ecx]
push ebx
push ebp
push esi
push edi
test ax, ax
je 0x437bc0
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, ax
test ax, ax
je 0x437bb2
nop
cmp ax, 0x5c
je 0x437bb6
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x437ba0
xor esi, esi
jmp 0x437bbc
mov esi, ecx
test ecx, ecx
jne 0x437bcd
test edi, edi
jne 0x437bd2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
xor eax, eax
mov word [ecx], ax
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
call ebx
test eax, eax
jne 0x437beb
call ebp
cmp eax, 0xb7
jne 0x437c0f
test esi, esi
je 0x437bc0
mov eax, 0x5c
lea ecx, [esi + 2]
mov word [esi], ax
movzx eax, word [ecx]
test ax, ax
jne 0x437b97
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
test esi, esi
je 0x437c1b
mov ecx, 0x5c
mov word [esi], cx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x439a30
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x44
push esi
mov esi, eax
mov ecx, dword [esi + 0x48]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x439a53
mov eax, 1
pop esi
add esp, 0x44
ret
mov eax, dword [esp + 0x14]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x439a68
mov ebp, 1
test al, 2
je 0x439a6f
or ebp, 2
test al, 4
je 0x439a76
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x439a80
or ebp, 0x10
test al, 0x20
je 0x439a87
or ebp, 0x20
test ecx, ecx
je 0x439a93
or ebp, 0x40000000
jmp 0x439a99
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x439aa9
or ebp, 0x800000
mov edx, dword [esi + 0x48]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x3c], eax
cmp eax, 0x28
jbe 0x439b80
cmp dword [esi + 0x10], 0
jne 0x439b80
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push eax
call edi
mov eax, dword [esi + 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push eax
call ebx
mov ecx, dword [esi + 0x48]
push 0
push 0
push 0x24
push ecx
call edi
mov ecx, dword [esi + 0x48]
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x439b74
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x34]
cmp dword [esi + 0x3c], ecx
jbe 0x439b74
mov edx, dword [esi + 0x48]
push 0
push 0
push eax
push edx
call edi
mov edx, dword [esi + 0x48]
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x1c]
cmp eax, 0x5a4d
je 0x439b6e
cmp eax, 0x454e
je 0x439b6e
cmp eax, 0x454c
je 0x439b6e
cmp eax, 0x4550
jne 0x439b74
or ebp, 0x400000
mov eax, dword [esi + 0x48]
push 0
push 0
push 0
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x58]
push 0
sub ecx, 0xd53e8000
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [ebx + 0x10], ebp
call fcn.004e0310
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov dword [ebx], eax
push 0
mov eax, esi
sub eax, 0xd53e8000
mov ecx, edi
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.004e0310
mov edx, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
push 0
sub edx, 0xd53e8000
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.004e0310
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
push esi
mov dword [ebx + 8], eax
call fcn.00439950
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x24]
add esp, 0x10
shl eax, 0x10
pop edi
or eax, ecx
pop ebp
mov dword [ebx + 0xc], eax
pop ebx
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x43a410
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x43a417
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x43a4f4
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 + 0x508678]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x508678]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x508678]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x508678]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x508678]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x508678]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x508678]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x508678]
inc ecx
sub edx, 8
sub esi, 1
jne 0x43a430
pop edi
test edx, edx
je 0x43a51b
jmp 0x43a500
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x508678]
inc ecx
sub edx, 1
jne 0x43a500
not eax
pop esi
ret

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

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

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