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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1012efd8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x101b441c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x3c], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.100cd7d0
xor ebx, ebx
mov dword [esi + 0x10], vtable.DiPixelRepresentationTemplate_unsigned_long_int_.0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x80], ebx
mov dword [esi], vtable.DiMonoInputPixelTemplate_short_int__long_int__unsigned_long_int_.1.0
mov dword [esi + 0x10], vtable.DiMonoInputPixelTemplate_short_int__long_int__unsigned_long_int_.0
cmp edi, ebx
je 0x100e67ab
cmp dword [esi + 4], ebx
jbe 0x100e67ab
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x100e673d
cmp dword [eax + 0x48], ebx
je 0x100e66cd
push edi
mov ecx, esi
call fcn.100e21d0
push 1
push ebx
push ebx
jmp 0x100e67a4
cmp eax, ebx
je 0x100e673d
cmp dword [eax + 0x4c], ebx
je 0x100e673d
fld qword [eax + 0x38]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [eax + 0x40]
fstp qword [esp]
push edi
call fcn.100e1e70
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
mov ecx, dword [esi + 0xc]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fld qword [ecx + 0x18]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
fld qword [ecx + 0x10]
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
jmp 0x100e67a0
fldz
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld1
fstp qword [esp]
push edi
call fcn.100e1e70
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
mov ecx, dword [esi + 0xc]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fld qword [ecx + 0x18]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
fld qword [ecx + 0x10]
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
push 1
push edx
push eax
mov ecx, esi
call fcn.10038c30
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100e6e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1012efd8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x101b441c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x3c], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.100cd7d0
xor ecx, ecx
mov dword [esi + 0x10], vtable.DiPixelRepresentationTemplate_unsigned_long_int_.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esp + 0x80], ecx
mov dword [esi], vtable.DiMonoInputPixelTemplate_unsigned_long_int__unsigned_long_int__unsigned_long_int_.1.0
mov dword [esi + 0x10], vtable.DiMonoInputPixelTemplate_unsigned_long_int__unsigned_long_int__unsigned_long_int_.0
cmp edi, ecx
je 0x100e6fcc
cmp dword [esi + 4], ecx
jbe 0x100e6fcc
mov eax, dword [esi + 0xc]
cmp eax, ecx
je 0x100e6f5e
cmp dword [eax + 0x4c], ecx
je 0x100e6f5e
fld qword [eax + 0x38]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [eax + 0x40]
fstp qword [esp]
push edi
call fcn.100e2cb0
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
mov ecx, dword [esi + 0xc]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fld qword [ecx + 0x18]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
fld qword [ecx + 0x10]
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
jmp 0x100e6fc1
fldz
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld1
fstp qword [esp]
push edi
call fcn.100e2cb0
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
mov ecx, dword [esi + 0xc]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fld qword [ecx + 0x18]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
fld qword [ecx + 0x10]
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
push 1
push edx
push eax
mov ecx, esi
call fcn.10038c30
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100e7620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1012efd8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x101b441c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x3c], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push eax
push edi
call fcn.100cd7d0
xor ecx, ecx
mov dword [esi + 0x10], vtable.DiPixelRepresentationTemplate_unsigned_long_int_.0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov dword [esp + 0x80], ecx
mov dword [esi], vtable.DiMonoInputPixelTemplate_long_int__long_int__unsigned_long_int_.1.0
mov dword [esi + 0x10], vtable.DiMonoInputPixelTemplate_long_int__long_int__unsigned_long_int_.0
cmp edi, ecx
je 0x100e777c
cmp dword [esi + 4], ecx
jbe 0x100e777c
mov eax, dword [esi + 0xc]
cmp eax, ecx
je 0x100e770e
cmp dword [eax + 0x4c], ecx
je 0x100e770e
fld qword [eax + 0x38]
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld qword [eax + 0x40]
fstp qword [esp]
push edi
call fcn.100e3640
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
mov ecx, dword [esi + 0xc]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fld qword [ecx + 0x18]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
fld qword [ecx + 0x10]
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
jmp 0x100e7771
fldz
sub esp, 0x10
fstp qword [esp + 8]
mov ecx, esi
fld1
fstp qword [esp]
push edi
call fcn.100e3640
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
mov ecx, dword [esi + 0xc]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fld qword [ecx + 0x18]
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
fld qword [ecx + 0x10]
fnstcw word [esp + 0x3a]
movzx eax, word [esp + 0x3a]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fldcw word [esp + 0x3a]
push 1
push edx
push eax
mov ecx, esi
call fcn.10038c30
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100f20f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x1012f600
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x101b441c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.DiObjectCounter.0
mov dword [esi + 4], 1
call fcn.10035690
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi], vtable.DiOverlay.0
movzx edx, word [edi + 0x14]
mov dword [esp + 0x14], edx
xor ebx, ebx
fild dword [esp + 0x14]
push edi
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fmul qword [ebp + 0x14]
or eax, 0xc00
mov dword [esp + 0x1c], eax
mov dword [esp + 0x84], ebx
fldcw word [esp + 0x1c]
fistp dword [esp + 0x1c]
mov ax, word [esp + 0x1c]
mov word [esi + 0x14], ax
movzx ecx, word [edi + 0x16]
fldcw word [esp + 0x18]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fmul qword [ebp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp dword [esp + 0x1c]
mov dx, word [esp + 0x1c]
mov word [esi + 0x16], dx
mov eax, dword [edi + 0x18]
fldcw word [esp + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov ecx, esi
mov dword [esi + 0x20], ebx
call fcn.100f1b10
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x100f22a6
mov edx, dword [esi + 0x20]
cmp dword [edx + 0x10], ebx
jbe 0x100f221b
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x14]
cmp dword [ecx + ebx*4], 0
lea eax, [ecx + ebx*4]
je 0x100f2212
fld qword [ebp + 0x1c]
mov ecx, dword [eax]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [ebp + 0x14]
fstp qword [esp]
call fcn.10125180
mov edx, dword [esi + 0x20]
inc ebx
cmp ebx, dword [edx + 0x10]
jb 0x100f21ec
movzx ebx, word [esi + 0x14]
mov edx, dword [esi + 0x18]
movzx eax, word [edi + 0x16]
movzx ecx, word [edi + 0x14]
mov word [esp + 0x2c], bx
movzx ebx, word [esi + 0x16]
mov dword [esp + 0x30], edx
xor edx, edx
mov dword [esp + 0x24], 1
mov word [esp + 0x28], cx
mov word [esp + 0x2a], ax
mov word [esp + 0x2e], bx
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x20], vtable.DiScaleTemplate_unsigned_short_int_.0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov word [esp + 0x40], cx
mov word [esp + 0x42], ax
mov eax, dword [esi + 0x20]
push edx
push edx
add eax, 0x18
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x90], 1
call fcn.1005c2f0
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x14]
cmp eax, dword [edx + 0x18]
je 0x100f22a6
push eax
call fcn.100afea7
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10126750
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101b441c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1019d27c
push pe_nt_image_headers32
lea ecx, [ebp - 0x108]
push ecx
call fcn.100af206
add esp, 0x10
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100aefaf
mov esp, ebp
pop ebp
ret

Function at 0x410f5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42104c]
jne 0x413fe3
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x422720], eax
mov dword [0x42271c], ecx
mov dword [0x422718], edx
mov dword [0x422714], ebx
mov dword [0x422710], esi
mov dword [0x42270c], edi
mov word [0x422738], ss
mov word [0x42272c], cs
mov word [0x422708], ds
mov word [0x422704], es
mov word [0x422700], fs
mov word [0x4226fc], gs
pushfd
pop dword [0x422730]
mov eax, dword [ebp]
mov dword [0x422724], eax
mov eax, dword [ebp + 4]
mov dword [0x422728], eax
lea eax, [ebp + 8]
mov dword [0x422734], eax
mov eax, dword [ebp - 0x320]
mov dword [0x422670], 0x10001
mov eax, dword [0x422728]
mov dword [0x422624], eax
mov dword [0x422618], 0xc0000409
mov dword [0x42261c], 1
mov eax, dword [0x42104c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x421050]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x422668], eax
push 1
call fcn.00415efd
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x402cf0
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x422668], 0
jne 0x4140cf
push 1
call fcn.00415efd
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x4152fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x41530c
pop dword [ebp - 8]
mov eax, 0x54aada2e
add eax, 0xab9678de
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3b3cf
push 0
mov eax, 0x4549a8f6
sub eax, 0x450997d6
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x6f14660e
add ecx, 0x90ebe431
mov ebx, eax
mov edx, 0x427600
add edx, dword [ebp - 8]
mov edi, 0xc9540fc
sub edi, 0x5cca54d6
sub dword [ebp - 4], esi
mov esi, dword [edx]
xor dword [ebp - 4], esi
xor esi, edi
xor dword [ebp - 4], edx
mov dword [ebx], esi
xor dword [ebp - 4], esi
add ebx, 4
add edx, 0x310522e6
add edx, 0xcefadd1e
loop 0x415365
add eax, 0x47c9ad91
add eax, 0xb8376e3e
mov ebx, eax
add eax, 5
mov ecx, 0x2bf4425e
add ecx, 0xd44bbda2
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10001050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10031014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x24c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov cx, word [esi]
add esi, 2
cmp cx, 0x22
jne 0x100010c0
push 0x22
push esi
call fcn.10008556
mov edx, eax
add esp, 8
test edx, edx
je 0x100010d7
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100010a0
sub ecx, esi
sar ecx, 1
cmp ecx, 2
ja 0x100010bb
mov esi, 0x10023768
jmp 0x100010d7
lea esi, [edx + 4]
jmp 0x100010d7
push 0x20
push esi
call fcn.10008556
add esp, 8
mov esi, 0x1002376c
test eax, eax
je 0x100010d7
lea esi, [eax + 2]
push 0x208
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.10008fa0
mov ax, word [0x10023778]
movq xmm0, qword [str.PBVM]
push 0x32
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x36]
push 0
push eax
movq qword [ebp - 0x40], xmm0
call fcn.10008fa0
lea ecx, [ebp - 0x40]
add esp, 0x18
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10001120
mov eax, dword [str..dll]
mov dword [ecx], eax
mov eax, dword [0x10023780]
mov dword [ecx + 4], eax
mov ax, word [0x10023784]
mov word [ecx + 8], ax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.10001e40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x100011af
lea ecx, [ebp - 0x248]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001170
sub ecx, edx
sar ecx, 1
je 0x1000119a
push 0x1010
push str.Error
lea eax, [ebp - 0x248]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006cc3
mov esp, ebp
pop ebp
ret 0x10
push str.PBHostAttachedDebug
push esi
call fcn.100086be
add esp, 8
test eax, eax
je 0x100011d6
push str.PD_HostAttachedTarget
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100011e2
or esi, 0xffffffff
jmp 0x100011f8
push str.FN_RunExecutable
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x3e8
push dword [ebp + 0x14]
push esi
push dword [ebp - 0x24c]
push ebx
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006cc3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001970
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x421c
call fcn.10006ce0
mov eax, dword [0x10031014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x421c], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10008fa0
push 0x4000
lea eax, [ebp - 0x420c]
push 0
push eax
call fcn.10008fa0
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100019d0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xb
jne 0x10001b48
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
push str.SoftwareSybasePowerBuilder_Runtime
push 0x1002325c
push eax
call edi
add esp, 0x10
mov dword [ebp - 0x4218], 0x104
lea eax, [ebp - 0x4210]
mov dword [ebp - 0x4214], 1
mov dword [ebp - 0x4210], 0
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001a77
mov eax, dword [ebp - 0x4210]
test eax, eax
je 0x10001a77
lea ecx, [ebp - 0x4218]
push ecx
push esi
lea ecx, [ebp - 0x4214]
push ecx
push 0
push 0x10023268
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001a80
sub ecx, edx
sar ecx, 1
je 0x10001b48
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10008fa0
push dword [ebp - 0x421c]
lea eax, [ebp - 0x20c]
push esi
push str._s_s
push eax
call edi
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001b48
push esi
push 0x10023298
lea eax, [ebp - 0x420c]
push 0x2000
push eax
call fcn.10002cc0
add esp, 0x10
mov esi, ebx
nop
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10001af0
lea edi, [ebp - 0x420c]
sub ebx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10001b06
mov ecx, ebx
lea eax, [ebp - 0x420c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.Path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006cc3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006cc3
mov esp, ebp
pop ebp
ret
Function at 0x10001c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10031014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov dword [ebp - 0x80], esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001c77
sub eax, edi
sar eax, 1
jne 0x10001c93
push edx
push str.There_is_currently_no_matching_version__Lowest_Supported_Version:__s
jmp 0x10001d77
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10001caa
push esi
push str.Runtime_path_not_exist__path:__s_
jmp 0x10001d77
movups xmm0, xmmword [str.VCRUNTIME140_1.dll]
mov eax, dword [0x100233ec]
lea edi, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov esi, 1
movzx eax, word [0x100233f0]
movups xmmword [ebp - 0x7c], xmm0
mov word [ebp - 0x58], ax
xor eax, eax
movups xmm0, xmmword [0x100233dc]
mov word [ebp - 0x56], ax
movzx eax, word [0x10023384]
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x34], ax
xor eax, eax
movups xmm0, xmmword [str.VCRUNTIME140.dll]
mov dword [ebp - 0x32], eax
mov word [ebp - 0x2e], ax
movzx eax, word [0x1002340c]
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x14], ax
movups xmm0, xmmword [0x10023374]
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movups xmmword [ebp - 0x44], xmm0
movups xmm0, xmmword [str.msvcp140.dll]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [0x10023404]
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movq qword [ebp - 0x12], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10001d68
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc esi
add edi, 0x28
cmp esi, 3
jb 0x10001d43
push dword [ebp - 0x80]
push str.Load_library_failed__dll_name:_pbvm.dll__runtime_path:_s
jmp 0x10001d77
lea eax, [esi + esi*4]
lea ecx, [ebp - 0x7c]
lea eax, [ecx + eax*8]
push eax
push str.The_program_cant_start_because__s_is_missing_from_your_computer.
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.10006cc3
mov esp, ebp
pop ebp
ret
Function at 0x10003130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp dword [eax + 0x14], 8
push edi
mov dword [ebp - 4], esi
jb 0x10003149
mov eax, dword [eax]
push 0x10023898
push eax
call fcn.1000c618
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10003271
push 2
push 0
push ebx
call fcn.1000e1fb
push ebx
call fcn.1000e829
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 8], esi
call fcn.1000e1fb
add esp, 0x1c
test esi, esi
jne 0x1000319b
push ebx
call fcn.1000db9a
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.10006cb5
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc], edi
call fcn.10008fa0
push ebx
push esi
push 1
push edi
call fcn.1000de04
add esp, 0x20
test eax, eax
jne 0x100031da
push edi
call fcn.10006cbe
push ebx
call fcn.1000db9a
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call edi
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10006cb5
lea ecx, [esi*2 + 2]
mov dword [ebp + 8], eax
push ecx
push 0
push eax
call fcn.10008fa0
add esp, 0x10
push esi
push dword [ebp + 8]
mov esi, dword [ebp - 0xc]
push dword [ebp - 8]
push esi
push 0
push 0xfde9
call edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003240
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 4]
push edi
call fcn.10002b10
push esi
call fcn.10006cbe
push edi
call fcn.10006cbe
push ebx
call fcn.1000db9a
mov esi, dword [ebp - 4]
add esp, 0xc
push esi
mov ecx, esi
mov dword [esi + 0x18], 0
call fcn.100034a0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000765f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000769e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000769e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000769e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000769e
cmp dword [ecx + 0x74], 0xe
jbe 0x1000769e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10015af4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001596a

Function at 0x10022730
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002275d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002275d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret