joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4992be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e3e48]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x499301
cmp word [esi], dx
jne 0x499301
or byte [edi + eax + 0x28], 4
jmp 0x499306
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x499459
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x499439
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x499348
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x49937e
cmp eax, edx
jae 0x49938a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x499320
jmp 0x499459
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x499435
cmp dword [ebp - 0x14], 0
je 0x499435
mov eax, dword [ebx*4 + 0x4e3e48]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x49940d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4993d6
mov word [esi], cx
jmp 0x499409
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e3e48]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e3e48]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e3e48]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x499459
pop ebx
cmp word [ebp - 4], bx
jne 0x49941e
cmp esi, dword [ebp + 0xc]
jne 0x49941e
mov word [esi], bx
jmp 0x499456
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0048f322
add esp, 0x10
cmp word [ebp - 4], bx
je 0x499459
push 0xd
jmp 0x499452
mov ecx, dword [ebx*4 + 0x4e3e48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x499450
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x499459
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49bbf5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0049bb71
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x49bd6d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x49bd6d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x49bd1c
jg 0x49bc4e
test eax, eax
je 0x49bd12
push 1
push 0x1000
call fcn.0048e3a7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49bc74
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x49bd09
push 0x8000
push ebx
call fcn.0048ad86
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x49bca0
jg 0x49bc9b
cmp ecx, 0x1000
jb 0x49bca0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0048eedb
add esp, 0x10
cmp eax, 0xffffffff
je 0x49bce5
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x49bc9b
jl 0x49bccc
test ecx, ecx
jne 0x49bc8d
push dword [ebp - 0xc]
push ebx
call fcn.0048ad86
push esi
call fcn.0048cd11
add esp, 0xc
xor edi, edi
jmp 0x49bd7e
cmp byte [edi + 0x24], 0
je 0x49bcfc
cmp dword [edi + 0x20], 5
jne 0x49bcfc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x49bd07
mov edi, dword [edi + 0x18]
jmp 0x49bd09
xor edi, edi
push esi
call fcn.0048cd11
pop ecx
jmp 0x49bd7e
test ecx, ecx
jg 0x49bcde
jl 0x49bd1c
test eax, eax
jae 0x49bcde
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0048f322
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x49bd3f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49bcde
jmp 0x49bd76
push ebx
call fcn.00494fe7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49bcde
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x49bd7e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x49bd7b
mov edi, dword [edi + 0x18]
jmp 0x49bd7e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0048f322
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49c200
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49c22d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49c22d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401160
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x46d070]
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.0043a360
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0043a360
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.0043598e
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.0043598e
mov esp, ebp
pop ebp
ret

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 str.SoftwareCanonIJPLM
push 0x80000002
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401523
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 0x401523
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 0x452741
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push esi
push edi
mov eax, dword [0x46d070]
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.00433d45
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 0x452f36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46d070]
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.004359c7
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004345ea
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 [0x46d070]
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.0043598e
mov esp, ebp
pop ebp
ret 4
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0043a360
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 0x46383c
push 0x463b18
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 0x46383c
push 0x463b3c
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 0x46383c
push 0x463b44
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 0x46383c
push 0x463b4c
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.0043598e
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.0043598e
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 0x4536cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x46d070]
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:
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 0x41656c
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 0x416591
cmp dword [edi + 4], 0
je 0x416591
cmp dword [edi + 8], 0
je 0x416591
cmp dword [edi + 0xc], 0
je 0x416591
cmp dword [edi + 0x10], 0
je 0x416591
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x416610
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 0x41667d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.pu2Open
push ebx
call esi
push str.pu2Close
push ebx
mov dword [edi], eax
call esi
push str.pu2SetIF
push ebx
mov dword [edi + 4], eax
call esi
push str.pu2SetPrinterName
push ebx
mov dword [edi + 8], eax
call esi
push str.pu2SetUrl
push ebx
mov dword [edi + 0xc], eax
call esi
push str.pu2SetIP
push ebx
mov dword [edi + 0x10], eax
call esi
push str.pu2SetMasterPortOption
push ebx
mov dword [edi + 0x14], eax
call esi
push str.pu2Read
push ebx
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
pop esi
cmp dword [edi], 0
je 0x4166b4
cmp dword [edi + 4], 0
je 0x4166b4
cmp dword [edi + 8], 0
je 0x4166b4
cmp dword [edi + 0x10], 0
je 0x4166b4
cmp dword [edi + 0xc], 0
je 0x4166b4
cmp dword [edi + 0x14], 0
je 0x4166b4
cmp dword [edi + 0x18], 0
je 0x4166b4
cmp dword [edi + 0x1c], 0
je 0x4166b4
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x4166c0
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 0x416738
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PDQuerySupportService
push ebx
call esi
push str.PDReleaseSupportService
push ebx
mov dword [edi], eax
call esi
push str.PDGetMacAddress
push ebx
mov dword [edi + 4], eax
call esi
push str.PDReleaseMacAddress
push ebx
mov dword [edi + 8], eax
call esi
push str.PDGetCapabilities
push ebx
mov dword [edi + 0xc], eax
call esi
push str.PDReleaseIString
push ebx
mov dword [edi + 0x10], eax
call esi
push str.PDGetConfiguration
push ebx
mov dword [edi + 0x14], eax
call esi
push str.PDSetConfiguration
push ebx
mov dword [edi + 0x18], eax
call esi
push str.PDGetDeviceUniqueId
push ebx
mov dword [edi + 0x1c], eax
call esi
mov dword [edi + 0x20], eax
pop esi
cmp dword [edi], 0
je 0x416757
cmp dword [edi + 4], 0
je 0x416757
cmp dword [edi + 8], 0
je 0x416757
cmp dword [edi + 0xc], 0
je 0x416757
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4
Function at 0x416760
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 0x4167e3
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 0x416826
cmp dword [edi + 4], 0
je 0x416826
cmp dword [edi + 8], 0
je 0x416826
cmp dword [edi + 0xc], 0
je 0x416826
cmp dword [edi + 0x10], 0
je 0x416826
cmp dword [edi + 0x14], 0
je 0x416826
cmp dword [edi + 0x18], 0
je 0x416826
cmp dword [edi + 0x1c], 0
je 0x416826
cmp dword [edi + 0x20], 0
je 0x416826
cmp dword [edi + 0x24], 0
je 0x416826
pop edi
mov al, 1
pop ebx
pop ebp
ret 4
pop edi
xor al, al
pop ebx
pop ebp
ret 4

Function at 0x41b8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452f36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46d070]
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.004359c7
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004345ea
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