joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aba0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x485789
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4aeda0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x18], esi
mov word [esi + 4], ax
mov dword [esp + 0x24], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
mov dword [esp + 0x1c], 1
call ebp
mov edi, eax
cmp edi, ebx
jbe 0x42ac46
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004503d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42ac46
push ebx
push edi
call ebp
test eax, eax
je 0x42ac3d
cmp eax, edi
ja 0x42ac3d
push ebx
call fcn.00450a1d
add esp, 4
mov ecx, ebx
call fcn.00401b92
push ebx
call fcn.004539c3
add esp, 4
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 0x42c830
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x487951
mov eax, dword fs:[0]
push eax
sub esp, 0x8b4
mov eax, dword [0x4aeda0]
xor eax, esp
mov dword [esp + 0x8b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4aeda0]
xor eax, esp
push eax
lea eax, [esp + 0x8c8]
mov dword fs:[0], eax
push 0x44
xor ebp, ebp
lea eax, [esp + 0x80]
push ebp
push eax
mov esi, ecx
mov edi, edx
call fcn.004504c0
xor eax, eax
add esp, 0xc
push 0x7fe
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0xca]
xor ecx, ecx
xor edx, edx
push ebp
push eax
mov dword [esp + 0x88], 0x44
mov word [esp + 0xb8], cx
mov dword [esp + 0xb4], 1
mov word [esp + 0xd0], dx
call fcn.004504c0
add esp, 0xc
push esi
push 0x49fc74
lea ecx, [esp + 0xcc]
push 0x400
push ecx
call fcn.00453ed4
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42c91f
push str.LaunchConsoleApp___prepare_command_line_failed.
push 0xc5
call fcn.0041ef10
push eax
mov ebx, 0x2000002
mov ecx, str..ProcessUtility.cpp
call fcn.0041f0d0
add esp, 0xc
xor eax, eax
jmp 0x42ca6a
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x80]
push eax
push edi
push ebp
push 0x8000430
push 1
push ebp
push ebp
lea ecx, [esp + 0xe4]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42c95e
mov edx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42ca68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
push esi
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], ax
call fcn.00450a1d
mov ecx, esi
add esp, 4
lea esi, [esp + 0x28]
call fcn.00401b92
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x8d4], ebp
call fcn.00426a40
add esp, 4
mov ebx, eax
mov edi, esi
push ebp
lea esi, [esp + 0x48]
mov byte [esp + 0x8d4], 1
call fcn.004265b0
add esp, 4
mov edi, 8
mov byte [esp + 0x8d0], 2
cmp dword [ebx + 0x18], edi
jb 0x42c9d1
mov ebx, dword [ebx + 4]
jmp 0x42c9d4
add ebx, 4
mov esi, 0x10
cmp dword [eax + 0x18], esi
jb 0x42c9e3
mov eax, dword [eax + 4]
jmp 0x42c9e6
add eax, 4
push ebx
push eax
push str.CreateProcess__s__failed___S.
push 0xe0
call fcn.0041ef10
push eax
mov ebx, 0x2000002
mov ecx, str..ProcessUtility.cpp
call fcn.0041f0d0
add esp, 0x14
cmp dword [esp + 0x5c], esi
jb 0x42ca1d
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0045061f
add esp, 4
xor ebx, ebx
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
cmp dword [esp + 0x78], edi
jb 0x42ca42
mov edx, dword [esp + 0x64]
push edx
call fcn.0045061f
add esp, 4
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], ax
cmp dword [esp + 0x40], edi
jb 0x42ca68
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0045061f
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x8c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8b0]
xor ecx, esp
call fcn.004504a7
add esp, 0x8c0
ret
Function at 0x42caa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x86c
mov eax, dword [0x4aeda0]
xor eax, esp
mov dword [esp + 0x864], eax
push ebx
push esi
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
mov esi, ecx
call fcn.004504c0
add esp, 0xc
xor ecx, ecx
xor eax, eax
push 0x7fe
push ecx
lea edx, [esp + 0x72]
push edx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x74], cx
call fcn.004504c0
add esp, 0xc
push esi
push 0x49fc74
lea eax, [esp + 0x70]
push 0x400
push eax
call fcn.00453ed4
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42cb59
push str.LaunchConsoleAppAndGetExitCode___prepare_command_line_failed.
push 0xfb
call fcn.0041ef10
push eax
mov ebx, 0x2000002
mov ecx, str..ProcessUtility.cpp
call fcn.0041f0d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov ecx, dword [esp + 0x864]
xor ecx, esp
call fcn.004504a7
add esp, 0x86c
ret
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42cbcd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.LaunchConsoleAppAndGetExitCode___CreateProcess___failed:__d
push 0x10c
push ecx
call fcn.0041ef10
add esp, 4
push eax
mov ebx, 0x4000002
mov ecx, str..ProcessUtility.cpp
call fcn.0041f0d0
add esp, 0x10
call esi
pop esi
pop ebx
mov ecx, dword [esp + 0x864]
xor ecx, esp
call fcn.004504a7
add esp, 0x86c
ret
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42cc1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LaunchConsoleAppAndGetExitCode___GetExitCodeProcess___failed:__d
push 0x116
push ecx
call fcn.0041ef10
add esp, 4
push eax
mov ebx, 0x4000002
mov ecx, str..ProcessUtility.cpp
call fcn.0041f0d0
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x86c]
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
xor ecx, esp
call fcn.004504a7
add esp, 0x86c
ret

Function at 0x42ce30
Capabilities:
Set current directory

Disassembly:
cmp dword [esi + 0x1c], 0
je 0x42ce51
cmp dword [esi + 0x14], 0
je 0x42ce51
cmp dword [esi + 0x18], 8
jb 0x42ce47
mov eax, dword [esi + 4]
jmp 0x42ce4a
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 0x18], 8
jb 0x42ce63
mov eax, dword [esi + 4]
push eax
call fcn.0045061f
add esp, 4
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push esi
mov word [esi + 4], cx
call fcn.0045061f
add esp, 4
mov eax, esi
ret
Function at 0x42d320
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x18
push esi
lea eax, [esp + 4]
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42d393
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push esi
push esi
push esi
lea edx, [esp + 0x14]
push edx
push esi
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d388
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esi, eax
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x18
ret

Function at 0x42d3a0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x488f78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4aeda0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
lea eax, [esp + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x18], edi
call fcn.0042cc50
mov dword [esp + 0x28], edi
cmp dword [ebx + 0x18], 8
lea edi, [ebx + 4]
jb 0x42d3ee
mov eax, dword [edi]
jmp 0x42d3f0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ecx
push edx
push eax
call ebp
cmp eax, dword [esp + 0x18]
jbe 0x42d428
push eax
lea ecx, [esp + 0x18]
call fcn.0042cd90
cmp dword [ebx + 0x18], 8
jb 0x42d41b
mov edi, dword [edi]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edi
call ebp
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push edi
mov word [esi + 4], dx
call fcn.00450a1d
add esp, 4
mov ecx, edi
call fcn.00401b92
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x18], vtable.AutoCleanBuf_wchar_t_.0
call fcn.004539c3
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x42d480
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x485560
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x4aeda0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
test byte [0x4b33ec], 1
jne 0x42d4d6
or dword [0x4b33ec], 1
push 0x4b33d4
mov dword [0x4b33d0], 0x4a0284
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x48a200
call fcn.00450ed1
add esp, 4
mov eax, dword [0x4b33d0]
mov edx, dword [eax + 4]
mov ecx, 0x4b33d0
mov dword [esp + 8], 0x4b33d0
call edx
xor esi, esi
mov eax, 2
mov dword [esp + 0x20], esi
test byte [0x4b33ec], al
jne 0x42d52b
or dword [0x4b33ec], eax
xor eax, eax
push 0x48a1c0
mov dword [0x4b33cc], 7
mov dword [0x4b33c8], esi
mov word [0x4b33b8], ax
call fcn.00450ed1
add esp, 4
cmp dword [0x4b33c8], esi
jne 0x42d5ad
push 0x104
lea ecx, [esp + 0x10]
push ecx
call fcn.0042cc50
mov byte [esp + 0x20], 1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push eax
call esi
cmp eax, dword [esp + 0x10]
jbe 0x42d575
push eax
lea ecx, [esp + 0x10]
call fcn.0042cd90
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
mov esi, eax
call fcn.00450a1d
mov ecx, esi
add esp, 4
mov esi, 0x4b33b4
call fcn.00401b92
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x10], vtable.AutoCleanBuf_wchar_t_.0
call fcn.004539c3
add esp, 4
mov dword [esp + 0xc], vtable.IAutoCleanBuf.0
mov dword [esp + 0x20], 0xffffffff
mov edx, dword [0x4b33d0]
mov eax, dword [edx + 8]
mov ecx, 0x4b33d0
call eax
mov eax, 0x4b33b4
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x42d5e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x4aeda0]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push esi
push 0x11c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.004504c0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x42d672
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
jne 0x42d672
xor eax, eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004504a7
add esp, 0x144
ret
cmp dword [0x4b3374], 0
jne 0x42d692
call fcn.0042cee0
push 0x42cec0
mov dword [0x4b3374], eax
call fcn.00450ed1
add esp, 4
mov eax, dword [0x4b3374]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x42d6a7
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x42d6b2
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x38]
sub eax, 2
jne 0x42d65a
mov eax, dword [esp + 4]
mov ecx, 6
cmp cx, ax
jne 0x42d6e2
lea eax, [ecx - 4]
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004504a7
add esp, 0x144
ret
xor ecx, ecx
mov edx, 9
cmp dx, ax
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004504a7
add esp, 0x144
ret

Function at 0x42d750
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x20]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 0xc

Function at 0x42e660
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4860a8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4aeda0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.DLLKernel32.0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
call fcn.0042d480
cmp dword [eax + 0x18], 8
jb 0x42e6cf
mov eax, dword [eax + 4]
jmp 0x42e6d2
add eax, 4
cmp dword [esi + 8], edi
jne 0x42e6e4
mov edx, dword [esi]
push eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x430d40
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x430d51
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x430d6f
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x430da6
test ecx, ecx
je 0x430d9f
test esi, esi
ja 0x430d60
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x430dc0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
jne 0x430dd1
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [edi], 0
mov edi, edi
mov eax, 0x400000
cmp esi, 0x400000
ja 0x430def
mov eax, esi
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x430e26
test ecx, ecx
je 0x430e1f
test esi, esi
ja 0x430de0
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x433940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x4b4700], ecx
inc edx
cmp edx, 0x100
jb 0x433943
cmp edx, 0x800
jae 0x433a19
lea ecx, [ecx]
mov eax, dword [edx*4 + 0x4b4300]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4b4700]
inc edx
mov dword [edx*4 + 0x4b46fc], eax
cmp edx, 0x800
jb 0x4339f0
mov dword [0x4b3190], 0x4344c0
call fcn.00434690
test eax, eax
jne 0x433a36
mov dword [0x4b3190], 0x434570
pop ecx
ret
Function at 0x433a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x4aeda0]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x14]
push edi
mov ebx, edx
mov edx, dword [eax + 0x10]
push ecx
lea edi, [esp + 0x2c]
mov dword [esp + 0x28], ebx
call fcn.004366d0
xor edi, edi
add esp, 4
cmp eax, edi
jne 0x433c0b
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xa8]
mov eax, 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x78], eax
nop
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40000
cmp dword [esp + 0xac], edi
ja 0x433b43
jb 0x433b3f
cmp ebx, 0x40000
jae 0x433b43
mov dword [esp + 0x14], ebx
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call edx
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x433bf7
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xb8]
push 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
lea eax, [esp + 0x3c]
call fcn.00436340
mov esi, eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x28], eax
add esp, 0x14
sub ebx, eax
sbb dword [esp + 0xac], 0
test esi, esi
jne 0x433bf7
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x433bd4
test eax, eax
jne 0x433bbd
cmp edi, dword [esp + 0x4c]
je 0x433bd4
mov edx, dword [ebp + 4]
push eax
push ebp
call edx
mov esi, eax
add esp, 8
test esi, esi
jne 0x433bf7
xor edi, edi
jmp 0x433b20
cmp ecx, dword [esp + 0xb4]
jne 0x433bf2
cmp dword [esp + 0x14], 0
jne 0x433bf2
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x433bf7
cmp eax, 4
je 0x433bf7
mov esi, 1
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
push eax
call ecx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004504a7
add esp, 0x90
ret
Function at 0x433c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov eax, dword [0x4aeda0]
xor eax, esp
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xb4]
push ebx
push ebp
mov ebp, dword [esp + 0xc8]
push esi
push edi
xor ebx, ebx
mov edi, 1
mov esi, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x14], edi
je 0x433c77
mov eax, edi
jmp 0x433dcd
mov eax, dword [eax + 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00434720
add esp, 4
cmp eax, ebx
jne 0x433dcd
mov edx, dword [esp + 0xd4]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x78], edi
lea esp, [esp]
mov eax, 0x40000
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
cmp dword [esp + 0xcc], ebx
ja 0x433d0c
jb 0x433d01
cmp dword [esp + 0xc8], eax
jae 0x433d0c
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
call eax
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x433db9
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
lea esi, [esp + 0x38]
call fcn.004348d0
mov esi, eax
mov eax, dword [esp + 0x28]
sub dword [esp + 0x24], eax
add esp, 0x10
sub dword [esp + 0xc8], eax
sbb dword [esp + 0xcc], ebx
cmp esi, ebx
jne 0x433db9
mov ecx, dword [esp + 0x50]
cmp dword [esp + 0x4c], ecx
je 0x433d9e
cmp eax, ebx
jne 0x433d88
cmp edi, dword [esp + 0x4c]
je 0x433d9e
push eax
mov eax, dword [ebp + 4]
push ebp
call eax
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x433ce0
jmp 0x433db9
cmp ecx, dword [esp + 0xd4]
jne 0x433db4
cmp dword [esp + 0x14], ebx
jne 0x433db4
cmp dword [esp + 0x20], 1
je 0x433db9
mov esi, 1
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 4]
push ecx
push eax
call edx
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004504a7
add esp, 0xb0
ret
Function at 0x434bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebp
push esi
mov esi, dword [ecx]
xor ebp, ebp
and esi, 7
cmp eax, 5
jae 0x434bdd
pop esi
xor eax, eax
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x14]
push ebx
lea ebx, [edx + eax - 4]
push edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebx
lea edi, [edx + ebp]
cmp edi, ebx
jae 0x434c0d
lea ebx, [ebx]
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x434c0d
inc edi
cmp edi, ebx
jb 0x434c00
mov ebp, edi
sub ebp, edx
mov eax, ebp
sub eax, dword [esp + 0x10]
cmp edi, ebx
jae 0x434d15
cmp eax, 3
jbe 0x434c40
xor esi, esi
mov al, byte [edi + 4]
mov dword [esp + 0x10], ebp
test al, al
je 0x434c7b
cmp al, 0xff
je 0x434c7b
and esi, 3
add esi, esi
or esi, 1
inc ebp
jmp 0x434bf3
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x434c26
movzx ecx, byte [esi + 0x49d0a8]
mov eax, edi
sub eax, ecx
cmp byte [esi + 0x49d0a0], 0
mov al, byte [eax + 4]
je 0x434c69
test al, al
je 0x434c69
cmp al, 0xff
jne 0x434c26
and esi, 3
add esi, esi
mov dword [esp + 0x10], ebp
or esi, 1
inc ebp
jmp 0x434bf3
movzx ecx, byte [edi + 3]
movzx edx, al
movzx eax, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, eax
shl edx, 8
or edx, ecx
lea esp, [esp]
sub edx, ebp
sub edx, 5
mov eax, edx
test esi, esi
je 0x434ce7
movzx edx, byte [esi + 0x49d0a8]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
test bl, bl
je 0x434ccc
cmp bl, 0xff
jne 0x434ce3
mov ebx, dword [esp + 0x14]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x434ca0
mov ebx, dword [esp + 0x14]
mov edx, eax
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, eax
shr edx, 8
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x1c]
mov byte [edi + 3], cl
mov byte [edi + 1], al
add ebp, 5
jmp 0x434bf3
pop edi
pop ebx
cmp eax, 3
jbe 0x434d2c
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
lea ecx, [eax - 1]
mov eax, dword [esp + 0x18]
shl esi, cl
and esi, 7
mov dword [eax], esi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x4369ee
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, dword [esp + 4]
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edi + edx*4]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edi + edx*4]
pop esi
mov dword [ecx + 8], eax
mov eax, dword [esp + 4]
ret