joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452624
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4527cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4527b0
mov dl, 1
mov eax, dword [0x411f08]
call fcn.004030c4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403eb0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45279f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00440630
test al, al
je 0x452792
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4527e0
lea eax, [ebp - 0x254]
call fcn.00408cc0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x452792
xor eax, eax
push ebp
push 0x45278b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x452818
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x452774
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404120
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
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 - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x452774
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404120
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452792
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x452695
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041620c
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 0x4527d6
lea eax, [ebp - 0x260]
call fcn.00403eb0
ret

Function at 0x453104
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x461bbc]
cmp byte [eax + 0xa5], 0
jne 0x453175
cmp dword [0x461bd4], 0
jne 0x453136
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4530c0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x461bd4], eax
cmp dword [0x461bd0], 0
jne 0x453151
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x461bd0], eax
cmp dword [0x461bd8], 0
jne 0x453175
push esp
push 0
push 0
push 0x453064
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x461bd8], eax
pop edx
ret
Function at 0x45326c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453283
add esp, 0xfffffff0
call fcn.00403400
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a550
mov eax, dword [0x4606cc]
cmp word [eax + 2], 0
jne 0x4532ab
mov eax, dword [0x4606cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454944
mov eax, dword [0x4607b8]
cmp word [eax + 2], 0
jne 0x4532c5
mov eax, dword [0x4607b8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00454b3c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411960]
call fcn.004030c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411960]
call fcn.004030c4
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], 0xff000018
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 [0x41c734]
call fcn.004223b4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45344c
mov eax, dword [0x4605a0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422784
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4550dc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4605a0]
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.0040c468
test eax, eax
je 0x4533ba
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086b4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c490
test eax, eax
je 0x4533ce
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.00404120
mov eax, dword [0x46042c]
cmp byte [eax], 0
jne 0x453402
mov eax, ebx
call fcn.00453574
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.004552b8
mov eax, ebx
call fcn.00455c7c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453442
call fcn.00403458
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4537f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x461bbc]
cmp dword [eax + 0x30], 0
je 0x45389e
cmp dword [ebx + 0x94], 0
jne 0x453898
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x453784
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x453898
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 0x45385e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x453898
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.00413ed4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45386d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454400
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 0x454435
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.00403fa0
jmp 0x454442
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f04
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455494
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4554d5
mov eax, esi
call fcn.0043bc5c
test al, al
je 0x4554d5
mov eax, dword [ebx + 0x84]
call fcn.0043b958
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4554d5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043b958
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a584
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x45a60d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x461fc8
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x45a5f7
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ae8c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x45a624
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x46083c]
mov dl, 1
mov eax, dword [0x4598e8]
call fcn.0040b7b0
call fcn.00403868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a614
lea eax, [ebp - 0x1c]
call fcn.00403eb0
ret
Function at 0x45acd8
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0045abfc
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004032f0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x45ad3c
call fcn.0045a4cc
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x45ad2e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004032f0
pop esi
pop ebx
ret

Function at 0x45ae08
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404370
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402b10
test ebx, ebx
je 0x45ae53
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x45af30
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45af61
mov ecx, dword [0x46094c]
mov dl, 1
mov eax, dword [0x4598e8]
call fcn.0040b774
call fcn.00403868
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45af8e
mov ecx, dword [0x4606bc]
mov dl, 1
mov eax, dword [0x4598e8]
call fcn.0040b774
call fcn.00403868
xor eax, eax
push ebp
push 0x45b00f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004032f0
cmp byte [ebp + 8], 0
je 0x45afe9
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045ae98
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045ac58
jmp 0x45b005
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045a7b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b02c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45b1f4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0045aa80
xor eax, eax
push ebp
push 0x45b365
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x45b34f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45b23f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45b249
call fcn.00403914
jmp 0x45b36c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162bc
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x45b344
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x45b2f7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45b2e4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004032f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0045b1ac
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45b378]
cmp dl, byte [eax + 0x28]
je 0x45b34b
call fcn.0040b698
jmp 0x45b34b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162dc
jmp 0x45b34b
cmp ecx, ebx
jge 0x45b313
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162dc
jmp 0x45b249
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004162bc
cmp edx, dword [esp + 4]
jne 0x45b333
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45b249
push ebp
call fcn.0045b1ac
pop ecx
jmp 0x45b34b
push ebp
call fcn.0045b1ac
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b36c
mov eax, dword [ebp - 4]
call fcn.0045aa8c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b37c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b49e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045aa80
xor eax, eax
push ebp
push 0x45b481
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45b3cc
call fcn.00403914
jmp 0x45b488
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45b46b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45b46b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004032f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45b46b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ae8c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45b4b8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x46083c]
mov dl, 1
mov eax, dword [0x4598e8]
call fcn.0040b7b0
call fcn.00403868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b488
mov eax, dword [ebp - 4]
call fcn.0045aa8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b4a5
lea eax, [ebp - 0x28]
call fcn.00403eb0
ret
Function at 0x45b504
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b64e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045aa80
xor eax, eax
push ebp
push 0x45b631
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45b569
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45b569
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x45b61b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45b57c
call fcn.00403914
jmp 0x45b638
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45b61b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45b61b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004032f0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45b61b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040ae8c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45b668
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x46083c]
mov dl, 1
mov eax, dword [0x4598e8]
call fcn.0040b7b0
call fcn.00403868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b638
mov eax, dword [ebp - 4]
call fcn.0045aa8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b655
lea eax, [ebp - 0x28]
call fcn.00403eb0
ret
Function at 0x4145af
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x422b70
cmp edx, dword [eax]
je 0x4145d1
add eax, 8
inc ecx
cmp eax, 0x422c00
jl 0x4145c2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x422b70]
jne 0x4146ff
mov eax, dword [0x4296dc]
cmp eax, 1
je 0x4146d9
test eax, eax
jne 0x414602
cmp dword [0x420194], 1
je 0x4146d9
cmp edx, 0xfc
je 0x4146ff
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x414639
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bb60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41467c
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41c1ac
push edi
call fcn.0040ca50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bb60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bb70
lea eax, [ebp - 0xa0]
push 0x41c1a8
push eax
call fcn.0040bb70
push dword [esi + 0x422b74]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bb70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412420
add esp, 0x2c
pop edi
jmp 0x4146ff
lea eax, [ebp + 8]
lea esi, [esi + 0x422b74]
push 0
push eax
push dword [esi]
call fcn.0040c050
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 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
or ebp, dword [esp + ecx + 0x56]
lea eax, [ebp - 0x78]
push 0xffffffffffffffdf
push eax
push esi
clc
mov dword [ebx + 0x638bc900], esp
or byte [ebx + 0x40c0c815], cl
add byte [eax + 0x51], dl
add edx, 0x40
inc ecx
lodsb al, byte [esi]
mov bh, 0x40
movsb byte es:[edi], byte [esi]
push edx
call [edi]
add dl, 0x40
mov eax, dword [0x20ac]
inc ecx
add byte [ebx - 0x3f7aeb3d], al
je 0x401e8c
push eax
push 0x40d23d
jecxz 0x401e9a
mov cl, 0xc1
inc eax
add byte [ebx - 0xa9820e], al
adc eax, sym.imp.MSVCRT.dll_exit
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
cld
nop
nop
nop
nop
nop
nop
nop
mov ebx, 0x8d2d558a
sub esp, 0x14
push ebx
insb byte es:[edi], dx
mov esi, dword [ebp - 0x5c]
inc eax
mov eax, dword [esi + 0x14]
mov dword [ebp + 0x7b], eax
call fcn.00406a00
mov dword [0x41e9cd], eax
mov dword [0x410b5f], edx
mov ebx, eax
mov eax, dword [esi + 0x14]
test eax, eax
mov edi, edx
jne 0x401f0d
jo 0x401f1d
add al, 0x6a
dec ecx
push 0xffffffffffffffbb
push ecx
mov bh, 0x96
mov ecx, dword [esi - 0x27cdf7c8]
add byte [ebx], al
enter 0xffffffffffffeb8b, 0
Function at 0x8ce082
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8ce0ce
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x8ce0c8
mov ecx, dword [0x90e7f8]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x8ce0bc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x8ce0a1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x8ce0ca
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x8cfc53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x8cfcbf
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x8cfd08
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.008e9100
add esp, 8
test eax, eax
jne 0x8cfd06
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x8cfd0a
jmp 0x8cfcb6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x8d88fa
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.008d2337
add esp, 4
and eax, 0xff
test eax, eax
je 0x8d8983
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.008e3820
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x8d8981
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x8d8981
jmp 0x8d8983
jmp 0x8d8903
mov esp, ebp
pop ebp
ret

Function at 0x8d8df3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x90f404]
test eax, eax
jne 0x8d8e07
call fcn.008d8d24
xor ecx, ecx
mov cl, byte [0x90f401]
test ecx, ecx
jne 0x8d8e8e
xor edx, edx
mov dl, byte [0x90f400]
test edx, edx
jne 0x8d8e8e
cmp dword [0x90f60c], 0
je 0x8d8e69
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0x90f60c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0x90f60c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x90f60c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x8d8e8e
push 0x10001
push 0x90f404
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x8d8e8e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret