joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040ab0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007ae88
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x10040ae9
inc eax
mov dword [esi + 0x10], eax
jmp 0x10040bfc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x10040afd
mov eax, 0xffffffc7
jmp 0x10040bfe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x10040b0e
cmp dword [esi + 8], eax
jne 0x10040afd
cmp dword [esi + 8], eax
jne 0x10040b27
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x10040b27
mov eax, 0xffffffc7
jmp 0x10040bfe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x10040b3b
push eax
mov ecx, ebx
call fcn.100402e0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.10016810
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x10040b6c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10016830
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.1003fa50
test eax, eax
mov dword [esp + 0x38], eax
je 0x10040b9f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10080378
call fcn.10016a10
mov eax, dword [esp + 0x38]
jmp 0x10040bfe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.10040910
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x10040be3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.10040930
mov esi, eax
test esi, esi
jne 0x10040c13
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.10040910
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x10040bb5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10080378
call fcn.10016a10
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10080378
call fcn.10016a10
mov eax, esi
jmp 0x10040bfe

Function at 0x10043cd0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10043d30
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10043d30
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10043d30
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10043d30
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x10043d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x100491e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007b4b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.100748fe
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.10048b80
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.1007482c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.10071104
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.10071104
push 1
push 0
push 0
mov ecx, esi
call fcn.100710ac
push 1
push 0
push 1
mov ecx, esi
call fcn.100710ac
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10074970
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x10049360
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007b4d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.100748fe
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.10048b80
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.1007482c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x10049424
cmp dword [esp + 0x40], 1
jne 0x10049422
cmp ecx, eax
jge 0x10049424
mov eax, ecx
cmp eax, 0xc8
jge 0x10049430
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.100491e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.10074970
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10049bb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007b543
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.1006f53e
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.10074ba6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.100760c2
test eax, eax
je 0x10049ccc
mov ecx, dword [esp + 0x3c]
call fcn.10074bd3
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10049c90
push edi
mov ecx, esi
call fcn.1007221e
mov ecx, esi
call fcn.10049e30
cmp dword [esp + 0x38], 1
jne 0x10049cc5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.10072359
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x1004c700
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x1004c733
push esi
call fcn.1004f7f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1004c72c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x1004c7b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1004c7a2
mov eax, dword [esi + 8]
test eax, eax
je 0x1004c757
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x1004c79e
cmp eax, 2
je 0x1004c7a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004c74a
cmp eax, 3
je 0x1004c77d
cmp eax, 1
jne 0x1004c74a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1004c74a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1004c74a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.1004c7e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x1004c7c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.1004c7e0
add esp, 4
pop esi
ret

Function at 0x1005b6d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 0x1c]
mov esi, eax
xor eax, eax
push ecx
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_inet_addr
mov edx, dword [esp + 0x20]
mov dword [esp + 8], eax
push edx
call sub.WS2_32.dll_htons
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jne 0x1005b72f
mov eax, esi
pop esi
add esp, 0x10
ret
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x1005b890
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
lea eax, [esp + 0x1c]
push ebx
push esi
push edi
push eax
push 1
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x1005b9b3
mov ebx, dword [esp + 0x1c0]
test ebx, ebx
jl 0x1005b9b3
cmp ebx, 0xffff
jg 0x1005b9b3
mov edi, dword [esp + 0x1c4]
push edi
call fcn.1005c9f0
add esp, 4
cmp eax, 1
jne 0x1005b900
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1005b916
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.1005cbe0
add esp, 8
test eax, eax
je 0x1005b9b3
mov esi, dword [esp + 0x1bc]
xor edx, edx
lea ecx, [esp + 0x14]
push ebx
lea eax, [esi + 0x34]
push ecx
push esi
mov dword [eax], edx
mov byte [eax + 4], dl
call fcn.1005b6d0
add esp, 0xc
mov dword [esi + 0xc], eax
test eax, eax
je 0x1005b9b3
push eax
call fcn.1005bbe0
push esi
lea edx, [esp + 0x18]
push 0x1005b740
push edx
mov dword [esi + 0x10], 0
call fcn.1005cc30
mov eax, dword [esp + 0x20]
add esp, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x1005b99c
push esi
lea ecx, [esp + 0x10]
push 0x1005b7b0
push ecx
call fcn.1005cc30
mov edx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x1c]
push 0x1005b820
push eax
mov dword [esi + 0x18], edx
call fcn.1005cc30
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov dword [esi + 0x1c], ecx
call fcn.1005b600
mov dword [esi + 8], eax
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1ac
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1ac
ret

Function at 0x1005bbe0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call sub.WS2_32.dll_ioctlsocket
xor edx, edx
test eax, eax
setge dl
mov eax, edx
pop ecx
ret
Function at 0x1005cbe0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x1005cbef
ret
mov ecx, dword [eax + 0xc]
push esi
push edi
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WS2_32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret

Function at 0x1005cc30
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 4]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], eax
mov eax, edx
ret

Function at 0x1005cc60
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1005cc79
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x1007031a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10070352
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1006e3eb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1006e3c3
jmp 0x1007035e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10071a0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x10071a4e
call fcn.100773a7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10071a4e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10071a45
xor eax, eax
jmp 0x10071a56
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10071a5c
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15b50
call fcn.00407080
mov dword [ebp - 8], 0x15b38
mov dword [ebp - 4], str.ascdsvcsfscdsvcsfvfffffffffffffffffffffffffffffffsv_sdcsdvsfb_dgbfhnhhgcdn________________________hf_nfffffffffffffffffffffffffsv_sdcsdvsfb_dgbfhnhhgcdn________________________hf_n3e32r3t4yhuyhyuj87ij7ikji7ki7ki7kuk9i8kfhnhgngfhnscdsvcsfvfffffffffffffffffffffffffffffffsv_sdcsdvsfb_dgbfhnhhgcdn________________________hf_nfffffffffffffffffffffffffsv_sdcsdvsfb_dgbfhnhhgcdn________________________hf_n3e32r3t4yhuyhyuj87ij7ikji7ki7ki7kuk9i8kfhnhgngfhnscdsvcsfvfffffffffffffffffffffffffffffffsv_sdcsdvsfb_dgbfhnhhgcdn________________________hf_nfffffffffffffffffffffffffsv_sdcsdvsfb_dgbfhnhhgcdn________________________hf_n3e32r3t4yhuyhyuj87ij7ikji7ki7ki7kuk9i8kfhnhgngfhnvfffffffffffffffffffffffffffffffsv_sdcsdvsfb_dgbfhnhhgcdn________________________hf_nfffffffffffffffffffffffffsv_sdcsdvsfb_dgbfhnhhgcdn________________________hf_n3e32r3t4yhuyhyuj87ij7ikji7ki7ki7kuk9i8kfhnhgngfhnm
push 0x40
push 0x1000
push 0x15b38
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
push 0x15b38
lea eax, [ebp - 0x15b48]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00404830
add esp, 0xc
lea edx, [ebp - 0x15b50]
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x15b4c], eax
call fcn.00401115
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40331b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40b590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402323
and dword [ebp - 0x14], 0
cmp dword [0x40c7c4], 0
mov dword [ebp - 0x18], eax
jne 0x4033ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403476
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403476
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40c7c4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40c7c8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40c7cc], eax
call edi
push eax
call esi
mov dword [0x40c7d4], eax
test eax, eax
je 0x4033ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40c7d0], eax
mov eax, dword [0x40c7d0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403427
cmp dword [0x40c7d4], ecx
je 0x403427
push eax
call esi
push dword [0x40c7d4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403427
test ebx, ebx
je 0x403427
call edi
test eax, eax
je 0x40341e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40341e
test byte [ebp - 8], 1
jne 0x403427
or dword [ebp + 0x10], 0x200000
jmp 0x40345a
mov eax, dword [0x40c7c8]
cmp eax, dword [ebp - 0x18]
je 0x40345a
push eax
call esi
test eax, eax
je 0x40345a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40345a
mov eax, dword [0x40c7cc]
cmp eax, dword [ebp - 0x18]
je 0x40345a
push eax
call esi
test eax, eax
je 0x40345a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40c7c4]
call esi
test eax, eax
je 0x403476
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403478
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403686
leave
ret

Function at 0x403686
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b590]
jne 0x403690
repz ret
jmp fcn.00404c76
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43cf65
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43ccda
inc eax
or ebx, ebx
call fcn.0043cf82
sub ebx, 1
xor dword [edi], esi
inc edi
and ebx, ebx
cmp edi, edx
jne fcn.0043cf65
ret
Function at 0x405040
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi + 8]
test edi, edi
jne 0x405090
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x40505a
or edi, 0xffffffff
jmp 0x40508d
movzx eax, byte [esi + 0x10]
shl eax, 7
xor ecx, ecx
test edx, edx
jle 0x405082
jmp 0x405070
movzx edi, byte [esi + ecx + 0x10]
imul eax, eax, 0xf4243
xor eax, edi
inc ecx
cmp ecx, edx
jl 0x405070
xor eax, edx
mov edi, 0x1c7d301
je 0x40508d
mov edi, eax
mov dword [esi + 8], edi
mov ebx, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.00417fd0
add esp, 0xc
test eax, eax
jns 0x4050f3
push eax
push edi
mov edi, dword [esp + 0x20]
push edi
push esi
push ebx
call fcn.00421320
add esp, 0x14
cmp dword [0x43d164], 0
je 0x4050e7
mov eax, dword [0x43d148]
mov dword [eax*8 + 0x43de20], 0x439b14
mov dword [eax*8 + 0x43de24], 0
inc eax
and eax, 0x7f
mov dword [0x43d148], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
test edi, edi
je 0x4050e1
inc dword [edi]
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4050fc
inc dword [ecx]
mov esi, dword [ecx + eax*8 + 0x10]
test esi, esi
je 0x405106
inc dword [esi]
test ecx, ecx
je 0x40511a
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x40511a
push ecx
call fcn.00417930
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x41a7c0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
call fcn.00403fb0
xor ebx, ebx
add esp, 4
mov esi, eax
cmp dword [0x43d164], ebx
je 0x41a7fe
mov eax, dword [0x43d148]
mov dword [eax*8 + 0x43de20], 0x43b0f0
mov dword [eax*8 + 0x43de24], ebx
inc eax
and eax, 0x7f
pop esi
mov dword [0x43d148], eax
pop ebx
ret
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
cmp esi, ebx
je 0x41a816
push esi
call fcn.004013c0
add esp, 4
cmp edi, ebx
jne 0x41a8bb
call sub.KERNEL32.dll_GetLastError
push 0x14
mov edi, eax
call fcn.00401280
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41a8bf
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
inc dword [esi]
inc dword [esi]
push esi
push 0x4377e0
mov dword [esi + 8], 0x4377e0
mov dword [esi + 0x10], edi
call fcn.00401610
mov eax, dword [0x43d148]
mov dword [eax*8 + 0x43de20], 0x43b0d8
mov dword [eax*8 + 0x43de24], ebx
inc eax
add esp, 8
and eax, 0x7f
mov dword [0x43d148], eax
mov eax, dword [esi]
dec eax
mov dword [esi], eax
jne 0x41a8a0
mov dword [esi], 1
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 8]
push esi
mov dword [esi], ebx
call eax
add esp, 4
mov eax, dword [esi]
dec eax
mov dword [esi], eax
jne 0x41a8bb
mov dword [esi], 1
mov edx, dword [esi + 8]
mov eax, dword [edx + 8]
push esi
mov dword [esi], ebx
call eax
add esp, 4
pop edi
pop esi
pop ebx
ret
push 0x437410
push 0x4373fc
call fcn.00401610
mov eax, dword [0x43d148]
mov dword [eax*8 + 0x43de20], 0x43b0cc
mov dword [eax*8 + 0x43de24], ebx
add esp, 8
inc eax
and eax, 0x7f
mov dword [eax*8 + 0x43de20], 0x43b0e4
mov dword [eax*8 + 0x43de24], ebx
pop edi
inc eax
and eax, 0x7f
pop esi
mov dword [0x43d148], eax
pop ebx
ret

Function at 0x41a910
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [edx + 8]
push esi
test eax, eax
jne 0x41a95f
mov esi, dword [edx + 0xc]
test esi, esi
jne 0x41a928
or eax, 0xffffffff
jmp 0x41a95c
movzx eax, byte [edx + 0x10]
shl eax, 7
xor ecx, ecx
test esi, esi
jle 0x41a953
push edi
jmp 0x41a940
movzx edi, byte [edx + ecx + 0x10]
imul eax, eax, 0xf4243
xor eax, edi
inc ecx
cmp ecx, esi
jl 0x41a940
pop edi
xor eax, esi
jne 0x41a95c
mov eax, 0x1c7d301
mov dword [edx + 8], eax
mov esi, dword [esp + 8]
push eax
push edx
push esi
call fcn.00418610
add esp, 0xc
test eax, eax
jns 0x41a982
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41a97e
inc dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x41a98b
inc dword [ecx]
mov esi, dword [ecx + eax*8 + 0x10]
test esi, esi
je 0x41a995
inc dword [esi]
test ecx, ecx
je 0x41a9a9
mov eax, dword [ecx]
dec eax
mov dword [ecx], eax
jne 0x41a9a9
push ecx
call fcn.004179e0
add esp, 4
mov eax, esi
pop esi
ret