joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4053a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi + 4], 0x40626c
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esi + 0x18], eax
call fcn.00404f42
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 8]
mov dword [esi], 0x406268
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402740
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
lea esi, [ebx + 0x118]
push 8
push edi
mov ecx, ebx
call fcn.004027a0
shl eax, 0x18
mov dword [esi], eax
mov edx, 8
mov ebp, eax
mov ecx, ebp
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
dec edx
mov ebp, eax
jne 0x402764
push 0x20
push eax
mov ecx, ebx
mov dword [esi], ebp
call fcn.004027a0
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, 0xff
jle 0x40274e
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4027e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
or eax, 0xffffffff
mov edx, dword [ecx]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x402818
push ebx
push edi
lea edi, [ecx]
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [esi + ecx*4 + 0x118]
xor eax, ecx
inc edx
dec edi
jne 0x4027f8
pop edi
pop ebx
not eax
pop esi
ret 8
Function at 0x412ae4
Capabilities:
Check for software breakpoints

Disassembly:
pop ecx
add byte [eax], al
fnclex
cmp al, 0xcc
stosb byte es:[edi], al
mov ebp, esp
sub esp, 0x20
and esp, 0xfffffff0
fld st(0)
push esp
fistp dword [eax]
fistp qword [esp + 0x10]
fild qword [esp + 0x10]
mov ebp, dword [ebx + 0x448be724]
and al, 0x10
test eax, eax
je 0x412b43
fsubp st(1)
jp 0x412add
xchg byte [esi], bl
fstp dword [esp]
mov ecx, dword [esp]
xor ecx, 0x7f00ff00
add ecx, 0x7fffffff
adc eax, 0
mov ebp, dword [ebx - 0x2d7c14dc]
add bl, ch
sub al, 0xd9
sbb al, 0x24
mov ecx, dword [ebx + ebx*8]
cmp dword [esi], 0x7fffffff
sbb eax, 0
mov edx, dword [esp - 0x15]
and dword [0x8b14eb00], 0x54
and al, 0x14
mov edx, dword [esp + 0x14]
test edx, 0x80ff00ff
jne 0x412b07
fstp dword [esp + 0x18]
fstp dword [esp + 0x18]
ret
Function at 0x418f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x496e28]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x418f89
xor eax, eax
jmp 0x4190f7
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x49dea0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x418fbc
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041a8ea
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41908e
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4190c9
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x419017
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x419008
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x418feb
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419057
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x419060
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x418fdc
jmp 0x419062
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4190f2
cmp dword [ebp - 8], edi
je 0x4190c9
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4190bb
call fcn.00413a80
mov dword [eax], 9
call fcn.00413a89
mov dword [eax], esi
jmp 0x4190c4
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4190b0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x419062
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x419062
push dword [ebp - 8]
call fcn.00413a92
pop ecx
or eax, 0xffffffff
jmp 0x4190f5
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4190de
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4190de
xor eax, eax
jmp 0x4190f5
call fcn.00413a80
mov dword [eax], 0x1c
call fcn.00413a89
mov dword [eax], edi
jmp 0x4190c4
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00411c86
leave
ret
Function at 0x4197ea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49c9ac], ebx
push esi
push edi
jne 0x41986a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4198a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x483358
push edi
call esi
test eax, eax
mov dword [0x49c9ac], eax
je 0x4198a5
push 0x483348
push edi
call esi
push 0x483334
push edi
mov dword [0x49c9b0], eax
call esi
cmp dword [0x49c554], 2
mov dword [0x49c9b4], eax
jne 0x41986a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x49c9bc], eax
je 0x41986a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x49c9b8], eax
mov eax, dword [0x49c9b8]
test eax, eax
je 0x4198af
call eax
test eax, eax
je 0x419896
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49c9bc]
test eax, eax
je 0x419896
test byte [ebp - 8], 1
jne 0x4198af
cmp dword [0x49c560], 4
jb 0x4198a9
or byte [ebp + 0x12], 0x20
jmp 0x4198ce
xor eax, eax
jmp 0x4198de
or byte [ebp + 0x12], 4
jmp 0x4198ce
mov eax, dword [0x49c9b0]
test eax, eax
je 0x4198ce
call eax
mov ebx, eax
test ebx, ebx
je 0x4198ce
mov eax, dword [0x49c9b4]
test eax, eax
je 0x4198ce
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49c9ac]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419b5d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00411090
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419bf2
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x49c554]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x419bf2
cmp eax, 1
je 0x419c0a
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419bf2
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x419bc7
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x419bee
xor eax, eax
inc eax
jmp 0x419c26
cmp esi, ebx
jae 0x419bf6
xor eax, eax
jmp 0x419c26
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49c554]
jmp 0x419c0c
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ad6f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41af35
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x49dea0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41af35
test cl, 0x48
je 0x41add5
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41add5
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ae27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41ae0f
call fcn.00413a80
mov dword [eax], 9
call fcn.00413a89
mov dword [eax], esi
jmp 0x41ae1f
cmp eax, 0x6d
je 0x41af35
push eax
call fcn.00413a92
pop ecx
or eax, 0xffffffff
jmp 0x41af37
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x41af30
test edx, edx
je 0x41ae4a
cmp byte [ebx], 0xa
jne 0x41ae4a
or al, 4
jmp 0x41ae4c
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41af2a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41af1a
cmp al, 0xd
je 0x41ae80
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41af0c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41ae9a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41ae95
add dword [ebp + 0x10], 2
jmp 0x41aeee
mov dword [ebp + 0x10], eax
jmp 0x41af08
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41aec2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41af08
cmp dword [ebp - 0xc], 0
je 0x41af08
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41aee3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41aeee
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41af0b
cmp ebx, dword [ebp + 0xc]
jne 0x41aef3
cmp byte [ebp - 1], 0xa
jne 0x41aef3
mov byte [ebx], 0xa
jmp 0x41af0b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418e41
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41af0c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41ae64
jmp 0x41af2a
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41af2a
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41af37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475e60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ecx, 0x55
mov eax, 0xaa
push esi
xor esi, esi
push edi
mov word [esp + 0x20], cx
mov word [esp + 0x22], ax
mov word [esp + 0x24], cx
mov word [esp + 0x26], ax
mov word [esp + 0x28], cx
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], cx
mov word [esp + 0x2e], ax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 0x47ca0c
lea eax, [esp + 0x20]
push eax
push 1
push 1
push 8
push 8
mov dword [esp + 0x4c], esi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.0045ce10
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x47d120
mov ecx, dword [esp + 0x1c]
push ecx
mov byte [esp + 0x3c], 1
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.0045ce10
mov esi, dword [esp + 0x40]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0045ceec
mov ecx, dword [0x49ca08]
mov ebp, eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [0x49ca14]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
push 0xf00021
sub ecx, edx
push ecx
mov ecx, dword [esi + 4]
sub eax, edi
push eax
push edx
push edi
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
push ebp
mov ecx, esi
call fcn.0045ceec
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esi]
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea ecx, [esp + 0x10]
call fcn.0045ce67
mov esi, 0x47c9fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
mov dword [esp + 0x10], esi
call fcn.0045ce67
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x18], esi
call fcn.0045ce67
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x420db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
push 0
lea ecx, [esp + 0x14]
call fcn.0045cc47
lea eax, [esi + 0x54]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.0045ceec
mov edi, eax
mov eax, dword [esi + 0x50]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 8]
push edx
push ecx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x5c], ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esi + 0x60], edx
call fcn.0045ceec
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0045cca2
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x42d150
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov edx, dword [esp + 0x11c]
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x42d1ae
test ecx, ecx
je 0x42d1a0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x42d1ca
test ecx, ecx
je 0x42d26d
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x118
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x42d234
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.0042d150
mov edi, eax
test edi, edi
jne 0x42d27a
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x42d1f6
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x42d24b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x124]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x42d26d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x42d289
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x118
ret 4

Function at 0x42d3f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x42d455
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx + 0x50]
test eax, eax
jne 0x42d413
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov esi, eax
test esi, esi
je 0x42d40a
mov edx, dword [esp + 0x1c]
push edi
push 4
lea ecx, [esp + 0x28]
push ecx
push 4
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
add esp, 0x10
ret 0xc
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 8]
push 0x47e5e0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push esi
lea edx, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop esi
add esp, 0x10
ret 0xc
Function at 0x42d490
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
mov edx, dword [eax - 0xc]
test edx, edx
push ebx
push esi
push edi
jne 0x42d524
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0x50]
test edx, edx
jne 0x42d4b3
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov edx, dword [ecx]
jne 0x42d4d4
call dword [edx + 4]
mov esi, eax
test esi, esi
je 0x42d4ab
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x42d50e
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
push eax
call dword [edx + 8]
test edi, edi
mov esi, eax
jne 0x42d4f4
test esi, esi
je 0x42d4ab
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x42d50e
test esi, esi
je 0x42d4ab
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
ret 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x42d540
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword [ecx + 8]
mov edx, dword [eax - 0xc]
sub esp, 8
test edx, edx
push esi
jne 0x42d5b2
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + 0x50]
test edx, edx
jne 0x42d563
mov eax, dword [esp + 0x18]
pop esi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov esi, eax
test esi, esi
je 0x42d558
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push ecx
push esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x42d558
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
add esp, 8
ret 0xc
Function at 0x42d5f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
test ecx, ecx
push esi
push edi
jne 0x42d654
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x42d61c
mov eax, dword [esp + 0x10]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 8]
mov esi, eax
test esi, esi
jne 0x42d624
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push 3
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
mov edi, dword [esp + 0x1c]
lea ecx, [edi + edi + 1]
push ecx
call fcn.00452ee8
mov esi, eax
add esp, 4
xor eax, eax
test edi, edi
jbe 0x42d68f
mov ecx, dword [esp + 0x18]
mov dl, byte [eax + ecx]
and dl, 0xf
add dl, 0x41
mov byte [esi + eax*2], dl
mov dl, byte [eax + ecx]
shr dl, 4
add dl, 0x41
mov byte [esi + eax*2 + 1], dl
inc eax
cmp eax, edi
jb 0x42d671
mov ecx, dword [esp + 0x10]
mov byte [esi + eax*2], 0
mov eax, dword [esp + 0x14]
push esi
push eax
push ecx
mov ecx, ebp
call fcn.0042d490
push esi
mov edi, eax
call fcn.00452ee3
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x42d740
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47673b
push eax
mov eax, 0x1010
mov dword fs:[0], esp
call fcn.00411090
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], edi
jne 0x42d877
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x50], edi
je 0x42d78f
mov eax, dword [esp + 0x1030]
mov edx, dword [ecx]
push eax
call dword [edx + 8]
mov ebp, eax
cmp ebp, edi
jne 0x42d79c
mov ecx, dword [esp + 0x1038]
push ecx
jmp 0x42d8b2
push ebx
call fcn.00457021
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x1038]
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
push ebp
mov dword [esp + 0x1040], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x42d820
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401900
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [esp + 0x14]
test esi, esi
mov edi, eax
jne 0x42d808
xor eax, eax
jmp 0x42d819
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d810
sub eax, edx
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov edi, dword [esp + 0x1030]
pop ebx
mov ecx, edi
jne 0x42d868
lea edx, [esp + 0x10]
push edx
call fcn.00401e50
lea eax, [esi - 0x10]
mov dword [esp + 0x1024], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
jmp 0x42d8c2
mov eax, dword [esp + 0x1038]
push eax
call fcn.00402050
jmp 0x42d83f
mov ecx, dword [esp + 0x1038]
cmp ecx, edi
mov byte [esp + 0xf], 0
jne 0x42d88b
lea ecx, [esp + 0xf]
mov edx, dword [esp + 0x1030]
push eax
push 0x1000
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x1044]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x1c]
push eax
mov esi, dword [esp + 0x1030]
mov ecx, esi
call fcn.00402050
mov eax, esi
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x101c
ret 0x10