joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42836a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 9
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
je 0x428403
push 0x11
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x428403
push 0x10
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x428403
push 0x12
call sub.USER32.dll_GetKeyState
mov edi, eax
movsx edi, di
test di, 0x80
jne 0x428403
call sub.USER32.dll_GetFocus
push 5
lea edi, [ebp - 0xd]
push edi
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 0xd]
push eax
call sub.CRTDLL.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x428403
call sub.USER32.dll_GetFocus
push 0
push 0
push 0x44e
push eax
call sub.USER32.dll_SendMessageA
test ax, 0x800
jne 0x428403
xor eax, eax
jmp 0x42842e
push str.PB_WindowID
push dword [ebp + 8]
call sub.USER32.dll_GetPropA
mov dword [ebp - 4], eax
or eax, eax
je 0x42842c
dec eax
push eax
push dword [0x47414c]
call fcn.00429992
mov dword [ebp - 8], eax
mov eax, dword [eax + 0xc]
jmp 0x42842e
xor eax, eax
pop edi
leave
ret 4

Function at 0x428610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 0
jne 0x42863f
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
push eax
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
pop edi
leave
ret 4

Function at 0x428850
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov eax, dword [0x42f2e0]
mov edx, dword [0x42f2e4]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
push dword [ebp + 8]
push dword [0x47415c]
call fcn.00429992
mov dword [ebp - 0xc], eax
or eax, eax
je 0x4288ca
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
call sub.KERNEL32.dll_GetFileSize
push 0
push eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
pop eax
pop edx
pop ecx
or eax, ecx
pop ecx
or edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x4288ca
cmp dword [ecx + 0x14], 0
jne 0x4288ca
mov edi, ecx
mov esi, dword [edi + 8]
sub esi, dword [edi + 0xc]
add eax, esi
adc edx, 0
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4
Function at 0x4289d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x1000
push dword [ebp + 0xc]
push 0x1000
call fcn.00429f90
mov esi, eax
mov edi, esi
push dword [ebp + 8]
push dword [0x47415c]
call fcn.00429992
mov dword [ebp - 8], eax
or eax, eax
je 0x428aef
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x428a28
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00428c70
mov dword [ebp - 0xc], eax
jmp 0x428a3e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0
je 0x428a4a
mov al, byte [ebp - 1]
mov byte [edi], al
inc edi
mov eax, edi
sub eax, esi
cmp eax, ebx
jl 0x428a71
add ebx, 0x1000
mov eax, edi
sub eax, esi
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
push ebx
call fcn.00429f90
mov esi, eax
mov eax, dword [ebp - 0x10]
mov edi, eax
add edi, esi
movsx eax, byte [ebp - 1]
or eax, eax
je 0x428a8d
cmp dword [ebp - 0xc], 0
je 0x428a8d
cmp eax, 0xd
je 0x428a8d
cmp eax, 0xa
jne 0x428a08
cmp byte [ebp - 1], 0
je 0x428aef
dec edi
cmp byte [ebp - 1], 0xd
jne 0x428aef
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x428ab3
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 8]
call fcn.00428c70
jmp 0x428ac9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebp - 1], 0xa
je 0x428aef
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x428adf
add eax, 0xc
inc dword [eax]
jmp 0x428aef
push 1
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push dword [eax]
call sub.KERNEL32.dll_SetFilePointer
mov byte [edi], 0
mov eax, edi
sub eax, esi
mov edx, ebx
sub edx, eax
push edx
call fcn.0042a000
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x428b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
and dword [ebp - 4], 0
push dword [ebp + 8]
push dword [0x47415c]
call fcn.00429992
mov edi, eax
or eax, eax
je 0x428b88
cmp dword [edi + 4], 0
je 0x428b58
push 1
lea eax, [ebp - 4]
push eax
push edi
call fcn.00428c70
or eax, eax
je 0x428b4f
inc dword [edi + 0xc]
and dword [ebp - 4], 0
jmp 0x428b88
mov dword [ebp - 4], 1
jmp 0x428b88
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 9]
push eax
push dword [edi]
call sub.KERNEL32.dll_ReadFile
or eax, eax
je 0x428b75
cmp dword [ebp - 8], 0
jne 0x428b7b
or dword [ebp - 4], 0xffffffff
jmp 0x428b88
push 1
push 0
push 0xffffffffffffffff
push dword [edi]
call sub.KERNEL32.dll_SetFilePointer
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x428ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp dword [edi + 0x14], 1
jne 0x428bc3
and dword [edi + 0x14], 0
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], esi
jle 0x428c24
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov eax, esi
cmp eax, 1
je 0x428be7
cmp eax, 2
je 0x428bf3
cmp eax, 4
je 0x428c01
jmp 0x428c0d
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dl, byte [edx]
mov byte [eax], dl
jmp 0x428c1c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dx, word [edx]
mov word [eax], dx
jmp 0x428c1c
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [eax], edx
jmp 0x428c1c
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.CRTDLL.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x428c5e
push edi
call fcn.00428610
cmp esi, dword [edi + 8]
jl 0x428c42
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_WriteFile
jmp 0x428c5e
push esi
push dword [ebp + 0xc]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
call sub.CRTDLL.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x428c70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp dword [edi + 0x14], 0
jne 0x428c95
push edi
call fcn.00428610
mov dword [edi + 0x14], 1
and dword [edi + 0xc], 0
cmp dword [edi + 0xc], esi
jl 0x428cea
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov ebx, eax
add ebx, dword [edi + 4]
mov eax, esi
cmp eax, 1
je 0x428cb8
cmp eax, 2
je 0x428cc1
cmp eax, 4
je 0x428ccc
jmp 0x428cd5
mov eax, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [eax], dl
jmp 0x428ce2
mov eax, dword [ebp + 0xc]
mov dx, word [ebx]
mov word [eax], dx
jmp 0x428ce2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x428ce2
push esi
push ebx
push dword [ebp + 0xc]
call sub.CRTDLL.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov dword [ebp - 4], esi
jmp 0x428d69
mov ebx, dword [edi + 0xc]
push ebx
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
add eax, dword [edi + 4]
push eax
push dword [ebp + 0xc]
call sub.CRTDLL.dll_memcpy
add esp, 0xc
mov eax, ebx
add eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
sub esi, ebx
cmp esi, dword [edi + 8]
jl 0x428d29
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
and dword [edi + 0xc], 0
jmp 0x428d69
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 8]
push dword [edi + 4]
push dword [edi]
call sub.KERNEL32.dll_ReadFile
mov eax, dword [ebp - 4]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
cmp esi, dword [edi + 0xc]
jle 0x428d50
mov esi, dword [edi + 0xc]
push esi
push dword [edi + 4]
push dword [ebp + 0xc]
call sub.CRTDLL.dll_memcpy
add esp, 0xc
sub dword [edi + 0xc], esi
mov eax, ebx
add eax, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401d10
Capabilities:
Create thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x401d70
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push edi
push 0x401cf0
push 0
push 0
mov dword [edi + 4], eax
call fcn.00443d18
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x401d70
push 0x1388
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401d70
push esi
mov esi, dword [edi + 0xc]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov dword [edi + 4], 0
pop esi
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x4022c0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push dword [ebp + 8]
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4022f0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
cmp eax, 0x217
je 0x40230c
cmp eax, 0x3e5
jne 0x402315
pop edi
mov ebx, 1
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x4091b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov edx, dword [esi + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 8]
nop dword [eax]
cmp dword [ebp - 0xc], esi
jne 0x409229
mov ecx, esi
jmp 0x40922e
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x409249
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x40923d
mov eax, dword [eax]
jmp 0x409220
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
cmovne eax, esi
mov dword [ebx], eax
jmp 0x40924b
mov dword [ebx], esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439f38
mov esp, ebp
pop ebp
ret 8

