joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c25f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4789e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c29f
cmp byte [ebx], 0xa
jne 0x41c29f
or byte [edi + eax + 0x28], 4
jmp 0x41c2a4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41c3a3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c386
inc eax
cmp dl, 0xd
je 0x41c2d0
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c2f6
cmp eax, ecx
jae 0x41c304
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41c2b8
jmp 0x41c3a3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c381
cmp dword [ebp - 0x10], 0
je 0x41c381
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4789e0]
test byte [eax + edi + 0x28], 0x48
je 0x41c35b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c346
mov byte [esi], dl
jmp 0x41c357
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4789e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c3a3
cmp byte [ebp - 1], 0xa
jne 0x41c36a
cmp esi, ebx
jne 0x41c36a
mov byte [esi], 0xa
jmp 0x41c3a2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cde5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c3a3
mov byte [esi], 0xd
jmp 0x41c3a2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4789e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c3a0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c3a3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c3ac
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4789e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c3f2
cmp word [ebx], dx
jne 0x41c3f2
or byte [eax + edi + 0x28], 4
jmp 0x41c3f7
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41c55a
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41c53a
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41c438
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c46e
cmp eax, edx
jae 0x41c47c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41c413
jmp 0x41c55a
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c535
cmp dword [ebp - 0x18], 0
je 0x41c535
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4789e0]
test byte [eax + edi + 0x28], 0x48
je 0x41c50b
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41c4cf
mov word [esi], cx
jmp 0x41c506
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4789e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4789e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4789e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41c55a
pop eax
cmp word [ebp - 4], ax
jne 0x41c51b
cmp esi, ebx
jne 0x41c51b
mov word [esi], ax
jmp 0x41c557
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cde5
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41c55a
push 0xd
pop eax
jmp 0x41c516
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4789e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41c554
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41c55a
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4217a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4217cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4217cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401e40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
sal byte [ebp - 0x48], 0x56
lea eax, [ebp + 0x42]
push 0x78
enter 0xffffffffffffe856, 0xffffffffffffff89
push 0x4d8b0000
or byte [ebx + 0x40c0c815], cl
add byte [eax + 0x51], dl
add edx, 0x40
push 0x9b48d4b9
push edx
call dword [sym.imp.WSOCK32.dll_select]
mov eax, dword [0x419aac]
add esp, 0xffffffd4
push ss
ror byte [edi], 0xf
push eax
push 0xb240d211
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push esi
call [edx]
jo 0x401eac
ret 0x6840
inc eax
int1
pop esi
nop
nop
nop
nop
adc edx, dword [eax - 0x6f6f6a70]
nop
push eax
jne 0x401e63
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 6]
push edi
mov ecx, dword [esi + 0x8408914]
call fcn.00408e00
mov dword [0x410ba0], eax
mov dword [0xb5410bbd], edx
mov ebx, eax
mov eax, dword [esi + 0x14]
test eax, eax
mov edi, edx
jne 0x401f0d
mov ecx, dword [esi - 0x4d]
push 0
push 0
push ecx
call fcn.00408c70
mov dword [edx + 0xd0c08f2], ebp
mov dword [esi + 0x8b3], edi
sbb eax, dword [esi + 0x18]
add bl, cl
add byte [eax], al
mov eax, edx
in al, dx
pop ss
inc ecx
add byte [ecx + 0x60f11456], cl
add bl, byte [eax + 0x74c085b0]
adc ah, byte [ecx + 0x110270]
mov ecx, edx
add ecx, eax
mov dword [eax - 0x74d214f8], ebp
je 0x401f48
mov esi, dword [eax + edi + 8]
add byte [eax], al
popal
sub al, dl
inc eax
add byte [ebx + 0x40d02c15], cl
add byte [ebx], al
test al, 0x8b
push 0x83c
or byte [eax], al
add byte [ecx + 0x28], ah
rol byte [eax], 1
mov edx, dword [0x40d02c]
add ebp, dword [eax + 0x83c688b]
add byte [eax], al
adc eax, edx
cmp edi, eax
jg 0x5f401fcb
or bh, byte [eax + 0x2e0f583b]
fild dword [eax]
add byte [ebx], bh
mov edx, dword [esi + 0x3f]
mov ebx, dword [0xf540cb30]
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
add ecx, dword [ebx - 0x17afadaf]
insd dword es:[edi], dx
pop edx
add byte [ebx - 0x7b], cl
sal byte [ebx + esi - 0x7d], 0xf8
or esi, dword [esp + eax + 0x3d]
push 0x9a000afd
daa
cmp eax, 0xafcdc
or byte [ebx], al
mov edx, dword [ecx + 0x52]
push eax
call 0x4b4079c0
test eax, eax
je 0x401f8a
cmp eax, 0xb
je 0x401f60
cmp eax, 0xafd68
lcall 0xa, 0xfcdc3d27
add byte [edx - 0x323c2d9], bl
or al, byte [eax]
enter 0x3d20, 0x57
std
or al, byte [eax]
je 0x401f84
cmp eax, 0xafd24
je 0x401f8a
out 0xa1, eax
add esp, esp
add byte [esp + edx*2 + 0x14], dh
sub byte [ebx], ah
or eax, dword [eax]
jne 0x402030
mov eax, dword [ebp + 8]
invalid
lodsd eax, dword [esi]
sbb eax, 0x4102bc
push str.Send_request_failed__n
inc ebx
mov dword [ebp + 0xb], ebx
add al, byte [ecx]
call dword [0x40bf64]
push esi
lcall 0x6d97, 0x1a42
pop edi
pop esi
retf 0xe58b
Function at 0x409ed0
Capabilities:
Encode data using xor

Disassembly:
inc esi
add al, 0xd
add byte [eax], al
inc eax
add byte [ecx + 0x4609084e], cl
jmp 0x409ecb
mov eax, 1
nop
in eax, dx
nop
nop
daa
push ebp
mov ebp, esp
sbb byte [ebp + 8], al
mov ebx, dword [ebp + 8]
test ecx, 0x10000000
je 0x409f4d
adc byte [esp + ebp*2 - 0x7d], dh
leave
js 0x409ed0
or ecx, 0x78
jmp 0x409ee9
add eax, dword [ebx - 0x2e74f837]
mov edx, ecx
mov dword [eax + 0x4e], ecx
shl edx, 4
dec ecx
rol ecx, 1
loop 0x409efa
or edx, ecx
mov ecx, dword [eax + 4]
sub cl, cl
add al, 0x2a
leave
push es
add byte [eax], dh
mov dword [ebx], eax
or byte [ecx - 0x3e747f6c], cl
mov ecx, dword [ebp + 0xc]
jns 0x409ede
and eax, ecx
neg ecx
sbb eax, eax
and eax, 0x831178
pop ebp
sbb edx, dword [eax - 0x6f6f6f70]
jl 0x409ead
in al, dx
add byte [eax], al
Function at 0x401150
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
lea eax, [esp + 4]
push eax
call esi
mov eax, dword [0x40fe60]
mov cx, word [esp + 4]
mov word [edi], cx
test eax, eax
jne 0x4011a4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x401188
xor al, al
pop esi
add esp, 0x24
ret
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x40fe60], eax
test eax, eax
jne 0x4011a4
mov eax, esi
mov dword [0x40fe60], eax
lea edx, [esp + 4]
push edx
call eax
mov ax, word [esp + 4]
mov word [edi], ax
mov al, 1
pop esi
add esp, 0x24
ret

Function at 0x401270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x20]
lea eax, [esp]
push eax
push ecx
push 0x20019
mov dword [esp + 0x10], 0
call fcn.00401230
mov edx, dword [esp + 0x20]
add esp, 8
push eax
mov eax, dword [esp + 0x18]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4012ae
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 0
push edi
push eax
call ebp
test eax, eax
je 0x4012e6
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.00402785
mov esi, dword [esp + 0x2c]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
push 0
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
push edi
push eax
call ebp
test eax, eax
jne 0x40133a
mov edx, dword [esp + 0xc]
push edx
lea edi, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
mov ecx, dword [esi]
push ecx
xor edi, edi
call fcn.0040277a
mov edx, dword [esp + 0x10]
add esp, 4
push edx
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0xc
ret
Function at 0x401550
Capabilities:
Query or enumerate registry key

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push ebx
push 0xf003f
mov dword [esp + 0x10], 0
call fcn.00401230
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 8
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401614
push esi
push 0x20a
call fcn.00402785
mov esi, eax
add esp, 4
test esi, esi
jne 0x4015a7
lea eax, [esi + 8]
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push 0x104
push esi
push 0
push eax
call edi
test eax, eax
jne 0x4015e6
mov ecx, dword [esp + 0xc]
push ebx
push esi
push ecx
call fcn.00401550
add esp, 0xc
test eax, eax
jne 0x4015e6
mov edx, dword [esp + 0xc]
push 0x104
push esi
push eax
push edx
call edi
test eax, eax
je 0x4015c1
push esi
call fcn.0040277a
mov eax, dword [esp + 0x10]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4016d0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x18]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push edx
push 0xf003f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00401230
mov ecx, dword [esp + 0x20]
add esp, 8
push eax
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x401725
mov eax, 1
add esp, 8
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x401748
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
Function at 0x401c10
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x20]
mov eax, esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c30
sub eax, edx
sar eax, 1
mov eax, dword [esp + 0x24]
jne 0x401c67
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.004016d0
add esp, 0x10
mov eax, 1
pop esi
add esp, 0xc
ret
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0
push eax
push 0xf003f
call fcn.00401230
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 8
push eax
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401cd7
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ca1
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 4]
sar eax, 1
add eax, eax
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401cde
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0xc
ret

Function at 0x401df0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x220]
push edi
mov edi, dword [esp + 0x220]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ebx
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ec4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x401eaa
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00401df0
add esp, 8
neg eax
sbb eax, eax
neg eax
jne 0x401ec3
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x401e66
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
neg eax
pop esi
mov ecx, dword [esp + 0x218]
pop edi
pop ebx
xor ecx, esp
call fcn.00402b74
add esp, 0x214
ret
Function at 0x401ee0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x224]
push ebx
push esi
mov esi, dword [esp + 0x228]
xor ebx, ebx
lea ecx, [esp + 8]
push ecx
push ebx
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push esi
mov dword [esp + 0x30], 0x208
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x401ff9
push edi
lea edx, [esp + 0xc]
push edx
push 0
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401ff8
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401fbc
push eax
call fcn.00402cad
add esp, 4
lea edx, [esp + 0xc]
push edx
mov edi, eax
push edi
lea eax, [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401ff8
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push edi
push eax
push 0
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401ff8
push edi
call fcn.00402c73
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
inc ebx
push ebx
push esi
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401f40
pop edi
mov ecx, dword [esp + 0x220]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402b74
add esp, 0x21c
ret
Function at 0x402020
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x220
mov eax, dword [0x40f01c]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x228]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x230]
push edi
xor ebp, ebp
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebp
push ebp
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x40]
push eax
push ebp
push esi
mov dword [esp + 0x38], 0x100
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40213b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, edi
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebp
lea edx, [esp + 0x38]
push edx
push esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x40213d
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
lea edx, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x40213d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00401ee0
add esp, 8
cmp eax, ebp
jne 0x40213d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.00402020
add esp, 8
cmp eax, ebp
jne 0x40213d
mov edx, dword [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebx
lea ecx, [esp + 0x24]
push ecx
push ebp
push ebp
push ebp
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x40]
push eax
inc edi
push edi
push esi
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x402080
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402b74
add esp, 0x220
ret

Function at 0x402b74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f01c]
jne 0x402b7e
repz ret
jmp fcn.00405c3c
Function at 0x4081ec
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f01c]
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.00403769
and dword [ebp - 0x14], 0
cmp dword [0x410bd8], 0
mov dword [ebp - 0x18], eax
jne 0x40829f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408347
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408347
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x410bd8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x410bdc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x410be0], eax
call edi
push eax
call esi
mov dword [0x410be8], eax
test eax, eax
je 0x40829f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x410be4], eax
mov eax, dword [0x410be4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4082f8
cmp dword [0x410be8], ecx
je 0x4082f8
push eax
call esi
push dword [0x410be8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4082f8
test ebx, ebx
je 0x4082f8
call edi
test eax, eax
je 0x4082ef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4082ef
test byte [ebp - 8], 1
jne 0x4082f8
or dword [ebp + 0x10], 0x200000
jmp 0x40832b
mov eax, dword [0x410bdc]
cmp eax, dword [ebp - 0x18]
je 0x40832b
push eax
call esi
test eax, eax
je 0x40832b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40832b
mov eax, dword [0x410be0]
cmp eax, dword [ebp - 0x18]
je 0x40832b
push eax
call esi
test eax, eax
je 0x40832b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x410bd8]
call esi
test eax, eax
je 0x408347
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408349
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b74
leave
ret
Function at 0x6a1370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x6a138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x6ca074
push ecx
mov edi, eax
call fcn.006b5198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6a13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006b502e
push esi
call fcn.006b4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret