joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407101
mov al, byte [esp]
jmp 0x407103
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410520
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x410526
ret

Function at 0x4181e4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x418200
cmp dword [esi + 4], 0
je 0x418227
mov eax, ebx
call fcn.00417488
test eax, eax
jne 0x418219
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x418337
mov edx, esi
mov eax, ebx
call fcn.00417e88
jmp 0x418337
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x418330
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004197e4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00416390
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004181e4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004197e4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418337
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b104
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004036b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41b165
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x41b165
cmp byte [ebp - 0x102], 0
je 0x41b165
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c4f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x41c575
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41c526
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41c538
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x41c544
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0041c380
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c569
push ebp
mov eax, dword [ebp - 4]
call fcn.0041c464
pop ecx
mov ebx, eax
cmp bl, 2
je 0x41c544
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x42a6e0
cmp dword [edi], 0
jne 0x41e3ac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x42a6dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x429710
mov ecx, 2
call fcn.004026b0
mov edx, 0x41e308
lea eax, [esi + 5]
call fcn.0041e328
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e328
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 0x41e381
mov dword [0x42a6dc], 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 0x41e4d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41e520]
test si, 4
je 0x41e4e4
or bl, 1
test si, 8
je 0x41e4ee
or bl, 4
test si, 1
je 0x41e4f8
or bl, 8
test si, 2
je 0x41e502
or bl, 0x10
test si, 0x10
je 0x41e50c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41e51b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x41e524
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41e55c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41e53d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41e54c
or bl, 4
test esi, 0x20000000
je 0x41e557
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x422574
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 0x422719
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a018]
call fcn.00402c3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004036b0
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 0x4226ef
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.0041a8a4
test al, al
je 0x4226e2
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, 0x422728
lea eax, [ebp - 0x254]
call fcn.00406f24
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4226e2
xor eax, eax
push ebp
push 0x4226db
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 0x422760
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4226c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
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 0x4226c4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4226e2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4225e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040c944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422720
lea eax, [ebp - 0x260]
call fcn.004036b0
ret
Function at 0x422904
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x42a6b4]
cmp byte [eax + 0x85], 0
jne 0x422975
cmp dword [0x42a6ec], 0
jne 0x422936
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x4228c0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x42a6ec], eax
cmp dword [0x42a6e8], 0
jne 0x422951
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x42a6e8], eax
cmp dword [0x42a6f0], 0
jne 0x422975
push esp
push 0
push 0
push 0x422864
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x42a6f0], eax
pop edx
ret

Function at 0x422a64
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x422a7b
add esp, 0xfffffff0
call fcn.00402e18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040f1f4
mov dl, 1
mov eax, dword [0x409d5c]
call fcn.00402c3c
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x409d5c]
call fcn.00402c3c
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x410404]
call fcn.004131b0
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x422bd4
mov eax, dword [0x429908]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00413548
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4241f8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x429908]
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.004083c8
test eax, eax
je 0x422b5c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00406940
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004083f0
test eax, eax
je 0x422b70
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004038dc
mov eax, dword [0x429888]
cmp byte [eax], 0
jne 0x422ba1
mov eax, ebx
call fcn.00422cb8
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x422bc9
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422f0c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x42a6b4]
cmp dword [eax + 0x24], 0
je 0x422f9c
cmp dword [ebx + 0x74], 0
jne 0x422f99
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x422ea0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x422f99
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 0x422f68
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x422f99
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040adcc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x422f74
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x423884
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x4238b9
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.00403794
jmp 0x4238c3
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403748
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x424468
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x4244a0
mov eax, esi
call fcn.004198e0
test al, al
je 0x4244a0
mov eax, dword [ebx + 0x64]
call fcn.004197e4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4244a0
push 0
mov eax, dword [ebx + 0x64]
call fcn.004197e4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x42642c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403ae0
xor eax, eax
push ebp
push 0x42654d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0042730c
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00427334
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004273e0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00403af0
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4c]
mov eax, dword [eax*4 + 0x429868]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
test al, al
je 0x42652a
xor eax, eax
push ebp
push 0x426523
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x20]
call fcn.00403af0
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42652a
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426554
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004036d4
lea eax, [ebp - 8]
call fcn.004036b0
ret
Function at 0x42655c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403ae0
xor eax, eax
push ebp
push 0x42665d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0042730c
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00427334
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004273e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00403af0
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4c]
mov eax, dword [eax*4 + 0x429868]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
test al, al
je 0x42663a
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 3
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00403af0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426664
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.004036d4
lea eax, [ebp - 8]
call fcn.004036b0
ret
Function at 0x42666c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403ae0
xor eax, eax
push ebp
push 0x42678e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0042730c
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00427334
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004273e0
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00403af0
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4c]
mov eax, dword [eax*4 + 0x429868]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
test al, al
je 0x42676b
xor eax, eax
push ebp
push 0x426764
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x20]
call fcn.00403af0
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42676b
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426795
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004036d4
lea eax, [ebp - 8]
call fcn.004036b0
ret
Function at 0x42679c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403ae0
xor eax, eax
push ebp
push 0x4268ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0042730c
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00427334
mov eax, dword [ebp - 0x28]
call fcn.00403af0
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4c]
mov eax, dword [eax*4 + 0x429868]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
test al, al
je 0x426897
mov eax, 0x3e8
call fcn.00406b00
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x40]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x3e8
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x42687c
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.00406aec
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc dword [ebp - 0x10]
jmp 0x426837
mov eax, dword [ebp - 0x1c]
call fcn.00406b4c
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4268c1
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004036d4
lea eax, [ebp - 8]
call fcn.004036b0
ret
Function at 0x4268c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403ae0
xor eax, eax
push ebp
push 0x426a25
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.0042730c
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00427334
mov eax, dword [ebp - 0x28]
call fcn.00403af0
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4c]
mov eax, dword [eax*4 + 0x429868]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
test al, al
je 0x426a02
mov eax, 0x105
call fcn.00406b00
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x40]
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 1
jmp 0x4269e1
mov dword [ebp - 0x18], 0x105
xor eax, eax
push ebp
push 0x4269d3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueA
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x20]
call fcn.00406aec
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x38]
inc dword [ebp - 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4269e1
cmp byte [ebp - 0x21], 0
jne 0x42696f
mov eax, dword [ebp - 0x20]
call fcn.00406b4c
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00427498
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426a2c
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004036d4
lea eax, [ebp - 8]
call fcn.004036b0
ret