joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c41
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a66d0]
jne 0x404c4b
repz ret
jmp fcn.00408c8f

Function at 0x409eed
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.00404d3c
and dword [ebp - 4], 0
cmp dword [0x4b99d8], 0
mov ebx, eax
jne 0x409f9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a04f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a04f
push eax
call fcn.00404cca
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b99d8], eax
call esi
push eax
call fcn.00404cca
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b99dc], eax
call esi
push eax
call fcn.00404cca
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b99e0], eax
call esi
push eax
call fcn.00404cca
pop ecx
mov dword [0x4b99e8], eax
test eax, eax
je 0x409f9e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cca
pop ecx
mov dword [0x4b99e4], eax
mov eax, dword [0x4b99e4]
cmp eax, ebx
je 0x409ff6
cmp dword [0x4b99e8], ebx
je 0x409ff6
push eax
call fcn.00404d45
push dword [0x4b99e8]
mov esi, eax
call fcn.00404d45
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409ff6
test edi, edi
je 0x409ff6
call esi
test eax, eax
je 0x409fed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409fed
test byte [ebp - 0xc], 1
jne 0x409ff6
or dword [ebp + 0x10], 0x200000
jmp 0x40a02f
mov eax, dword [0x4b99dc]
cmp eax, ebx
je 0x40a02f
push eax
call fcn.00404d45
pop ecx
test eax, eax
je 0x40a02f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a02f
mov eax, dword [0x4b99e0]
cmp eax, ebx
je 0x40a02f
push eax
call fcn.00404d45
pop ecx
test eax, eax
je 0x40a02f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b99d8]
call fcn.00404d45
pop ecx
test eax, eax
je 0x40a04f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a051
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 0xc
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0040d360
add esp, 0xc
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x4024e6
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
lea edi, [ebp - 0x224]
xor al, al
mov ecx, 0x208
rep stosb byte es:[edi], al
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0x2c]
shr ecx, 1
add ecx, 1
cmp ecx, 0x103
jbe 0x40247e
mov dword [ebp - 0x10], 0x103
jmp 0x40248d
mov edx, dword [ebp - 4]
movzx eax, word [edx + 0x2c]
shr eax, 1
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, eax
call fcn.00402e30
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x1c], 0x65616c6b
jne 0x4024d9
cmp dword [ebp - 0x18], 0x24e4
jne 0x4024d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
jmp 0x4024e8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
jmp 0x402440
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4024f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402517
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x402517
xor eax, eax
jmp 0x402647
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0x4550
je 0x402535
xor eax, eax
jmp 0x402647
mov eax, dword [ebp - 0x18]
add eax, 0x18
mov dword [ebp - 0x20], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0x60]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x40259d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x18]
jae 0x4025de
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.00402f30
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp + 0xc]
jne 0x4025dc
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp + 0x10]
jne 0x4025dc
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
mov dword [ebp - 0x1c], ecx
jmp 0x4025de
jmp 0x402582
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x18]
jne 0x4025ed
xor eax, eax
jmp 0x402647
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x64]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004023d0
add esp, 0xc
movzx ecx, al
test ecx, ecx
je 0x402644
cmp dword [ebp + 0x14], 0
je 0x402644
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x402e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x402e51
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [edi]
xor dl, dl
movzx esi, word [edi]
mov cl, 0xfc
mov byte [esp + 0x17], al
mov al, 0xa6
mov byte [esp + 0x24], 0xc6
mov bl, 0xf8
test si, si
je 0x402ef5
mov ecx, 0xf8a6c6fc
mov dword [esp + 0x1c], 0x659eb25f
mov eax, esi
mov ebp, ecx
mov edx, 0x659eb25f
mov dword [esp + 0x18], eax
nop word [eax + eax]
xor esi, esi
movzx eax, ax
and ecx, 0x1ffffff
lea edi, [edi + 2]
shld esi, ecx, 7
shrd ebp, edx, 0x19
shl ecx, 7
shr edx, 0x19
or ecx, ebp
or esi, edx
cdq
xor ecx, eax
xor edx, esi
mov ebx, ecx
mov eax, edx
shrd ebx, eax, 0x18
mov eax, edx
mov esi, ecx
shrd esi, eax, 0x10
mov eax, edx
mov ebp, ecx
mov dword [esp + 0x28], esi
mov esi, ecx
shrd esi, eax, 8
mov eax, dword [esp + 0x18]
mov byte [esp + 0x16], al
movzx eax, word [edi]
mov dword [esp + 0x24], esi
mov esi, eax
mov dword [esp + 0x18], esi
test ax, ax
jne 0x402e90
mov eax, dword [esp + 0x28]
mov dl, byte [esp + 0x16]
mov dh, byte [esp + 0x17]
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov byte [esp + 0x2a], cl
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x28], dh
mov byte [esp + 0x29], dl
mov byte [esp + 0x2c], al
mov byte [esp + 0x2b], cl
mov eax, dword [esp + 0x28]
mov byte [esp + 0x2d], bl
mov edx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x402f4f
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [edi]
xor bh, bh
mov byte [esp + 0xf], bl
mov cl, 0xfc
mov byte [esp + 0x10], 0xc6
mov al, 0xf8
mov byte [esp + 0x14], 0xa6
test bl, bl
je 0x402fdb
mov ecx, 0xf8a6c6fc
mov dword [esp + 0x24], 0x659eb25f
mov eax, ecx
mov edx, 0x659eb25f
nop dword [eax]
xor esi, esi
lea edi, [edi + 1]
shrd eax, edx, 0x19
and ecx, 0x1ffffff
mov bh, bl
shld esi, ecx, 7
shr edx, 0x19
or esi, edx
shl ecx, 7
or ecx, eax
movsx eax, bl
mov bl, byte [edi]
cdq
xor ecx, eax
xor edx, esi
mov eax, edx
mov esi, ecx
shrd esi, eax, 0x18
mov eax, edx
mov dword [esp + 0x18], esi
mov esi, ecx
shrd esi, eax, 0x10
mov eax, edx
mov dword [esp + 0x14], esi
mov esi, ecx
shrd esi, eax, 8
mov eax, ecx
mov dword [esp + 0x10], esi
test bl, bl
jne 0x402f80
mov bl, byte [esp + 0xf]
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov byte [esp + 0x1a], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x14]
pop edi
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bh
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov edx, 0x78
push edi
push 0xd2fd
push 0x606576c
lea ecx, [edx - 0x77]
call fcn.00402800
mov ebp, dword [esp + 0x34]
add esp, 8
push ebp
call eax
xor ecx, ecx
mov edx, 2
lea esi, [eax + 0x32]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b1a0
add esp, 4
lea ecx, [esi + esi]
mov ebx, eax
mov edx, 0x19
xor al, al
mov edi, ebx
rep stosb byte es:[edi], al
push 0xd318
push 0x4d86576c
lea ecx, [edx - 0x18]
call fcn.00402800
add esp, 8
push ebp
push ebx
call eax
mov byte [esp + 0x11], 7
mov byte [esp + 0x12], 0x2a
mov byte [esp + 0x13], 0x6f
mov byte [esp + 0x14], 0x2a
mov byte [esp + 0x15], 4
mov byte [esp + 0x16], 0x2a
mov byte [esp + 0x17], 0x6d
mov byte [esp + 0x18], 0x2a
mov byte [esp + 0x19], 0x71
mov byte [esp + 0x1a], 0x2a
mov byte [esp + 0x1b], 2
mov byte [esp + 0x1c], 0x2a
mov byte [esp + 0x1d], 0x12
mov byte [esp + 0x1e], 0x2a
mov byte [esp + 0x1f], 0x16
mov byte [esp + 0x20], 0x2a
mov byte [esp + 0x21], 0x7d
mov byte [esp + 0x22], 0x2a
mov byte [esp + 0x23], 0x14
mov byte [esp + 0x24], 0x2a
mov byte [esp + 0x25], 0x2a
mov byte [esp + 0x26], 0x2a
mov al, byte [esp + 0x11]
mov byte [esp + 0x27], 0
cmp byte [esp + 0x27], 0
jne 0x404fea
xor esi, esi
lea edi, [esi + 0x7f]
mov al, byte [esp + esi + 0x11]
mov ecx, 0x2a
movzx eax, al
sub ecx, eax
mov eax, ecx
shl eax, 6
sub eax, ecx
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [esp + esi + 0x11], dl
inc esi
cmp esi, 0x16
jb 0x404fc2
mov edx, 0x73
push 0xd31c
push 0xb06576c
lea ecx, [edx - 0x72]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x11]
push ecx
push ebx
call eax
mov edx, 0x5b
push 0xde3b
push 0x9284574d
lea ecx, [edx - 0x5a]
call fcn.00402800
add esp, 8
push ebx
push ebp
call eax
test eax, eax
jne 0x40504a
push 0xde3b
push 0x9284574d
lea edx, [eax + 0x5b]
lea ecx, [eax + 1]
call fcn.00402800
add esp, 8
push ebx
push ebp
call eax
push ebx
call fcn.0040b1c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x405480
Capabilities:
Contain obfuscated stackstrings
Get process heap force flags

Disassembly:
sub esp, 0x1c
mov eax, dword fs:[0x18]
mov edx, 0x10
push ebx
mov dword [esp + 8], 0
push ebp
mov eax, dword [eax + 0x30]
push esi
push edi
mov dword [esp + 0x18], ecx
lea ecx, [edx - 9]
mov eax, dword [eax + 0x10]
push 0x21fe
push 0x5d175743
mov esi, dword [eax + 0x44]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push esi
call eax
mov ecx, dword [esp + 0x14]
mov ebp, eax
cmp ecx, 3
jl 0x405595
xor edi, edi
test ecx, ecx
jle 0x405595
lea ebx, [edi + 0x7f]
mov byte [esp + 0x1f], 0x13
mov byte [esp + 0x20], 0x45
mov byte [esp + 0x21], 1
mov byte [esp + 0x22], 0x45
mov byte [esp + 0x23], 0x3c
mov byte [esp + 0x24], 0x45
mov byte [esp + 0x25], 0x35
mov byte [esp + 0x26], 0x45
mov byte [esp + 0x27], 0x18
mov byte [esp + 0x28], 0x45
mov byte [esp + 0x29], 0x45
mov byte [esp + 0x2a], 0x45
mov al, byte [esp + 0x1f]
mov byte [esp + 0x2b], 0
cmp byte [esp + 0x2b], 0
jne 0x405554
xor ecx, ecx
nop
mov al, byte [esp + ecx + 0x1f]
mov edx, 0x45
movzx eax, al
sub edx, eax
imul eax, edx, 0x27
cdq
idiv ebx
lea eax, [edx + 0x7f]
cdq
idiv ebx
mov byte [esp + ecx + 0x1f], dl
inc ecx
cmp ecx, 0xc
jb 0x405530
lea ebx, [edi*4]
mov edx, 0x77
add ebx, ebp
push 0x8f84
push 0x9c3e576c
lea ecx, [edx - 0x76]
mov esi, dword [ebx]
call fcn.00402800
add esp, 8
lea ecx, [esp + 0x1f]
push ecx
push esi
call eax
test eax, eax
je 0x40559f
inc edi
mov ebx, 0x7f
cmp edi, dword [esp + 0x14]
jl 0x4054e0
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebp, dword [esp + 0x18]
mov byte [ebp + 0x30], 1
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 5]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b1a0
add esp, 4
mov dword [ebp + 0x2c], eax
test eax, eax
je 0x405595
mov edi, eax
lea ecx, [esi + esi]
mov edx, 0x19
xor al, al
rep stosb byte es:[edi], al
mov esi, dword [ebx + 4]
lea ecx, [edx - 0x18]
mov edi, dword [ebp + 0x2c]
push 0xd318
push 0x4d86576c
call fcn.00402800
add esp, 8
push esi
push edi
call eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret
Function at 0x405f20
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
nop dword [eax]
mov eax, dword [0x455ee4]
test eax, eax
jne 0x405f6d
push 0xc8
call fcn.0040b1a0
add esp, 4
test eax, eax
je 0x405f66
mov word [eax], 0x101
mov dword [eax + 4], 0x1e
mov dword [eax + 8], 5
mov dword [eax + 0x10], 3
jmp 0x405f68
xor eax, eax
mov dword [0x455ee4], eax
test byte [eax + 0x10], 1
je 0x405f7f
cmp dword [ebp + 0x98], 1
sete cl
jmp 0x405f81
mov cl, 1
mov eax, dword [eax + 0x10]
shr eax, 1
test al, 1
je 0x405f96
cmp dword [ebp + 0x9c], 2
sete al
jmp 0x405f98
mov al, 1
test cl, cl
je 0x405fa0
test al, al
jne 0x405fc3
mov edx, 0xb
push 0xf06e
push 0xc50b7053
lea ecx, [edx - 0xa]
call fcn.00402800
add esp, 8
push 0xa
call eax
jmp 0x405f30
xor eax, eax
mov ecx, dword [eax + 0x413638]
cmp ecx, 0xffffffff
je 0x405fd8
test ecx, ecx
jne 0x40606a
add eax, 0x110
cmp eax, 0x42680
jl 0x405fc5
mov esi, dword [0x455c80]
mov eax, dword [0x455c84]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebx, [esi + eax*4]
cmp esi, ebx
je 0x40602b
nop dword [eax]
push 0
push dword [esi]
call edi
mov edx, 0xb
push 0xf06e
push 0xc50b7053
lea ecx, [edx - 0xa]
call fcn.00402800
add esp, 8
push 0xa
call eax
add esi, 4
cmp esi, ebx
jne 0x406000
push 0
push dword [ebp + 0x20]
call edi
push 0
push dword [ebp + 0x24]
call edi
push 0
push dword [ebp + 0x28]
call edi
mov esi, dword [ebp + 0x1c]
mov edx, 0x6e
push 0xace1
push 0x4fe26543
lea ecx, [edx - 0x6d]
call fcn.00402800
add esp, 8
push esi
call eax
pop edi
mov al, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 0xb
push 0xf06e
push 0xc50b7053
lea ecx, [edx - 0xa]
call fcn.00402800
add esp, 8
push 0x64
call eax
jmp 0x405fc3
Function at 0x40ab80
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x455ee0]
push ebp
mov ebp, ecx
test eax, eax
jne 0x40abee
push edi
push 0x427
call fcn.0040b1a0
mov edi, eax
add esp, 4
mov dword [0x455ee0], edi
test edi, edi
jne 0x40abab
pop edi
pop ebp
pop ecx
ret
push ebx
push esi
mov ebx, 0x40e0f0
mov dword [esp + 0x10], 0x31
xor esi, esi
sub ebx, edi
nop
mov eax, esi
lea ecx, [edi + esi]
xor edx, edx
inc esi
div dword [esp + 0x10]
mov al, byte [edx + 0x40e0b0]
xor al, byte [ebx + ecx]
mov byte [ecx], al
cmp esi, 0x427
jb 0x40abc0
pop esi
pop ebx
mov eax, edi
mov dword [ebp + 0xc4], 0x427
pop edi
pop ebp
pop ecx
ret
Function at 0x40b1f0
Capabilities:
Check os version
Get number of processors

Disassembly:
sub esp, 0x11c
push ebx
push esi
push edi
push 0x11c
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0040d360
mov eax, dword fs:[0x18]
lea edi, [esp + 0x2c]
mov ecx, 0xff
xor esi, esi
add esp, 0xc
mov ebx, dword [eax + 0x30]
mov eax, dword [ebx + 0xa4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xa8]
mov dword [esp + 0x14], eax
movzx eax, word [ebx + 0xac]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xb0]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xaf]
mov word [esp + 0x120], ax
movzx eax, word [ebx + 0xae]
and ax, cx
mov ecx, 0x100
mov word [esp + 0x122], ax
movzx eax, word [0x7ffe02d0]
mov word [esp + 0x124], ax
mov al, byte [0x7ffe0264]
mov byte [esp + 0x126], al
xor al, al
mov byte [esp + 0x127], 0
rep stosb byte es:[edi], al
cmp word [ebx + 0x1f0], si
je 0x40b30d
mov edi, dword [ebx + 0x1f4]
test edi, edi
je 0x40b30d
cmp word [edi], si
je 0x40b30d
push 0xd2fd
push 0x606576c
lea edx, [esi + 0x78]
lea ecx, [esi + 1]
call fcn.00402800
add esp, 8
push edi
call eax
cmp eax, 0x7f
jae 0x40b2f6
mov esi, dword [ebx + 0x1f4]
mov edx, 0x78
push 0xd2fd
push 0x606576c
lea ecx, [edx - 0x77]
call fcn.00402800
add esp, 8
push esi
call eax
mov esi, eax
jmp 0x40b2fb
mov esi, 0x7f
push esi
push dword [ebx + 0x1f4]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
xor eax, eax
mov word [esp + esi*2 + 0x20], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
cmp eax, 5
jne 0x40b32b
cmp ecx, 1
jb 0x40b32d
jmp 0x40b38b
jae 0x40b389
mov eax, dword [0x455ee4]
test eax, eax
jne 0x40b37b
push 0xc8
call fcn.0040b1a0
add esp, 4
test eax, eax
je 0x40b374
mov word [eax], 0x101
mov dword [eax + 4], 0x1e
mov dword [eax + 8], 5
mov dword [eax + 0x10], 3
mov dword [0x455ee4], eax
mov dword [eax + 0xc], 0
add esp, 0x11c
ret
xor eax, eax
mov dword [0x455ee4], eax
mov dword [eax + 0xc], 0
add esp, 0x11c
ret
jne 0x40b3bf
cmp ecx, 1
jne 0x40b3a3
call fcn.00402210
mov dword [eax + 0xc], 0x33
add esp, 0x11c
ret
cmp ecx, 2
jne 0x40b472
call fcn.00402210
mov dword [eax + 0xc], 0x34
add esp, 0x11c
ret
cmp eax, 6
jne 0x40b427
mov eax, dword [esp + 8]
test eax, eax
jne 0x40b3df
call fcn.00402210
mov dword [eax + 0xc], 0x3c
add esp, 0x11c
ret
cmp eax, 1
jne 0x40b3f7
call fcn.00402210
mov dword [eax + 0xc], 0x3d
add esp, 0x11c
ret
cmp eax, 2
jne 0x40b40f
call fcn.00402210
mov dword [eax + 0xc], 0x3e
add esp, 0x11c
ret
cmp eax, 3
jne 0x40b472
call fcn.00402210
mov dword [eax + 0xc], 0x3f
add esp, 0x11c
ret
cmp eax, 0xa
jne 0x40b464
mov eax, dword [esp + 8]
test eax, eax
jne 0x40b466
cmp dword [esp + 0xc], 0x55ec
jae 0x40b451
call fcn.00402210
mov dword [eax + 0xc], 0x64
add esp, 0x11c
ret
call fcn.00402210
mov dword [eax + 0xc], 0x6e
add esp, 0x11c
ret
jbe 0x40b472
call fcn.00402210
mov dword [eax + 0xc], 0x7fffffff
add esp, 0x11c
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x808004]
jne 0x40100a
repz ret
jmp fcn.00401210

Function at 0x403f6b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x808004]
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.0040236c
and dword [ebp - 0x14], 0
cmp dword [0x80a6ac], 0
mov dword [ebp - 0x18], eax
jne 0x40401e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4040c6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4040c6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x80a6ac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x80a6b0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x80a6b4], eax
call edi
push eax
call esi
mov dword [0x80a6bc], eax
test eax, eax
je 0x40401e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x80a6b8], eax
mov eax, dword [0x80a6b8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404077
cmp dword [0x80a6bc], ecx
je 0x404077
push eax
call esi
push dword [0x80a6bc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404077
test ebx, ebx
je 0x404077
call edi
test eax, eax
je 0x40406e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40406e
test byte [ebp - 8], 1
jne 0x404077
or dword [ebp + 0x10], 0x200000
jmp 0x4040aa
mov eax, dword [0x80a6b0]
cmp eax, dword [ebp - 0x18]
je 0x4040aa
push eax
call esi
test eax, eax
je 0x4040aa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4040aa
mov eax, dword [0x80a6b4]
cmp eax, dword [ebp - 0x18]
je 0x4040aa
push eax
call esi
test eax, eax
je 0x4040aa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x80a6ac]
call esi
test eax, eax
je 0x4040c6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4040c8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x405a80
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x808b30]
sub esp, 0x10
push esi
mov esi, dword [0x84fa58]
push edi
mov edi, dword [0x84fd34]
push eax
call fcn.00405980
add esp, 4
cmp dword [0x84fd34], 0x2f
jne 0x405add
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.004059d0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405d30
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x84fd34]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x405d52
push 0
push 0
call edi
mov eax, dword [0x84fd34]
cmp esi, 0x845013
jne 0x405d69
mov eax, dword [0x809950]
add eax, 0xa231
mov dword [0x84fd34], eax
cmp eax, 0x141
jne 0x405d84
mov dword [0x80abd0], 0xec58acac
mov dword [0x80abd4], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x405d40
call fcn.00405af0
pop edi
xor eax, eax
pop esi
ret 0x10