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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x23c
mov dword [ebp - 0x22c], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
test eax, eax
je 0x401271
mov dword [esp], 0xc
mov esi, dword [sym.imp.ucrtbase.dll_malloc]
call esi
mov edi, eax
test eax, eax
je 0x401271
mov dword [esp], 0x230
call esi
mov dword [edi + 8], eax
test eax, eax
je 0x4012a1
mov esi, dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x401233
mov dword [esp + 4], 0
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401280
mov eax, dword [edi + 8]
mov ecx, dword [section..bss]
lea edx, [ecx + 1]
mov dword [section..bss], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x40b004
mov dword [esp], ebx
call esi
mov edx, dword [edi + 8]
sub esp, 0x10
test eax, eax
jne 0x401218
mov dword [esp], edx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov dword [esp], edi
call ebx
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x22c]
lea eax, [esi + 8]
mov dword [edi], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 4], eax
mov dword [eax], edi
mov eax, dword [edi + 8]
mov dword [esi + 0xc], edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x401271

Function at 0x4012f0
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
lea ebx, [ebp - 0xc]
sub esp, 0x30
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
test edx, edx
jne 0x401338
xor eax, eax
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x401350
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
lea ebx, [ebp - 0xc]
sub esp, 0x30
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
test edx, edx
jne 0x401398
xor eax, eax
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x401450
Capabilities:
Extract cabinet on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea eax, [ebp - 0x24]
push ebx
sub esp, 0x5c
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], sym._cabinet_seek
mov dword [esp + 0x14], sym._cabinet_close
mov dword [esp + 0x10], sym._cabinet_write
mov dword [esp + 0xc], sym._cabinet_read
mov dword [esp + 8], sym._cabinet_open
mov dword [esp + 4], sym._cabinet_free
mov dword [esp], sym._cabinet_alloc
call sym._FDICreate
test eax, eax
je 0x4015a0
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov ebx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x34], ecx
call ecx
sub esp, 0x20
mov dword [esp], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x4015ac
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebp - 0x30]
mov dword [esp + 8], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, dword [ebp - 0x34]
call ecx
mov eax, dword [ebp - 0x2c]
sub esp, 0x20
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], sym._cabinet_notify
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._FDICopy
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
call sym._FDIDestroy
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
xor esi, esi
jmp 0x40158e
Function at 0x401b20
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Terminate process

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x260]
lea esi, [ebp - 0x264]
push ebx
mov edi, edx
lea ebx, [ebp - 0x220]
sub esp, 0x2ac
mov dword [ebp - 0x27c], 1
rep stosd dword es:[edi], eax
mov dword [esp], ebx
mov dword [ebp - 0x264], 0x44
mov dword [esp + 4], 0x104
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
sub esp, 8
mov dword [esp + 4], str.wusa.exe
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscat]
lea eax, [ebp - 0x278]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x274]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
movzx eax, byte [section..data]
test edx, edx
je 0x401c70
test al, 8
jne 0x401cb5
mov eax, dword [ebp - 0x274]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push eax
push eax
lea eax, [ebp - 0x27c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x274]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
push edx
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x270]
push ecx
mov dword [esp], eax
call ebx
push ebx
mov eax, dword [ebp - 0x278]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov eax, dword [ebp - 0x27c]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
test al, 2
je 0x401c4f
mov eax, dword fs:[0x18]
or edx, 0xffffffff
mov esi, dword [eax + 0x34]
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Failed_to_restart_64_bit__s__err__lu_n
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401c4f
or edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Restarting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.restart_as_x86_64
mov dword [esp + 4], 0x40a000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401bfd
Function at 0x401dd0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov edx, 0x40b06e
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x27c
mov dword [ebp - 0x26c], eax
call sym._path_combine
test eax, eax
je 0x401ebf
lea edi, [ebp - 0x268]
mov esi, eax
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebx, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], esi
mov dword [ebp - 0x270], eax
call eax
cmp ebx, 0xffffffff
je 0x401ead
lea esi, [ebp - 0x23c]
mov dword [esp + 4], 0x40b072
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x401e8d
mov dword [esp + 4], 0x40b076
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x401e8d
mov eax, dword [ebp - 0x26c]
mov edx, esi
call sym._path_combine
test eax, eax
je 0x401e8d
test byte [ebp - 0x268], 0x10
je 0x401ed0
mov dword [ebp - 0x274], eax
call sym._delete_directory.isra.0
mov edx, dword [ebp - 0x274]
mov dword [esp], edx
mov eax, dword [ebp - 0x270]
call eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401e2d
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [ebp - 0x274], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x274]
sub esp, 4
jmp 0x401e82
Function at 0x401ef0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
test eax, eax
je 0x401f24
mov dword [esp], eax
mov esi, eax
call sym._PathRemoveFileSpecW_4
sub esp, 4
test eax, eax
jne 0x401f30
xor ebx, ebx
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov ebx, dword [sym.imp.kernel32.dll_GetFileAttributesW]
call ebx
sub esp, 4
cmp eax, 0xffffffff
je 0x401f4b
test al, 0x10
jne 0x402010
movzx eax, word [esi]
test ax, ax
je 0x401fcc
mov edx, dword fs:[0x18]
mov edi, esi
mov dword [ebp - 0x1c], edx
jmp 0x401f74
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
je 0x401fcc
cmp ax, 0x5c
jne 0x401f68
xor edx, edx
mov word [edi], dx
mov dword [esp], esi
call ebx
sub esp, 4
cmp eax, 0xffffffff
je 0x401f90
test al, 0x10
jne 0x401fb8
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x401fb8
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x34], 0xb7
jne 0x401f19
mov eax, 0x5c
add edi, 2
mov word [edi - 2], ax
movzx eax, word [edi]
test ax, ax
jne 0x401f74
mov dword [esp], esi
call ebx
sub esp, 4
cmp eax, 0xffffffff
je 0x401fdd
test al, 0x10
jne 0x402010
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x402010
xor ebx, ebx
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xb7
sete bl
jmp 0x401f1b
mov ebx, 1
jmp 0x401f1b
Function at 0x402930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
call sym._expand_expression.isra.0
mov ecx, dword [esi + 0x10]
mov ebx, eax
test ecx, ecx
je 0x402998
test eax, eax
je 0x4029e0
cmp word [ebx], 0
je 0x4029f0
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402968
sub eax, ebx
add eax, 2
mov edx, dword [ebp + 8]
test edx, edx
je 0x4029a5
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
test ebx, ebx
jne 0x402959
mov edx, dword [ebp + 8]
test edx, edx
jne 0x40297d
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
test eax, eax
je 0x40297d
test byte [section..data], 2
jne 0x4029fa
xor esi, esi
jmp 0x402982
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x402976
mov eax, dword [esi + 8]
mov edx, 0xffffffff
xor esi, esi
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Failed_to_set_registry_key__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.install_registry_string
mov dword [esp + 4], 0x40a000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x402982
Function at 0x409210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40926b
cmp byte [esi + ebx - 1], 0xa
je 0x40923f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40d0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x409ce0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x409d33
mov edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x401bb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc4], 0x9227cd4
mov dword [ebp - 0xcc], 0xc2fbf138
mov dword [ebp - 0x128], 0x65789bc3
mov byte [ebp - 0x3c], 0x77
mov byte [ebp - 0x3b], 0x69
mov byte [ebp - 0x3a], 0x6e
mov byte [ebp - 0x39], 0x69
mov byte [ebp - 0x38], 0x6e
mov byte [ebp - 0x37], 0x65
mov byte [ebp - 0x36], 0x74
mov byte [ebp - 0x35], 0
mov dword [ebp - 0x90], 0x522dc7a5
mov dword [ebp - 0xb0], 0x3c3f930a
mov dword [ebp - 0xb4], 0xf4e9f9c3
mov dword [ebp - 0xb8], 0xec0dbfad
mov dword [ebp - 0xd8], 0xf180c3a9
mov dword [ebp - 0xdc], 0xf20574da
je 0x401c37
mov dword [ebp - 0xa0], 0xf3a7f036
Function at 0x402280
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff0000
je 0x40238c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x40232e
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x20]
jae 0x402383
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00402250
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x402381
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x30]
mov cx, word [eax + edx*2]
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
jmp 0x4023aa
jmp 0x402325
mov dword [ebp - 0x10], 0
jmp 0x4023a7
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x405ed4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004052e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405f6f
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41654c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405f6f
cmp eax, 1
je 0x405f90
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405f6f
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405f3c
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405f6b
xor eax, eax
inc eax
jmp 0x405faf
cmp edi, eax
jae 0x405f73
xor eax, eax
jmp 0x405faf
cmp eax, esi
jae 0x405f7a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41654c]
jmp 0x405f93
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4635c7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004567f2
and dword [ebp - 4], 0
cmp dword [0x49c858], 0
mov ebx, eax
jne 0x463678
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x463729
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x463729
push eax
call fcn.00456780
mov dword [esp], 0x47f900
push edi
mov dword [0x49c858], eax
call esi
push eax
call fcn.00456780
mov dword [esp], 0x47f8ec
push edi
mov dword [0x49c85c], eax
call esi
push eax
call fcn.00456780
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49c860], eax
call esi
push eax
call fcn.00456780
pop ecx
mov dword [0x49c868], eax
test eax, eax
je 0x463678
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00456780
pop ecx
mov dword [0x49c864], eax
mov eax, dword [0x49c864]
cmp eax, ebx
je 0x4636d0
cmp dword [0x49c868], ebx
je 0x4636d0
push eax
call fcn.004567fb
push dword [0x49c868]
mov esi, eax
call fcn.004567fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4636d0
test edi, edi
je 0x4636d0
call esi
test eax, eax
je 0x4636c7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4636c7
test byte [ebp - 0xc], 1
jne 0x4636d0
or dword [ebp + 0x10], 0x200000
jmp 0x463709
mov eax, dword [0x49c85c]
cmp eax, ebx
je 0x463709
push eax
call fcn.004567fb
pop ecx
test eax, eax
je 0x463709
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x463709
mov eax, dword [0x49c860]
cmp eax, ebx
je 0x463709
push eax
call fcn.004567fb
pop ecx
test eax, eax
je 0x463709
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49c858]
call fcn.004567fb
pop ecx
test eax, eax
je 0x463729
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46372b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x76053e76
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x71bd6f82
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x53ef11e1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0xac926f3
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5011acc
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x27c875c3
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401070
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x34567890
mov dword [ecx], 0x12345678
mov dword [ecx + 4], 0x23456789
mov dword [ecx + 8], edi
mov dl, byte [eax]
test dl, dl
je 0x4010e0
push esi
mov esi, dword [ecx + 4]
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr eax, 8
xor edx, eax
movzx eax, dl
add esi, eax
mov eax, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [ecx], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [ecx + 4], esi
xor edi, dword [ebx + edx*4]
inc eax
mov dword [ecx + 8], edi
mov dl, byte [eax]
mov dword [ebp + 8], eax
test dl, dl
jne 0x401096
pop esi
pop edi
pop ebp
ret