Function at 0x409260
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
mov eax, dword [edi + 0x18]
imul ecx, ecx, 0x1000193
pop edi
pop esi
and eax, ecx
pop ebp
ret 4
Function at 0x409af0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 8], eax
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x409b74
cmp dword [ecx], edi
jne 0x409b6c
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x409b7c
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x409b7c
cmp dword [ecx], edi
jne 0x409b7f
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push edi
mov dword [eax], esi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
dec dword [ebx + 8]
call fcn.00439f33
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
mov dword [eax], esi
pop esi
pop ebx
call fcn.00439f38
mov esp, ebp
pop ebp
ret 8

Function at 0x40a0d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479ab8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esi + 8]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00406840
mov dword [ebp - 4], 0
lea edi, [esi + 0x50]
mov al, byte [edi]
test al, al
je 0x40a12e
mov eax, dword [esi]
test eax, eax
je 0x40a12e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor al, al
xchg byte [edi], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439f38
mov esp, ebp
pop ebp
ret

Function at 0x40a440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
push 0
push edx
push dword [ebp + 8]
mov dword [ebp - 8], 0
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a484
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
call fcn.00439f38
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push str.Could_not_write__i_bytes_to_file_stream___i_.
push eax
call fcn.0040a320
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0x4c1e24
push eax
call fcn.0043fff0
int3
Function at 0x40bfc0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a0f0
mov eax, dword fs:[0]
push eax
mov eax, 0x1024
call fcn.0043aa40
push esi
mov eax, dword [0x4c3408]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.004043d0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40c009
mov eax, dword [eax]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x40c030
inc ecx
push ecx
push dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.00401920
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
test esi, esi
je 0x40c089
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00404360
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x40c062
mov eax, dword [eax]
push esi
push eax
lea eax, [ebp - 0x1030]
push str.Could_not_delete_specified_registry_subkey__s___i_.
push eax
call fcn.00408960
add esp, 0x10
lea eax, [ebp - 0x1030]
push 0x4c1cac
push eax
call fcn.0043fff0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40c0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a14a
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.0043aa40
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push 0
mov esi, dword [ebp + 8]
push 0
push 0
push 0
push eax
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 0x34], 0
push 0
push dword [ebx]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40c13c
push eax
lea eax, [ebp - 0x1050]
push str.Could_not_get_registry_value_count_while_attempting_to_get_value_names___i_.
push eax
call fcn.00408960
add esp, 0xc
lea eax, [ebp - 0x1050]
push 0x4c1cac
push eax
call fcn.0043fff0
xor eax, eax
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
push 0x7fff
mov dword [ebp - 0x30], 0x7fff
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00404720
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov ecx, dword [esi + 8]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
mov ecx, dword [ebp - 0x14]
sar edx, 2
mov eax, edx
mov dword [ebp - 0x34], 1
shr eax, 0x1f
add eax, edx
cmp eax, ecx
jae 0x40c1dd
cmp ecx, 0xaaaaaaa
jbe 0x40c1d2
push str.vector_T__too_long
call fcn.0043b620
push ecx
mov ecx, esi
call fcn.0040b050
mov ecx, dword [ebp - 0x14]
xor edi, edi
test ecx, ecx
je 0x40c262
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x30]
push 0
push 0
push 0
push 0
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0x7fff
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40c2af
cmp dword [ebp - 0x18], 8
lea ebx, [ebp - 0x2c]
mov eax, dword [esi + 4]
cmovae ebx, dword [ebp - 0x2c]
cmp eax, dword [esi + 8]
jne 0x40c22f
push 1
mov ecx, esi
call fcn.0040afb0
mov ecx, dword [esi + 4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 2
test ecx, ecx
je 0x40c251
push dword [ebp - 0x30]
mov edx, ebx
call fcn.004042e0
add esp, 4
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
inc edi
add dword [esi + 4], 0x18
mov ebx, dword [ebp - 0x38]
cmp edi, dword [ebp - 0x14]
jb 0x40c1e3
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40c27b
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00401920
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439f38
mov esp, ebp
pop ebp
ret 4
push eax
push edi
lea eax, [ebp - 0x1050]
push str.Could_not_get_registry_value_name_at_index__i___i_.
push eax
call fcn.00408960
add esp, 0x10
lea eax, [ebp - 0x1050]
push 0x4c1cac
push eax
call fcn.0043fff0
int3
Function at 0x410420
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ad82
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c3408]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x28], esi
call fcn.0043b6b3
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4104fc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0043f93a
add esp, 8
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], vtable.std::runtime_error.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
push 0x4c1e34
push eax
call fcn.0043fff0
push edi
push esi
call fcn.0043bc5f
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00439f38
mov esp, ebp
pop ebp
ret 4

Function at 0x420eb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d08f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4c3408]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ecx + 8]
push 0x10
test esi, esi
je 0x420f26
push 8
push esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
jne 0x420f11
push str.____DataEvent::_Failed_to_allocate_memory_n_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4b8ee8
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
call fcn.0043fff0
mov dword [edx + 4], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [edx + 0xc], eax
jmp 0x420f4b
call fcn.0043a304
mov edx, eax
add esp, 4
test edx, edx
je 0x420efc
mov dword [edx + 4], 0
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov dword [edx + 0xc], ecx
mov dword [edx], 0x483438
mov dword [edx + 8], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x422170
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d5c5
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4c3408]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [0x4c3048]
mov dword [esi], eax
mov dword [ebp - 4], 0
mov eax, dword [0x4c3048]
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [0x4c3048]
mov dword [esi + 8], eax
mov byte [ebp - 4], 2
mov eax, dword [0x4c3048]
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 3
mov eax, dword [0x4c3048]
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [0x4c3048]
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 5
mov eax, dword [0x4c3048]
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 6
mov eax, dword [0x4c3048]
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 7
mov eax, dword [0x4c3048]
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 8
mov eax, dword [0x4c3048]
mov dword [esi + 0x24], eax
mov byte [ebp - 4], 9
mov eax, dword [0x4c3048]
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 0xa
mov eax, dword [0x4c3048]
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 0xb
mov eax, dword [0x4c3048]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 0xc
mov eax, dword [0x4c3048]
mov dword [esi + 0x34], eax
mov byte [ebp - 4], 0xd
mov eax, dword [0x4c3048]
mov dword [esi + 0x38], eax
mov byte [ebp - 4], 0xe
mov eax, dword [0x4c3048]
mov dword [esi + 0x3c], eax
mov byte [ebp - 4], 0xf
mov eax, dword [0x4c3048]
mov dword [esi + 0x40], eax
mov byte [ebp - 4], 0x10
mov eax, dword [0x4c3048]
mov dword [esi + 0x44], eax
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x5c]
push 0
call fcn.00420860
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x70]
push 0
call fcn.00420860
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x84]
push 0
call fcn.00420860
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0x98]
push 0
call fcn.00420860
mov byte [ebp - 4], 0x15
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret