joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43eb24
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43eb36
add esp, 0xfffffff0
call fcn.00402f58
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411b98
mov eax, ebx
call fcn.0043ee70
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40bca8]
call fcn.00402c28
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40bca8]
call fcn.00402c28
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40bca8]
call fcn.00402c28
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40bca8]
call fcn.00402c28
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40bca8]
call fcn.00402c28
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x43b614
push eax
push 0
push 0
mov eax, dword [0x449bd8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x413060]
call fcn.00414598
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x413060]
call fcn.00414598
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x413060]
call fcn.00414598
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0043f2e0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43f1b4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43f1b4
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43f1b4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43ec45
call fcn.00402fb0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43ef98
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 0x43f143
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43f124
mov dl, 1
mov eax, dword [0x40bfa8]
call fcn.00402c28
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004038e0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43f113
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.0042d8d4
test al, al
je 0x43f106
lea eax, [ebp - 0xc]
push eax
push 0x20019
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, 0x43f154
lea eax, [ebp - 0x254]
call fcn.004084e4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43f106
xor eax, eax
push ebp
push 0x43f0ff
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 0x43f18c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43f0e8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b10
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 0x43f0e8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f106
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43f009
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ec2c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f14a
lea eax, [ebp - 0x260]
call fcn.004038e0
ret

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

Disassembly:
push ecx
mov eax, dword [0x44a7c8]
cmp byte [eax + 0x95], 0
jne 0x43fa49
cmp dword [0x44a7e4], 0
jne 0x43fa0a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x43f994
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44a7e4], eax
cmp dword [0x44a7e0], 0
jne 0x43fa25
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44a7e0], eax
cmp dword [0x44a7e8], 0
jne 0x43fa49
push esp
push 0
push 0
push 0x43f938
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44a7e8], eax
pop edx
ret
Function at 0x43fb40
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43fb57
add esp, 0xfffffff0
call fcn.00402f58
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411b98
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bca8]
call fcn.00402c28
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bca8]
call fcn.00402c28
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x4139f0]
call fcn.0041ac70
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x43fccc
mov eax, dword [0x449b10]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041b040
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x441658
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x449b10]
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.0040989c
test eax, eax
je 0x43fc4a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407e98
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004098c4
test eax, eax
je 0x43fc5e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403b10
mov eax, dword [0x449a28]
cmp byte [eax], 0
jne 0x43fc8f
mov eax, ebx
call fcn.0043fdb8
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43fcc1
call fcn.00402fb0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x440028
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44a7c8]
cmp dword [eax + 0x24], 0
je 0x4400cb
cmp dword [ebx + 0x84], 0
jne 0x4400c5
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x43ffb8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4400c5
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 0x44008e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4400c5
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d36c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44009d
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x440ad8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x440b0d
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.004039c8
jmp 0x440b17
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403934
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4419cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x441a04
mov eax, esi
call fcn.0042968c
test al, al
je 0x441a04
mov eax, dword [ebx + 0x74]
call fcn.00429390
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x441a04
push 0
mov eax, dword [ebx + 0x74]
call fcn.00429390
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401442
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401459
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40148e
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40148a
cmp edi, eax
jae 0x40148e
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40147c
cmp edi, eax
jb 0x401492
xor eax, eax
jmp 0x40149b
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402b76
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x48
mov eax, 0x450b91
call fcn.0042fba6
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ebx
call fcn.00403721
push 0xf0000000
xor esi, esi
inc esi
push esi
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push ebx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call edi
test eax, eax
jne 0x402bd8
push ebx
push esi
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
je 0x402c64
cmp dword [ebp - 0x30], ebx
je 0x402c5a
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x28]
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ebx, [ebp - 0x20]
lea ecx, [ebp - 0x54]
call fcn.00402af8
push 0xffffffffffffffff
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x2c]
push 0
call fcn.00402658
push 0
push esi
lea esi, [ebp - 0x54]
call fcn.0040273f
xor ebx, ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x2c]
call fcn.0042fc29
ret
Function at 0x4040c6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x20
mov eax, 0x450505
call fcn.0042fb3d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
ja 0x4040f0
push ebx
push 1
lea esi, [ebp + 8]
call fcn.0040273f
xor eax, eax
jmp 0x4041d6
lea edi, [eax - 1]
lea eax, [ebp + 8]
call fcn.00401694
cmp word [eax], 0x5c
jne 0x404128
mov edi, dword [ebp + 0x1c]
dec edi
lea eax, [ebp + 8]
call fcn.00401694
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x40411e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040215a
xor edi, edi
inc edi
cmp dword [ebp + 0x1c], 3
jb 0x4041c9
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
call fcn.004026e4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40414d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40415f
test al, 0x10
je 0x40415f
mov ebx, edi
push 0
push edi
lea esi, [ebp - 0x2c]
call fcn.0040273f
test ebx, ebx
jne 0x4041c9
sub esp, 0x1c
mov dword [ebp - 0x10], esp
mov ebx, esp
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004026e4
call fcn.0040407c
add esp, 0x1c
call fcn.004040c6
add esp, 0x1c
test eax, eax
je 0x4041b8
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4041a7
lea eax, [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4041b8
mov ebx, edi
jmp 0x4041ba
xor ebx, ebx
push 0
push edi
lea esi, [ebp + 8]
call fcn.0040273f
mov eax, ebx
jmp 0x4041d6
push 0
push edi
lea esi, [ebp + 8]
call fcn.0040273f
mov eax, edi
call fcn.0042fc15
ret
Function at 0x40534e
Capabilities:
Check if file exists
Move file

Disassembly:
mov eax, dword [esi + 8]
push edi
xor edi, edi
mov dword [esi], vtable.CExtractOutFile.0
cmp eax, 0xffffffff
je 0x405375
lea ecx, [esi + 0x14]
push ecx
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 8], 0xffffffff
cmp dword [esi + 0x10], edi
je 0x40539e
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x40539e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40539e
push 1
push dword [esi + 0x10]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x4053af
push eax
call fcn.0042d85a
pop ecx
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4053c0
push eax
call fcn.0042d85a
pop ecx
mov dword [esi + 0xc], edi
pop edi
ret

Function at 0x4073e5
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push ebp
push esi
push edi
mov edi, eax
add edi, 4
push dword [edi]
call ebx
push 0x3023
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x23
pop esi
call fcn.00444750
push dword [edi]
mov esi, eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push esi
push 0x3024
push eax
call ebp
push 0x24
pop esi
call fcn.00444750
push dword [edi]
mov esi, eax
call ebx
push esi
push 0x3023
push eax
call ebp
push 0x25
pop esi
call fcn.00444750
push dword [edi]
mov esi, eax
call ebx
push esi
push 2
push eax
call ebp
push 0x3e9
push dword [edi]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
mov eax, edi
jne 0x40746d
push 2
jmp 0x40746f
push 0
call fcn.004052ce
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret

Function at 0x407ba0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, eax
add edi, 4
push 4
mov eax, edi
call fcn.004052ce
push 0x1e
pop esi
call fcn.00444750
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
call esi
push ebx
push 0
push 0x479
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi]
call esi
push 2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x409704
Capabilities:
Check os version
Enumerate processes
Get common file path
Link many functions at runtime

Disassembly:
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x409721
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x409721
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd5]
xor eax, eax
cmp ecx, 0xd
ja case.0x409731.211
jmp dword [ecx*4 + 0x409754]
mov eax, edi
call fcn.0044728e
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
ret
mov ecx, edi
pop esi
jmp fcn.0044945d
mov dword [ebx], eax
pop esi
ret

Function at 0x40a96a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40a978
push 0xd
pop eax
jmp 0x40a9ab
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40a97f
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40a9c4
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x40c385
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c3e9
cmp dword [ebp + 0xc], 1
je 0x40c3c1
cmp dword [ebp + 0xc], 2
je 0x40c3c1
push 0xd
pop eax
jmp 0x40c3e9
mov eax, dword [ebp - 4]
test edi, edi
je 0x40c3e3
test eax, eax
je 0x40c3de
test al, 1
jne 0x40c3bc
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40c3e3
jmp 0x40c3bc
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x450457
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4650e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.NKZ::CKZArchive.0
mov dword [esi + 4], vtable.NKZ::CKZArchive.1.0
mov dword [esi + 0xc], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x70], 7
mov dword [esi + 0x6c], ebx
xor eax, eax
mov word [esi + 0x5c], ax
xor ecx, ecx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov word [esi + 0x52], cx
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x49], eax
mov dword [esi + 0x4d], eax
xor edx, edx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov word [esi + 0x80], dx
mov word [esi + 0x54], ax
mov byte [esi + 0x40], bl
lea ecx, [esi + 0x88]
push ecx
mov byte [esp + 0x18], 4
call fcn.0040ee30
mov dword [esi + 0xa0], vtable.NKZ::CBuffer_unsigned_char_.0
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40f730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x4650e0]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
mov ebp, dword [esp + 0x178]
push edi
cmp esi, 0xffffffff
je 0x40f8fe
test ebp, ebp
je 0x40f8fe
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push esi
call edi
test eax, eax
jne 0x40f791
call fcn.0040a3ee
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042cac7
add esp, 0x16c
ret
push 0x40
lea eax, [esp + 0x134]
push 0
push eax
call fcn.0042f410
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea edx, [esp + 0x13c]
push edx
push esi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x40f774
cmp dword [esp + 0xc], 0x40
je 0x40f7ef
mov eax, 0x80004005
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042cac7
add esp, 0x16c
ret
mov eax, dword [esp + 0x16c]
push 0
cdq
push 0
push edx
push eax
push esi
call edi
test eax, eax
je 0x40f774
push 0xf8
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042f410
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
je 0x40f774
cmp dword [esp + 0xc], 0xf8
jne 0x40f7d2
movzx eax, word [esp + 0x16]
dec eax
lea eax, [eax + eax*4]
push 1
add eax, eax
xor ecx, ecx
push ecx
add eax, eax
push ecx
add eax, eax
push eax
push esi
call edi
test eax, eax
je 0x40f774
xor eax, eax
push eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
lea eax, [esp + 0x10]
push eax
push 0x28
lea ecx, [esp + 0x114]
push ecx
push esi
call ebx
test eax, eax
je 0x40f774
cmp dword [esp + 0xc], 0x28
jne 0x40f7d2
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
add eax, edx
mov dword [ebp], eax
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042cac7
add esp, 0x16c
ret
mov ecx, dword [esp + 0x174]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x80070057
call fcn.0042cac7
add esp, 0x16c
ret