joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4352fc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x435318
cmp dword [esi + 4], 0
je 0x435345
test byte [ebx + 0x55], 1
jne 0x435337
mov eax, ebx
call fcn.00433f08
test eax, eax
jne 0x435337
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x435455
mov edx, esi
mov eax, ebx
call fcn.00434e20
jmp 0x435455
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43544e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00437194
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00431b90
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004352fc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00437194
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435455
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ba24
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45c274]
cmp byte [eax + 0xc], 0
je 0x43bb91
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43bb8a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45daf8], 0
jne 0x43ba78
push 0x43bb98
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43bba0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45daf8], eax
cmp dword [0x45bb34], 0
jne 0x43bb73
push 0x43bbb0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45bb34], eax
cmp dword [0x45bb34], 0
je 0x43bb73
push 0x43bbbc
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45dafc], eax
push 0x43bbcc
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db00], eax
push 0x43bbe0
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db04], eax
push 0x43bbf8
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db08], eax
push 0x43bc10
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db0c], eax
push 0x43bc24
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db10], eax
push 0x43bc3c
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db14], eax
push 0x43bc54
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db18], eax
push 0x43bc70
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db1c], eax
push 0x43bc7c
mov eax, dword [0x45bb34]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45db20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bb91
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43fa44
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040446c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43fa93
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004046dc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44723c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44728c]
test si, 4
je 0x447250
or bl, 1
test si, 8
je 0x44725a
or bl, 4
test si, 1
je 0x447264
or bl, 8
test si, 2
je 0x44726e
or bl, 0x10
test si, 0x10
je 0x447278
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447287
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447290
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4472c8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4472a9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4472b8
or bl, 4
test esi, 0x20000000
je 0x4472c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44d9a4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44d9b6
add esp, 0xfffffff0
call fcn.00403a18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a630
mov eax, dword [0x45bf28]
mov dword [eax + 4], ebx
mov dword [eax], 0x44dd48
mov eax, dword [0x45bf34]
mov dword [eax + 4], ebx
mov dword [eax], 0x44dd54
mov eax, ebx
call fcn.0044dd60
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4127b4]
call fcn.004036b0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4127b4]
call fcn.004036b0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4127b4]
call fcn.004036b0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4127b4]
call fcn.004036b0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4127b4]
call fcn.004036b0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44a178
push eax
push 0
push 0
mov eax, dword [0x45c08c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c0d0]
call fcn.0041d868
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c0d0]
call fcn.0041d868
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c0d0]
call fcn.0041d868
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e288
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e108
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e108
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e108
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44daf3
call fcn.00403a70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44dec8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e098
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e079
mov dl, 1
mov eax, dword [0x412bd0]
call fcn.004036b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040446c
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x44e068
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043bd84
test al, al
jne 0x44df65
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e05b
xor edx, edx
push ebp
push 0x44e054
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44df85
mov ebx, dword [ebp - 0x10]
jmp 0x44df87
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x44e0a8
lea eax, [ebp - 0x258]
call fcn.00409354
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e03d
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x44e0e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e03d
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004046dc
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44e03d
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.004046dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e05b
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x44df46
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416734
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e09f
lea eax, [ebp - 0x264]
call fcn.0040446c
ret
Function at 0x44ea28
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45db44]
cmp byte [eax + 0xa5], 0
jne 0x44ea99
cmp dword [0x45db5c], 0
jne 0x44ea5a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e9e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45db5c], eax
cmp dword [0x45db58], 0
jne 0x44ea75
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45db58], eax
cmp dword [0x45db60], 0
jne 0x44ea99
push esp
push 0
push 0
push 0x44e988
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45db60], eax
pop edx
ret

Function at 0x44f12c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45db44]
cmp dword [eax + 0x30], 0
je 0x44f1d6
cmp dword [ebx + 0x94], 0
jne 0x44f1d0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f0bc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f1d0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f196
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f1d0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414b30
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f1a5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fd34
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44fd69
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040455c
jmp 0x44fd76
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450e98
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450ed9
mov eax, esi
call fcn.004373f4
test al, al
je 0x450ed9
mov eax, dword [ebx + 0x84]
call fcn.00437194
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450ed9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437194
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x452de4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00452a08
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040492c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x452e42
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45c098]
mov dl, 1
mov eax, dword [0x452894]
call fcn.0040bef0
call fcn.00403e80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x452e4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040492c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x452ea4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45c280]
mov dl, 1
mov eax, dword [0x452894]
call fcn.0040bef0
call fcn.00403e80
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00452a38
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x459b98
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x459ba0
push ebx
push esi
xor eax, eax
push ebp
push 0x459d5a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [0x45c10c]
mov eax, dword [eax]
call fcn.00450848
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00408b04
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [0x45dbbc]
call fcn.00408b04
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00404734
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00408c0c
lea edx, [ebp - 8]
mov eax, dword [0x45dbbc]
call fcn.00408b8c
lea eax, [ebp - 0xc]
mov edx, dword [0x45dbc0]
call fcn.00404504
call fcn.00402dec
mov esi, eax
test esi, esi
jle 0x459cae
mov ebx, 1
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00402e54
mov edx, dword [ebp - 0x1c]
mov eax, 0x459d70
call fcn.00404a70
test eax, eax
jg 0x459c5b
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00402e54
mov edx, dword [ebp - 0x20]
mov eax, 0x459d7c
call fcn.00404a70
test eax, eax
jle 0x459c84
push dword [ebp - 0xc]
push 0x459d88
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00402e54
push dword [ebp - 0x24]
push 0x459d94
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.004047ec
jmp 0x459ca6
push dword [ebp - 0xc]
push 0x459d70
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00402e54
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004047ec
inc ebx
dec esi
jne 0x459c25
mov eax, dword [ebp - 4]
call fcn.00408cc8
push 0
mov ecx, 0x459da0
mov edx, 0x459dac
mov eax, dword [0x45dbd4]
mov ebx, dword [eax]
call dword [ebx + 0x10]
test al, al
je 0x459d17
push 0
mov eax, dword [ebp - 4]
call fcn.0040492c
push eax
push 0x459dbc
push dword [ebp - 4]
push dword [ebp - 8]
push 0x459dcc
push dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.004047ec
mov eax, dword [ebp - 0x2c]
call fcn.0040492c
push eax
push 0x459dd0
push 0x459dd4
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x459d3f
push 1
push dword [ebp - 8]
push 0x459d70
push dword [ebp - 0xc]
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004047ec
mov eax, dword [ebp - 0x30]
call fcn.0040492c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459d61
lea eax, [ebp - 0x30]
mov edx, 0xc
call fcn.00404490
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x6b592fd4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data_1
mov ebx, 0x42f314
nop
nop
mov ecx, 0x74624958
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401025
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41a230
call fcn.00401db0
mov edi, 0x94
mov eax, edi
call fcn.00401f10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41fc18], ecx
mov eax, dword [esi + 4]
mov dword [0x41fc24], eax
mov edx, dword [esi + 8]
mov dword [0x41fc28], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41fc1c], esi
cmp ecx, 2
je 0x401085
or esi, 0x8000
mov dword [0x41fc1c], esi
shl eax, 8
add eax, edx
mov dword [0x41fc20], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4010c0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4010c0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010d8
cmp eax, 0x20b
je 0x4010c5
mov dword [ebp - 0x1c], esi
jmp 0x4010ec
cmp dword [ecx + 0x84], 0xe
jbe 0x4010c0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010e6
cmp dword [ecx + 0x74], 0xe
jbe 0x4010c0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401d5e
pop ecx
test eax, eax
jne 0x401118
cmp dword [0x41fc08], 1
jne 0x401105
call fcn.00401513
push 0x1c
call fcn.0040139c
push 0xff
call fcn.00401201
pop ecx
pop ecx
call fcn.00401cbc
mov dword [ebp - 4], esi
call fcn.00401b11
test eax, eax
jge 0x401131
push 0x1b
call fcn.00401000
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x422030], eax
call fcn.004019ef
mov dword [0x41fc00], eax
call fcn.0040194d
test eax, eax
jge 0x401157
push 8
call fcn.00401000
pop ecx
call fcn.0040171a
test eax, eax
jge 0x401168
push 9
call fcn.00401000
pop ecx
push 1
call fcn.00401231
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40117e
push eax
call fcn.00401000
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004016bd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40119f
movzx eax, word [ebp - 0x40]
jmp 0x4011a2
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00405460
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4011c0
push edi
call fcn.0040135c
call fcn.0040137e
jmp 0x4011f2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401deb
ret
Function at 0x40129b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41fc58], esi
push edi
jne 0x4012bb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41fc54], esi
mov byte [0x41fc50], al
jne 0x401321
mov ecx, dword [0x422028]
test ecx, ecx
je 0x401302
mov eax, dword [0x422024]
sub eax, 4
cmp eax, ecx
jmp 0x4012fb
mov eax, dword [eax]
test eax, eax
je 0x4012ed
call eax
mov eax, dword [0x422024]
sub eax, 4
cmp eax, dword [0x422028]
mov dword [0x422024], eax
jae 0x4012e5
mov eax, 0x41f020
mov esi, 0x41f028
cmp eax, esi
mov edi, eax
jae 0x401321
mov eax, dword [edi]
test eax, eax
je 0x40131a
call eax
add edi, 4
cmp edi, esi
jb 0x401312
mov eax, 0x41f02c
mov esi, 0x41f030
cmp eax, esi
mov edi, eax
jae 0x401340
mov eax, dword [edi]
test eax, eax
je 0x401339
call eax
add edi, 4
cmp edi, esi
jb 0x401331
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40135a
push dword [ebp + 8]
mov dword [0x41fc58], 1
call fcn.00401201
pop ebp
ret

Function at 0x40139c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x41f180]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x41f048]
je 0x4013d1
inc eax
cmp eax, 0x13
jb 0x4013c2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x41f048]
jne 0x4014f7
mov eax, dword [0x41fc08]
cmp eax, 1
je 0x4014cf
cmp eax, edx
jne 0x401401
cmp dword [0x41f044], 1
je 0x4014cf
cmp ecx, 0xfc
je 0x4014f7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401437
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402110
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402340
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40146b
mov eax, edi
push eax
call fcn.00402340
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a648
push edi
call fcn.00402210
add esp, 0x10
push edi
call fcn.00402340
push dword [esi + 0x41f04c]
mov ebx, eax
call fcn.00402340
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00401f10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402110
push edi
push ebx
call fcn.00402120
push 0x41a628
push ebx
call fcn.00402120
push dword [esi + 0x41f04c]
push ebx
call fcn.00402120
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00402009
add esp, 0x2c
jmp 0x4014f7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x41f04c]
push dword [esi]
call fcn.00402340
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004023fc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret