joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c7c20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5c7c37
add esp, 0xfffffff0
call fcn.00408878
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c0618
mov eax, dword [0x5fa054]
cmp byte [eax], 0
jne 0x5c7c64
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x19c], al
mov eax, dword [0x5fa488]
cmp word [eax + 2], 0
jne 0x5c7c7e
mov eax, dword [0x5fa488]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005ca0e4
mov eax, dword [0x5fa610]
cmp word [eax + 2], 0
jne 0x5c7c98
mov eax, dword [0x5fa610]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005ca4fc
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x5075b4]
call fcn.0050e130
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5caaa8
mov dl, 1
mov eax, dword [0x47fc34]
call fcn.00408254
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x47fc34]
call fcn.00408254
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x50c724]
call fcn.00518704
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5c7e88
mov eax, dword [0x5fa2dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00518c20
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5cad94
mov dl, 1
mov eax, dword [0x47fc34]
call fcn.00408254
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5fa2dc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004259b0
test eax, eax
je 0x5c7dab
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00425808
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00425994
test eax, eax
je 0x5c7dc3
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040ab50
push ebx
push 0x5c9ab8
call fcn.005bc1cc
mov dword [ebx + 0x198], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x5fa054]
cmp byte [eax], 0
jne 0x5c7e14
mov eax, ebx
call fcn.005c8050
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005cb13c
mov eax, ebx
call fcn.005cbc78
mov byte [ebx + 0x19e], 0
mov byte [ebx + 0xf5], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5c7e7f
call fcn.004088d0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c8380
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x5c8422
cmp dword [ebx + 0xac], 0
jne 0x5c841c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5c82c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5c841c
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_GetWindowLongW
test al, 8
je 0x5c83e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5c841c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004aa6e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5c83f1
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5c8764
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x601c00]
cmp dword [eax + 0x190], 0
je 0x5c88cd
test bl, bl
jne 0x5c8820
cmp dword [esi + 0xb4], 0
jne 0x5c8815
mov eax, esi
call fcn.005cbac8
push eax
push 0x5c8664
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5c87e6
mov eax, dword [0x601c00]
cmp byte [eax + 0xeb], 0
je 0x5c87e6
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5c87c7
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c87e6
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c87cf
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c8815
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004aa6e8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c87f5
inc dword [esi + 0xb4]
jmp 0x5c88cd
cmp dword [esi + 0xb4], 0
jle 0x5c88cd
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5c88cd
cmp dword [esi + 0x58], 0
je 0x5c8882
mov eax, dword [0x601c00]
cmp byte [eax + 0xeb], 0
je 0x5c8882
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5c8863
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c8882
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c886b
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c88b1
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004aa6e8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c8891
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5b8cc4]
call fcn.0040ce38
pop edi
pop esi
pop ebx
ret
Function at 0x5c96c4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5c9721
cmp byte [ebx + 0xeb], 0
jne 0x5c9721
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040a1d0
mov eax, dword [esi]
test eax, eax
je 0x5c970e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5c972e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a428
jmp 0x5c972e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a428
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5cb350
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5cb3c1
mov eax, esi
call fcn.0053d934
test al, al
je 0x5cb3c1
mov eax, dword [ebx + 0x98]
call fcn.0053d4cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5cb3c1
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x160]
test al, al
je 0x5cb3b2
push 0
mov eax, dword [ebx + 0x98]
call fcn.0053d4cc
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00533770
jmp 0x5cb3c1
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005cb15c
pop esi
pop ebx
ret
Function at 0x5d0f80
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x94], 0
jne 0x5d1006
mov eax, dword [ebx + 8]
call fcn.0053d4cc
mov ecx, eax
mov dl, 1
mov eax, dword [0x54a4c4]
call fcn.00537000
mov dword [ebx + 0x94], eax
mov esi, dword [ebx + 0x94]
xor edx, edx
mov eax, esi
call fcn.0054fb0c
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2d8], 0x5d0850
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0053d4cc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0053d4cc
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa4], 0
jne 0x5d1088
mov eax, dword [ebx + 8]
call fcn.0053d4cc
mov ecx, eax
mov dl, 1
mov eax, dword [0x54a4c4]
call fcn.00537000
mov dword [ebx + 0xa4], eax
mov esi, dword [ebx + 0xa4]
mov dl, 1
mov eax, esi
call fcn.0054fb0c
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2d8], 0x5d089c
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa4]
call fcn.0053d4cc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa4]
call fcn.0053d4cc
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5d1106
mov eax, dword [ebx + 8]
call fcn.0053d4cc
mov ecx, eax
mov dl, 1
mov eax, dword [0x54afb8]
call fcn.00537000
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov byte [esi + 0x2b0], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe0]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0053d4cc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0053d4cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5ea980
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x32
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040ac28
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040aa9c
push eax
call sub.advapi32.dll_GetUserNameW
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040aa9c
call fcn.0040a530
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040ac28
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6d376faf
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x28c86908
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x404eb7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x47b084]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x218]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.00405153
mov ebx, eax
cmp ebx, esi
je 0x404f23
cmp dword [ebp - 0x218], esi
je 0x404f1c
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404fbb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404f4b
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00404eb7
mov dword [ebp - 0x224], eax
cmp eax, esi
jne 0x404fcc
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call ebx
test eax, eax
je 0x404f2b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], esi
je 0x404f96
push dword [ebp - 0x218]
call ebx
mov dword [ebp - 0x218], esi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], esi
call fcn.00404e49
mov edi, eax
cmp dword [ebp - 0x218], esi
je 0x404fb9
push dword [ebp - 0x218]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411479
leave
ret 4
cmp dword [ebp - 0x218], esi
je 0x404fe0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x404fbb
Function at 0x407b17
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x457cd8
call fcn.004514af
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x407b6f
call fcn.004068fd
mov esi, eax
jmp 0x407c79
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x407b88
call fcn.004068fd
jmp 0x407c6b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x407b7e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x407bc5
mov esi, 0x8007000e
jmp 0x407c6d
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x407bda
cmp eax, 0xffffffff
jbe 0x407be4
push 0x80070216
call fcn.0040577f
cmp eax, 0x400
jbe 0x407c11
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004068da
jmp 0x407c1d
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x407bbb
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x407b7e
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.004079b7
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407c92
lea eax, [ebp - 0x418]
call fcn.004068d1
mov eax, esi
call fcn.0045150b
ret 0xc
Function at 0x408c91
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x14], 0
push esi
mov byte [0x47e330], 0
mov dword [ebp - 0xc], 0x46
mov dword [ebp - 4], 0x14
mov dword [ebp - 0x1c], 6
mov eax, dword [ebp - 4]
push edi
push 0xffffffffffffffcd
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x1c]
sub ecx, eax
add ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
imul eax, ecx
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x1d
add eax, ecx
mov ecx, dword [ebp - 4]
sub eax, ecx
mov ecx, dword [ebp - 4]
sub eax, ecx
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx - 0x8c]
mov dword [ebp - 0xc], eax
call fcn.0043d513
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x408de8
xor esi, esi
cmp dword [ebp - 0x14], esi
jle 0x408de2
push dword [0x47c8bc]
push dword [edi + esi*4]
call fcn.004137ac
pop ecx
pop ecx
test eax, eax
je 0x408d41
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x408d22
jmp 0x408de2
fld qword [0x475968]
mov byte [0x47e330], 1
fstp qword [ebp - 0x20]
fld qword [0x475960]
fstp qword [ebp - 8]
fld qword [0x475958]
fstp qword [ebp - 0x10]
fld qword [0x475950]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fadd qword [ebp - 0x20]
fstp qword [ebp - 8]
fld qword [ebp - 0x20]
fmul qword [0x475948]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x28]
fadd qword [0x475940]
fld qword [ebp - 0x20]
fmul qword [0x475938]
faddp st(1)
fadd qword [ebp - 0x10]
fsub qword [ebp - 8]
fadd qword [ebp - 0x20]
fsub qword [ebp - 0x20]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jp 0x408de2
fld qword [ebp - 0x28]
fmul qword [ebp - 8]
fadd qword [ebp - 0x20]
fsub qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x475930]
fsubp st(1)
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x475928]
fmul qword [ebp - 0x20]
fld qword [ebp - 0x10]
fadd qword [ebp - 8]
faddp st(1)
fstp qword [ebp - 0x28]
push edi
call fcn.0043e650
pop edi
mov eax, 0x47e330
pop esi
leave
ret
Function at 0x40b62f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b693
cmp dword [ebp + 0xc], 1
je 0x40b66b
cmp dword [ebp + 0xc], 2
je 0x40b66b
push 0xd
pop eax
jmp 0x40b693
mov eax, dword [ebp - 4]
test edi, edi
je 0x40b68d
test eax, eax
je 0x40b688
test al, 1
jne 0x40b666
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40b68d
jmp 0x40b666
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x411151
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x47d100], 0
push esi
push edi
jne 0x4110c7
call fcn.00411033
test eax, eax
je 0x41110c
mov eax, dword [0x47d100]
cmp eax, 1
jne 0x4110e8
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41110c
jmp 0x41114e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41114e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x411110
xor eax, eax
jmp 0x41114e
mov eax, dword [esi]
push dword [0x47d100]
call edi
mov edi, eax
test edi, edi
je 0x411132
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41114e
lea edi, [esi + 0xff0]
push esi
push dword [0x47d100]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x411138
mov eax, esi
pop edi
pop esi
ret
jmp 0x4110b3

Function at 0x411479
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b084]
jne 0x411483
repz ret
jmp fcn.00414712
Function at 0x41ee0b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47b084]
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.0041787a
and dword [ebp - 0x14], 0
cmp dword [0x47df44], 0
mov dword [ebp - 0x18], eax
jne 0x41eebe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ef66
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45ac84
push ebx
call edi
test eax, eax
je 0x41ef66
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47df44], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47df48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47df4c], eax
call edi
push eax
call esi
mov dword [0x47df54], eax
test eax, eax
je 0x41eebe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47df50], eax
mov eax, dword [0x47df50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ef17
cmp dword [0x47df54], ecx
je 0x41ef17
push eax
call esi
push dword [0x47df54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ef17
test ebx, ebx
je 0x41ef17
call edi
test eax, eax
je 0x41ef0e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ef0e
test byte [ebp - 8], 1
jne 0x41ef17
or dword [ebp + 0x10], 0x200000
jmp 0x41ef4a
mov eax, dword [0x47df48]
cmp eax, dword [ebp - 0x18]
je 0x41ef4a
push eax
call esi
test eax, eax
je 0x41ef4a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ef4a
mov eax, dword [0x47df4c]
cmp eax, dword [ebp - 0x18]
je 0x41ef4a
push eax
call esi
test eax, eax
je 0x41ef4a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47df44]
call esi
test eax, eax
je 0x41ef66
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ef68
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411479
leave
ret