joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1012faf
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
push edi
setne al
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [0x101b598], esi
setne al
lea eax, [eax + eax + 1]
cmp dword [ebp + 0x10], esi
jne 0x1013079
mov edi, dword [ebp + 8]
push esi
push 0x60000000
push 3
push esi
push eax
push 0x80000000
cmp edi, esi
je 0x1013005
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1013079
mov ecx, edi
jmp 0x101305d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
jne 0x1013079
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x101305a
mov eax, dword [0x105c4c0]
mov ecx, 0x1005644
cmp eax, esi
jne 0x1013053
mov ecx, 0x1004d62
mov eax, 0x1005640
push ecx
push eax
push dword [ebp + 0xc]
push 0x1006f58
push esi
call fcn.01012331
add esp, 0x14
xor eax, eax
jmp 0x101317a
mov eax, 0x10054bc
jmp 0x1013039
mov ecx, dword [ebp + 0xc]
mov eax, 0x1006f38
cmp edi, esi
jne 0x101306b
mov eax, 0x1006f1c
push ecx
push eax
push 0xffffffffffffffff
call fcn.01012331
add esp, 0xc
jmp 0x101304c
cmp dword [ebp + 0x14], esi
jne 0x101308f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.010169a8
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x18], esi
jne 0x101309a
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x1c], esi
jne 0x10130a6
mov dword [ebp + 0x1c], 0x7fff0000
mov edi, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 0x30]
mov eax, edi
or eax, ebx
jne 0x10130bf
push dword [ebp + 0x10]
call fcn.01012f66
mov edi, eax
mov ebx, edx
cmp dword [ebp - 4], esi
jne 0x1013104
push dword [ebp + 0x10]
call fcn.01012f66
cmp edi, eax
jne 0x10130d4
cmp ebx, edx
je 0x1013104
push ebx
push edi
push edx
push eax
cmp dword [0x105c46c], esi
je 0x1013180
cmp dword [ebp + 8], esi
je 0x10130f3
push dword [ebp + 8]
push 0x1006ed8
jmp 0x10130fb
push dword [ebp + 0xc]
push 0x1006e90
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0x18
call fcn.01012ba1
mov esi, eax
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x1c]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
call fcn.01013332
push 0
mov dword [esi + 0x34], eax
call fcn.01013332
mov dword [esi + 0x38], eax
call fcn.010127ee
and dword [esi + 0x48], 0
push 2
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x20]
push esi
push 0x1012c37
mov dword [esi + 0x40], eax
call fcn.0101328d
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0x2c
cmp dword [ebp + 8], esi
je 0x1013193
push dword [ebp + 8]
push 0x1006ed8
push esi
call fcn.01012301
push dword [ebp + 0xc]
push 0x1006e90
jmp 0x101318d
Function at 0x10131cc
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x101c0bc], eax
imul eax, eax, 0x14
push ebx
push edi
push eax
call fcn.010125fc
mov dword [0x101c0c4], eax
mov eax, dword [0x101c0bc]
shl eax, 2
push eax
call fcn.010125fc
xor ebx, ebx
xor edi, edi
mov dword [0x101c0c0], eax
cmp dword [0x101c0bc], ebx
jbe 0x1013275
push esi
xor esi, esi
call fcn.010127ee
mov ecx, dword [0x101c0c4]
mov dword [esi + ecx + 4], eax
call fcn.010127ee
mov ecx, dword [0x101c0c4]
mov dword [esi + ecx + 8], eax
mov eax, dword [0x101c0c4]
mov eax, dword [esi + eax + 8]
mov ecx, dword [0x101c0c0]
mov dword [ecx + edi*4], eax
lea eax, [ebp + 8]
push eax
mov eax, dword [0x101c0c4]
push ebx
add eax, esi
push eax
push 0x10131a2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x101c0c4]
mov dword [esi + ecx], eax
mov eax, dword [0x101c0c4]
cmp dword [esi + eax], ebx
je 0x101327b
inc edi
add esi, 0x14
cmp edi, dword [0x101c0bc]
jb 0x101320b
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x10070b4
push 0xffffffffffffffff
call fcn.01012301
int3
Function at 0x10169ff
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x60000000
push 4
push ebx
push 5
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
jne 0x1016a35
xor eax, eax
jmp 0x1016b92
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x1016a48
push dword [ebp + 8]
push ebx
push esi
call fcn.010169a8
mov edi, eax
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
je 0x1016aba
xor eax, eax
mov esi, eax
mov ebx, edi
add ebx, dword [ebp + 0x10]
mov edx, edi
adc esi, dword [ebp + 0x14]
or ecx, 0xffffffff
add ebx, ecx
adc esi, ecx
add edx, ecx
adc eax, ecx
not eax
and esi, eax
push 0
not edx
lea eax, [ebp - 8]
push eax
and ebx, edx
push ebx
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1016a96
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1016ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
push dword [ebp + 8]
cmp eax, 0x70
jne 0x1016ab2
push 0x10076c0
push 0
call fcn.01012301
push 0x1007698
push eax
jmp 0x1016aad
push esi
call fcn.01012f66
mov ebx, eax
mov dword [ebp + 0x14], edx
jmp 0x1016aca
mov ebx, dword [ebp + 0x10]
call fcn.01015dae
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
xor eax, eax
mov edx, edi
add edx, ebx
mov dword [esi + 0x18], ebx
mov ebx, eax
adc ebx, ecx
mov dword [esi + 0x1c], ecx
mov ecx, ebx
or ebx, 0xffffffff
add edx, ebx
adc ecx, ebx
mov dword [esi + 8], edi
add edi, ebx
adc eax, ebx
not eax
and ecx, eax
mov eax, dword [ebp + 0x18]
not edi
and edx, edi
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
xor edi, edi
push edi
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call fcn.01013332
push edi
mov dword [esi + 0x30], eax
call fcn.01013332
push dword [ebp + 0x18]
mov dword [esi + 0x34], eax
call fcn.01013332
mov dword [esi + 0x38], eax
call fcn.010127ee
mov dword [esi + 0x3c], eax
call fcn.010127ee
mov dword [esi + 0x68], eax
lea eax, [esi + 0x74]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
lea eax, [esi + 0x40]
push eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
push esi
push 0x101602f
call fcn.0101328d
push 0xfffffffffffffffe
push esi
push 0x1016118
call fcn.0101328d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x1016b9e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1016bc8
push esi
push edi
movzx esi, byte [edx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x10076f8]
dec ecx
inc edx
test ecx, ecx
jne 0x1016bae
pop edi
pop esi
pop ebp
ret 4
Function at 0x1016bd1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
movzx eax, cx
mov ecx, edx
test esi, esi
je 0x1016c06
push edi
movzx edi, byte [ecx]
mov edx, eax
shr edx, 8
movzx edx, dl
shl eax, 8
xor edx, edi
xor ax, word [edx*2 + 0x1007af8]
dec esi
inc ecx
movzx eax, ax
test esi, esi
jne 0x1016be4
pop edi
pop esi
pop ebp
ret 4

Function at 0x1016c10
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x10002240
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100422e0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x100a2068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xffffffffffffffff
lea ecx, [esi + 0x38]
mov dword [esi], vtable.CFX_CheckLicense.0
mov dword [esi + 0x50], 1
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x2c]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x28]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x20]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x34]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x3c]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x1c]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x24]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x40]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x44]
call fcn.100101f0
push 0xffffffffffffffff
lea ecx, [esi + 0x48]
call fcn.100101f0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100022f6
call eax
mov eax, dword [esi + 0x68]
test eax, eax
je 0x1000230b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x68], 0
cmp dword [esi + 0x7c], 0
je 0x10002390
push 0xc
xor eax, eax
mov dword [ebp - 0x14], 0
push str.Release_log.
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.10001310
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x1000236a
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10002360
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100023da
push edx
push ecx
call fcn.1000de65
add esp, 8
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x10002389
cmp dword [eax + 4], 0
je 0x1000237e
mov dword [eax + 4], 0
push 8
push eax
call fcn.1000de65
add esp, 8
mov dword [esi + 0x7c], 0
lea ecx, [esi + 0x80]
call fcn.1000f020
lea ecx, [esi + 0x70]
call fcn.1000f020
lea ecx, [esi + 0x5c]
call fcn.1000f020
lea ecx, [esi + 0x58]
call fcn.1000f020
lea ecx, [esi + 0x54]
call fcn.1000f020
lea ecx, [esi + 0x18]
call fcn.100021d0
mov dword [esi + 4], vtable.CCommonFunctions.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10023e83
int3
Function at 0x100071e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042bd7
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x100a2068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
push str.SOFTWAREFoxit_SoftwareFoxit_PhantomPDF_9.0_
lea ecx, [ebp - 0x21c]
call fcn.10010030
push str.Register
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.1000f220
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10020640
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x21c]
add edi, 4
push 0x1009c800
push eax
push str.mark
push 0
call fcn.1000ff60
push eax
push SysReAllocString
mov ecx, edi
call fcn.100087b0
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x22c]
call fcn.10010030
push 0xffffffffffffffff
push str.Foxit_PhantomPDF
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.10010030
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.10008c60
push str.FoxitPhantomPDF.exe
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
call fcn.1000f220
mov dword [ebp - 0x220], 0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x100072e9
add eax, 0xc
jmp 0x100072ee
mov eax, 0x1009c800
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x260]
push ecx
push eax
call fcn.100086b0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x228]
call fcn.1000f1f0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.1000f1b0
add esp, 8
test al, al
je 0x1000737c
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1000733d
mov eax, dword [eax + 4]
jmp 0x1000733f
xor eax, eax
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000ff60
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
push SysReAllocString
cmp eax, 0x80000000
jae 0x10007369
mov ecx, edi
call fcn.10008990
jmp 0x1000736f
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.100101f0
lea ecx, [ebp - 0x220]
call fcn.1000f020
lea ecx, [ebp - 0x224]
call fcn.1000f020
lea ecx, [ebp - 0x228]
call fcn.1000f020
lea ecx, [ebp - 0x22c]
call fcn.1000f020
lea ecx, [ebp - 0x21c]
call fcn.1000f020
mov eax, 1
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.1000de54
mov esp, ebp
pop ebp
ret
Function at 0x100086b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x100086d8
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
call fcn.1000dea8
mov esi, eax
add esp, 4
test esi, esi
jne 0x100086f0
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp eax, 1
jne 0x1000878c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x1009d584
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, 1
jne 0x1000878c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
mov eax, dword [eax + 0x30]
mov dword [ecx + 0x30], eax
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x1009d588
push dword [ebp + 0x10]
call fcn.1000f820
add esp, 0x18
mov edi, 1
push esi
call fcn.1000dea3
add esp, 4
mov eax, edi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
push esi
xor edi, edi
call fcn.1000dea3
add esp, 4
mov eax, edi
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100087b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 4], 0
lea eax, [ebp - 4]
jne 0x100087d3
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x100087ec
push 0
push eax
push 0
push 1
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000883a
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10008821
mov edx, dword [ebp + 0x14]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10008800
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push dword [ebp - 4]
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push 0
lea eax, [ebp + 8]
mov dword [ebp + 0xc], 0
push eax
push 0
push esi
push dword [ebp - 4]
call edi
mov eax, dword [ebp + 8]
cmp eax, 1
je 0x100088be
cmp eax, 2
je 0x100088be
cmp eax, 4
je 0x100088be
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x100088a3
mov edx, dword [ebp + 0x14]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10008880
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push dword [ebp - 4]
mov word [eax], cx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push 0
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100088f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 4], 0
lea eax, [ebp - 4]
jne 0x10008915
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x10008930
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push dword [ebp + 0xc]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000893c
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
mov ecx, edx
push esi
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10008945
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10008e70
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042eb1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x100a2068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
call fcn.10008c60
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x10008f71
push 0xffffffffffffffff
push 0x1009c800
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.10010030
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 2
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x208
lea ecx, [ebp + 0xc]
call fcn.1000ff60
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call fcn.100101f0
push str.Foxit_Software_
lea ecx, [ebp + 0xc]
call fcn.1000f220
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10008f19
add eax, 0xc
jmp 0x10008f1e
mov eax, 0x1009c800
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call esi
push str.Foxit_PhantomPDF
lea ecx, [ebp + 0xc]
call fcn.1000f220
push 0x1009d584
lea ecx, [ebp + 0xc]
call fcn.1000f220
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10008f4f
add eax, 0xc
jmp 0x10008f54
mov eax, 0x1009c800
push 0
push eax
call esi
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000f050
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0
call fcn.1000f020
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000900c
cmp dword [eax + 4], 0
jle 0x1000900c
push 0xffffffffffffffff
push 0x1009c800
lea ecx, [ebp - 0x14]
call fcn.10010030
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], str.fpmkey.txt
mov dword [ebp - 0x24], 0xa
test eax, eax
je 0x10008fbc
lea ecx, [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
jmp 0x10008fca
mov dword [ebp - 0x20], 0x1009c800
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.1000ef50
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x14]
call fcn.1000f1f0
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.1000f020
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.1000ef10
lea ecx, [ebp - 0x14]
call fcn.1000f020
jmp 0x1000901b
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push 0x1009c800
call fcn.10010030
lea ecx, [ebp - 0x10]
call fcn.1000f020
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100091d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042f10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100a2068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000920b
add eax, 0xc
jmp 0x10009210
mov eax, 0x1009c800
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10009241
mov eax, 0x3ea
xor esi, esi
mov dword [0x100a6550], eax
jmp 0x100092fc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10009269
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x3eb
xor esi, esi
mov dword [0x100a6550], eax
jmp 0x100092fc
lea esi, [ebx + 1]
push esi
call fcn.1000dea8
push esi
push 0
push eax
mov dword [ebp - 0x14], eax
call fcn.10020640
add esp, 0x10
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x100092b3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x3ec
xor esi, esi
mov dword [0x100a6550], eax
jmp 0x100092fc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.1000fe80
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
call fcn.1000f050
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.1000f020
mov ecx, dword [ebp + 0xc]
push 0x1009d5f8
call fcn.1000f220
push ebx
call fcn.1000dea3
add esp, 4
mov esi, 1
lea ecx, [ebp + 8]
call fcn.1000f020
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10009ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
salc
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10009971
push eax
push esi
push dword [ebp + 8]
call fcn.10009926
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10009971
push eax
push esi
push dword [ebp + 8]
call fcn.10009926
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10009971
push eax
push esi
push dword [ebp + 8]
call fcn.10009926
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10009961
imul dword [edx - 0x39]
and al, 0x88
popfd
jl 0x10009de6
invalid
invalid