joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4369a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4447d4
cmp dword [edi], 0
jne 0x436a20
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4447d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x443850
mov ecx, 2
call fcn.004027ac
mov edx, 0x43697c
lea eax, [esi + 5]
call fcn.0043699c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043699c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4369f5
mov dword [0x4447d0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x436b44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x436b94]
test si, 4
je 0x436b58
or bl, 1
test si, 8
je 0x436b62
or bl, 4
test si, 1
je 0x436b6c
or bl, 8
test si, 2
je 0x436b76
or bl, 0x10
test si, 0x10
je 0x436b80
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x436b8f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x436b98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x436bd0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x436bb1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x436bc0
or bl, 4
test esi, 0x20000000
je 0x436bcb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43d118
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d2bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40b85c]
call fcn.00402bf0
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004037b8
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43d293
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0042d498
test al, al
je 0x43d286
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x43d2cc
lea eax, [ebp - 0x254]
call fcn.00407fa4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43d286
xor eax, eax
push ebp
push 0x43d27f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43d304
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43d268
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039e4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43d268
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004039e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d286
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43d189
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040e6ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d2c4
lea eax, [ebp - 0x260]
call fcn.004037b8
ret

Function at 0x43da58
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4447a4]
cmp byte [eax + 0x8d], 0
jne 0x43dac9
cmp dword [0x4447e0], 0
jne 0x43da8a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43da14
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4447e0], eax
cmp dword [0x4447dc], 0
jne 0x43daa5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4447dc], eax
cmp dword [0x4447e4], 0
jne 0x43dac9
push esp
push 0
push 0
push 0x43d9b8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4447e4], eax
pop edx
ret
Function at 0x43dbc0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43dbd7
add esp, 0xfffffff0
call fcn.00402f04
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004114c8
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40b55c]
call fcn.00402bf0
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40b55c]
call fcn.00402bf0
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x413254]
call fcn.0041a138
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x43dd48
mov eax, dword [0x443b14]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041a4dc
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x43f65c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x443b14]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00409248
test eax, eax
je 0x43dcc7
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040792c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409270
test eax, eax
je 0x43dcdb
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004039e4
mov eax, dword [0x443a2c]
cmp byte [eax], 0
jne 0x43dd0c
mov eax, ebx
call fcn.0043de34
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43dd3e
call fcn.00402f5c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43e090
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4447a4]
cmp dword [eax + 0x24], 0
je 0x43e120
cmp dword [ebx + 0x7c], 0
jne 0x43e11d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43e024
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x43e11d
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x43e0ec
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x43e11d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040cb80
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x43e0f8
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x43ea70
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x43eaa5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040389c
jmp 0x43eaaf
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403850
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x43f98c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x43f9c4
mov eax, esi
call fcn.00429320
test al, al
je 0x43f9c4
mov eax, dword [ebx + 0x6c]
call fcn.00428f40
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43f9c4
push 0
mov eax, dword [ebx + 0x6c]
call fcn.00428f40
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x63752787
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x269f10ca
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4010ba
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c754
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push edi
mov dword [ebp - 0x224], ecx
mov ecx, dword [ebp + 8]
call fcn.00401d50
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x224]
add ecx, 0x14
call fcn.00401ee0
push eax
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov byte [ebp - 0x21c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x14], 0
jmp 0x401165
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x104
jge 0x4011e1
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp + eax - 0x118]
mov byte [ebp + edx - 0x21c], cl
mov edx, dword [ebp - 0x220]
add edx, 1
mov dword [ebp - 0x220], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [ebp + eax - 0x118]
test ecx, ecx
je 0x4011a5
jmp 0x40115c
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator_1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401d70
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ebp + ecx - 0x21c]
mov eax, dword [ebp - 0x14]
movsx ecx, byte [ebp + eax - 0x117]
cmp edx, ecx
jne 0x4011dc
jmp 0x4011e1
jmp 0x40115c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x401507
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c7b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
add eax, 0x14
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
push str.Tg2011.ini
push 0x424030
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Replace_1
lea ecx, [ebp - 0x24]
call fcn.00401660
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x34]
call fcn.004017d0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], 0
jmp 0x401576
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x10]
jge 0x4015c5
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00401820
push eax
lea ecx, [ebp - 0x24]
call fcn.00401720
cmp dword [ebp - 0x14], 0
jne 0x4015c3
lea ecx, [ebp - 0x28]
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x24]
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x18]
call fcn.00401ee0
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x40156d
push 0
mov ecx, dword [ebp - 0x34]
add ecx, 0x14
call fcn.00401ee0
push eax
lea ecx, [ebp - 0x28]
call fcn.00401ee0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
lea edx, [ebp - 0x28]
push edx
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x38], eax
call fcn.004026f3
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x401619
mov ecx, dword [ebp - 0x34]
add ecx, 0x14
call fcn.00401ee0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401628
lea ecx, [ebp - 0x28]
call fcn.00401ee0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004016c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402112
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c90d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 4], 2
xor eax, eax
cmp dword [ebp + 8], 0
setne al
add eax, 0x80000001
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
lea ecx, [ebp + 0xc]
call fcn.00401ee0
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40219a
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x28]
jmp 0x4022a2
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0x10]
call fcn.00401ee0
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4021f9
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x2c]
jmp 0x4022a2
mov dword [ebp - 0x10], 0x104
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
push 0x104
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0
lea ecx, [ebp + 0x14]
call fcn.00401ee0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402254
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 0x18]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x30], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4022b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c932
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 4], 2
xor eax, eax
cmp dword [ebp + 8], 0
setne al
add eax, 0x80000001
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
lea ecx, [ebp + 0xc]
call fcn.00401ee0
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402338
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x28]
jmp 0x40240d
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
lea ecx, [ebp + 0x10]
call fcn.00401ee0
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402394
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x2c]
jmp 0x40240d
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
lea ecx, [ebp + 0x14]
call fcn.00401ee0
push eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4023cb
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x30], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40241b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 4], 3
xor eax, eax
cmp dword [ebp + 8], 0
setne al
add eax, 0x80000001
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
push 0xf003f
push 0
lea ecx, [ebp + 0xc]
call fcn.00401ee0
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4024af
mov byte [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x1c]
jmp 0x40258e
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
lea ecx, [ebp + 0x10]
call fcn.00401ee0
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402517
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x20], 0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x20]
jmp 0x40258e
lea ecx, [ebp + 0x18]
call fcn.00401ea0
push eax
lea ecx, [ebp + 0x18]
call fcn.00401ee0
push eax
push 1
push 0
lea ecx, [ebp + 0x14]
call fcn.00401ee0
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x24], 1
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret