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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x5764b0
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x576655
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x576670
call fcn.004073cc
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebx + 0x30]
xor edx, edx
mov eax, dword [ebx + 0x1c]
call fcn.00574218
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x576684
call fcn.004c6f78
mov eax, dword [ebx + 0xc]
call fcn.00407268
test eax, eax
jle 0x576568
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
movzx ecx, word [ebx + 0x30]
xor edx, edx
mov eax, dword [ebx + 0xc]
call fcn.00574218
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x5766ec
call fcn.004c6f78
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040730c
mov eax, esi
mov edx, 0x576718
call fcn.0040730c
mov eax, dword [ebx + 0x14]
call fcn.00407268
test eax, eax
jle 0x5765e6
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x57672c
call fcn.004c6f78
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.0040730c
mov eax, dword [ebx + 0x10]
call fcn.00407268
test eax, eax
jle 0x5765da
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x57675c
call fcn.004c6f78
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040730c
mov edx, 0x576718
mov eax, esi
call fcn.0040730c
mov eax, dword [ebx + 0x18]
call fcn.00407268
test eax, eax
jle 0x576619
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x576788
call fcn.004c6f78
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0040730c
mov eax, esi
mov edx, 0x576718
call fcn.0040730c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57665c
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00406ee0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406ee0
lea eax, [ebp - 4]
call fcn.00406ed8
ret
Function at 0x594e28
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xffffff94
mov ebx, eax
mov dword [esp], 0x66
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x33
call fcn.004070f8
add esp, 0x6c
pop ebx
ret
Function at 0x401000
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x456a24], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x4569c0
push 0x45695c
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401048
xor eax, eax
jmp 0x401071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40136d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x40140b
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.0040136d
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x4013c7
mov byte [ebp - 0x114], 0
jmp 0x401409
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x4013eb
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x401409
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x401409
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x401414
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x402f89
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0xc], 0
mov ecx, 5
mov esi, 0x456098
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x94
push 0
lea eax, [ebp - 0x194]
push eax
call fcn.00429b30
add esp, 0xc
mov word [ebp - 0x46], 0x67
mov word [ebp - 0x3e], 0x37
mov word [ebp - 0x3c], 0x32
push 0xa8
push 0
lea ecx, [ebp - 0xf4]
push ecx
call fcn.00429b30
add esp, 0xc
push 0
mov edx, dword [ebp - 0x100]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x30]
push eax
push 0x65
call fcn.00401467
add esp, 8
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x100], 0
cmp dword [ebp - 0x198], 0
jne 0x4030ab
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
cmp edx, 0x41
je 0x4030ab
mov eax, dword [ebp - 0x2c]
movsx ecx, byte [eax + 1]
cmp ecx, 0x42
je 0x4030ab
push 4
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00429b90
add esp, 0xc
push 0
push 0x402f64
push 0
mov ecx, dword [ebp - 0x100]
push ecx
call dword [sym.imp.GDI32.dll_EnumObjects]
mov edx, dword [ebp - 0x30]
mov eax, dword [0x452a30]
mov dword [edx + 0x1a0], eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x160], 0x460a3c3c
mov edx, dword [ebp - 0x30]
push edx
call fcn.0040150e
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x12c]
mov dword [ebp - 0x198], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1a4], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a4], 0
je 0x40311a
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xfc], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x12c]
mov dword [0x4565a0], eax
mov eax, dword [ebp - 4]
jmp 0x403136
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0xa
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40313c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x64
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x452a20]
mov dword [ecx + 0xf0], edx
mov eax, dword [ebp - 4]
mov ecx, dword [0x452a2c]
mov dword [eax + 0xe8], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x108], 0
je 0x4031b4
mov ecx, dword [ebp - 8]
add ecx, 0x7c
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x20c], 0x452a34
mov eax, dword [ebp - 4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [eax + 0x220], ecx
jmp 0x403254
mov edx, dword [str.appinitcmd.ini]
mov dword [ebp - 0x20], edx
mov eax, dword [0x4560b4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x4560b8]
mov dword [ebp - 0x18], ecx
mov dx, word [0x4560bc]
mov word [ebp - 0x14], dx
mov al, byte [0x4560be]
mov byte [ebp - 0x12], al
push 0
push 0
push 4
push 0
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x403254
push 4
push 0x1000
push 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403254
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jne 0x403254
push 0
lea edx, [ebp - 8]
push edx
push 4
mov eax, dword [ebp - 4]
add eax, 0x8b0
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov dword [edx + 0xf4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x452a24]
mov dword [edx + 0xec], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x452a28]
mov dword [ecx + 0xe4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1f0], 0x42e030
mov ecx, dword [ebp - 4]
push ecx
call fcn.00403885
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4036cd
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.00403323
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x40370d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x40372d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x403881
mov dword [ebp - 0x484], 0
mov edx, dword [str.setting.ini]
mov dword [ebp - 0x47c], edx
mov eax, dword [0x4560c4]
mov dword [ebp - 0x478], eax
mov ecx, dword [0x4560c8]
mov dword [ebp - 0x474], ecx
mov edx, dword [str.existing]
mov dword [ebp - 0x470], edx
mov eax, dword [0x4560d0]
mov dword [ebp - 0x46c], eax
mov cl, byte [0x4560d4]
mov byte [ebp - 0x468], cl
push 0
lea edx, [ebp - 0x470]
push edx
lea eax, [ebp - 0x47c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x80
push 4
push 0
push 1
push 4
lea ecx, [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x4037bf
xor eax, eax
jmp 0x403881
cmp dword [ebp - 0x484], 0xffffffff
jne 0x4037fb
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.setini.xml
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0xffffffff
jne 0x4037fb
xor eax, eax
jmp 0x403881
push 0
lea edx, [ebp - 0x48c]
push edx
push 0x448
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403858
push 2
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x488], eax
push 0
lea eax, [ebp - 0x480]
push eax
mov ecx, dword [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x48c], 0x448
je 0x4037bf
mov ecx, dword [ebp - 0x484]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42ab45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x456200
cmp edx, dword [eax]
je 0x42ab67
add eax, 8
inc ecx
cmp eax, 0x456290
jl 0x42ab58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x456200]
jne 0x42ac95
mov eax, dword [0x456a30]
cmp eax, 1
je 0x42ac6f
test eax, eax
jne 0x42ab98
cmp dword [0x456154], 1
je 0x42ac6f
cmp edx, 0xfc
je 0x42ac95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42abcf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042b910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00429ab0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42ac12
lea eax, [ebp - 0x1a4]
push eax
call fcn.00429ab0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d490
push edi
call fcn.0042bb00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042b910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042b920
lea eax, [ebp - 0xa0]
push 0x42d470
push eax
call fcn.0042b920
push dword [esi + 0x456204]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042b920
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042ba74
add esp, 0x2c
pop edi
jmp 0x42ac95
lea eax, [ebp + 8]
lea esi, [esi + 0x456204]
push 0
push eax
push dword [esi]
call fcn.00429ab0
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 0x401b40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401b8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b84
test esi, esi
je 0x401b84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b60
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e98
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401dfe
cmp eax, 4
jne 0x401e20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e0e
cmp edx, 4
je 0x401e0e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d70
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x4290c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x4290e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4290e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4290d8
mov eax, 1
add ebx, ebx
jne 0x4290fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4290f0
jne 0x42910c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4290f0
xor ecx, ecx
sub eax, 3
jb 0x429120
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429192
mov ebp, eax
add ebx, ebx
jne 0x42912b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x429138
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42915c
inc ecx
add ebx, ebx
jne 0x429148
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42913d
jne 0x429159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42913d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42917c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42916d
jmp 0x4290de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42917c
add edi, ecx
jmp 0x4290de
pop esi
mov edi, esi
mov ecx, 0x655
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42919a
cmp byte [edi], 5
jne 0x42919a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42919f
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x429217
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2f508]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2f5a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4291cc
mov ecx, edi
jns 0x4291fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2f5ac]
or eax, eax
je 0x429211
mov dword [ebx], eax
add ebx, 4
jmp 0x4291e9
call dword [esi + 0x2f5a8]
mov ebp, dword [esi + 0x2f5b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42924b
sub esp, 0xffffff80
jmp 0x40500f
Function at 0x4030d0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40310c
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40312c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405638
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4033c4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004053c8
test esi, esi
jne 0x4033fa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004054b8
jmp 0x403418
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403268
mov edi, eax
test esi, esi
je 0x403418
cmp dword [ebx], 0
je 0x403418
dec esi
jmp 0x403401
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x48d008], 0x8088405
inc edx
mov dword [ebx + 0x48d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4042d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48d024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404368
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404348
xor eax, eax
push ebp
push 0x404341
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x404384
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404348
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x48d024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48d024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405190
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x63604c], 0
je 0x4051f1
cmp word [0x636220], 0xd7b2
jne 0x4051b9
cmp dword [0x636228], 0
jbe 0x4051b9
mov eax, 0x63621c
call dword [0x636238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48d784
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405218
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48d030], 0
jne 0x40520d
push 0
push 0x48d77c
push 0x48d784
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405368
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x48d038], 0
je 0x40538e
mov edx, esi
mov eax, ebx
call dword [0x48d038]
jmp 0x40539d
mov eax, 8
call fcn.00402ec8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x63604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405330
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc