joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x6c
fldz
xor eax, eax
fst qword [esp + 8]
fstp qword [esp + 0x10]
fld1
mov word [esp], ax
mov ecx, dword [0x422158]
cmp ecx, 0xf26be07a
jne 0x402a59
mov dx, word [esp]
movsx eax, dx
mov dword [esp + 4], eax
fild dword [esp + 4]
fmul qword [esp + 8]
call fcn.0040a9e0
mov word [esp], ax
fld qword [esp + 8]
fadd st(1)
fstp qword [esp + 8]
fld qword [esp + 0x10]
mov cx, word [0x424030]
movsx edx, cx
sub edx, 0x7c72f7f6
mov dword [esp + 4], edx
xor ecx, ecx
push esi
fild dword [esp + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], 0x44
mov edx, 1
fsubp st(1)
fstp qword [esp + 0x14]
add dword [esp + 4], edx
mov ax, word [0x423a8c]
movzx esi, word [esp + 4]
cwde
lea eax, [esi + eax + 0x2d183c9e]
mov word [0x423a8c], ax
mov dword [esp + 0x58], edx
fld qword [0x423c40]
mov dword [esp + 0x34], ecx
fld qword [esp + 0xc]
mov dword [esp + 0x38], ecx
fsub qword [0x41e4a8]
xor eax, eax
fsubp st(1)
fstp qword [0x423c40]
fsubr qword [esp + 0xc]
mov word [esp + 0x5c], dx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x78]
fstp qword [esp + 0x10]
mov word [esp + 0x62], ax
lea eax, [esp + 0x30]
push eax
push ecx
push ecx
push 8
push ecx
push ecx
push ecx
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x98]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
add esp, 0x6c
ret

Function at 0x403100
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
fldz
push ebx
push esi
fst dword [esp + 0xc]
push edi
fstp dword [esp + 0x10]
xor eax, eax
push 3
mov word [esp + 0x10], ax
push 0x4241d4
call fcn.00401a80
dec word [0x424014]
mov cx, word [0x423a8c]
movzx edx, word [0x424014]
mov ebx, dword [esp + 0x20]
mov edi, eax
movsx eax, cx
movsx ecx, dx
add ecx, eax
mov dword [esp + 0x18], ecx
push edi
push ebx
fild dword [esp + 0x20]
fmul qword [0x422128]
fstp qword [0x422128]
call fcn.0040b538
movzx edx, word [0x423b1c]
mov esi, eax
add edx, 0x1253fd39
add esp, 0x10
mov word [0x423b1c], dx
test esi, esi
jne 0x403199
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push ebx
call fcn.0040b538
mov esi, eax
add esp, 8
test esi, esi
je 0x4031b1
push esi
push 1
lea eax, [esp + 0x24]
push 4
push eax
call fcn.0040b8ea
push esi
call fcn.0040b0de
add esp, 0x14
push edi
push 3
call fcn.00401df0
fld dword [0x424620]
mov cx, word [esp + 0x14]
fsub qword [0x41e508]
movsx edx, cx
mov dword [esp + 0x18], edx
add esp, 8
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040a9e0
mov word [0x423f44], ax
fld dword [0x424620]
fsub qword [0x41e368]
pop edi
pop esi
pop ebx
fstp dword [0x424620]
add esp, 8
ret
Function at 0x403770
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
xor eax, eax
mov word [esp + 4], ax
xor ecx, ecx
push 0x2e
mov word [esp + 0xc], cx
push 0x423f84
mov dword [esp + 0x10], eax
call fcn.00401a80
add esp, 8
lea edx, [esp + 0xc]
push edx
mov ebx, eax
push ebx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403848
mov ax, word [esp + 4]
movsx ecx, ax
add ecx, 0x4c100e9f
cmp ecx, 0x8eb75d7f
jle 0x4037e7
mov edx, dword [esp + 8]
mov eax, 0x8e8ab66e
sub eax, edx
mov dword [esp + 8], eax
fild dword [esp + 8]
fmul qword [0x423aa8]
fstp qword [0x423aa8]
jmp 0x403803
fld qword [0x422f48]
mov ecx, dword [0x4241d0]
mov dword [esp + 8], ecx
fild dword [esp + 8]
fsubp st(1)
fstp qword [0x422f48]
push esi
push edi
push 0x34
push 0x424070
call fcn.00401a80
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, edx
add esp, 8
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403820
sub eax, edi
push eax
push edx
mov edx, dword [esp + 0x1c]
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push 0x34
call fcn.00401df0
add esp, 8
pop edi
pop esi
push ebx
push 0x2e
call fcn.00401df0
mov eax, dword [esp + 0x14]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0xc
ret
Function at 0x40b058
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424fd0]
jne 0x40b062
repz ret
jmp fcn.0040f247

Function at 0x416064
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.004101d5
and dword [ebp - 4], 0
cmp dword [0x427254], 0
mov ebx, eax
jne 0x416115
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4161c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41fa58
push edi
call esi
test eax, eax
je 0x4161c6
push eax
call fcn.00410163
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427254], eax
call esi
push eax
call fcn.00410163
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427258], eax
call esi
push eax
call fcn.00410163
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42725c], eax
call esi
push eax
call fcn.00410163
pop ecx
mov dword [0x427264], eax
test eax, eax
je 0x416115
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410163
pop ecx
mov dword [0x427260], eax
mov eax, dword [0x427260]
cmp eax, ebx
je 0x41616d
cmp dword [0x427264], ebx
je 0x41616d
push eax
call fcn.004101de
push dword [0x427264]
mov esi, eax
call fcn.004101de
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41616d
test edi, edi
je 0x41616d
call esi
test eax, eax
je 0x416164
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416164
test byte [ebp - 0xc], 1
jne 0x41616d
or dword [ebp + 0x10], 0x200000
jmp 0x4161a6
mov eax, dword [0x427258]
cmp eax, ebx
je 0x4161a6
push eax
call fcn.004101de
pop ecx
test eax, eax
je 0x4161a6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4161a6
mov eax, dword [0x42725c]
cmp eax, ebx
je 0x4161a6
push eax
call fcn.004101de
pop ecx
test eax, eax
je 0x4161a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427254]
call fcn.004101de
pop ecx
test eax, eax
je 0x4161c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4161c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002152
Capabilities:
Get common file path
Query or enumerate registry value
Read file on windows
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
add ecx, 0x1c8
push 0x1001131c
mov dword [ebp - 0x14], ecx
call fcn.1000a6ec
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push 0xf003f
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersion
push esi
push ebx
push 0x80000002
mov dword [ebp - 8], esi
call edi
test eax, eax
jne 0x100021bf
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.UCCSpecB
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x418]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jbe 0x10002262
lea eax, [ebp - 0x418]
push str.uccspecb.sys
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x418]
pop ecx
push 0x100109ac
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
cmp dword [ebp - 8], esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
jbe 0x1000223a
cmp eax, esi
jne 0x10002237
lea eax, [ebp - 0x418]
push 0x100109a8
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp - 4], eax
pop ecx
push eax
push 1
lea eax, [ebp - 8]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x10002258
push eax
jmp 0x1000225b
cmp eax, esi
je 0x10002262
push eax
push 1
lea eax, [ebp - 8]
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x10002258
mov dword [ebp - 8], esi
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push esi
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x100022bd
push 4
lea eax, [ebp - 0x18]
pop edi
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push str.UCCSpecB
push dword [ebp - 0xc]
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
jne 0x100022b4
lea eax, [ebp - 8]
push edi
push eax
push 3
push esi
push str.UccSpecB
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
jbe 0x100022d5
push dword [ebp - 8]
push 0x10010998
push dword [ebp - 0x14]
call sub.MFC42.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100022da
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push esi
mov esi, ecx
cmp byte [esi + 0x1f8], 0
jne 0x10002350
and byte [ebp - 0x204], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002350
mov eax, dword [esi + 0x1c0]
push eax
mov esi, dword [eax - 8]
lea eax, [ebp - 0x204]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x204]
pop ecx
push esi
push eax
push 1
push 0
push str.LastBrick
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret

Function at 0x10002353
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
lea eax, [ebp - 4]
push esi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
mov esi, ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100023b2
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x200
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
push str.LastBrick
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x208]
lea ecx, [esi + 0x214]
push eax
call fcn.1000a6ec
pop esi
leave
ret
Function at 0x1000641f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.100066b5
mov edi, dword [ebp + 0xc]
lea ebx, [edi + 4]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 0x320], eax
je 0x100064cc
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [esi + 0x324], eax
je 0x100064c5
push 4
mov dword [eax], edi
mov ecx, dword [esi + 0x324]
pop eax
push edi
add ecx, eax
push dword [ebp + 8]
mov dword [esi + 0x32c], eax
mov dword [esi + 0x328], ebx
push ecx
call sub.MSVCRT.dll_memcpy
mov ecx, dword [esi + 0x324]
add esp, 0xc
add ecx, 4
xor eax, eax
test edi, edi
mov dword [ebp + 0xc], eax
jbe 0x100064ae
push 0x28
xor edx, edx
pop ebx
div ebx
mov eax, dword [ebp + 0xc]
mov dl, byte [edx + esi + 0x8348]
xor byte [eax + ecx], dl
inc eax
cmp eax, edi
mov dword [ebp + 0xc], eax
jb 0x10006492
mov ecx, esi
call fcn.10006a5f
push dword [esi + 0x320]
test eax, eax
jne 0x100064d0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, esi
call fcn.100066b5
xor eax, eax
jmp 0x100064d9
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100086c1
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x1000bb68
call main
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edi, dword [esi + 0x44]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], 0x19
je 0x100086f2
mov ecx, edi
call fcn.1000661f
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
mov eax, dword [esi + 0xe8]
cmp eax, ebx
je 0x10008703
push eax
call sub.MFC42.DLL_operatordelete
pop ecx
cmp dword [esi + 0x7c], ebx
mov edi, dword [sym.imp.MSVCRT.dll_free]
jbe 0x10008717
push dword [esi + 0x90]
call edi
pop ecx
cmp dword [esi + 0x80], ebx
jbe 0x10008728
push dword [esi + 0x94]
call edi
pop ecx
cmp dword [esi + 0x88], ebx
jbe 0x10008739
push dword [esi + 0x9c]
call edi
pop ecx
cmp dword [esi + 0x84], ebx
jbe 0x1000874a
push dword [esi + 0x98]
call edi
pop ecx
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 0x18
call fcn.1000a6e0
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 0x17
call fcn.1000a6e0
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 0x16
call fcn.1000a6e0
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 0x15
call fcn.1000a6e0
lea ecx, [esi + 0xb4]
mov byte [ebp - 4], 0x14
call fcn.1000a6e0
lea ecx, [esi + 0xb0]
mov byte [ebp - 4], 0x13
call fcn.1000a6e0
lea ecx, [esi + 0xac]
mov byte [ebp - 4], 0x12
call fcn.1000a6e0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 0x11
call fcn.1000a6e0
lea ecx, [esi + 0xa4]
mov byte [ebp - 4], 0x10
call fcn.1000a6e0
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 0xf
call fcn.1000a6e0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xe
call fcn.1000a6e0
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xd
call fcn.1000a6e0
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0xc
call fcn.1000a6e0
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xb
call fcn.1000a6e0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0xa
call fcn.1000a6e0
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 9
call fcn.1000a6e0
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 8
call fcn.1000a6e0
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.1000a6e0
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 6
call fcn.1000a6e0
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
call fcn.1000a6e0
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call fcn.1000a6e0
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call fcn.1000a6e0
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call fcn.1000a6e0
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.1000a6e0
lea ecx, [esi + 8]
mov byte [ebp - 4], bl
call fcn.1000a6e0
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
call fcn.1000a6e0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
xor eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
test eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
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.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401320
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x404169], 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 str.trast
push str.bask
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401368
xor eax, eax
jmp 0x401383
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402630
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jmp fcn.0040263d
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4010f0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40332c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319b], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401121
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319b]
mov dword [ebp - 0x48], eax
mov eax, 0x401bbc
mov dword [ebp - 0x54], eax
mov ecx, 0x4030bd
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x40319b]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403378], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403378]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4011d9
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4011cb
mov esp, ebp
ret
Function at 0x10001140
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8f28
push 0x100e308f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x100011a6
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x1000122f
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x100011cd
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x1000122f
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x10001208
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x10001208
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x1000122f
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x1000122f
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1018eaf8]
mov dword [ebp - 4], eax
jmp 0x10001329
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001346
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001320
mov esp, ebp
pop ebp
ret