joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40438a
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x40453c
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x4043b4
cmp ax, 0x2f
jne 0x40453c
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40453c
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403b27
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x404506
push edi
lea ecx, [ebp - 0x1c]
call fcn.004013ed
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401305
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040281d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013be
mov esi, 0x413418
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040281d
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0040281d
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013be
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040281d
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040281d
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013be
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040281d
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402416
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x404517
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x404517
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push 0x4133d4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x404542
push dword [ebp - 0x28]
call fcn.00402d3e
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404543
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x404642
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401bea
push 3
call fcn.00401c40
push 0x28
mov dword [0x415744], eax
call fcn.00401c40
push 2
mov dword [0x415740], eax
call fcn.00401c40
push 5
mov dword [0x41573c], eax
call fcn.00401c40
push 0x15
mov dword [0x415738], eax
call fcn.00401c40
push 0x16
mov dword [0x415734], eax
call fcn.00401c40
push 0x17
mov dword [0x415730], eax
call fcn.00401c40
add esp, 0x1c
xor ebx, ebx
mov dword [0x41572c], eax
mov dword [0x415724], ebx
mov dword [0x415728], ebx
mov edi, 0x415384
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404766
push ebx
lea eax, [ebp - 0x98]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004013ed
lea ecx, [ebp - 0xc]
call fcn.004013ed
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401305
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401305
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402853
cmp dword [esi + 0x41535c], ebx
jne 0x404756
push dword [esi + 0x415360]
lea ecx, [ebp - 0x18]
call fcn.00401305
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401305
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402853
add esi, 8
cmp esi, 0x28
jb 0x404726
lea ecx, [ebp - 0x18]
call fcn.00402080
inc ebx
cmp ebx, 0x40
jl 0x4046bd
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ed9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00405e9b
add esp, 0x1c
leave
ret
Function at 0x407529
Capabilities:
Inspect load icon resource

Disassembly:
push ecx
push ecx
test word [0x41534c], 0x200
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_LoadIconW]
mov esi, ecx
mov byte [0x415758], 0
jne 0x4075b2
push 0x65
push 0
call ebx
push eax
call edi
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0x32
mov dword [esp + 0x18], eax
call ebp
push eax
push 0x31
call ebp
push eax
push 1
push 0x65
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x40758d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
push dword [esp + 0x10]
mov ebp, 0x80
push 1
push ebp
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x14]
push 0
push ebp
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 0x10]
mov ecx, esi
push 0x4b2
call fcn.00406ab0
push dword [esi + 0xc]
mov ecx, esi
call fcn.00407199
mov eax, dword [esi + 8]
and eax, 3
xor ebp, ebp
sub eax, ebp
je 0x407651
dec eax
je 0x40762d
dec eax
je 0x4075fd
dec eax
jne 0x40767b
push 0x19
call fcn.00401c40
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406bd6
push 0x1a
jmp 0x407668
push 0x1a
call fcn.00401c40
pop ecx
push eax
mov ebp, 0x4b4
push ebp
mov ecx, esi
call fcn.00406bd6
push 0
push 0x4b3
mov ecx, esi
call fcn.004062c6
push ebp
mov ecx, esi
call fcn.00406114
xor ebp, ebp
jmp 0x40767b
push 0x19
call fcn.00401c40
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406bd6
push ebp
push 0x4b4
mov ecx, esi
call fcn.004062c6
jmp 0x40767b
push 0x1b
call fcn.00401c40
pop ecx
push eax
push 0x4b3
mov ecx, esi
call fcn.00406bd6
push 0x1c
call fcn.00401c40
pop ecx
push eax
push 0x4b4
mov ecx, esi
call fcn.00406bd6
cmp dword [esi + 0x38], ebp
je 0x4076b8
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push 5
push dword [esi + 4]
jmp 0x407697
push edi
call fcn.00403608
pop ecx
push 2
push edi
call ebx
mov edi, eax
cmp edi, ebp
jne 0x40768d
test byte [0x41534c], 8
jne 0x407752
mov ecx, esi
call fcn.004066f7
jmp 0x407752
mov eax, dword [esi + 8]
and eax, 0x1c
cmp eax, 4
je 0x4076f4
cmp eax, 8
je 0x4076ed
cmp eax, 0xc
je 0x4076e6
cmp eax, 0x10
je 0x4076df
cmp eax, 0x14
jne 0x407724
push 0x7f03
push ebp
jmp 0x4076fa
push 0x7f04
jmp 0x4076dc
push 0x7f01
jmp 0x4076dc
push 0x7f02
jmp 0x4076dc
push 0x65
push ebp
call ebx
push eax
call edi
cmp eax, ebp
je 0x407724
push eax
xor ecx, ecx
inc ecx
push ecx
push 0x172
push 0x4b1
push dword [esi + 4]
mov dword [esi + 0x30], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x407734
push ebp
push 0x4b1
mov ecx, esi
mov dword [esi + 0x30], ebp
call fcn.004062c6
test byte [0x41534c], 8
jne 0x407744
mov ecx, esi
call fcn.004066f7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, esi
call fcn.00406230
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
pop ecx
ret
Function at 0x407a9f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x407aa7
mov dword [ecx*4 + 0x415900], eax
inc ecx
cmp ecx, 0x100
jb 0x407aa2
mov edx, 0x800
jmp 0x407af4
mov eax, dword [ecx*4 + 0x415500]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x415900]
inc ecx
mov dword [ecx*4 + 0x4158fc], eax
cmp ecx, edx
jb 0x407ad3
mov dword [0x4157cc], 0x411070
call fcn.0040cc6c
test eax, eax
pop esi
jne 0x407b16
mov dword [0x4157cc], 0x410f90
ret
Function at 0x40ce0b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce31
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40ce31
xor al, al
jmp 0x40ce51
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00410d50
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4103f7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x410410
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x410433
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x410438
inc esi
cmp esi, dword [ebp - 4]
jb 0x41042a
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x41052d
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x41048c
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x410463
cmp cl, 0xff
jne 0x4104b7
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x4104c5
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4104cc
dec ecx
shl edx, cl
and edx, 7
je 0x410454
movzx ecx, byte [edx + 0x413a90]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x413a88], 0
mov cl, byte [ebx + 4]
je 0x4104b4
test cl, cl
je 0x4104b4
cmp cl, 0xff
jne 0x410454
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x410425
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x410500
movzx edi, byte [edx + 0x413a90]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4104eb
cmp al, 0xff
jne 0x4104fd
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x41047e
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x410425
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
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 0x402b2a
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x48
mov eax, 0x44f338
call fcn.0042ecf6
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.004036d5
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 0x402b8c
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 0x402c18
cmp dword [ebp - 0x30], ebx
je 0x402c0e
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.00402aac
push 0xffffffffffffffff
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x2c]
push 0
call fcn.004025ff
push 0
push esi
lea esi, [ebp - 0x54]
call fcn.004026e6
xor ebx, ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x2c]
call fcn.0042ed79
ret
Function at 0x40407a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x20
mov eax, 0x44f28c
call fcn.0042ec8d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
ja 0x4040a4
push ebx
push 1
lea esi, [ebp + 8]
call fcn.004026e6
xor eax, eax
jmp 0x40418a
lea edi, [eax - 1]
lea eax, [ebp + 8]
call fcn.00401694
cmp word [eax], 0x5c
jne 0x4040dc
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 0x4040d2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00402146
xor edi, edi
inc edi
cmp dword [ebp + 0x1c], 3
jb 0x40417d
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
call fcn.0040268b
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x404101
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404113
test al, 0x10
je 0x404113
mov ebx, edi
push 0
push edi
lea esi, [ebp - 0x2c]
call fcn.004026e6
test ebx, ebx
jne 0x40417d
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.0040268b
call fcn.00404030
add esp, 0x1c
call fcn.0040407a
add esp, 0x1c
test eax, eax
je 0x40416c
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x40415b
lea eax, [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x40416c
mov ebx, edi
jmp 0x40416e
xor ebx, ebx
push 0
push edi
lea esi, [ebp + 8]
call fcn.004026e6
mov eax, ebx
jmp 0x40418a
push 0
push edi
lea esi, [ebp + 8]
call fcn.004026e6
mov eax, edi
call fcn.0042ed65
ret
Function at 0x408a15
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 0x408a32
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x408a32
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.0x408a42.211
jmp dword [ecx*4 + 0x408a65]
mov eax, edi
call fcn.00445c1f
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
ret
mov ecx, edi
pop esi
jmp fcn.00447dee
mov dword [ebx], eax
pop esi
ret

Function at 0x409c77
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x409c85
push 0xd
pop eax
jmp 0x409cb8
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 0x409c8c
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 0x409cd1
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 0x40b6e1
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 0x40b745
cmp dword [ebp + 0xc], 1
je 0x40b71d
cmp dword [ebp + 0xc], 2
je 0x40b71d
push 0xd
pop eax
jmp 0x40b745
mov eax, dword [ebp - 4]
test edi, edi
je 0x40b73f
test eax, eax
je 0x40b73a
test al, 1
jne 0x40b718
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40b73f
jmp 0x40b718
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

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

Disassembly:
push 0xffffffffffffffff
push 0x44ec37
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x463060]
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.0040e1c0
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 0x41e8e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e5e1
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push edi
mov eax, dword [0x463060]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x30], esi
je 0x41e952
cmp esi, ebx
je 0x41e940
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x41e94f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x30], esi
cmp dword [edi + 0x2c], ebp
je 0x41e976
cmp ebp, ebx
je 0x41e964
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x41e973
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x2c], ebp
mov eax, dword [edi + 0x14]
sub eax, 1
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ebx
mov byte [edi + 8], bl
je 0x41e9a5
sub eax, 1
mov eax, edi
jne 0x41e9ac
call fcn.0041ec10
jmp 0x41e9aa
call fcn.0041eb70
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x41e9d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44e431
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x463060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 2
mov dword [esp + 0x14], eax
cmp dword [esi + 0x14], eax
jne 0x41ea49
cmp dword [esi + 0x10], 1
jne 0x41ea49
mov edi, dword [esi]
cmp byte [edi], 0
jne 0x41ea49
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [edi + 0x18], 0
call fcn.0042cb15
mov dword [edi + 4], eax
mov dword [esi + 0xc], eax
call fcn.00434d26
mov edx, dword [esi + 0x18]
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push edx
push 1
push eax
call fcn.0042d79b
add esp, 0x18
cmp dword [esi + 0x14], 0
jne 0x41ea72
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41eab5
mov edx, dword [esi + 0x34]
test edx, edx
je 0x41eab5
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x41eab5
mov edi, dword [eax]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push edx
push eax
call ecx
jmp 0x41eab5
cmp dword [esi + 0x10], 0
jne 0x41ea94
cmp byte [esi + 8], 0
je 0x41ea8a
mov edx, dword [esi + 0xc]
push edx
call fcn.0042c825
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x41eab5
push eax
jmp 0x41eaad
mov edi, dword [esi]
test edi, edi
je 0x41eab5
cmp byte [edi + 0x18], 0
je 0x41eaac
mov eax, dword [edi + 4]
push eax
call fcn.0042c825
add esp, 4
push edi
call fcn.0042bd6c
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x41eacc
push eax
call fcn.0042cb0a
add esp, 4
mov dword [esi + 0x34], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41eae0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x41eaf7
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4