joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45776c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470bdc]
cmp dword [eax + 0x30], 0
je 0x457816
cmp dword [ebx + 0x94], 0
jne 0x457810
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4576fc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457810
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 0x4577d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457810
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.004147b0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4577e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458374
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 0x4583a9
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.004049f8
jmp 0x4583b6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040495c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4594c8
Capabilities:
Hide graphical window

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

Function at 0x45cbf4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45cc22
mov eax, ebx
call fcn.0045d6a8
cmp dword [ebx + 0x40], 0
je 0x45cc1b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45cc93
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45cc85
cmp dword [ebx + 8], 0
je 0x45cc44
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 0x45cc56
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45cc85
cmp dword [ebx + 8], 0
je 0x45cc37
cmp eax, 3
je 0x45cc69
dec eax
jne 0x45cc37
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 0x45cc37
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45cc37
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45ccb1
cmp dword [ebx + 0x14], 0xcc
je 0x45ccb1
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.0045ccbc
pop ebx
ret
Function at 0x4017e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
clc
jae 0x4017eb
call 0x63d076
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4017f9
call 0x3dcb7c18
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x447200], eax
mov edx, 0xda4c2ca8
call fcn.00401160
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
stc
jb 0x401829
call 0xe8488282
ljmp 0x8b04
push 8
call fcn.0040231a
push 4
mov esi, eax
call fcn.0040231a
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401ac0
push 0
push 0
mov dword [eax], 0x4016f0
call fcn.004053af
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x401889
cmp dword [edi], 0
je 0x401896
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x40189d
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040215e
add esp, 0xc
test eax, eax
jne 0x4018a4
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00401f00
push 1
call fcn.00401f00
push 5
call fcn.00401f00
push 2
call fcn.00401f00
int3

Function at 0x402c87
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402cc6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402cc6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402cc6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402cc6
cmp dword [ecx + 0x74], 0xe
jbe 0x402cc6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407855
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41226c
push 0x412264
push str.FlsAlloc
push 0x1e
call fcn.004076d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407889
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
jmp 0x40788f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4078d3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsGetValue
push 0x20
call fcn.004076d6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40790a
push dword [ebp + 8]
mov ecx, esi
call dword [0x410134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40b9c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40b9f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x40ba03
xor eax, eax
jmp 0x40bac1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x40ba1e
xor eax, eax
jmp 0x40bac1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x40ba3c
xor eax, eax
jmp 0x40bac1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x40ba7e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x40babf
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.0040aea0
add esp, 8
test eax, eax
jne 0x40babd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x40bac1
jmp 0x40ba75
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40eb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af78], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af70], 0
jne 0x40eb67
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af70], 0x10000
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af6c], 0
push 0x1fffc
push 0
mov edx, dword [ebp + 8]
add edx, 0x4af70
push edx
call 0x4130b0
add esp, 0xc
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax*8 + 0x41671a]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af98], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax*8 + str.U6Z6JHDXMA]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af9c], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax*8 + 0x41671c]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6afa0], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax*8 + 0x41671e]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af94], ecx
cmp dword [ebp + 0xc], 2
jg 0x40ebf4
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
or ecx, 4
mov edx, dword [ebp + 0x10]
mov word [edx], cx
jmp 0x40ec09
cmp dword [ebp + 0xc], 8
jl 0x40ec09
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
or ecx, 2
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af84], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov edx, dword [ebp - 4]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1af70
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
call ecx
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0
je 0x40ec70
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0xffffffff
jne 0x40ec8c
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af8c], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af90], 0
jmp 0x40ed05
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0x106
jae 0x40ecb4
mov eax, dword [ebp + 8]
push eax
call fcn.0040eff0
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], 0
mov dword [ebp - 4], 0
jmp 0x40ecd3
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 2
jae 0x40ed05
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6af7c]
shl ecx, 5
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx + 0x1af70]
xor ecx, eax
and ecx, 0x7fff
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af7c], ecx
jmp 0x40ecca
mov esp, ebp
pop ebp
ret
Function at 0x4109b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4109c0
xor eax, eax
jmp 0x410b5d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x410b1e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x416768]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x416768]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x416768]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x416768]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x416768]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x416768]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x416768]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x416768]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x4109c9
cmp dword [ebp + 0x10], 0
je 0x410b57
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x416768]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x410b24
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
bswap edi
add eax, 0xbd
or edx, 2
not eax
add edx, 0xec
rol edi, 0x56
mov eax, 0xd5
ror edx, 0xc4
sub edx, 0x53
or ebx, 0x78
bswap edi
rol eax, 0xe1
mov eax, 0x4d
neg edi
inc edx
rcr esi, 0x8e
or eax, 0x3f
add edx, 0x13
add eax, 0x57
add edx, 0x58
not edx
inc eax
and edx, 0x19
dec edi
and ebx, 0x8d
inc edi
sub esi, 0xf5
mov edx, 0x5f
bswap ebx
sbb esi, 0xa0
add eax, 0xd4
add ebx, 0x68
neg eax
mov ebx, 6
or eax, 0x26
bswap eax
bswap esi
rcl edx, 0xb4
not ebx
not edx
neg edi
and ebx, 0x37
sbb esi, 0x57
dec esi
and esi, 0xc7
add ebx, 0x89
dec edi
rcl eax, 0x74
not esi
or eax, 0x41
xor ecx, ecx
xor edi, edi
and edi, 0xf0
imul ebx
rcr edi, 0xe1
rol esi, 0x37
inc esi
sbb ebx, 0xe4
dec edx
bswap edx
neg esi
mov ebx, 0xd4
bswap edi
dec ebx
inc ebx
sbb eax, 0xf1
ror edx, 0xfd
not edi
inc esi
neg eax
mov eax, 0x4c
neg edi
dec edx
neg edi
inc esi
neg esi
neg edx
rcr edx, 0xa5
imul edi
rcl esi, 0x29
add ebx, 0x7c
sbb ebx, 0xfb
not edx
rcl eax, 0x79
mov ebx, 0x9a
add ebx, 0x61
imul edi
add eax, 0xca
rol ebx, 0xf0
dec ebx
rol ebx, 0x55
rol eax, 7
imul eax
rol esi, 0x54
sub eax, 0xdc
bswap eax
neg eax
rcl ebx, 0x80
add eax, 0x69
not edx
dec edx
ror eax, 0x7a
mov ecx, dword [ebp + 0xc]
inc edi
ror eax, 0x7b
rcr ebx, 0x7f
mov edx, 0x31
bswap ebx
dec esi
sub edx, 0x58
imul edi
or edx, 0x71
sub edi, 0x49
sbb ebx, 0xc8
mov esi, 0xf9
imul edx
mov eax, 0x1a
mov eax, 0xef
neg esi
bswap esi
ror ebx, 0xb
add esi, 0xe6
rcr esi, 0xe0
neg ebx
bswap ebx
dec ebx
sub edx, 0x54
ror edx, 0xeb
neg edx
inc eax
imul esi
not edx
inc esi
rcl edx, 0xa5
rol ebx, 0x1f
not esi
rcl ebx, 0x88
or eax, 0xdb
neg edx
or eax, 0x7d
sbb edx, 0x63
and eax, 0x34
sbb edx, 0xf7
not esi
neg ebx
imul edx
bswap edi
sbb edx, 0x8b
neg ebx
dec edx
or esi, 0x29
rol eax, 0x56
neg edi
mov edi, dword [ebp + 8]
xor eax, eax
xor esi, ebx
mov esi, esi
not byte [edi]
mov eax, eax
xor esi, esi
mov eax, ebx
xor esi, esi
xor esi, eax
xor ebx, eax
xor esi, ebx
mov eax, eax
xor ebx, esi
add byte [edi], 0x75
xor esi, ebx
xor esi, ebx
mov eax, ebx
mov ebx, esi
mov ebx, ebx
mov eax, eax
mov esi, esi
mov ebx, eax
mov eax, esi
sub byte [edi], 0x25
xor eax, eax
mov eax, esi
mov esi, esi
xor eax, esi
xor esi, esi
xor esi, ebx
mov ebx, eax
xor esi, ebx
mov eax, eax
imul byte [edi]
inc edi
loop 0x4013c7
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4064fd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4167b8]
jne 0x406507
repz ret
jmp fcn.0040876c
Function at 0x40812c
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.0040657e
and dword [ebp - 4], 0
cmp dword [0x4176e4], 0
mov ebx, eax
jne 0x4081dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40828e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40828e
push eax
call fcn.0040650c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4176e4], eax
call esi
push eax
call fcn.0040650c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4176e8], eax
call esi
push eax
call fcn.0040650c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4176ec], eax
call esi
push eax
call fcn.0040650c
pop ecx
mov dword [0x4176f4], eax
test eax, eax
je 0x4081dd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040650c
pop ecx
mov dword [0x4176f0], eax
mov eax, dword [0x4176f0]
cmp eax, ebx
je 0x408235
cmp dword [0x4176f4], ebx
je 0x408235
push eax
call fcn.00406587
push dword [0x4176f4]
mov esi, eax
call fcn.00406587
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408235
test edi, edi
je 0x408235
call esi
test eax, eax
je 0x40822c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40822c
test byte [ebp - 0xc], 1
jne 0x408235
or dword [ebp + 0x10], 0x200000
jmp 0x40826e
mov eax, dword [0x4176e8]
cmp eax, ebx
je 0x40826e
push eax
call fcn.00406587
pop ecx
test eax, eax
je 0x40826e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40826e
mov eax, dword [0x4176ec]
cmp eax, ebx
je 0x40826e
push eax
call fcn.00406587
pop ecx
test eax, eax
je 0x40826e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4176e4]
call fcn.00406587
pop ecx
test eax, eax
je 0x40828e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408290
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42bec0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b870b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004aaeb3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42bf42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a83bd
mov eax, dword [eax]
push 0x4e4e94
push eax
call fcn.00499e44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004ab13e
test bl, bl
je 0x42bf42
push 0x4e4e94
lea ecx, [esp + 0xc]
call fcn.004ab51a
push 0x4e4ea0
lea ecx, [esp + 0xc]
call fcn.004ab51a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42bf7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004ab13e
jmp 0x42c049
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42c002
lea edx, [esp + 0x7c]
push 0x4e4e9c
push edx
call fcn.00499e44
add esp, 8
test eax, eax
je 0x42c002
lea eax, [esp + 0x7c]
push 0x4e4e98
push eax
call fcn.00499e44
add esp, 8
test eax, eax
je 0x42c002
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42bf92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004ab13e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42c840
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42c8a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x42c8b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b878b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4f1f48]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x42c9e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42c916
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ab13e
xor eax, eax
jmp 0x42ca5f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004ab2c7
push esi
lea ecx, [esp + 0xc]
call fcn.004ab556
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42ca3d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.0042c840
test eax, eax
jne 0x42ca3d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.0042c840
test eax, eax
jne 0x42ca3d
lea eax, [esp + 0x14]
push 0x4e4eb0
push eax
call fcn.0049b150
mov esi, eax
add esp, 8
test esi, esi
jne 0x42ca1c
lea ecx, [esp + 0x14]
push 0x4e4eac
push ecx
call fcn.0049b0d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42ca1c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42ca1f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004ab277
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42c92e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004ab13e
xor eax, eax
jmp 0x42ca5f
mov byte [esi], 0
push 0x4e4ea8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004ab13e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4