joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e52b
Capabilities:
Get graphical window text

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

Function at 0x46fc21
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 0x46fc63
call fcn.00475860
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46fc63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46fc5a
xor eax, eax
jmp 0x46fc6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046fc71
pop edi
pop esi
pop ebx
ret 4

Function at 0x475d90
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 0x475dbe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475ddc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475cf6
jmp 0x475ddc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475ddc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475cf6
test edi, edi
mov eax, edi
jne 0x475dc6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x10122280
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
Function at 0x401a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ebc0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x43f064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
movsd qword [esi + 0x50], xmm0
push 0x1c
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
call fcn.0040bbfb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi + 0x58], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4084a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x408588
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x408577
jg 0x4084e0
test edx, edx
je 0x408577
nop dword [eax]
call fcn.0040a100
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x408534
jg 0x4084f7
test esi, esi
je 0x408534
cmp ebx, eax
jg 0x408507
jl 0x408501
cmp edi, esi
jae 0x408507
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040d070
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40855b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x408571
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4084e0
jl 0x408571
test edi, edi
jne 0x4084e0
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x4085b0
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x4085b6
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x40861e
jg 0x4085cb
test esi, esi
je 0x40861e
test edx, edx
jl 0x408619
jg 0x4085d5
test eax, eax
je 0x408619
cmp edi, edx
jg 0x4085e9
jl 0x4085df
cmp esi, eax
jae 0x4085e9
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.0040d070
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x408621
mov ebx, dword [ebp + 8]
jmp 0x40862b
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x408644
jg 0x40862b
test esi, esi
je 0x408644
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x408644
push eax
push esi
push 1
push ebx
call fcn.00418e0b
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x408692
jl 0x408685
test ecx, ecx
jne 0x408692
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x408752
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.0040a120
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4086fe
jg 0x4086bd
test esi, esi
je 0x4086fe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4086d5
mov eax, dword [esp + 0x10]
jl 0x4086cf
cmp eax, esi
jae 0x4086d5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040d070
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40871f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40873b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4086a4
jl 0x40873b
test ecx, ecx
jne 0x4086a4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x408796
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x408796
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040d070
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x408807
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4087bc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4087f2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0041941f
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x408807
cmp edi, eax
ja 0x4087d0
test edi, edi
je 0x408807
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0041941f
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43f064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x408bb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbed
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bec
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x408bec
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbed
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x408ce9
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x408c14
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x408c47
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0041864b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbed
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x408ca9
sub eax, 1
je 0x408ca9
sub eax, 2
jne 0x408ce9
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0041864b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbed
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x408cc6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00418e0b
add esp, 0x10
cmp edi, eax
jne 0x408ce9
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbed
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbed
mov esp, ebp
pop ebp
ret 4
Function at 0x409e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43f064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x409eec
cmp byte [esi + 0x3d], 0
je 0x409eec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x409eda
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x409ea2
sub eax, 1
je 0x409ea6
sub eax, 2
jne 0x409eda
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbed
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x409ec3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00418e0b
add esp, 0x10
cmp edi, eax
jne 0x409eda
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbed
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0040bbed
mov esp, ebp
pop ebp
ret

Function at 0x40c84e
Capabilities:
Parse pe header

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

Function at 0x4209eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420861

