joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406400
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, dword [esp + 0x10]
push 0x409
push 7
push 0x417410
push edi
movzx ebx, ax
call dword [0x41c254]
mov esi, eax
test esi, esi
jne 0x406430
pop edi
pop esi
xor ax, ax
pop ebx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jbe 0x406429
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40648e
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40648e
movzx eax, word [edi]
movzx ecx, ax
xor esi, esi
test ecx, ecx
jle 0x406487
mov edx, ebx
and edx, 0x3ff
lea eax, [edi + 2]
nop
mov bx, word [eax]
and bx, 0x3ff
cmp bx, dx
je 0x406496
add esi, 1
add eax, 2
cmp esi, ecx
jl 0x406470
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
xor ax, ax
pop ebx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ax, word [edi + esi*2 + 2]
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4064b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x41745c
call dword [0x41c270]
mov esi, eax
test esi, esi
je 0x4064e1
mov edi, dword [0x41c284]
push 0x417440
push esi
call edi
test eax, eax
jne 0x4064e7
push 0x417428
push esi
call edi
test eax, eax
jne 0x4064e7
pop edi
or eax, 0xffffffff
pop esi
ret
push ebx
call eax
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ebx, dword [0x41c254]
shr ecx, 4
movzx eax, ax
add ecx, 1
movzx esi, cx
push eax
push esi
push 6
push edi
call ebx
test eax, eax
jne 0x406559
push 0x4173d4
call fcn.00406370
movzx eax, ax
add esp, 4
test ax, ax
jne 0x40654e
push ebp
push edi
call fcn.00406400
add esp, 4
movzx ebp, ax
push ebp
push esi
push 6
push edi
call ebx
test bp, bp
pop ebp
jne 0x406555
push 0x4173f0
call fcn.00406370
add esp, 4
movzx eax, ax
push eax
push esi
push 6
push edi
call ebx
test eax, eax
je 0x4065d6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4065d6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4065cf
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
and edx, 0xf
nop
movzx esi, word [eax]
add eax, 2
cmp ecx, edx
jne 0x4065c4
cmp esi, ebx
jge 0x4065c7
mov edx, dword [esp + 0x18]
xor ecx, ecx
test esi, esi
jle 0x4065b1
jmp 0x4065a0
mov bx, word [eax]
mov word [edx + ecx*2], bx
add ecx, 1
add eax, 2
cmp ecx, esi
jl 0x4065a0
push edi
mov word [edx + ecx*2], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, esi
pop esi
ret
lea eax, [eax + esi*2]
add ecx, 1
cmp ecx, 0x10
jl 0x406580
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
or eax, 0xffffffff
pop esi
ret
Function at 0x4070f1
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x41b188]
mov dword [ebp - 4], eax
mov eax, dword [0x41e72c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x407120
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x4072ad
push dword [0x41b098]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x4072ad
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x407158
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x407170
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x407191
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x4071ae
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00407054
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4071d1
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4071e5
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00407054
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40721a
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x40722c
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.00406f85
test eax, eax
pop esi
jne 0x40726d
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00406f85
test eax, eax
jne 0x40729b
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00406f85
test eax, eax
jne 0x4072ad
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00406f85
test eax, eax
je 0x4072ad
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.00407b7c
leave
ret

Function at 0x407b7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b188]
jne 0x407b86
repz ret
jmp fcn.0040b3ef
Function at 0x40c6bd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41ba68]
je 0x40c6d8
inc edi
cmp edi, 0x17
jb 0x40c6c9
cmp edi, 0x17
jae 0x40c858
push ebp
push 3
call fcn.004126a0
cmp eax, 1
pop ecx
je 0x40c824
push 3
call fcn.004126a0
test eax, eax
pop ecx
jne 0x40c70c
cmp dword [0x41b300], 1
je 0x40c824
cmp ebx, 0xfc
je 0x40c857
push 0x418090
mov ebx, 0x314
push ebx
mov ebp, 0x41e070
push ebp
call fcn.00410368
add esp, 0xc
test eax, eax
je 0x40c742
push esi
push esi
push esi
push esi
push esi
call fcn.00409312
add esp, 0x14
push 0x104
mov esi, 0x41e089
push esi
push 0
mov byte [0x41e18d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c786
push 0x418078
push 0x2fb
push esi
call fcn.00410368
add esp, 0xc
test eax, eax
je 0x40c786
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00409312
add esp, 0x14
push esi
call fcn.004103d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40c7cb
push esi
call fcn.004103d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41e384
push 0x418074
sub ecx, eax
push ecx
push eax
call fcn.00411a26
add esp, 0x14
test eax, eax
je 0x40c7cb
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00409312
add esp, 0x14
jmp 0x40c7cd
xor esi, esi
push 0x418070
push ebx
push ebp
call fcn.0041196d
add esp, 0xc
test eax, eax
je 0x40c7ed
push esi
push esi
push esi
push esi
push esi
call fcn.00409312
add esp, 0x14
push dword [edi*8 + 0x41ba6c]
push ebx
push ebp
call fcn.0041196d
add esp, 0xc
test eax, eax
je 0x40c80f
push esi
push esi
push esi
push esi
push esi
call fcn.00409312
add esp, 0x14
push 0x12010
push 0x418048
push ebp
call fcn.004124e3
add esp, 0xc
jmp 0x40c857
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40c857
cmp ebp, 0xffffffff
je 0x40c857
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41ba6c]
push dword [esi]
call fcn.004103d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100010c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027b0a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100344cc]
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 edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.1000fa45
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10001166
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.100108bb
push 0x10032abc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.10012dbf
push edi
push esi
call fcn.1000fcdb
add esp, 8
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.1001083d
mov esp, ebp
pop ebp
ret 4

Function at 0x10003820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027dce
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100344cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.10003bb0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
lea ecx, [edi + 0x24]
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10003bb0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x10003934
test dl, 0x10
jne 0x10003934
mov eax, 1
jmp 0x10003936
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.100039d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10005330
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10005361
lea esp, [esp]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10005350
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x1000b710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000b729
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000b764
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000b760
lea ebx, [ebx]
cmp esi, edx
jae 0x1000b764
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x1000b750
cmp esi, edx
jb 0x1000b76b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000cfb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x100344cc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x70
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10015b40
add esp, 0xc
mov dword [ebp - 0x74], 1
mov eax, 0x12
mov dword [ebp - 0x58], 1
mov word [ebp - 0x70], ax
push 0x80
push str.00000409
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov edi, eax
test edi, edi
je 0x1000d077
push esi
push edi
push 0x64
call dword [sym.imp.USER32.dll_VkKeyScanExW]
mov word [ebp - 0x54], ax
movdqu xmm0, xmmword [ebp - 0x58]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x5c]
movdqu xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x74]
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x2c], xmm0
movdqu xmm0, xmmword [ebp - 0x74]
push 0x1c
push eax
movdqu xmmword [ebp - 0x20], xmm0
push 4
movq xmm0, qword [ebp - 0x64]
mov dword [ebp - 0x34], 2
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x18], 2
call dword [sym.imp.USER32.dll_SendInput]
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001083d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1001083d
mov esp, ebp
pop ebp
ret
Function at 0x40dd11
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d2a0
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x1008]
mov ecx, dword [ecx + 0x60]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 0x800
push eax
call fcn.0040ddc8
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dd51
sub ecx, edx
sar ecx, 1
push esi
lea edi, [ecx*2 + 2]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ddb8
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ddb2
push edi
lea eax, [ebp - 0x1008]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ca70
leave
ret 8

Function at 0x40df1b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push 3
push 0x110a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40e03c
xor ebx, ebx
lea eax, [ebp - 0x808]
push ebx
push 0x400
push eax
mov edx, edi
mov ecx, esi
call fcn.0040ddc8
lea ecx, [ebp - 0x80c]
push ecx
push 8
push ebx
lea ecx, [ebp - 0x808]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40df89
xor eax, eax
jmp 0x40e03f
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40df92
sub ecx, edx
mov eax, 0x3ff
sar ecx, 1
sub eax, ecx
push eax
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x808]
push eax
push 0
jmp 0x40e011
lea eax, [ebp - 0x810]
inc ebx
push eax
push 9
push 0
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dfea
lea ecx, [ebp - 0x810]
call fcn.0040e04e
jmp 0x40dfec
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x808]
mov edx, edi
push eax
push 0xffff0001
mov ecx, esi
call 0x49ce78
push dword [ebp - 0x814]
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40dfba
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
push 0x1113
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret
Function at 0x413f53
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x820], eax
xor ebx, ebx
mov dword [ebp - 0x814], ebx
cmp dword [edi + 0x64], ebx
je 0x4140fe
xor eax, eax
inc eax
mov dword [ebp - 0x818], eax
push eax
push dword [edi + 0x2c]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00402a0c
add esp, 0x10
lea eax, [ebp - 0x81c]
push eax
push 0
push eax
push 0
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x413fe1
mov eax, dword [ebp - 0x818]
inc eax
mov dword [ebp - 0x818], eax
cmp eax, 0x64
jb 0x413f90
xor ebx, ebx
jmp 0x414048
cmp esi, 2
jbe 0x41400f
cmp esi, 3
je 0x41400b
cmp esi, 4
je 0x414004
cmp esi, 7
je 0x41400f
cmp esi, 0xb
jne 0x41401e
and dword [ebp - 0xc], ebx
and dword [ebp - 8], ebx
push 8
jmp 0x414017
and dword [ebp - 0xc], ebx
push 4
jmp 0x414017
xor ebx, ebx
jmp 0x414018
xor eax, eax
mov word [ebp - 0xc], ax
push 2
pop ebx
mov dword [ebp - 0x814], ebx
push ebx
lea eax, [ebp - 0xc]
xor ebx, ebx
push eax
push esi
push ebx
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x414042
mov eax, 0xa9
jmp 0x414050
mov eax, dword [ebp - 0x818]
cmp eax, 0x64
jne 0x414071
add eax, 0x46
push 0x10
push 0xa8
push eax
push dword [ebp - 0x820]
push dword [0x41edec]
call 0x49ce78
add esp, 0x14
jmp 0x4140fe
push ebx
push ebx
push 0x1004
push dword [edi]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x85c], 3
mov dword [ebp - 0x848], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x858], eax
mov dword [ebp - 0x854], ebx
cmp esi, 1
je 0x4140bb
cmp esi, 2
je 0x4140bb
mov dword [ebp - 0x840], 5
cmp esi, 7
jne 0x4140c5
mov dword [ebp - 0x840], 4
lea eax, [ebp - 0x85c]
push eax
push ebx
push 0x104d
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4140fe
mov ecx, dword [edi]
lea eax, [ebp - 0xc]
push esi
push dword [ebp - 0x814]
mov edx, ebx
push eax
call fcn.00414f32
mov ecx, dword [edi]
mov edx, ebx
call fcn.00415291
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 8
Function at 0x416c40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ba2d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d04c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.Counter.0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ecx + 0xc], xmm0
movq qword [ecx + 0x1c], xmm0
mov dword [ecx + 0x24], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0x28], 0xffffffff
mov dword [ecx], 2
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0x9c4
call fcn.0041d3b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x421040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4210fc
cmp byte [esi + 0x3d], 0
je 0x4210fc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4210ea
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4210b1
sub eax, 1
je 0x4210b5
sub eax, 2
jne 0x4210ea
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489ca8
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4210d3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4210ea
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489ca8
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00489ca8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00489ca8
mov esp, ebp
pop ebp
ret
Function at 0x4245f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x424611
jl 0x424607
test esi, esi
jne 0x424611
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x424628
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x424664
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp + 8], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x4246d8
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x42468c
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4246c6
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x4246d8
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x4246a0
test ecx, ecx
je 0x4246d8
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc