joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9d5c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c9ec3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x4c9e66
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004c7538
test al, al
je 0x4c9e5c
xor eax, eax
push ebp
push 0x4c9e55
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.0040a6ac
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0040a94c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0040a94c
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x4c9edc
call fcn.0040bfbc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x200]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004cad7c
mov edx, 0x4c9f3c
mov eax, dword [ebp - 0x14]
call fcn.00499c18
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
setg byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9e5c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004c7680
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c9ea0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9eca
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00404b90
lea eax, [ebp - 0x1c]
call fcn.00404b6c
ret
Function at 0x4ca7e4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ca92a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
push ebp
push 0x4ca8d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004c7538
test al, al
je 0x4ca8c8
xor eax, eax
push ebp
push 0x4ca8c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.0040a94c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x4ca944
call fcn.0040bfbc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x200]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004cad7c
mov edx, 0x4ca99c
mov eax, dword [ebp - 0x14]
call fcn.00499c18
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
setg byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca8c8
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004c7680
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ca90c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca931
lea eax, [ebp - 0x30]
call fcn.00404b6c
lea eax, [ebp - 0x1c]
call fcn.00404b6c
ret
Function at 0x4d388c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d3a91
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 5], 0
xor eax, eax
push ebp
push 0x4d3a34
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [0x4e5634]
mov eax, dword [eax]
call fcn.004c7538
test al, al
je 0x4d3a1d
xor eax, eax
push ebp
push 0x4d3a16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x40], 4
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x38], 5
mov byte [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea edx, [ebp - 0x40]
mov ecx, 2
mov eax, 0x4d3aac
call fcn.0040bfbc
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x200]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x4e5634]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.004cad7c
jmp 0x4d39e9
mov edx, 0x4d3b30
mov eax, dword [ebp - 0x10]
call fcn.00499c18
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, 0x4d3b40
mov eax, dword [ebp - 0x10]
call fcn.00499c18
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, 0x4d3b54
mov eax, dword [ebp - 0x10]
call fcn.00499c18
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, 0x4d3b68
mov eax, dword [ebp - 0x10]
call fcn.00499c18
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004d2e10
test al, al
je 0x4d39e1
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x4e5634]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004ca45c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
cmp eax, dword [ebp - 0xc]
jle 0x4d39f9
mov eax, dword [ebp - 0x10]
call fcn.0049b2bc
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xa1], 0
je 0x4d394a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3a1d
mov eax, dword [0x4e5634]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
call fcn.004c7680
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
cmp eax, dword [ebp - 0xc]
setle byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d3a6e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3a98
lea eax, [ebp - 0x28]
call fcn.00404b6c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404b90
ret
Function at 0x4de478
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4de51c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
mov edx, 0x4de530
call fcn.00404c04
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
call fcn.004050b0
mov dl, byte [ebp - 8]
add dl, 0x43
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
call fcn.0040b250
test al, al
je 0x4de4f8
mov eax, dword [ebp - 0xc]
call fcn.00405058
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x4de4f8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx]
call fcn.00404d54
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jne 0x4de4b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4de523
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404b90
ret
Function at 0x4deb28
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4deca6
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x18]
mov edx, 0x4decbc
mov eax, 0x4decd0
call fcn.0047b430
lea eax, [ebp - 0x1c]
mov edx, 0x4decfc
call fcn.00404c04
mov eax, 0x4ded2c
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4dec7c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
push 0
push 0
push 3
push 0x4ded38
push 0x4ded38
push 0x50
mov eax, dword [ebp - 0x18]
call fcn.00405058
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
push 0
push 0x80000000
lea eax, [ebp - 0x20]
push eax
push 0x4ded38
push 0x4ded3c
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov edx, 0x4ded50
call fcn.00404ea4
mov eax, dword [ebp - 0x24]
call fcn.00405058
push eax
push 0x4ded54
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.00404e58
push eax
mov eax, dword [ebp - 4]
call fcn.00405058
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00404e58
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405058
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
jne 0x4dec41
call fcn.004045d0
jmp 0x4dec83
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dec83
cmp dword [ebp - 0xc], 0
je 0x4dec5d
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x14], 0
je 0x4dec6c
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
cmp dword [ebp - 0x10], 0
je 0x4dec7b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4decad
lea eax, [ebp - 0x24]
call fcn.00404b6c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404b90
ret
Function at 0x4dfed4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e0101
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4e5634]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x4e011c
call fcn.004c6658
mov edx, 4
mov eax, dword [ebp - 0x10]
call fcn.0040adf8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 4
je 0x4e00de
cmp byte [ebp - 9], 5
je 0x4dff47
cmp byte [ebp - 9], 6
je 0x4dff47
cmp byte [ebp - 9], 7
jne 0x4e00de
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040a6ac
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x28]
xor ecx, ecx
mov eax, 0x4e0138
call fcn.0040bfbc
xor eax, eax
push ebp
push 0x4e00a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [0x4e5634]
mov eax, dword [eax]
call fcn.004c7538
test al, al
je 0x4e0092
xor eax, eax
push ebp
push 0x4e008b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x200]
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x4e5634]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.004cad7c
jmp 0x4e005e
mov edx, 0x4e025c
mov eax, dword [ebp - 8]
call fcn.00499c18
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, 0x4e0268
mov eax, dword [ebp - 8]
call fcn.00499c18
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [0x4e5634]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.004c9d5c
test al, al
jne 0x4e0056
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
mov al, byte [ebp - 9]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x4e027c
call fcn.0040bfbc
mov eax, dword [ebp - 0x1c]
push eax
push 2
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov eax, dword [0x4e5634]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.004c9f54
mov eax, dword [ebp - 8]
call fcn.0049b2bc
mov eax, dword [ebp - 8]
cmp byte [eax + 0xa1], 0
je 0x4dffca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0092
mov eax, dword [0x4e5634]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.004c7680
ret
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e00de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0108
lea eax, [ebp - 0x2c]
call fcn.00404b6c
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404b90
ret
Function at 0x4da219
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004da3c9
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4da317
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4da2ba
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4da2fd
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4da2d1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4da2ec
test al, 0x40
je 0x4da2e3
mov ecx, dword [edi + 0x20]
jmp 0x4da2ea
test al, 0x80
je 0x4da2fd
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4da2fd
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4da289
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
push 5
push 0
push eax
push str.releasephysx27QQSpeed_Runner.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 0x10

Function at 0x401082
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x405128
call fcn.0040140c
mov edi, 0x94
mov eax, edi
call fcn.00402110
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 [0x40738c], ecx
mov eax, dword [esi + 4]
mov dword [0x407398], eax
mov edx, dword [esi + 8]
mov dword [0x40739c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x407390], esi
cmp ecx, 2
je 0x4010e2
or esi, 0x8000
mov dword [0x407390], esi
shl eax, 8
add eax, edx
mov dword [0x407394], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40111d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40111d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401135
cmp eax, 0x20b
je 0x401122
mov dword [ebp - 0x1c], esi
jmp 0x401149
cmp dword [ecx + 0x84], 0xe
jbe 0x40111d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401143
cmp dword [ecx + 0x74], 0xe
jbe 0x40111d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004020be
pop ecx
test eax, eax
jne 0x401175
cmp dword [0x407378], 1
jne 0x401162
call fcn.00401873
push 0x1c
call fcn.004016fc
push 0xff
call fcn.00401561
pop ecx
pop ecx
call fcn.0040201c
mov dword [ebp - 4], esi
call fcn.00401e71
test eax, eax
jge 0x40118e
push 0x1b
call fcn.0040105d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4078f4], eax
call fcn.00401d4f
mov dword [0x407370], eax
call fcn.00401cad
test eax, eax
jge 0x4011b4
push 8
call fcn.0040105d
pop ecx
call fcn.00401a7a
test eax, eax
jge 0x4011c5
push 9
call fcn.0040105d
pop ecx
push 1
call fcn.00401591
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4011db
push eax
call fcn.0040105d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401a1d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4011fc
movzx eax, word [ebp - 0x40]
jmp 0x4011ff
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401000
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40121d
push edi
call fcn.004016bc
call fcn.004016de
jmp 0x40124f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401447
ret
Function at 0x4015fb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4073cc], esi
push edi
jne 0x40161b
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 [0x4073c8], esi
mov byte [0x4073c4], al
jne 0x401681
mov ecx, dword [0x4078e8]
test ecx, ecx
je 0x401662
mov eax, dword [0x4078e4]
sub eax, 4
cmp eax, ecx
jmp 0x40165b
mov eax, dword [eax]
test eax, eax
je 0x40164d
call eax
mov eax, dword [0x4078e4]
sub eax, 4
cmp eax, dword [0x4078e8]
mov dword [0x4078e4], eax
jae 0x401645
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x401681
mov eax, dword [edi]
test eax, eax
je 0x40167a
call eax
add edi, 4
cmp edi, esi
jb 0x401672
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x4016a0
mov eax, dword [edi]
test eax, eax
je 0x401699
call eax
add edi, 4
cmp edi, esi
jb 0x401691
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4016ba
push dword [ebp + 8]
mov dword [0x4073cc], 1
call fcn.00401561
pop ebp
ret

Function at 0x4016fc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x407030]
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 + 0x407040]
je 0x401731
inc eax
cmp eax, 0x13
jb 0x401722
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407040]
jne 0x401857
mov eax, dword [0x407378]
cmp eax, 1
je 0x40182f
cmp eax, edx
jne 0x401761
cmp dword [0x407038], 1
je 0x40182f
cmp ecx, 0xfc
je 0x401857
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 0x401797
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402250
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00402480
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4017cb
mov eax, edi
push eax
call fcn.00402480
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40516c
push edi
call fcn.00402350
add esp, 0x10
push edi
call fcn.00402480
push dword [esi + 0x407044]
mov ebx, eax
call fcn.00402480
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402110
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402250
push edi
push ebx
call fcn.00402260
push 0x405168
push ebx
call fcn.00402260
push dword [esi + 0x407044]
push ebx
call fcn.00402260
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040214d
add esp, 0x2c
jmp 0x401857
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x407044]
push dword [esi]
call fcn.00402480
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.0040104f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40214d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4074e4], ebx
push esi
push edi
jne 0x4021cd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x402208
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4074e4], eax
je 0x402208
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4074e8], eax
call esi
cmp dword [0x40738c], 2
mov dword [0x4074ec], eax
jne 0x4021cd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4074f4], eax
je 0x4021cd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4074f0], eax
mov eax, dword [0x4074f0]
test eax, eax
je 0x402212
call eax
test eax, eax
je 0x4021f9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4074f4]
test eax, eax
je 0x4021f9
test byte [ebp - 8], 1
jne 0x402212
cmp dword [0x407398], 4
jb 0x40220c
or byte [ebp + 0x12], 0x20
jmp 0x402231
xor eax, eax
jmp 0x402241
or byte [ebp + 0x12], 4
jmp 0x402231
mov eax, dword [0x4074e8]
test eax, eax
je 0x402231
call eax
mov ebx, eax
test ebx, ebx
je 0x402231
mov eax, dword [0x4074ec]
test eax, eax
je 0x402231
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4074e4]
pop edi
pop esi
pop ebx
leave
ret