joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b490
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ddf43
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.004d09e5
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.004d607d
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004d75dc
test eax, eax
je 0x47b5ac
mov ecx, dword [esp + 0x3c]
call fcn.004d60aa
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 0x47b570
push edi
mov ecx, esi
call fcn.004d370f
mov ecx, esi
call fcn.0047b750
cmp dword [esp + 0x38], 1
jne 0x47b5a5
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.004d384a
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 0x47d790
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47d7c3
push esi
call fcn.0048bb30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47d7bc
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 0x47d849
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47d832
mov eax, dword [esi + 8]
test eax, eax
je 0x47d7e7
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 0x47d82e
cmp eax, 2
je 0x47d832
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47d7da
cmp eax, 3
je 0x47d80d
cmp eax, 1
jne 0x47d7da
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 0x47d7da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47d7da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047d870
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47d858
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0047d870
add esp, 4
pop esi
ret

Function at 0x47e0e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x47e101
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x47e101
mov eax, dword [eax + 0x44]
test eax, eax
je 0x47e101
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x499ecd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4de358
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x40]
test edx, edx
setne bl
inc ebx
test eax, eax
je 0x499ee3
or bh, 0x80
lea ecx, [esp + 0xc]
call fcn.0049f2b0
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x28], 0
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0049f570
lea eax, [esp + 0xc]
push ebx
push eax
mov ecx, esi
call fcn.00499f50
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x500788
call fcn.0049f4b0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x49edc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x49ee0c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x49ee0c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x49edf6
push eax
call ebp
test ax, ax
jl 0x49ee04
inc esi
add edi, 4
cmp esi, 6
jb 0x49ede8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0049eac0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4a1720
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4a1780
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4a1780
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4a1780
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4a1780
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 0x4a1790
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 0x4a2f40
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4a2fe3
test eax, eax
jbe 0x4a2fe3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4a2fe3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4a2f8e
xor esi, esi
jmp 0x4a2f94
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4a2fbf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00435e00
add esi, eax
push esi
mov ebx, esi
call fcn.00435e00
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4a2fa0
pop ebp
test edi, edi
pop edi
jne 0x4a2fe3
test ebx, ebx
je 0x4a2fe3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004bf240
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4a3105
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4a321d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a321d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004d0e37
mov esi, eax
test esi, esi
je 0x4a321d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4a321d
mov ecx, esi
call fcn.004a3090
cmp edi, eax
jge 0x4a321d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4a31a3
mov dword [esp + 0x34], 1
jmp 0x4a31fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4a321d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004a2620
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4a99a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x562ae8]
xor edx, edx
cmp eax, edx
jne 0x4a99c6
xor eax, eax
mov byte [eax + 0x5629e8], al
inc eax
cmp eax, 0x100
jl 0x4a99ae
mov dword [0x562ae8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5629e8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a9a57
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a9a2a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a99f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a9ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a9b23
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a9b0a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b04e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dec0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004b0e00
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x501f24
call fcn.004cf14d
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4b0573
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cf14d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4b056c
push 0
mov ecx, eax
call fcn.004a75e0
mov dword [esi + 0xc], eax
jmp 0x4b0575
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b0575
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4d17da
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d1812
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.004cf867
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cf83f
jmp 0x4d181e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d2ecc
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 0x4d2f0e
call fcn.004d8bc9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d2f0e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d2f05
xor eax, eax
jmp 0x4d2f16
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d2f1c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d90f9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d9127
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d9145
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d905f
jmp 0x4d9145
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d9145
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d905f
test edi, edi
mov eax, edi
jne 0x4d912f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xcf7270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x870000]
push edi
or ebp, 0xffffffff
jmp 0xcf7292
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xcf7299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcf7288
mov eax, 1
add ebx, ebx
jne 0xcf72ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xcf72bc
jne 0xcf72cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xcf72cc
dec eax
add ebx, ebx
jne 0xcf72c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xcf72a0
xor ecx, ecx
sub eax, 3
jb 0xcf72e4
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xcf7356
sar eax, 1
mov ebp, eax
jmp 0xcf72ef
add ebx, ebx
jne 0xcf72ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xcf72fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xcf7320
inc ecx
add ebx, ebx
jne 0xcf730c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xcf7301
jne 0xcf731d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xcf7301
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xcf7340
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xcf7331
jmp 0xcf728e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xcf7340
add edi, ecx
jmp 0xcf728e
pop esi
mov edi, esi
mov ecx, 0x68e4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xcf735e
cmp byte [edi], 0x1a
jne 0xcf735e
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 eax, ebx
loop 0xcf7363
lea edi, [esi + 0x8f5000]
mov eax, dword [edi]
or eax, eax
je 0xcf73d2
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x901738]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x90179c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xcf7390
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9017a0]
or eax, eax
je 0xcf73cc
mov dword [ebx], eax
add ebx, 4
jmp 0xcf73ad
call dword [esi + 0x9017a4]
popal
jmp 0x6b777c
Function at 0x404307
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x411008]
je 0x404322
inc edi
cmp edi, 0x17
jb 0x404313
cmp edi, 0x17
jae 0x4044a2
push ebp
push 3
call fcn.00406390
cmp eax, 1
pop ecx
je 0x40446e
push 3
call fcn.00406390
test eax, eax
pop ecx
jne 0x404356
cmp dword [section..data], 1
je 0x40446e
cmp ebx, 0xfc
je 0x4044a1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x411d78
push ebp
call fcn.0040632b
add esp, 0xc
test eax, eax
je 0x40438c
push esi
push esi
push esi
push esi
push esi
call fcn.00405885
add esp, 0x14
push 0x104
mov esi, 0x411d91
push esi
push 0
mov byte [0x411e95], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4043d0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040632b
add esp, 0xc
test eax, eax
je 0x4043d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00405885
add esp, 0x14
push esi
call fcn.004062a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404415
push esi
call fcn.004062a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41208c
push 0x40b744
sub ecx, eax
push ecx
push eax
call fcn.004061e2
add esp, 0x14
test eax, eax
je 0x404415
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00405885
add esp, 0x14
jmp 0x404417
xor esi, esi
push 0x40b740
push ebx
push ebp
call fcn.00406171
add esp, 0xc
test eax, eax
je 0x404437
push esi
push esi
push esi
push esi
push esi
call fcn.00405885
add esp, 0x14
push dword [edi*8 + 0x41100c]
push ebx
push ebp
call fcn.00406171
add esp, 0xc
test eax, eax
je 0x404459
push esi
push esi
push esi
push esi
push esi
call fcn.00405885
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00405fb4
add esp, 0xc
jmp 0x4044a1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4044a1
cmp ebp, 0xffffffff
je 0x4044a1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41100c]
push dword [esi]
call fcn.004062a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x405fb4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404e5f
xor ebx, ebx
cmp dword [0x412338], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40608a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40616a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40616a
push eax
call fcn.00404df1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x412338], eax
call esi
push eax
call fcn.00404df1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41233c], eax
call esi
push eax
call fcn.00404df1
mov dword [0x412340], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00404094
test eax, eax
pop ecx
pop ecx
je 0x406058
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405885
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40608a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404df1
cmp eax, ebx
pop ecx
mov dword [0x412348], eax
je 0x40608a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404df1
pop ecx
mov dword [0x412344], eax
mov eax, dword [0x412344]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40610f
cmp dword [0x412348], ecx
je 0x40610f
push eax
call fcn.00404e68
push dword [0x412348]
mov esi, eax
call fcn.00404e68
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40610f
cmp edi, ebx
je 0x40610f
call esi
cmp eax, ebx
je 0x4060dc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4060dc
test byte [ebp - 0x18], 1
jne 0x40610f
lea eax, [ebp - 0x10]
push eax
call fcn.004040cb
test eax, eax
pop ecx
je 0x4060f7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00405885
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x406106
or dword [ebp + 0x10], 0x200000
jmp 0x40614a
or dword [ebp + 0x10], 0x40000
jmp 0x40614a
mov eax, dword [0x41233c]
cmp eax, dword [ebp - 8]
je 0x40614a
push eax
call fcn.00404e68
cmp eax, ebx
pop ecx
je 0x40614a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40614a
mov eax, dword [0x412340]
cmp eax, dword [ebp - 8]
je 0x40614a
push eax
call fcn.00404e68
cmp eax, ebx
pop ecx
je 0x40614a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x412338]
call fcn.00404e68
cmp eax, ebx
pop ecx
je 0x40616a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40616c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407edd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411a68]
jne 0x407ee7
repz ret
jmp fcn.00409475
Function at 0x401370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401389
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4013c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4013c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4013c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013b0
cmp esi, eax
jb 0x4013ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401720
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x401740
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x401756
push 0x80004005
call fcn.004011a0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x401780
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x401798
push 0x80004005
call fcn.004011a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4017a5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8