joyce8/EMBER2024-capa huggingface dataset:
Function at 0x523fb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x714af8]
xor edx, edx
cmp eax, edx
jne 0x523fd6
xor eax, eax
mov byte [eax + 0x7149f8], al
inc eax
cmp eax, 0x100
jl 0x523fbe
mov dword [0x714af8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7149f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x524067
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 0x52403a
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 0x524008
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x524070
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 0x5240c3
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 0x5240aa
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 0x52aa40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x55c8be
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.0052b360
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x6aefc4
call fcn.0054b1b7
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x52aad3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0054b1b7
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x52aacc
push 0
mov ecx, eax
call fcn.00521be0
mov dword [esi + 0xc], eax
jmp 0x52aad5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x52aad5
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 0x54d881
Capabilities:
Get graphical window text

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

Function at 0x54ef73
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 0x54efb5
call fcn.00554e61
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x54efb5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54efac
xor eax, eax
jmp 0x54efbd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0054efc3
pop edi
pop esi
pop ebx
ret 4

Function at 0x555391
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 0x5553bf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5553dd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005552f7
jmp 0x5553dd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5553dd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005552f7
test edi, edi
mov eax, edi
jne 0x5553c7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x2638760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x198a000]
push edi
or ebp, 0xffffffff
jmp 0x2638782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x2638789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x2638778
mov eax, 1
add ebx, ebx
jne 0x263879b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x2638790
jne 0x26387ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x2638790
xor ecx, ecx
sub eax, 3
jb 0x26387c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x2638832
mov ebp, eax
add ebx, ebx
jne 0x26387cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x26387d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x26387fc
inc ecx
add ebx, ebx
jne 0x26387e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x26387dd
jne 0x26387f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x26387dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x263881c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x263880d
jmp 0x263877e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x263881c
add edi, ecx
jmp 0x263877e
pop esi
mov edi, esi
mov ecx, 0x596da0
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x2638857
cmp byte [edi], 0x9d
jne 0x263883c
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x263883a
lea edi, [esi + 0x2234000]
mov eax, dword [edi]
or eax, eax
je 0x26388a8
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2259064]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22591f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x263885d
mov ecx, edi
jns 0x263888c
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 + 0x22591f8]
or eax, eax
je 0x26388a2
mov dword [ebx], eax
add ebx, 4
jmp 0x263887a
call dword [esi + 0x2259200]
mov ebp, dword [esi + 0x22591fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x26388dc
sub esp, 0xffffff80
jmp 0x9b693f
Function at 0x402af0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42bb3c]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
push 0
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00402080
mov ecx, dword [esp + 0x108]
xor ecx, esp
mov eax, esi
call fcn.0040ebe3
add esp, 0x10c
ret

Function at 0x402b50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x422082
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x42bb3c]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [0x42bb3c]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x124], 2
push 0x42653b
mov ecx, esi
mov dword [esp + 0xc], 0x100
call fcn.00402080
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 4]
push eax
push ecx
push 0x80000002
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402c19
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x134]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c19
lea ecx, [esp + 0x18]
push ecx
push 0x426c9c
push esi
call fcn.004027f0
add esp, 0xc
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x124], 1
mov eax, dword [esp + 0x12c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x124], 0
mov eax, dword [esp + 0x130]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040ebe3
add esp, 0x124
ret
Function at 0x402ca0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x422030
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x42bb3c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x28]
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00403c48
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
call fcn.00416600
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add esp, 0x10
push 0x42653b
lea ecx, [esp + 0x10]
mov byte [eax + esi], 0
call fcn.00402080
lea edx, [esp + 8]
mov byte [esp + 0x18], 3
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402d4b
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x24]
inc eax
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00403c3d
mov ecx, dword [esp + 0xc]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00402600
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402d99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402de3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x402e20
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x422030
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x42bb3c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x28]
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00403c48
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
call fcn.00416600
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add esp, 0x10
push 0x42653b
lea ecx, [esp + 0x10]
mov byte [eax + esi], 0
call fcn.00402080
lea edx, [esp + 8]
mov byte [esp + 0x18], 3
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402ecb
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x24]
inc eax
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00403c3d
mov ecx, dword [esp + 0xc]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00402600
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402f19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x402fb0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x422030
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x42bb3c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 2
mov eax, dword [esp + 0x28]
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.00403c48
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
call fcn.00416600
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx - 0xc]
add esp, 0x10
push 0x42653b
lea ecx, [esp + 0x10]
mov byte [eax + esi], 0
call fcn.00402080
lea edx, [esp + 8]
mov byte [esp + 0x18], 3
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40305b
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x24]
inc eax
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call fcn.00403c3d
mov ecx, dword [esp + 0xc]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
push eax
call fcn.00402600
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4030a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40311b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x403130
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push eax
push 2
push 0
push ecx
push 0x80000001
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031c0
mov ecx, dword [esp]
push 4
lea edx, [esp + 8]
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4031c0
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40319a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
add esp, 8
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40320a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
add esp, 8
ret

Function at 0x403210
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push 0xf013f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403281
push str.regDelSection_err_
call fcn.0040f421
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40325d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40327d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 0xc]
mov edx, dword [esp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4032da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop ecx
ret
Function at 0x4032f0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x421ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x42bb3c]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
push esi
push edi
mov eax, dword [0x42bb3c]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x10]
push eax
push 0xf013f
mov dword [esp + 0x12c], 0
mov ecx, dword [esp + 0x134]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40338f
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 0x12c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403388
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403435
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.004043c0
push 0x103
xor edi, edi
lea ecx, [esp + 0x19]
push edi
push ecx
mov byte [esp + 0x20], 0
call fcn.004108c0
mov eax, dword [esp + 0x1c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
push edi
push eax
call ebp
test eax, eax
jne 0x4033f7
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00404641
mov eax, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x18]
push edx
inc edi
push edi
push eax
call ebp
test eax, eax
je 0x4033d0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esi + 8]
mov dword [esp + 0x124], 0xffffffff
mov eax, dword [esp + 0x12c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040ebe3
add esp, 0x118
ret

Function at 0x40ebe3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42bb3c]
jne 0x40ebed
repz ret
jmp fcn.0041367b
Function at 0x41da8d
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.004146cc
and dword [ebp - 4], 0
cmp dword [0x42f764], 0
mov ebx, eax
jne 0x41db3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41dbef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x426490
push edi
call esi
test eax, eax
je 0x41dbef
push eax
call fcn.0041465a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f764], eax
call esi
push eax
call fcn.0041465a
mov dword [esp], 0x42646c
push edi
mov dword [0x42f768], eax
call esi
push eax
call fcn.0041465a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42f76c], eax
call esi
push eax
call fcn.0041465a
pop ecx
mov dword [0x42f774], eax
test eax, eax
je 0x41db3e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041465a
pop ecx
mov dword [0x42f770], eax
mov eax, dword [0x42f770]
cmp eax, ebx
je 0x41db96
cmp dword [0x42f774], ebx
je 0x41db96
push eax
call fcn.004146d5
push dword [0x42f774]
mov esi, eax
call fcn.004146d5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41db96
test edi, edi
je 0x41db96
call esi
test eax, eax
je 0x41db8d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41db8d
test byte [ebp - 0xc], 1
jne 0x41db96
or dword [ebp + 0x10], 0x200000
jmp 0x41dbcf
mov eax, dword [0x42f768]
cmp eax, ebx
je 0x41dbcf
push eax
call fcn.004146d5
pop ecx
test eax, eax
je 0x41dbcf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41dbcf
mov eax, dword [0x42f76c]
cmp eax, ebx
je 0x41dbcf
push eax
call fcn.004146d5
pop ecx
test eax, eax
je 0x41dbcf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f764]
call fcn.004146d5
pop ecx
test eax, eax
je 0x41dbef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41dbf1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret