joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401160
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00437ac0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00437ac0
add esp, 0x18
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4011ce
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4011bd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004330a2
mov esp, ebp
pop ebp
ret
Function at 0x401220
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fd88
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46b070]
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 - 0x3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
push 1
lea eax, [ebp - 0x58]
mov byte [ebp - 0x58], 0
xorps xmm0, xmm0
mov word [ebp - 0x47], 0
push eax
movups xmmword [ebp - 0x57], xmm0
mov byte [ebp - 0x45], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0xc
lea eax, [ebp - 0x58]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
push 0x80
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040d8e0
test al, al
je 0x4012f0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
push 7
push 0x461740
lea ecx, [ebp - 0x28]
call fcn.00405ac0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00405bf0
push 0x5f
lea ecx, [ebp - 0x28]
call fcn.004025b0
push 0x28
push str.MDL_E9624365_E188_497D_A83E_9FEE5F248714
lea ecx, [ebp - 0x28]
call fcn.00405ac0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
call esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edi, eax
mov dword [ebp - 0x18], 0
cmovae ecx, dword [ebp - 0x28]
xor eax, eax
push 7
push 0x461740
mov word [ecx], ax
lea ecx, [ebp - 0x28]
call fcn.00405ac0
push 0x28
push str.APP_78D84DC5_5F4F_4B57_8540_D4D89617ADA8
lea ecx, [ebp - 0x28]
call fcn.00405ac0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x38], eax
call esi
cmp edi, 0xb7
jne 0x4013ab
mov esi, 1
jmp 0x4013bd
cmp eax, 0xb7
mov ecx, 2
mov esi, 0
cmove esi, ecx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4013d2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4013fb
cmp eax, 0xffffffff
je 0x4013fb
push eax
call edi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x40140a
cmp eax, 0xffffffff
je 0x40140a
push eax
call edi
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.004330a2
mov esp, ebp
pop ebp
ret 4
Function at 0x401430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SoftwareCanonIJPLM
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
push 0x80000002
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40149a
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4014a2
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4014b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push edx
push 0x80000002
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40151f
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40151f
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x401700
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fdc1
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x46b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
sub esp, 8
mov dword [ebp - 4], 0
xor bl, bl
lea ecx, [ebp - 0xc4]
mov byte [ebp - 0x11], bl
call fcn.004027b0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.00409350
mov edx, 0x5c
mov ecx, eax
call fcn.004095d0
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0xb4]
call fcn.00409350
mov edx, 0x5f
mov ecx, eax
call fcn.004095d0
mov edx, dword [ebp + 0xc]
mov ecx, eax
call fcn.00409350
mov edx, str..ini
mov ecx, eax
call fcn.004098a0
lea ecx, [ebp - 0xb4]
call fcn.00407e40
mov eax, dword [edi + 0x28]
lea esi, [edi + 0x18]
mov dword [ebp + 8], eax
cmp eax, 0x104
ja 0x4017e6
cmp dword [esi + 0x14], 0x104
je 0x4017e6
push 1
push 0x104
mov ecx, esi
call fcn.0040d8e0
test al, al
je 0x4017e6
cmp dword [esi + 0x14], 8
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], eax
jb 0x4017de
mov ecx, dword [esi]
jmp 0x4017e0
mov ecx, esi
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp + 0x10]
cmp edi, eax
je 0x4017f9
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0040cc40
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x30]
cmp ecx, eax
je 0x40180d
push 0xffffffffffffffff
push 0
push eax
call fcn.0040cc40
push ecx
mov edx, esi
lea ecx, [ebp - 0xc4]
call fcn.00409b60
cmp dword [esi + 0x14], 8
jb 0x401825
mov eax, dword [esi]
jmp 0x401827
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401855
cmp dword [esi + 0x14], 8
jb 0x40183a
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x401855
mov ecx, edi
call fcn.00401900
mov ecx, edi
call fcn.00401c00
mov bl, 1
lea ecx, [ebp - 0x5c]
call fcn.004026c0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.00431459
add esp, 4
jmp 0x40187f
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4505b6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004330db
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00431cfe
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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
Function at 0x40dca0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor bl, bl
lea esi, [edi + 0x60]
cmp esi, eax
je 0x40dcd0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040cc40
cmp dword [esi + 0x14], 8
jb 0x40dcda
mov eax, dword [esi]
jmp 0x40dcdc
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd13
cmp dword [esi + 0x14], 8
jb 0x40dcf1
mov eax, dword [esi]
jmp 0x40dcf3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40dd13
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret 4
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00437ac0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40dd33
mov eax, dword [esi]
jmp 0x40dd35
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4625c4
push 0x461b08
push str.keyinfo
call ebx
lea ecx, [ebp - 0x84]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
mov ecx, edi
push eax
call fcn.0040fe80
cmp dword [esi + 0x14], 8
jb 0x40dd74
mov eax, dword [esi]
jmp 0x40dd76
mov eax, esi
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4625c4
push 0x461b2c
push str.keyinfo
call ebx
lea ecx, [ebp - 0x84]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
lea ecx, [edi + 0x18]
push eax
call fcn.0040fe80
cmp dword [esi + 0x14], 8
jb 0x40ddb0
mov eax, dword [esi]
jmp 0x40ddb2
mov eax, esi
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4625c4
push 0x461b34
push str.keyinfo
call ebx
lea ecx, [ebp - 0x84]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
lea ecx, [edi + 0x30]
push eax
call fcn.0040fe80
cmp dword [esi + 0x14], 8
jb 0x40ddea
mov esi, dword [esi]
push esi
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4625c4
push 0x461b3c
push str.keyinfo
call ebx
lea ecx, [ebp - 0x84]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
lea ecx, [edi + 0x48]
push eax
call fcn.0040fe80
cmp dword [edi + 0x58], 0
je 0x40de47
cmp dword [edi + 0x40], 0
je 0x40de47
cmp dword [edi + 0x28], 0
je 0x40de47
cmp dword [edi + 0x10], 0
je 0x40de47
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004330a2
mov esp, ebp
pop ebp
ret 4
Function at 0x40f4c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450d4b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46b070]
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 [ebp + 8]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x10]
mov dword [esi + 0xc], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov byte [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov byte [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov byte [eax + 0x34], 0
mov dword [ebp - 4], 0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push ecx
push dword [esi + 0xc]
push dword [esi + 8]
push eax
call fcn.0040ff10
add esp, 0x10
test al, al
mov eax, esi
jne 0x40f57c
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40fc90
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 0x40fcc1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40fcb0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x416520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 8], eax
movups xmm0, xmmword [0x461f98]
push esi
push edi
movups xmmword [ebp - 0x28], xmm0
push 0x44
movups xmm0, xmmword [0x461fa8]
lea eax, [ebp - 0x84]
mov dword [ebp - 0x2c], 0xffffffff
push 0
push eax
mov edi, edx
mov esi, ecx
movups xmmword [ebp - 0x18], xmm0
call fcn.00437ac0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x84], 0x44
add esp, 0xc
mov dword [ebp - 0x7c], eax
xor eax, eax
mov dword [ebp - 0x80], 0
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x58], 0x80
mov word [ebp - 0x52], ax
mov dword [ebp - 0x50], eax
call fcn.004310c0
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x4165b1
call fcn.00416790
jmp 0x4165b6
call fcn.00416940
test eax, eax
je 0x416635
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push edi
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
test edi, edi
jne 0x4165e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x416604
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41660e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x41660e
push eax
call esi
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x416618
push eax
call esi
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x416623
push eax
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004330a2
mov esp, ebp
pop ebp
ret
Function at 0x416650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x461f98]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x7c]
movups xmmword [ebp - 0x24], xmm0
push 0x44
movups xmm0, xmmword [0x461fa8]
push 0
push eax
mov ebx, edx
mov dword [ebp - 0x28], 0xffffffff
mov esi, ecx
movups xmmword [ebp - 0x14], xmm0
call fcn.00437ac0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x7c], 0x44
add esp, 0xc
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x78], 0
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x50], 0x80
mov word [ebp - 0x4a], ax
mov dword [ebp - 0x48], eax
call fcn.004310c0
lea ecx, [ebp - 0x28]
test eax, eax
je 0x4166dc
call fcn.00416790
jmp 0x4166e1
call fcn.00416940
test eax, eax
je 0x41676e
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push ebx
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test esi, esi
je 0x416730
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, 0xffffffff
je 0x416730
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, eax
test esi, esi
jne 0x416736
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x416746
push eax
call edi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x416750
push eax
call edi
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41675b
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004330a2
mov esp, ebp
pop ebp
ret
Function at 0x416790
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.unknown]
push ebx
push edi
push 0x1fa
xor edi, edi
lea eax, [ebp - 0x200]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x224], ebx
movups xmmword [ebp - 0x210], xmm0
call fcn.00437ac0
add esp, 0xc
mov dword [ebp - 0x218], 0xffffffff
test ebx, ebx
jne 0x4167f2
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004330a2
mov esp, ebp
pop ebp
ret
push esi
push 0x1000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
je 0x4168c8
lea eax, [ebp - 0x21c]
push eax
push 0x1000
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4168c1
mov ebx, dword [ebp - 0x21c]
xor edi, edi
shr ebx, 2
test ebx, ebx
je 0x4168bf
nop
push dword [esi + edi*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4168b4
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41688a
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x220]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
push str.explorer.exe
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4168db
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x214]
inc edi
cmp edi, ebx
jb 0x416840
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, edi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004330a2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
test eax, eax
jne 0x416901
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x214]
jmp 0x4168bf
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x224]
push 1
push 2
push 0
push 0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x218]
mov edi, eax
call ebx
mov esi, dword [ebp - 0x214]
jmp 0x4168c1

Function at 0x416a10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x416a5c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetPLIdataW
push ebx
call esi
push str.GetNEWROMW
push ebx
mov dword [edi], eax
call esi
push str.SavePLIdataW
push ebx
mov dword [edi + 4], eax
call esi
push str.MakePLIdataW
push ebx
mov dword [edi + 8], eax
call esi
push str.MakeNPLIdataW
push ebx
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
pop esi
cmp dword [edi], 0
je 0x416a81
cmp dword [edi + 4], 0
je 0x416a81
cmp dword [edi + 8], 0
je 0x416a81
cmp dword [edi + 0xc], 0
je 0x416a81
cmp dword [edi + 0x10], 0
je 0x416a81
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x416c50
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
je 0x416cd3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.pipsQueryPLIType
push ebx
call esi
push str.pipsQueryEncryptType
push ebx
mov dword [edi], eax
call esi
push str.pipsGetPLI
push ebx
mov dword [edi + 4], eax
call esi
push str.pipsPLIUnobfuscate
push ebx
mov dword [edi + 8], eax
call esi
push str.pipsPLIFreeRecord
push ebx
mov dword [edi + 0xc], eax
call esi
push str.pipsPLIFreeHint
push ebx
mov dword [edi + 0x10], eax
call esi
push str.pipsFreePLIType
push ebx
mov dword [edi + 0x14], eax
call esi
push str.pipsPliSendQuestionnaireData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.pipsPliGetCapabilities
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.pipsPliFreeCapabilities
push ebx
mov dword [edi + 0x20], eax
call esi
mov dword [edi + 0x24], eax
pop esi
cmp dword [edi], 0
je 0x416d16
cmp dword [edi + 4], 0
je 0x416d16
cmp dword [edi + 8], 0
je 0x416d16
cmp dword [edi + 0xc], 0
je 0x416d16
cmp dword [edi + 0x10], 0
je 0x416d16
cmp dword [edi + 0x14], 0
je 0x416d16
cmp dword [edi + 0x18], 0
je 0x416d16
cmp dword [edi + 0x1c], 0
je 0x416d16
cmp dword [edi + 0x20], 0
je 0x416d16
cmp dword [edi + 0x24], 0
je 0x416d16
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x41a4e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4505b6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46b070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004330db
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00431cfe
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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