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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001e5f1

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x210d49b6
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x4e3c5ed7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x408058
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
jne 0x40807e
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
call fcn.00409ce0
xor al, al
jmp 0x4081df
push esi
call fcn.0040734f
or dword [edi + 8], 0xffffffff
xor ebx, ebx
or dword [edi + 4], 0xffffffff
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push ebx
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov eax, dword [ebp - 4]
add esp, 0x1c
test eax, eax
jg 0x4080c0
push ebx
push ebx
push ebx
push 0xc
jmp 0x4080f1
inc eax
push eax
call fcn.004a43ad
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
mov byte [esi], bl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x4080ff
push esi
call fcn.004a43a8
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.00409ce0
xor al, al
jmp 0x4081de
mov edx, dword [ebp - 4]
mov eax, esi
add edx, eax
mov ecx, eax
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
mov byte [edx], bl
cmp byte [eax], bl
je 0x4081a1
mov edi, edx
cmp esi, edi
jb 0x408139
push 0x423
push str.........cf_public3rdxml_tinyxml.cpp
push str.p____buflength_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp ecx, edi
jbe 0x408158
push 0x424
push str.........cf_public3rdxml_tinyxml.cpp
push str.q____buflength_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [ebp + 8]
add esp, 0xc
cmp ecx, esi
jbe 0x408177
push 0x425
push str.........cf_public3rdxml_tinyxml.cpp
push str.q___p
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dl, byte [esi]
lea eax, [ecx + 1]
inc esi
cmp dl, 0xd
jne 0x40818d
mov byte [ecx], 0xa
cmp byte [esi], 0xa
jne 0x40818f
inc esi
jmp 0x40818f
mov byte [ecx], dl
mov ecx, eax
mov dword [ebp + 8], ecx
cmp byte [esi], bl
jne 0x40811a
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [ebp + 8], eax
cmp ecx, edx
jbe 0x4081c0
push 0x432
push str.........cf_public3rdxml_tinyxml.cpp
push str.q____buflength_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ecx, dword [ebp + 8]
add esp, 0xc
push dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov byte [ecx], bl
mov ecx, edi
mov eax, dword [edi]
push ebx
push esi
call dword [eax + 8]
push esi
call fcn.004a43a8
cmp byte [edi + 0x2c], bl
pop ecx
sete al
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x40b790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b7e6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b7e6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40b7d8
cmp esi, ecx
jae 0x40b7e6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40b7c6
cmp esi, ecx
jae 0x40b7e6
cmp word [esi], 0
je 0x40b7e6
mov eax, esi
jmp 0x40b7e8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40bf1f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bfab
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp dword [ebp - 8], ebx
jne 0x40bfa3
cmp edi, 0x200000
ja 0x40bfa3
lea eax, [edi + 2]
push eax
call fcn.004a43ad
pop ecx
push ebx
lea ecx, [ebp - 4]
mov dword [ebp + 8], eax
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bfa3
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x40bfa3
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], bl
mov eax, dword [ebp - 4]
mov byte [ecx + eax + 1], bl
inc ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x40bfc9
Capabilities:
Check if file exists

Disassembly:
push 0x11c
mov eax, 0x4a8538
call fcn.004a76a9
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x11c]
xor ebx, ebx
mov dword [ebp - 0x120], ebx
call fcn.0040d765
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c00c
push esi
call fcn.0040cde6
test eax, eax
setns bl
jmp 0x40c16f
mov ecx, 0x4f0588
call fcn.0040d23a
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
push esi
call fcn.0040bf1f
mov edi, dword [ebp - 0x120]
test eax, eax
je 0x40c164
test edi, edi
je 0x40c16f
lea eax, [ebp - 0x114]
push edi
mov dword [ebp - 0x118], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea ecx, [ebp - 0x118]
lea esi, [eax + 1]
lea eax, [ebp - 0x114]
mov dword [ebp - 0x120], esi
push eax
mov edx, esi
call fcn.0040efb5
pop ecx
pop ecx
push esi
push dword [ebp - 0x118]
push esi
push edi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x124], ecx
test eax, eax
jne 0x40c0f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40c0ed
push ebx
push ebx
push esi
push edi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0x114]
push ecx
push eax
mov edx, esi
lea ecx, [ebp - 0x118]
call fcn.0040efb5
pop ecx
pop ecx
push esi
push dword [ebp - 0x118]
push dword [ebp - 0x120]
push edi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb ecx, ecx
inc ecx
jmp 0x40c0f3
mov ecx, dword [ebp - 0x124]
test ecx, ecx
jne 0x40c187
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x118]
test esi, esi
jne 0x40c10d
mov eax, ebx
jmp 0x40c115
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x11c]
call fcn.0040d7bf
lea eax, [ebp - 0x114]
mov byte [ebp - 4], bl
cmp dword [ebp - 0x118], eax
je 0x40c140
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push 0xa
push 0xd
lea ecx, [ebp - 0x11c]
call fcn.0040d577
mov eax, dword [0x4f0580]
mov ecx, 0x4f0580
push dword [ebp - 0x11c]
call dword [eax]
xor ebx, ebx
inc ebx
test edi, edi
je 0x40c16f
push edi
call fcn.004a43a8
pop ecx
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.0040bb70
mov eax, ebx
call fcn.004a7658
ret 0x10
push ecx
mov ecx, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.0040ee74
pop ecx
call fcn.0040b683
int3
Function at 0x40c910
Capabilities:
Write file on windows

Disassembly:
push 0x18
mov eax, 0x4a8793
call fcn.004a76a9
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], edi
call fcn.0040d765
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.0040d968
push edi
push edi
push 2
xor eax, eax
push edi
inc eax
push eax
push 0x40000000
push dword [ebp + 8]
mov byte [ebp - 4], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ca19
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call dword [eax + 4]
push edi
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0xbbef
push eax
push 3
lea eax, [ebp - 0x14]
mov byte [ebp - 0x12], 0xbf
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ca0d
cmp dword [ebp - 0x18], 3
jne 0x40ca0d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x40c99e
mov esi, edi
jmp 0x40c9ce
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
pop ecx
cmp eax, 0x3fffffff
jg 0x40c99a
lea esi, [eax + eax]
mov eax, esi
call fcn.004a7a70
mov edx, dword [ebp - 0x24]
mov ecx, esp
push 0xfde9
push esi
call fcn.0040b610
mov esi, eax
test esi, esi
jne 0x40c9d2
mov eax, edi
jmp 0x40c9da
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040e853
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push edi
push ecx
mov eax, dword [esi - 0xc]
push eax
push esi
push ebx
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ca10
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], eax
push 1
pop eax
cmove edi, eax
jmp 0x40ca10
mov esi, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ca1c
mov esi, dword [ebp - 0x1c]
lea ecx, [esi - 0x10]
call fcn.0040bb70
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040bb70
mov eax, edi
lea esp, [ebp - 0x34]
call fcn.004a7658
ret 0xc
Function at 0x40cde6
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x4a885d
call fcn.004a76a9
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40ce03
mov eax, 0x80070057
jmp 0x40cf3c
xor esi, esi
mov dword [ebp - 0x18], 7
xor ecx, ecx
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], esi
call fcn.0040dc67
mov dword [ebp - 4], esi
lea ebx, [ebp - 0x2c]
mov edi, dword [ebp - 0x18]
cmp edi, 8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmovae ebx, edx
test eax, eax
je 0x40cf02
dec eax
or ecx, 0xffffffff
cmp eax, ecx
push 0x5c
cmovb ecx, eax
lea eax, [ebx + ecx*2]
pop ecx
jmp 0x40ce5a
cmp eax, ebx
je 0x40cf02
sub eax, 2
cmp word [eax], cx
jne 0x40ce4f
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40cf02
push eax
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d2c4
cmp dword [eax + 0x14], 8
jb 0x40ce82
mov eax, dword [eax]
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x44]
mov edi, eax
call fcn.0040dc21
test edi, edi
je 0x40ceb6
cmp edi, 0x50
je 0x40ceb6
cmp edi, 0xb7
je 0x40ceb6
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
jmp 0x40cefa
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push esi
cmovae eax, dword [ebp - 0x2c]
push 0x80
push 1
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40cef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40cefa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
jmp 0x40cf07
mov esi, 0x80070057
cmp edi, 8
jb 0x40cf3a
lea eax, [edi*2 + 2]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], eax
cmp eax, 0x1000
jb 0x40cf31
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x4c]
call fcn.0040aab2
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
push eax
push edx
call fcn.004a43e6
pop ecx
pop ecx
mov eax, esi
call fcn.004a7658
ret 4
Function at 0x413daa
Capabilities:
Get disk information

Disassembly:
push 0x2f0
mov eax, 0x4a911b
call fcn.004a76a9
mov ebx, ecx
push 0xd4
lea eax, [ebp - 0xe4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe4]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x413f0a
cdq
and edx, 3
add eax, edx
sar eax, 2
push 0x208
mov dword [ebp - 0x2fc], eax
lea eax, [ebp - 0x2f0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebx + 4]
xor eax, eax
lea edi, [ebp - 0xe4]
mov word [ebp - 0xe8], ax
push dword [esi + 4]
push dword [esi]
call fcn.00415e28
cmp dword [ebp - 0x2fc], 0
mov eax, dword [esi]
mov dword [esi + 4], eax
jle 0x413f07
xor eax, eax
mov word [edi + 4], ax
lea eax, [ebp - 0x2f0]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x413ef7
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0040d6dc
and dword [ebp - 4], 0
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
je 0x413e8a
lea eax, [ebp - 0x2f4]
mov ecx, esi
push eax
call fcn.00415a51
jmp 0x413e99
lea ecx, [ebp - 0x2f4]
push ecx
push eax
mov ecx, esi
call fcn.00416106
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2f4]
lea ecx, [ecx - 0x10]
call fcn.0040bb70
push edi
lea ecx, [ebp - 0x2f8]
call fcn.0040d6dc
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
cmp eax, dword [ebx + 0xc]
je 0x413ed6
lea eax, [ebp - 0x2f8]
mov ecx, esi
push eax
call fcn.00415a51
jmp 0x413ee5
lea ecx, [ebp - 0x2f8]
push ecx
push eax
mov ecx, esi
call fcn.00416106
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2f8]
lea ecx, [ecx - 0x10]
call fcn.0040bb70
add edi, 8
sub dword [ebp - 0x2fc], 1
jne 0x413e3b
xor eax, eax
inc eax
call fcn.004a7658
ret

Function at 0x413fa9
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jne 0x414027
push 0x4c2768
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x18], eax
test eax, eax
je 0x414027
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call esi
push str.EnumProcesses
push dword [edi + 0x18]
mov dword [edi + 8], eax
call esi
push str.GetModuleBaseNameW
push dword [edi + 0x18]
mov dword [edi], eax
call esi
push str.GetModuleFileNameExW
push dword [edi + 0x18]
mov dword [edi + 4], eax
call esi
push str.GetProcessImageFileNameW
push dword [edi + 0x18]
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
pop esi
cmp dword [edi], ebx
je 0x414024
cmp dword [edi + 4], ebx
je 0x414024
cmp dword [edi + 8], ebx
je 0x414024
cmp dword [edi + 0xc], ebx
je 0x414024
test eax, eax
je 0x414024
inc ebx
mov dword [edi + 0x14], ebx
mov eax, dword [edi + 0x14]
pop edi
pop ebx
ret
Function at 0x4145ad
Capabilities:
Acquire debug privileges

Disassembly:
push 0x2c
push 0x4d86f8
call fcn.004a7920
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x414634
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x414634
xor edi, edi
inc edi
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne ebx, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00414657
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41466a
Capabilities:
Query environment variable

Disassembly:
push 0x220
mov eax, 0x4a92f4
call fcn.004a76a9
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x220]
mov ecx, edi
push 1
push eax
call fcn.0040d33e
mov edx, 0x4c2764
mov ecx, eax
call fcn.00415aff
mov ecx, dword [ebp - 0x220]
mov bl, al
lea ecx, [ecx - 0x10]
call fcn.0040bb70
test bl, bl
je 0x41483f
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push 0x4c280c
call esi
mov ebx, eax
mov dword [esp], str.SystemRoot_
mov dword [ebp - 0x21c], ebx
call esi
pop ecx
mov esi, eax
mov ecx, edi
push ebx
lea eax, [ebp - 0x220]
push eax
call fcn.0040d33e
mov edx, 0x4c280c
mov ecx, eax
call fcn.00415aff
mov ecx, dword [ebp - 0x220]
mov bl, al
lea ecx, [ecx - 0x10]
call fcn.0040bb70
mov ecx, edi
test bl, bl
je 0x414754
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d383
xor esi, esi
mov ecx, edi
push eax
mov dword [ebp - 4], esi
call fcn.0040e019
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.0040bb70
jmp 0x41481d
push esi
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d33e
mov edx, str.SystemRoot_
mov ecx, eax
call fcn.00415aff
mov ecx, dword [ebp - 0x21c]
mov bl, al
lea ecx, [ecx - 0x10]
call fcn.0040bb70
test bl, bl
je 0x41481b
push 0x104
lea eax, [ebp - 0x218]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
sub eax, esi
inc eax
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0040d383
mov esi, eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x228]
call fcn.0040d6dc
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00415b53
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0040e019
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.0040bb70
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.0040bb70
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.0040bb70
xor esi, esi
mov eax, dword [edi]
mov ecx, edi
cmp dword [eax - 0xc], 3
jg 0x41482e
call fcn.0040d870
jmp 0x414842
push 1
call fcn.0040d84c
cmp ax, 0x3a
je 0x41483f
mov ecx, edi
jmp 0x414827
xor esi, esi
inc esi
mov eax, esi
call fcn.004a7658
ret 4

Function at 0x415909
Capabilities:
Terminate process

Disassembly:
push esi
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x415930
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4188ad
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x408]
xor esi, esi
push eax
push 0xf003f
push esi
mov ebx, edx
mov edi, ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41895d
lea eax, [ebp - 0x414]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
jmp 0x41892f
mov ecx, dword [ebp - 0x408]
lea edx, [ebp - 0x404]
call fcn.004188ad
mov esi, eax
test esi, esi
jne 0x41896c
lea eax, [ebp - 0x414]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push ecx
push dword [ebp - 0x408]
mov dword [ebp - 0x40c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4188fd
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a439a
leave
ret
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41895d

Function at 0x4193fa
Capabilities:
Check if file exists
Delete file

Disassembly:
push 4
mov eax, 0x4a9ac3
call fcn.004a7676
lea ecx, [ebp - 0x10]
call fcn.0040d765
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
push 0x4c2a28
push eax
call fcn.0040ecfb
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419442
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.0040bb70
call fcn.004a7644
ret 8

Function at 0x41a91a
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x4a9e12
call fcn.004a7676
mov edx, 0x400000
lea ecx, [ebp - 0x10]
call fcn.00434624
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push str.cfgdatacomponentConfig.ini
mov edx, eax
call fcn.0042144f
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040bb70
lea ecx, [ebp - 0x10]
call fcn.0040d765
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push 0x104
call fcn.0040e373
push esi
push 0x103
push eax
push str.fastpdf.exe
push str.product_edition
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00412b02
lea ecx, [ebp - 0x10]
call fcn.0042141b
mov ecx, dword [ebp - 0x10]
mov bl, al
add ecx, 0xfffffff0
call fcn.0040bb70
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040bb70
mov al, bl
call fcn.004a7644
ret