joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4563cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x481c08]
cmp dword [eax + 0x30], 0
je 0x456476
cmp dword [ebx + 0x94], 0
jne 0x456470
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45635c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456470
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 0x456436
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456470
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.0041bbe4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456445
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456f54
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 0x456f89
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.00404498
jmp 0x456f96
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457fa4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457fe5
mov eax, esi
call fcn.0043e26c
test al, al
je 0x457fe5
mov eax, dword [ebx + 0x84]
call fcn.0043df68
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457fe5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043df68
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45c70c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45c7e4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x481c90], 0
jne 0x45c7c8
lea eax, [ebp - 4]
mov edx, 0x45c7fc
call fcn.00404440
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404858
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45c7c8
mov eax, ebx
call fcn.00402760
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45c7c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45c7ab
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45c80c
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45c7ab
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x481c90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c7c8
mov eax, dword [ebp - 0xc]
call fcn.00402780
ret
mov ebx, dword [0x481c90]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c7eb
lea eax, [ebp - 4]
call fcn.004043a8
ret

Function at 0x4620f4
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x481cb4], 0
jne 0x462117
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462068
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x481cb4], eax
ret

Function at 0x46dba8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x46dbd6
mov eax, ebx
call fcn.0046e660
cmp dword [ebx + 0x3c], 0
je 0x46dbcf
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x46dc47
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x46dc39
cmp dword [ebx + 8], 0
je 0x46dbf8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x46dc0a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46dc39
cmp dword [ebx + 8], 0
je 0x46dbeb
cmp eax, 3
je 0x46dc1d
dec eax
jne 0x46dbeb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46dbeb
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x46dbeb
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x46dc65
cmp dword [ebx + 0x10], 0xcc
je 0x46dc65
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046dc70
pop ebx
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x405730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cld
in al, dx
or dl, ah
mov ebx, dword [ebp + 0x7b]
push edi
xor edx, dword [edx - 0x7bf0247b]
mov byte [0x5600a900], al
mov esi, ebx
mov esp, dword [esi + 0x6a]
lds ebp, [edx]
push 0
push eax
call fcn.0040a4b0
cmp eax, 0x1e276
or eax, 0x446c707
add byte [eax], al
add byte [ecx - 0x75], dh
jbe 0x40576f
test esi, esi
jne 0x405760
mov esi, ebx
test dword [edx + esi*4 - 0x7b], esp
mov dl, 0x85
sal byte [edx + edx - 0x75], 0xe
cmp byte [ecx], al
add byte [0x51096aaa], al
xor ah, byte [0xf4ae804]
and al, byte [eax]
mov esi, dword [esi + 8]
test esi, esi
jne 0x40576d
test edi, edi
je 0x405806
mov ebx, 0x781b
push esi
push ebx
mov ecx, ebp
cld
dec edi
rcl byte [0x758b0000], 8
xor edi, edi
bnd jle 0x4057ac
jbe 0x4057f7
and ecx, dword [ebx + 0x2f016a16]
push ss
push 1
das
inc edx
push 0
push edx
call 0x411738
cmp eax, 0x11176
pop es
call 0x40b540
sub ch, byte [edi - 0x77]
ret 0xebfc
mov ebp, dword [ebx - 0x5efb817d]
cmp dword [esi + 4], 0xffffffa1
scasb al, byte es:[edi]
or al, byte [esi - 0x7ef6b8fa]
call fcn.0040a3d0
mov esi, dword [esi - 0x31]
test esi, esi
jne 0x405808
Function at 0x4010a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x40c034
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4010c1
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x40c030
push ecx
mov edi, eax
call fcn.004032de
mov esi, eax
add esp, 8
test esi, esi
jne 0x4010fe
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004031b4
push esi
call fcn.0040315e
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x401490
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x220
push str.SeLoadDriverPrivilege
call fcn.00401000
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x120]
push eax
push str.SystemCurrentControlSetServices_s
push ecx
call fcn.004032f1
add esp, 0x10
lea edx, [esp]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4014e2
xor eax, eax
add esp, 0x220
ret
mov ecx, dword [esp]
push ebx
push ebp
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RtlNtStatusToDosError
push 0x40c0e8
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.RtlAnsiStringToUnicodeString
push 0x40c0e8
mov ebx, eax
call esi
push eax
call edi
push str.NtUnloadDriver
push 0x40c0e8
mov ebp, eax
call esi
push eax
call edi
push str.RtlFreeUnicodeString
push 0x40c0e8
mov dword [esp + 0x1c], eax
call esi
push eax
call edi
mov edx, dword [esp + 0x234]
lea eax, [esp + 0x28]
push edx
push str.RegistryMachineSystemCurrentControlSetServices_s
push eax
call fcn.004032f1
lea ecx, [esp + 0x34]
lea edi, [esp + 0x34]
mov dword [esp + 0x28], ecx
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x18]
push 1
lea eax, [esp + 0x24]
dec ecx
push edx
push eax
mov word [esp + 0x24], cx
call ebp
lea ecx, [esp + 0x20]
push ecx
call dword [esp + 0x18]
lea edx, [esp + 0x12c]
mov esi, eax
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x220
ret
Function at 0x4017e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x478
push ebx
push ebp
push esi
mov esi, 0x41
push edi
xor bl, bl
mov ebp, 0x42d460
mov dword [esp + 0x14], esi
push esi
lea eax, [esp + 0x28]
push str._c:_
push eax
call fcn.004032f1
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401944
push esi
lea edx, [esp + 0x4c]
push str.DosDevices_c:
push edx
call fcn.004032f1
lea eax, [esp + 0x54]
push 0
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00401750
add esp, 0x1c
test eax, eax
jne 0x401944
lea eax, [esp + 0x94]
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x88]
push ecx
mov edi, 0x100
push edx
push eax
mov word [esp + 0x96], di
call dword [0x42d430]
lea ecx, [esp + 0x88]
push 1
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [0x42d410]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00401750
add esp, 0x10
test eax, eax
jne 0x40190e
lea ecx, [esp + 0x94]
lea edx, [esp + 0x20]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x88]
push edx
push eax
push ecx
mov word [esp + 0x96], di
call dword [0x42d430]
lea edx, [esp + 0x88]
push 1
lea eax, [esp + 0x1c]
push edx
push eax
call dword [0x42d410]
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, bl
mov edx, ecx
mov esi, edi
mov edi, ebp
add al, 0x41
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, 0x101
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov byte [ebp - 1], al
mov byte [ebp], 0
inc bl
inc esi
cmp bl, 0x1a
mov dword [esp + 0x14], esi
jl 0x4017fa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret
Function at 0x402d30
Capabilities:
Acquire debug privileges
Delete file
Get common file path

Disassembly:
sub esp, 0x254
push esi
mov esi, dword [esp + 0x25c]
mov dword [0x42d440], esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x402f65
cmp al, 4
jb 0x402f65
seta al
mov byte [0x40d210], al
call fcn.00401e50
test al, al
jne 0x402d7e
push str.Incorrect_version_of_NT._n
jmp 0x402f6a
mov al, byte [0x40d210]
test al, al
je 0x402e15
lea ecx, [esp + 0x154]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x154]
push str.PAGEDFRG.SYS
push edx
lea eax, [esp + 0x58]
push str._sDrivers_s
push eax
call fcn.004032f1
lea ecx, [esp + 0x60]
push ecx
push 0x40c720
call fcn.004010a0
add esp, 0x18
test al, al
jne 0x402dda
push str.Error_extracting_PageDefrag_driver_to_drivers_directory
jmp 0x402f6a
lea edx, [esp + 0x50]
push 0x42d424
push edx
push str.PAGEDFRG
call fcn.004011c0
add esp, 0xc
test eax, eax
jne 0x402e0a
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.Make_sure_that_you_are_an_adminstrator._nError_loading_PageDefrag_driver.
jmp 0x402f6a
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.SeDebugPrivilege
call fcn.00401000
add esp, 4
test eax, eax
jne 0x402e30
push str.PageDefrag_requires_the__Debug_programs__privilege._n
jmp 0x402f6a
push edi
call fcn.004017e0
call fcn.00401cf0
call fcn.00401dc0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [0x42d418], eax
call edi
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x40c648
push esi
mov dword [0x40d3f4], eax
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x401ff0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x1e
mov dword [esp + 0x24], esi
call edi
push 0x40c648
push esi
mov dword [esp + 0x28], eax
call edi
push 0x7f00
push 0
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edx, [esp + 8]
mov dword [esp + 0x28], 0x10
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x40c1b4
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push 0x401ff0
push 0
push 0x40c640
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [0x42d444], eax
push 0
push 0
lea eax, [esp + 0x40]
push 0
push eax
call esi
test eax, eax
je 0x402f56
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov edx, dword [0x42d444]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x402f44
lea eax, [esp + 0x3c]
push eax
call edi
lea ecx, [esp + 0x3c]
push ecx
call ebp
push 0
push 0
lea edx, [esp + 0x44]
push 0
push edx
call esi
test eax, eax
jne 0x402f20
pop ebp
mov eax, dword [esp + 0x40]
pop edi
pop esi
add esp, 0x254
ret 0x10
push str.Not_running_on_Windows_NT_2K
push 0
call fcn.00401e20
add esp, 8
or eax, 0xffffffff
pop esi
add esp, 0x254
ret 0x10
Function at 0x4070f9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40cac0
cmp edx, dword [eax]
je 0x40711b
add eax, 8
inc ecx
cmp eax, 0x40cb50
jl 0x40710c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40cac0]
jne 0x407249
mov eax, dword [0x40d238]
cmp eax, 1
je 0x407223
test eax, eax
jne 0x40714c
cmp dword [0x40c774], 1
je 0x407223
cmp edx, 0xfc
je 0x407249
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407183
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408990
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406570
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4071c6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406570
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a554
push edi
call fcn.00408b10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408990
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004089a0
lea eax, [ebp - 0xa0]
push 0x40a534
push eax
call fcn.004089a0
push dword [esi + 0x40cac4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004089a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408a80
add esp, 0x2c
pop edi
jmp 0x407249
lea eax, [ebp + 8]
lea esi, [esi + 0x40cac4]
push 0
push eax
push dword [esi]
call fcn.00406570
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 0x405a70
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x437e88], 0x400
push edi
jne 0x405ae7
push esi
call fcn.00405ea9
pop ecx
push esi
call fcn.00406092
pop ecx
push esi
push esi
call fcn.004063b2
push esi
push esi
push esi
call fcn.004067d9
add esp, 0x10
mov dword [esp], esi
call fcn.004054aa
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00405487
fstp st(0)
push ecx
push ecx
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00405464
fstp st(0)
push esi
call fcn.0040688f
pop ecx
push esi
push esi
call fcn.00405f37
pop ecx
pop ecx
mov eax, dword [0x42ddd4]
mov dword [0x437e88], eax
mov eax, dword [0x42ddac]
mov dword [0x437e8c], eax
call fcn.004057a8
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
cmp dword [esp + 0x10], ebx
jle 0x405b56
cmp dword [esp + 0x18], 0x785074d5
jne 0x405b64
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x405b09
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x4051e4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x405b95
cmp dword [esp + 0x18], 0x785074d5
jne 0x405b9e
inc edi
cmp edi, 0x11915
jl 0x405b66
mov eax, dword [0x436dd8]
mov dword [0x43741c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x407200
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c118]
jne 0x40720a
repz ret
jmp fcn.0040c222
Function at 0x40bf45
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.00409ece
and dword [ebp - 4], 0
cmp dword [0x42e68c], 0
mov ebx, eax
jne 0x40bff6
push 0x4025b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c0a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4025a4
push edi
call esi
test eax, eax
je 0x40c0a7
push eax
call fcn.00409e5c
mov dword [esp], 0x402594
push edi
mov dword [0x42e68c], eax
call esi
push eax
call fcn.00409e5c
mov dword [esp], 0x402580
push edi
mov dword [0x42e690], eax
call esi
push eax
call fcn.00409e5c
mov dword [esp], 0x402564
push edi
mov dword [0x42e694], eax
call esi
push eax
call fcn.00409e5c
pop ecx
mov dword [0x42e69c], eax
test eax, eax
je 0x40bff6
push 0x40254c
push edi
call esi
push eax
call fcn.00409e5c
pop ecx
mov dword [0x42e698], eax
mov eax, dword [0x42e698]
cmp eax, ebx
je 0x40c04e
cmp dword [0x42e69c], ebx
je 0x40c04e
push eax
call fcn.00409ed7
push dword [0x42e69c]
mov esi, eax
call fcn.00409ed7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c04e
test edi, edi
je 0x40c04e
call esi
test eax, eax
je 0x40c045
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c045
test byte [ebp - 0xc], 1
jne 0x40c04e
or dword [ebp + 0x10], 0x200000
jmp 0x40c087
mov eax, dword [0x42e690]
cmp eax, ebx
je 0x40c087
push eax
call fcn.00409ed7
pop ecx
test eax, eax
je 0x40c087
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c087
mov eax, dword [0x42e694]
cmp eax, ebx
je 0x40c087
push eax
call fcn.00409ed7
pop ecx
test eax, eax
je 0x40c087
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42e68c]
call fcn.00409ed7
pop ecx
test eax, eax
je 0x40c0a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c0a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
scasd eax, dword es:[edi]
mov esi, dword [ebp + 8]
push esi
lea ebp, [eax]
aad 0x89
js 0x401ea1
test al, 0xe8
mov dword [eax], ebp
mov ecx, dword [ebp + 8]