joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453850
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453867
add esp, 0xfffffff0
call fcn.00403880
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420e90
mov eax, dword [0x45cf8c]
cmp word [eax + 2], 0
jne 0x45388f
mov eax, dword [0x45cf8c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454e84
mov eax, dword [0x45d01c]
cmp word [eax + 2], 0
jne 0x4538a9
mov eax, dword [0x45d01c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045507c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4166c0]
call fcn.00403504
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4166c0]
call fcn.00403504
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422fd8]
call fcn.00428c24
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453a30
mov eax, dword [0x45cecc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428ff4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4555ec
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45cecc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b3b0
test eax, eax
je 0x45399e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a68
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b3d8
test eax, eax
je 0x4539b2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404574
mov eax, dword [0x45cdec]
cmp byte [eax], 0
jne 0x4539e6
mov eax, ebx
call fcn.00453b58
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004557c8
mov eax, ebx
call fcn.00456178
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453a26
call fcn.004038d8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453dcc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45ec00]
cmp dword [eax + 0x30], 0
je 0x453e76
cmp dword [ebx + 0x94], 0
jne 0x453e70
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453d5c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453e70
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 0x453e36
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453e70
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.00418e44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x453e45
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Function at 0x4559a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4559e5
mov eax, esi
call fcn.0043bf80
test al, al
je 0x4559e5
mov eax, dword [ebx + 0x84]
call fcn.0043bc7c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4559e5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043bc7c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x458270
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4583f2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 0
jne 0x4583db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x70]
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
jmp 0x4583ce
mov eax, dword [ebp - 4]
add eax, 0x88
xor edx, edx
call fcn.0045a3ac
mov eax, dword [ebp - 4]
add eax, 0x88
push eax
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x458334
xor eax, eax
push ebp
push 0x45832d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045879c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4583ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
push eax
call sub.kernel32.dll_ResetEvent
ret
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0xea
jne 0x4583bb
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
add eax, 0x74
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x4583ae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x70]
jbe 0x4583ce
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x74]
mov eax, dword [ebp - 4]
add eax, 0x6c
call fcn.0040276c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 4]
mov dword [edx + 0x70], eax
jmp 0x4583ce
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
jmp 0x4583db
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0x3e5
jne 0x4583db
mov eax, dword [ebp - 4]
mov byte [eax + 0x60], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 0
je 0x4582a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4583f9
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x60]
mov byte [ebp - 5], al
ret
Function at 0x458404
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x98]
push eax
call sub.kernel32.dll_ResetEvent
mov eax, dword [ebp - 4]
mov byte [eax + 0x60], 0
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov eax, dword [ebp - 4]
add eax, 0x88
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_GetOverlappedResult
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x458557
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0xea
jne 0x458557
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
add eax, 0x74
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x45854c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x70]
jbe 0x4584e0
mov eax, dword [ebp - 4]
add eax, 0x6c
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.0040276c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
mov edx, dword [ebp - 4]
mov dword [edx + 0x70], eax
mov eax, dword [ebp - 4]
add eax, 0x88
xor edx, edx
call fcn.0045a3ac
mov eax, dword [ebp - 4]
add eax, 0x88
push eax
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x74]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x458557
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0x3e5
jne 0x458557
mov eax, dword [ebp - 4]
mov byte [eax + 0x60], 1
mov byte [ebp - 5], 1
jmp 0x458557
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
cmp byte [ebp - 5], 0
je 0x458585
mov eax, dword [ebp - 4]
cmp byte [eax + 0x60], 0
jne 0x458585
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x68]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045879c
mov al, byte [ebp - 5]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x458590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x61], 0
jne 0x4586bb
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x4586b7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
call fcn.00459828
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x58], 0
je 0x4586bb
mov eax, dword [ebp - 4]
add eax, 0x9c
xor edx, edx
call fcn.0045a3ac
mov eax, dword [ebp - 4]
add eax, 0x9c
push eax
mov eax, dword [ebp - 4]
add eax, 0x50
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], eax
cmp byte [ebp - 6], 0
je 0x45869c
xor eax, eax
push ebp
push 0x458695
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_FlushFileBuffers
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
mov edx, 0x467
mov eax, dword [ebp - 4]
call fcn.00458224
mov eax, dword [ebp - 4]
add eax, 0x58
call fcn.0045a5f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4586bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
push eax
call sub.kernel32.dll_ResetEvent
ret
mov eax, dword [ebp - 4]
cmp dword [eax + 0x48], 0x3e5
jne 0x4586b1
mov eax, dword [ebp - 4]
mov byte [eax + 0x61], 1
jmp 0x4586bb
mov byte [ebp - 5], 0
jmp 0x4586bb
mov byte [ebp - 5], 1
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x458d54
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458e26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x70
push eax
push 0x3e8
push 0
push 0
push 0xff
push 6
push 0x40000003
lea edx, [ebp - 0xc]
mov eax, 0x456358
call fcn.004064c4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
call fcn.004045cc
mov eax, dword [ebp - 0xc]
call fcn.004047bc
push eax
call sub.kernel32.dll_CreateNamedPipeA
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
xor eax, eax
push ebp
push 0x458e09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0045a4f4
test al, al
je 0x458de2
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x40], edx
jmp 0x458ded
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458e10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.0045a4f4
mov byte [ebp - 5], al
ret
Function at 0x459920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4599e6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x109]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x459993
lea eax, [ebp - 0x20e]
push eax
push 0
push 0x4599f4
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jbe 0x459993
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_CreateFileA_1
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
jmp 0x45999d
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4599ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0045a4f4
test al, al
je 0x4599d3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dl, 1
mov eax, dword [0x416d38]
call fcn.0041b2ec
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
jmp 0x4599e5
mov dl, 1
mov eax, dword [0x456748]
call fcn.00403504
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
ret

Function at 0x45a51c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
xor eax, eax
push ebp
push 0x45a579
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404948
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404814
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
jne 0x45a560
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a580
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404948
ret
Function at 0x45a820
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0x45ec28
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x45a937
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45cd70], 0
jne 0x45a8e9
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x45cd6c]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov dx, word [0x45cdc8]
mov word [eax + 6], dx
mov edx, 0x45a780
mov eax, dword [ebp - 8]
add eax, 7
call fcn.0045a7a0
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
mov word [eax + 4], 0
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 6]
mov eax, dword [ebp - 0xc]
call fcn.0045a7a0
mov edx, dword [ebp - 0xc]
mov dword [edx + 1], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [0x45cd70]
mov dword [eax + 5], edx
mov eax, dword [ebp - 0xc]
mov dword [0x45cd70], eax
add dword [ebp - 0xc], 0xd
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, 0xffe
jl 0x45a8a2
mov eax, dword [ebp - 8]
mov dword [0x45cd6c], eax
mov eax, dword [0x45cd70]
mov dword [ebp - 4], eax
mov eax, dword [0x45cd70]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 5]
mov dword [0x45cd70], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 0xc]
call fcn.0045a7e4
inc word [eax + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a93e
push 0x45ec28
call sub.kernel32.dll_LeaveCriticalSection_1
ret
Function at 0x410700
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f1e8
push 0x410628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x42c528], eax
mov eax, dword [0x42c528]
shr eax, 8
and eax, 0xff
mov dword [0x42c534], eax
mov ecx, dword [0x42c528]
and ecx, 0xff
mov dword [0x42c530], ecx
mov edx, dword [0x42c530]
shl edx, 8
add edx, dword [0x42c534]
mov dword [0x42c52c], edx
mov eax, dword [0x42c528]
shr eax, 0x10
and eax, 0xffff
mov dword [0x42c528], eax
call fcn.00413b90
test eax, eax
jne 0x41078f
push 0x1c
call fcn.00410930
add esp, 4
mov dword [ebp - 4], 0
call fcn.00413820
call fcn.00413810
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42de24], eax
call fcn.004131b0
mov dword [0x42c50c], eax
cmp dword [0x42c50c], 0
je 0x4107c7
cmp dword [0x42de24], 0
jne 0x4107d1
push 0xffffffffffffffff
call fcn.00412360
add esp, 4
call fcn.00412a30
call fcn.004128f0
call fcn.00412320
mov ecx, dword [0x42de24]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x22
jne 0x41084b
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x22
je 0x410834
mov ecx, dword [ebp - 0x64]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x410834
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
push ecx
call fcn.00412800
add esp, 4
test eax, eax
je 0x410832
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x4107f5
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x22
jne 0x410849
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x410862
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x20
jle 0x410862
mov edx, dword [ebp - 0x64]
add edx, 1
mov dword [ebp - 0x64], edx
jmp 0x41084b
mov eax, dword [ebp - 0x64]
xor ecx, ecx
mov cl, byte [eax]
test ecx, ecx
je 0x410884
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x20
jg 0x410884
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
jmp 0x410862
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x30]
and eax, 1
test eax, eax
je 0x4108ad
mov ecx, dword [ebp - 0x2c]
and ecx, 0xffff
mov dword [ebp - 0x6c], ecx
jmp 0x4108b4
mov dword [ebp - 0x6c], 0xa
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.004011c7
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.00412360
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x410915
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov dword [ebp - 8], 0
jmp 0x413c9e
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x12
jae 0x413cb7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx*8 + 0x428610]
jne 0x413cb5
jmp 0x413cb7
jmp 0x413c95
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax*8 + 0x428610]
jne 0x413e6a
cmp dword [ebp + 8], 0xfc
je 0x413cf4
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x428614]
push eax
push 0
push 0
push 0
push 1
call fcn.00411c80
add esp, 0x14
cmp eax, 1
jne 0x413cf4
int3
cmp dword [0x42c514], 1
je 0x413d0f
cmp dword [0x42c514], 0
jne 0x413d7a
cmp dword [0x428434], 1
jne 0x413d7a
cmp dword [0x42dcc0], 0
je 0x413d35
mov ecx, dword [0x42dcc0]
cmp dword [ecx + 0x10], 0xffffffff
je 0x413d35
mov edx, dword [0x42dcc0]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1b4], eax
jmp 0x413d43
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 0x1b4], eax
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x428614]
push eax
call fcn.00410420
add esp, 4
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx*8 + 0x428614]
push edx
mov eax, dword [ebp - 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x413e6a
cmp dword [ebp + 8], 0xfc
je 0x413e6a
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x413db3
push str._program_name_unknown_
lea edx, [ebp - 0x110]
push edx
call fcn.004101f0
add esp, 8
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00410420
add esp, 4
add eax, 1
cmp eax, 0x3c
jbe 0x413dfc
lea edx, [ebp - 0x110]
push edx
call fcn.00410420
add esp, 4
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax - 0x3b]
mov dword [ebp - 0xc], edx
push 3
push 0x41f4d8
mov eax, dword [ebp - 0xc]
push eax
call fcn.00414c50
add esp, 0xc
push str.Runtime_Error__n_nProgram:
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.004101f0
add esp, 8
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x1b0]
push eax
call fcn.00410200
add esp, 8
push 0x41f44c
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00410200
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [edx*8 + 0x428614]
push eax
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00410200
add esp, 8
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
lea edx, [ebp - 0x1b0]
push edx
call fcn.00414b90
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret