joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x41b5ac
call fcn.00414220
push eax
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x2c]
add eax, eax
push eax
call fcn.00403410
test al, al
je 0x41b6f7
push 0
push 0x8800
lea ecx, [esi + 0x40]
call fcn.00403270
test al, al
je 0x41b6f7
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x14]
add ecx, 0x400
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], eax
lea eax, [ecx + 0x8000]
mov dword [esi + 0x10], 0
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x80], ecx
mov dword [esi + 0x7c], ecx
mov dword [esi + 0xa4], 1
mov dword [esi + 0xc], 1
nop word [eax + eax]
cmp dword [esi + 0x18], 0
je 0x41b680
mov ecx, esi
call fcn.0041bb90
mov edx, dword [esi + 0x14]
mov dword [esi + 0x10], eax
sub edx, dword [esi + 0x1c]
je 0x41b674
mov ecx, dword [esi + 8]
push 0x466210
push edx
push dword [esi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x94]
call eax
test al, al
je 0x41b66d
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
shr eax, 0xd
test al, 1
jne 0x41b66d
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
jmp 0x41b674
mov dword [esi + 0x10], 0xffffffff
cmp dword [esi + 0x10], 0
je 0x41b620
nop word [eax + eax]
mov ecx, esi
call fcn.0041bb90
mov edx, dword [esi + 0x14]
mov dword [esi + 0x10], eax
sub edx, dword [esi + 0x1c]
je 0x41b6d5
mov ecx, dword [esi + 8]
push 0x466210
push edx
push dword [esi + 0x3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x94]
call eax
test al, al
je 0x41b6ce
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
shr eax, 0xd
test al, 1
jne 0x41b6ce
mov eax, dword [esi + 0x3c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41b680
jmp 0x41b6d8
mov dword [esi + 0x10], 0xffffffff
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41b713
cmp eax, 1
je 0x41b713
mov eax, dword [esp + 8]
push dword [esp + 0xc]
push str.Decompression_error_in___s_._File_may_be_corrupted
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
add esp, 0xc
mov eax, dword [esi + 0xac]
lea ecx, [esi + 0xac]
mov dword [esi + 0x10], 0xfffffffc
call dword [eax + 0xc]
xor al, al
pop esi
ret 8
mov eax, dword [esi + 0xac]
lea ecx, [esi + 0xac]
call dword [eax + 0xc]
mov al, 1
pop esi
ret 8
Function at 0x41c7a0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x443068
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x467fd4]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x230]
lea ecx, [ebp]
mov ebx, dword [ebp + 0x234]
push 0
push 0x108
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x14]
push 2
push eax
call fcn.004031c0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov word [eax], cx
push 0x5c
push ebx
mov dword [ebp - 4], ecx
call fcn.0040bf70
mov esi, eax
push esi
call fcn.0040bde0
add esp, 0xc
lea ecx, [ebp]
mov edi, eax
push 0xffffffffffffffff
push esi
call fcn.004089d0
cmp edi, 4
jbe 0x41c837
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov word [ecx + edi*2 - 8], ax
mov esi, dword [ebp - 0x10]
push esi
push dword [0x4eb8d4]
push ebx
call fcn.004224f0
push 0x7530
push dword [ebp + 0x10]
push esi
call fcn.0041ee00
push 0
push dword [ebp + 0x10]
push esi
call fcn.0041e7d0
add esp, 0x24
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 2
nop word [eax + eax]
push 0xffffffffffffffff
push ebx
lea ecx, [ebp]
call fcn.004089d0
lea ecx, [ebp]
sub edi, 1
je 0x41c89a
call fcn.00408390
jmp 0x41c8aa
call fcn.00408390
push 0x2e
push eax
call fcn.004257e7
add esp, 8
mov esi, eax
test esi, esi
je 0x41c8d5
push esi
call fcn.0040be10
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.00406d40
add esp, 0x10
mov eax, 0x5f
mov word [esi], ax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x41c880
push ebx
lea ecx, [ebp]
call fcn.00408b00
lea ecx, [ebp]
call fcn.00408390
push 0x5f
lea ecx, [ebp]
mov esi, eax
call fcn.00407a60
mov eax, dword [ebp - 0x10]
push edi
push esi
push eax
call fcn.0041e7d0
add esp, 0xc
lea ecx, [ebp]
push 1
push 0x44d680
call fcn.00408800
push dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push 0xffffffffffffffff
push ebx
lea ecx, [ebp]
call fcn.004089d0
push 1
push str.snap
lea ecx, [ebp]
call fcn.00408800
push dword [ebp + 0x10]
call esi
lea ecx, [ebp]
mov dword [ebp - 4], 1
call fcn.00403250
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00422c85
lea esp, [ebp + 0x228]
pop ebp
ret
Function at 0x41e4e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443db8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x467fd4]
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
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
push 0
push 8
mov word [ebp - 0x14], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41e557
call esi
cmp eax, 0x3f0
jne 0x41e579
lea eax, [ebp - 0x20]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41e579
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 2
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x41e580
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x41e641
call esi
cmp eax, 0x7a
jne 0x41e570
push 1
lea ecx, [ebp - 0x3c]
call fcn.00403190
push 0
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00403270
test al, al
je 0x41e625
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push ebx
push 2
push dword [ebp - 0x20]
call edi
test eax, eax
je 0x41e625
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41e625
xor esi, esi
mov byte [ebp - 0x19], 0
cmp dword [ebx], esi
jbe 0x41e60a
lea edi, [ebx + 4]
push dword [ebp - 0x28]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x41e621
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x41e5f3
mov bl, byte [ebp - 0x19]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41e630
mov bl, 1
jmp 0x41e60d
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00403250
mov al, bl
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.00422c85
mov esp, ebp
pop ebp
ret
Function at 0x421a50
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x444100
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x467fd4]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x230]
mov ebx, dword [ebp + 0x234]
push 0
push edi
mov dword [ebp - 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x421bbf
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403190
push 0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00403270
test al, al
je 0x421ba7
push dword [ebp - 0x1c]
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x421b7e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push str.StringFileInfo040904B0FileDescription
push dword [ebp - 0x1c]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x421b4e
cmp dword [ebp - 0x10], 0
je 0x421b1b
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.0040cf90
jmp 0x421b31
mov eax, dword [vtable.ErrorClass.0]
mov ecx, 0x466210
push 0
push str.Could_not_retrieve_File_Description
mov eax, dword [eax + 4]
call eax
mov bl, al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00403250
mov dword [ebp - 4], 0xffffffff
jmp 0x421bd7
mov eax, dword [vtable.ErrorClass.0]
mov ecx, 0x466210
push 0
push str.File_Description_could_not_be_found_in_the_Version_resource
mov eax, dword [eax + 4]
call eax
mov bl, al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 2
call fcn.00403250
mov dword [ebp - 4], 0xffffffff
jmp 0x421bd7
push str.Could_not_retrieve_Version_information_for_the_running_binary
mov ecx, 0x466210
call fcn.004056b0
mov bl, al
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.00403250
mov dword [ebp - 4], 0xffffffff
jmp 0x421bd7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 4
call fcn.00403250
mov dword [ebp - 4], 0xffffffff
jmp 0x421be2
mov eax, dword [vtable.ErrorClass.0]
mov ecx, 0x466210
push 0
push str.Version_resource_is_not_present_in_the_running_binary
mov eax, dword [eax + 4]
call eax
mov bl, al
test bl, bl
je 0x421bdf
mov al, 1
jmp 0x421c40
mov ebx, dword [ebp - 0x18]
push 0
push 0x108
push 2
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp]
call fcn.004031c0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push edi
lea ecx, [ebp]
mov dword [ebp - 4], 6
call fcn.004089d0
test al, al
je 0x421c2d
lea ecx, [ebp]
call fcn.00408390
push eax
mov ecx, ebx
call fcn.0040cf90
test al, al
je 0x421c2d
mov bl, 1
jmp 0x421c2f
xor bl, bl
lea ecx, [ebp]
mov dword [ebp - 4], 7
call fcn.00403250
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00422c85
lea esp, [ebp + 0x228]
pop ebp
ret
Function at 0x43c37e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043c03e
Function at 0x40150d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
or dword [ebp - 4], 0xffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
mov edi, dword [0x4339ac]
push 0x4263b4
lea eax, [ebp - 0x118]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [edi + 0x140]
push eax
lea eax, [ebp - 0x118]
push eax
call esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x4015ad
push 0
lea eax, [ebp - 0x14]
push eax
push 4
pop eax
push eax
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp + 8]
push eax
push 0x220044
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40159f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401642
cmp dword [ebp + 8], 1
jle 0x401642
add edi, 0x454
push edi
lea eax, [ebp - 0x118]
push eax
call ebx
push 0x4263c4
lea eax, [ebp - 0x118]
push eax
call esi
push 0x4263c0
lea eax, [ebp - 0x118]
push eax
call esi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x118]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x401642
xor ecx, ecx
cmp dword [ebp + 8], 2
push 4
sete cl
pop eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x118], ecx
lea ecx, [ebp - 0x118]
push ecx
push eax
push esi
push 0x4263bc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40164c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [0x4339ac]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x4263d4
xor ebp, ebp
push ebp
mov ebx, 0x143
add esi, 0x554
push ebx
push dword [esi + 0x238]
mov dword [esi + 0x244], 1
call edi
cmp eax, 0xffffffff
je 0x40169d
push 0x20
push eax
push 0x151
push dword [esi + 0x238]
call edi
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00409dcd
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401702
test ebp, ebp
lea eax, [esp + 0x10]
je 0x4016d2
push ebp
push 0x4263cc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4016de
push 0x4263c8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push 0
push ebx
push dword [esi + 0x238]
call edi
cmp eax, 0xffffffff
je 0x401702
push ebp
push eax
push 0x151
push dword [esi + 0x238]
call edi
inc ebp
cmp ebp, 0x1f
jle 0x40169d
and dword [esi + 0x244], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4022cd
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
push esi
mov esi, dword [0x4339ac]
push edi
xor edi, edi
cmp dword [esi + 0x8a0], edi
je 0x4024a9
push ebx
push ebp
push 1
call fcn.00401486
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0x10], eax
jge 0x4023a3
push edi
push dword [esi + 0x784]
call ebp
lea eax, [esi + 0x454]
push eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4263c4
lea eax, [esp + 0x24]
push eax
call ebx
push str.PlugData
lea eax, [esp + 0x24]
push eax
call ebx
push edi
lea eax, [esp + 0x18]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [esp + 0x3c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4023ad
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push edi
push 0x4263bc
push dword [esp + 0x28]
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402397
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4023ad
push 1
push dword [esi + 0x784]
call ebp
xor eax, eax
cmp dword [esp + 0x10], edi
push edi
setne al
push eax
push 0xf1
push dword [esi + 0x784]
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
call fcn.0040150d
cmp eax, edi
mov dword [esp + 0x10], eax
jge 0x402483
push edi
push dword [esi + 0x788]
call ebp
lea eax, [esi + 0x454]
push eax
lea eax, [esp + 0x24]
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4263c4
lea eax, [esp + 0x24]
push eax
call ebx
push 0x4263c0
lea eax, [esp + 0x24]
push eax
call ebx
push edi
lea eax, [esp + 0x18]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [esp + 0x3c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40246d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push edi
push 0x4263bc
push dword [esp + 0x28]
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402463
mov ebp, dword [esp + 0x20]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebp, edi
setne al
push edi
push eax
push 0xf1
push dword [esi + 0x788]
jmp 0x4024a1
push 1
add esi, 0x788
push dword [esi]
call ebp
xor eax, eax
cmp dword [esp + 0x10], edi
push edi
setne al
push eax
push 0xf1
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x114
ret
Function at 0x403095
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push str._r_nHID_Descriptor:_r_n
call fcn.00402ec9
mov esi, dword [esp + 0x10]
movzx eax, word [esi + 2]
push eax
push str.bcdHID:_____________0x_04X_r_n
call fcn.00402ec9
movzx eax, byte [esi + 4]
push eax
push str.bCountryCode:_________0x_02X_r_n
call fcn.00402ec9
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors:______0x_02X_r_n
call fcn.00402ec9
xor bl, bl
add esp, 0x1c
cmp byte [esi + 5], bl
jbe 0x403113
push edi
movzx edi, bl
lea eax, [edi + 2]
imul eax, eax, 3
movzx eax, byte [eax + esi]
push eax
push str.bDescriptorType:______0x_02X_r_n
call fcn.00402ec9
imul edi, edi, 3
movzx eax, word [edi + esi + 7]
push eax
push str.wDescriptorLength:__0x_04X_r_n
call fcn.00402ec9
add esp, 0x10
inc bl
cmp bl, byte [esi + 5]
jb 0x4030dd
pop edi
pop esi
pop ebx
ret 4

Function at 0x40595c
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405a1d
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x405a1d
push ebx
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x405a13
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x4059d8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test eax, eax
je 0x405a0c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp - 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp edi, esi
je 0x405a28
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 0xc
Function at 0x405a31
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0xd0000000
push dword [esp + 0x28]
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405ac3
push edi
push edi
push edi
push 4
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x405ac3
push ebx
push edi
push edi
push edi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, edi
je 0x405ab8
cmp word [ebx], 0x5a4d
jne 0x405ab1
push esi
mov esi, dword [ebx + 0x3c]
add esi, ebx
cmp dword [esi], 0x4550
jne 0x405ab0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x58], eax
mov dword [esp + 0x10], 1
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp ebp, edi
je 0x405ace
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret 8
Function at 0x4074ba
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4339ac]
mov eax, dword [eax + 0x658]
sub esp, 0x1c
push esi
xor esi, esi
cmp eax, esi
je 0x40756b
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40756b
push 1
push str.NezuVirtualUSB
push 0x42c4a8
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x40756b
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40755c
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x407553
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80010002
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40756d
xor eax, eax
pop esi
leave
ret
Function at 0x4083d0
Capabilities:
Create process on windows
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [0x4339ac]
xor ebx, ebx
push ebx
push str.RegEdit_RegEdit
push ebx
push ebx
call dword [sym.imp.USER32.dll_FindWindowExA]
cmp eax, ebx
je 0x408400
push ebx
push ebx
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4084c8
cmp dword [ebp + 8], ebx
push edi
jne 0x408443
push dword [esi + 0x3988]
call fcn.0041d0e0
mov edi, eax
mov eax, dword [esi + 0x3990]
mov esi, dword [esi + 0x3998]
jmp 0x40845c
push dword [esi + 0x399c]
call fcn.0041d0e0
mov edi, eax
mov eax, dword [esi + 0x39a4]
mov esi, dword [esi + 0x39ac]
cmp edi, ebx
mov byte [ebp - 0x108], bl
jl 0x408497
cmp edi, eax
jge 0x408497
push str.HKEY_LOCAL_MACHINE_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
imul edi, edi, 0x31c
lea eax, [edi + esi + 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push str.LastKey
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._regedit.exe
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
pop ebx
leave
ret 4