Function at 0x42d890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42d8bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42d8bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4020a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4193c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x422a90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x14
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 0
mov edx, dword [str.SoftwareSynapticsSynTPEnh]
push edx
push 0x80000002
lea ecx, [ebp - 0x40]
call fcn.00404c70
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [str.ExtraHelperCapabilitiesFlags]
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00404710
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], edx
push 0
push str.SynTPEnhWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
push 0x8000
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call fcn.00406610
add esp, 8
test eax, eax
jne 0x402176
lea ecx, [ebp - 0x24]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x4024f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x10]
push eax
call fcn.00409871
add esp, 4
mov ecx, dword [ebp - 0x10]
call fcn.004021c0
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404d60
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x402390
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c40
call fcn.004099a0
mov eax, dword [0x422a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c28], ecx
mov dword [ebp - 0x1c2c], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1c24], eax
cmp dword [ebp - 0x1c24], 0
je 0x4024cd
lea ecx, [ebp - 0x1c40]
push ecx
push 4
lea edx, [ebp - 0x1c30]
push edx
mov eax, dword [ebp - 0x1c24]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4024cd
push 0x1c1c
push 0
lea ecx, [ebp - 0x1c20]
push ecx
call fcn.00409670
add esp, 0xc
mov dword [ebp - 0x1c20], 0xf
mov edx, dword [0x41a364]
mov dword [ebp - 0x18], edx
mov eax, dword [0x41a368]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x41a36c]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x41a370]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x1c28]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
push 0x104
lea edx, [ebp - 0x1c14]
push edx
mov eax, dword [ebp - 0x1c30]
push eax
mov ecx, dword [ebp - 0x1c24]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4024c0
push 0xc
push 0
lea edx, [ebp - 0x1c3c]
push edx
call fcn.00409670
add esp, 0xc
mov dword [ebp - 0x1c38], 0x1c1c
lea eax, [ebp - 0x1c20]
mov dword [ebp - 0x1c34], eax
lea ecx, [ebp - 0x1c3c]
push ecx
mov edx, dword [ebp - 0x1c28]
mov eax, dword [edx + 4]
push eax
push 0x4a
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1c2c], 1
mov edx, dword [ebp - 0x1c24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004079d4
mov esp, ebp
pop ebp
ret 8

Function at 0x404710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
test esi, esi
je 0x404722
mov ebx, dword [esi]
cmp dword [ebp + 8], 0
je 0x4047a2
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4047a2
mov eax, dword [ecx + 8]
test eax, eax
je 0x4047ad
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x40475a
lea edx, [ebp + 0x10]
push edx
push 0x20019
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4047ad
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push ecx
push edi
lea ecx, [ebp - 4]
push ecx
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], 0
mov dword [ebp + 8], eax
je 0x40478b
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4047ad
mov eax, dword [ebp - 4]
cmp eax, 4
je 0x4047b3
cmp eax, 3
jne 0x4047a2
cmp dword [ebp + 0xc], 4
je 0x4047b3
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x4047a2
mov dword [edi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4047d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
push edi
test ebx, ebx
je 0x4048e5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4048e5
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4048e5
mov eax, dword [ecx + 8]
test eax, eax
je 0x4048f3
mov ecx, dword [edi]
mov edi, dword [ebp + 0x18]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
test edi, edi
je 0x404837
lea ecx, [ebp + 8]
push ecx
push 0x20019
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4048f0
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push esi
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0x18], eax
test edi, edi
je 0x404859
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
jne 0x4048d0
mov ebx, dword [ebp - 4]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406ae7
mov edi, eax
add esp, 4
test edi, edi
je 0x4048cd
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, esi
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x404894
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4048b0
mov eax, dword [ebp + 0x10]
sub ecx, edx
sar ecx, 1
push edi
mov dword [eax], ecx
call fcn.00406b63
add esp, 4
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x18], 0
jne 0x4048f0
cmp ecx, 1
je 0x404932
cmp ecx, 7
je 0x404932
cmp ecx, 2
je 0x404932
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4048e5
mov edx, ecx
lea ebx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x404900
sub edx, ebx
sar edx, 1
lea edx, [edx*2 + 2]
cmp edx, dword [ebp - 4]
ja 0x4048e5
sub esi, ecx
lea ecx, [ecx]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x404920
mov dword [edi], edx
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4056e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40588b
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405700
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x40588b
push 0x41a870
push esi
call fcn.00409bd7
add esp, 8
test eax, eax
je 0x40588b
push ebx
push edi
push dword [ebp + 8]
mov dword [ebp + 0xc], 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40587b
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40587b
push str.GetProcessImageFileNameW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405797
push 0x104
lea ecx, [ebp - 0x618]
push ecx
push edi
call eax
xor ecx, ecx
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [ebp + 0xc], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp + 0xc], 0
je 0x40587b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x410]
sub ecx, esi
jmp 0x4057c0
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4057c0
lea eax, [ebp - 0x410]
push eax
call fcn.0040a1fa
lea eax, [ebp - 0x410]
push 0x41a870
push eax
call fcn.00409bd7
lea esi, [eax + 4]
lea eax, [ebp - 0x618]
push eax
call fcn.0040a1fa
lea eax, [ebp - 0x618]
push esi
push eax
call fcn.00409bd7
add esp, 0x18
test eax, eax
je 0x405882
xor ecx, ecx
mov word [eax - 2], cx
xor eax, eax
mov word [esi - 2], ax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.00409670
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x103
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x405882
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x618]
push ecx
call fcn.00409ef2
add esp, 8
test eax, eax
jne 0x405882
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret