joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, 1
test eax, eax
je 0x459d60
push 0
push 0
push 0
push 0xa2
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 0
push 0
push 0x41
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x41
call dword [sym.imp.USER32.dll_keybd_event]
xor ecx, ecx
je 0x459d14
mov dword [ebp - 0x10], 0x186a0
mov dword [ebp - 0xc], 0
push 0x41
call dword [sym.imp.USER32.dll_GetKeyState]
mov word [ebp - 4], ax
movsx edx, word [ebp - 4]
and edx, 1
je 0x459cec
jmp 0x459cee
jmp 0x459d12
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x459cf8
jmp 0x459d12
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, 1
test edx, edx
jne 0x459cd5
jmp 0x459d4a
push 0x41
call dword [sym.imp.USER32.dll_GetKeyState]
mov word [ebp - 8], ax
movsx eax, word [ebp - 8]
and eax, 1
je 0x459d4a
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
push 0
push 0xa2
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x459e49
mov dword [ebp - 0x84], 0
push 0x6c
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.0045d480
add esp, 0xc
mov edx, 0x1c
imul eax, edx, 0
mov dword [ebp + eax - 0x84], 1
mov ecx, 0x1c
imul edx, ecx, 0
mov eax, 0xa2
mov word [ebp + edx - 0x80], ax
mov ecx, 0x1c
shl ecx, 0
mov dword [ebp + ecx - 0x84], 1
mov edx, 0x1c
shl edx, 0
mov eax, 0x41
mov word [ebp + edx - 0x80], ax
mov ecx, 0x1c
shl ecx, 1
mov dword [ebp + ecx - 0x84], 1
mov edx, 0x1c
shl edx, 1
mov eax, 0x41
mov word [ebp + edx - 0x80], ax
mov ecx, 0x1c
shl ecx, 1
mov dword [ebp + ecx - 0x7c], 2
mov edx, 0x1c
imul eax, edx, 3
mov dword [ebp + eax - 0x84], 1
mov ecx, 0x1c
imul edx, ecx, 3
mov eax, 0xa2
mov word [ebp + edx - 0x80], ax
mov ecx, 0x1c
imul edx, ecx, 3
mov dword [ebp + edx - 0x7c], 2
push 0x1c
lea eax, [ebp - 0x84]
push eax
push 4
call dword [sym.imp.USER32.dll_SendInput]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
je 0x459e49
xor eax, eax
jmp 0x459e4e
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45a2d0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0xa0000000
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45a31c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
push str.CJHHttp::AddHeader
push str._s:WinHttpAddRequestHeaders___failed:_d
call fcn.00454b60
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x45b770
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x45b8e0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45b8c7
xor ecx, ecx
je 0x45b7f5
push 0
push 0x10000
push 0x45b9d0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x45b7f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b7eac
push str._s:WinHttpSetStatusCallback___failed:_d
mov eax, dword [ebp - 0xc]
push eax
call fcn.0045c650
add esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0x1f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
jne 0x45b838
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b7f28
push str._s:WinHttpQueryOption___failed:_d
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0045c650
add esp, 0x10
mov edx, dword [ebp - 4]
or edx, 0x100
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
or eax, 0x2000
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
or ecx, 0x1000
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x3300
mov dword [ebp - 4], edx
push 4
lea eax, [ebp - 4]
push eax
push 0x1f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x45b89a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b7f9c
push str._s:WinHttpSetOption___failed:_d
mov edx, dword [ebp - 0xc]
push edx
call fcn.0045c650
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x45b8c5
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x45b8c5
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0045a2d0
mov ecx, dword [ebp + 0x14]
add ecx, 4
mov dword [ebp + 0x14], ecx
jmp 0x45b8a0
jmp 0x45b8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenRequest
push str._s:WinHttpOpenRequest___failed:_d
call fcn.00454b60
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0x20
Function at 0x45b8f0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x45b919
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x45b961
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b7bdc
push str._s:WinHttpOpen___failed:_d
mov eax, dword [ebp - 4]
push eax
call fcn.0045c650
add esp, 0x10
jmp 0x45b9aa
mov dword [ebp - 8], 0x2a0
mov ecx, dword [ebp - 8]
or ecx, 0x800
mov dword [ebp - 8], ecx
push 4
lea edx, [ebp - 8]
push edx
push 0x54
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x45b9aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::OpenSession
push 0x4b7c70
mov edx, dword [ebp - 4]
push edx
call fcn.0045c650
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x45b9bc
mov dword [ebp - 0xc], 1
jmp 0x45b9c3
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x45c0f0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov dword [ebp - 4], 8
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x20000005
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x45c156
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b8510
push str._s:WinHttpQueryHeaders___failed:_d
call fcn.00454b60
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov dword [ebp - 8], 0
xor eax, eax
jmp 0x45c189
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.CJHHttp::ReadContentSize
push str._s:WinHttpQueryHeaders_ContentSize_I64u__succeed
call fcn.00454b60
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x45c184
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x45c190
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496ae0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x45c1f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b8414
push str._s:WinHttpQueryDataAvailable___failed:_d
call fcn.00454b60
add esp, 0xc
xor eax, eax
jmp 0x45c28a
cmp dword [ebp - 0x10], 0
jne 0x45c200
mov eax, 1
jmp 0x45c28a
mov dword [ebp - 0x14], 0
push 0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0042e370
mov ecx, dword [ebp + 0xc]
call fcn.00423320
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45c247
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
je 0x45c285
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::ReadResponseData
push str._s:WinHttpReadData___failed:_d
call fcn.00454b60
add esp, 0xc
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00423160
mov dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x45c28a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x45c510
Capabilities:
Receive http response
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x45c63d
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45c624
cmp dword [ebp - 0x10], 0
je 0x45c5ee
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x45c587
mov dword [ebp - 0x14], 1
jmp 0x45c58e
mov dword [ebp - 0x14], 0
mov cl, byte [ebp - 0x14]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x45c5aa
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45c5ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b82b8
push str._s:WinHttpWriteData___failed:_d
call fcn.00454b60
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x45c622
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45c622
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b8328
push str._s:WinHttpReceiveResponse___failed:_d
call fcn.00454b60
add esp, 0xc
jmp 0x45c63d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CJHHttp::SendRequest
push str._s:WinHttpSendRequest___failed:_d
call fcn.00454b60
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x4835e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
and ecx, 1
je 0x4836ae
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x483633
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x30]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov ecx, dword [edx]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
jmp 0x483646
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx]
add ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x1000
jb 0x483697
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00422c80
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0041c07e
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
mov dword [ecx], 0
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
mov dword [edx], 0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x3c]
and edx, 0xfffffffe
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x401070
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, edx
xor eax, eax
jmp 0x401080
mov byte [eax + 0x41e218], al
add eax, 1
cmp eax, 0x100
jne 0x401080
xor edi, edi
xor esi, esi
mov dword [0x41dc04], edi
mov dword [0x41de0c], esi
xor edx, edx
mov eax, esi
div ebp
mov bl, byte [esi + 0x41e218]
add esi, 1
movzx eax, byte [edx + ecx]
movzx edx, bl
add edx, edi
add eax, edx
and eax, 0xff
cmp esi, 0x100
mov edi, eax
movzx eax, byte [edi + 0x41e218]
mov byte [esi + 0x41e217], al
mov dword [0x41dc04], edi
mov byte [0x41de14], bl
mov byte [edi + 0x41e218], bl
mov dword [0x41de0c], esi
jne 0x4010a0
pop edi
pop esi
xor eax, eax
pop ebp
mov dword [0x41dc04], eax
mov dword [0x41de0c], eax
pop ebx
ret

Function at 0x401100
Capabilities:
Encode data using xor
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [str.SP5CsZ_37F]
sub esp, 0x44
push ebx
push esi
mov eax, ecx
push edi
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x401114
sub eax, esi
mov edx, eax
call fcn.00401070
push 0x200
push 0x41de18
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push 0x41de18
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
xor edi, edi
cmp esi, 0x186a0
jae 0x40119f
cmp dword [ebp - 0x24], 0xe
je 0x401177
cmp dword [ebp - 0x1c], 4
jne 0x40117c
mov edi, 0x6f
push 0xc8
push 0x41de18
push str.dslk8Hjklsfklsnnlkd_._
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
cmp dword [ebp - 0xc], 0
je 0x40119f
add esi, 1
cmp edi, 0x6f
jne 0x401163
push 0xf55c8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
lea ecx, [ebp - 4]
push ecx
push 0xf4240
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, 0xa000
mov esi, 0xaae60
lea esp, [esp]
push 0x3e8
call fcn.0040131d
add esp, 4
mov ebx, eax
call fcn.00401000
xor byte [esi + edi], al
push ebx
call fcn.00401240
sub esi, 1
add esp, 4
test esi, esi
jg 0x4011d0
mov dword [ebp - 8], edi
call dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4028f2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41d1e8]
je 0x40290d
inc edi
cmp edi, 0x17
jb 0x4028fe
cmp edi, 0x17
jae 0x402a8d
push ebp
push 3
call fcn.00404ac0
cmp eax, 1
pop ecx
je 0x402a59
push 3
call fcn.00404ac0
test eax, eax
pop ecx
jne 0x402941
cmp dword [0x41cf44], 1
je 0x402a59
cmp ebx, 0xfc
je 0x402a8c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41e4d8
push ebp
call fcn.00404a5b
add esp, 0xc
test eax, eax
je 0x402977
push esi
push esi
push esi
push esi
push esi
call fcn.00403a41
add esp, 0x14
push 0x104
mov esi, 0x41e4f1
push esi
push 0
mov byte [0x41e5f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4029bb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00404a5b
add esp, 0xc
test eax, eax
je 0x4029bb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403a41
add esp, 0x14
push esi
call fcn.004049d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402a00
push esi
call fcn.004049d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41e7ec
push 0x40872c
sub ecx, eax
push ecx
push eax
call fcn.00404916
add esp, 0x14
test eax, eax
je 0x402a00
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403a41
add esp, 0x14
jmp 0x402a02
xor esi, esi
push 0x408728
push ebx
push ebp
call fcn.004048a5
add esp, 0xc
test eax, eax
je 0x402a22
push esi
push esi
push esi
push esi
push esi
call fcn.00403a41
add esp, 0x14
push dword [edi*8 + 0x41d1ec]
push ebx
push ebp
call fcn.004048a5
add esp, 0xc
test eax, eax
je 0x402a44
push esi
push esi
push esi
push esi
push esi
call fcn.00403a41
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004046e8
add esp, 0xc
jmp 0x402a8c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x402a8c
cmp ebp, 0xffffffff
je 0x402a8c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41d1ec]
push dword [esi]
call fcn.004049d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404085
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d370]
jne 0x40408f
repz ret
jmp fcn.00405ef1
Function at 0x4046e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004034c1
xor ebx, ebx
cmp dword [0x41e948], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4047be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40489e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40489e
push eax
call fcn.00403453
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41e948], eax
call esi
push eax
call fcn.00403453
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41e94c], eax
call esi
push eax
call fcn.00403453
mov dword [0x41e950], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040267f
test eax, eax
pop ecx
pop ecx
je 0x40478c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403a41
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4047be
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403453
cmp eax, ebx
pop ecx
mov dword [0x41e958], eax
je 0x4047be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403453
pop ecx
mov dword [0x41e954], eax
mov eax, dword [0x41e954]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x404843
cmp dword [0x41e958], ecx
je 0x404843
push eax
call fcn.004034ca
push dword [0x41e958]
mov esi, eax
call fcn.004034ca
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x404843
cmp edi, ebx
je 0x404843
call esi
cmp eax, ebx
je 0x404810
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404810
test byte [ebp - 0x18], 1
jne 0x404843
lea eax, [ebp - 0x10]
push eax
call fcn.004026b6
test eax, eax
pop ecx
je 0x40482b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403a41
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40483a
or dword [ebp + 0x10], 0x200000
jmp 0x40487e
or dword [ebp + 0x10], 0x40000
jmp 0x40487e
mov eax, dword [0x41e94c]
cmp eax, dword [ebp - 8]
je 0x40487e
push eax
call fcn.004034ca
cmp eax, ebx
pop ecx
je 0x40487e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40487e
mov eax, dword [0x41e950]
cmp eax, dword [ebp - 8]
je 0x40487e
push eax
call fcn.004034ca
cmp eax, ebx
pop ecx
je 0x40487e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41e948]
call fcn.004034ca
cmp eax, ebx
pop ecx
je 0x40489e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4048a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x588ae8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x588ae4]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.004256cc
jmp 0x4011d3
mov eax, dword [0x588ae4]
test eax, eax
jne 0x4011c9
mov dword [0x588ae4], 1
mov dword [esp + 4], 0x58b014
mov dword [esp], 0x58b00c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x58801c], 1
mov eax, dword [0x588ae4]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x58b008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x588ae4], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x588ae8
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.00413add
mov dword [esp], 0x413bf8
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x588074], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.0041347c
mov eax, dword [0x588004]
mov dword [esp + 4], 0x588008
mov dword [esp], eax
call fcn.004013c8
call fcn.004132b8
mov eax, dword [0x4dbcb0]
mov edx, dword [0x58800c]
mov dword [eax], edx
mov ecx, dword [0x58800c]
mov edx, dword [0x588008]
mov eax, dword [0x588004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00413100
mov dword [0x588014], eax
mov eax, dword [0x588018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x588014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x58801c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x588014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret