joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018140
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x34], 0
mov ecx, 0x1000
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1400181e4
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.ProductVersionNum
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1400181d4
cmp dword [rsp + 0x3c], 4
jne 0x1400181d4
mov dword [rsp + 0x30], 1
jmp 0x1400181dc
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001f370
add rsp, 0x58
ret

Function at 0x1400184b0
Capabilities:
Download url
Receive data

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x480
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x470], rax
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdx, str.http:__acroipm2.adobe.com_assets_Owner_arm_
lea rcx, [rsp + 0x260]
call fcn.14000aa90
lea rax, [rsp + 0x250]
mov rdi, rax
xor eax, eax
mov ecx, 0xa
rep stosb byte [rdi], al
mov r8d, 0xa
lea rdx, [rsp + 0x250]
mov ecx, dword [rsp + 0x490]
call fcn.14000aac0
lea rdx, str.adnme4
lea rcx, [rsp + 0x260]
call fcn.14000ab00
lea rdx, [0x140027358]
lea rcx, [rsp + 0x260]
call fcn.14000ab00
cmp dword [0x14003e6a8], 0
je 0x1400185a5
call fcn.140016920
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
je 0x14001857b
cmp dword [rsp + 0x30], 0xc8
je 0x140018591
cmp dword [rsp + 0x30], 0x12c
je 0x140018591
jmp 0x140018591
lea rdx, str.acrred_
lea rcx, [rsp + 0x260]
call fcn.14000ab00
jmp 0x1400185a5
lea rdx, str.acrobat_
lea rcx, [rsp + 0x260]
call fcn.14000ab00
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x260]
call fcn.14000ab00
lea rdx, str..zip
lea rcx, [rsp + 0x260]
call fcn.14000ab00
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0
jl 0x14001861a
cmp dword [0x14003e6a4], 0
je 0x14001861a
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x260]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14001f370
add rsp, 0x480
pop rdi
ret
Function at 0x140018640
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x68
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14001f370
add rsp, 0xf0
pop rdi
ret
Function at 0x140018900
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x6f0
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x2c0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov r8, qword [rsp + 0x700]
mov edx, 0x104
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x2c0]
call fcn.14001b8f0
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400189b7
lea rdx, str.QueryFullProcessImageNameW
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400189b7
mov eax, dword [rsp + 0x30]
jmp 0x140018b15
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400189ed
cmp qword [rsp + 0x38], 0
je 0x1400189e4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140018b15
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140018a25
cmp qword [rsp + 0x38], 0
je 0x140018a1c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
jmp 0x140018b15
lea rax, [rsp + 0x4d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x2b0], 0x104
mov qword [rsp + 0x40], 0
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140018aa2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x2b0]
lea r8, [rsp + 0x4d0]
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x60]
call qword [0x1400235d0]
lea rcx, [rsp + 0x4d0]
call fcn.14001b8f0
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140018ad3
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
jmp 0x140018aeb
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140018a25
cmp qword [rsp + 0x38], 0
je 0x140018afe
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x40], 0
je 0x140018b11
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.14001f370
add rsp, 0x6f0
pop rdi
ret
Function at 0x140019400
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0x10
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140019525
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140019525
cmp qword [rsp + 0x38], 0
je 0x140019525
xor r9d, r9d
mov r8d, dword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140019525
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov edx, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140019525
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140019770
test eax, eax
je 0x140019525
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.140019570
test eax, eax
je 0x140019525
mov dword [rsp + 0x30], 1
cmp qword [rsp + 0x38], 0
je 0x140019538
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x40], 0
je 0x14001954d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001f370
add rsp, 0x78
ret
Function at 0x140019570
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x20]
lea rcx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x82
rep movsb byte [rdi], byte [rsi]
mov dword [rsp], 0
mov dword [rsp + 4], 0
cmp dword [rsp + 4], 8
jae 0x14001970d
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0xe0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x1c], eax
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x1c]
mov dword [rsp + 0x10], eax
cmp dword [rsp + 4], 8
jae 0x140019615
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0xe0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
jmp 0x14001961d
mov dword [rsp + 8], 0
mov eax, dword [rsp + 8]
mov dword [rsp + 0x14], eax
cmp dword [rsp + 4], 8
jae 0x14001964c
mov eax, dword [rsp + 4]
mov rcx, qword [rsp + 0xe0]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
jmp 0x140019654
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x10]
shr eax, 2
mov eax, eax
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0xe8]
movzx eax, word [rsp + rax*2 + 0x20]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x14]
shr eax, 4
mov ecx, dword [rsp + 0x10]
and ecx, 3
shl ecx, 4
or eax, ecx
mov eax, eax
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0xe8]
movzx eax, word [rsp + rax*2 + 0x20]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x18]
shr eax, 6
mov ecx, dword [rsp + 0x14]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov eax, eax
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0xe8]
movzx eax, word [rsp + rax*2 + 0x20]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x18]
and eax, 0x3f
mov eax, eax
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0xe8]
movzx eax, word [rsp + rax*2 + 0x20]
mov word [rdx + rcx*2], ax
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
jmp 0x1400195bd
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
mov eax, dword [rsp]
mov ecx, 0x3d
mov rdx, qword [rsp + 0xe8]
mov word [rdx + rax*2], cx
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp]
xor ecx, ecx
mov rdx, qword [rsp + 0xe8]
mov word [rdx + rax*2], cx
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14001f370
add rsp, 0xc8
pop rdi
pop rsi
ret
Function at 0x14001a8e0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push rdi
sub rsp, 0x8c0
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x490]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x280]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x6a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdx, str.SOFTWAREAdobeAdobe_ARM1.0ARM
lea rcx, [rsp + 0x6a0]
call fcn.14000aa90
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x280]
mov qword [rsp + 0x20], rax
lea r9, str.KillSwitchOverrideUrlSetUserChoice
lea r8, [rsp + 0x6a0]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x60]
call fcn.140015a30
lea rax, [rsp + 0x280]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
inc qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
cmp word [rax + rcx*2], 0
jne 0x14001a9a6
mov rax, qword [rsp + 0x48]
test rax, rax
jbe 0x14001a9dd
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x490]
call fcn.14000aa90
jmp 0x14001a9f1
lea rdx, str.https:__armmf.adobe.com_manifest_arm_manifests_win_DC_acrobat_Logging_killswitch_uc.txt
lea rcx, [rsp + 0x490]
call fcn.14000aa90
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140016080
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jl 0x14001aa93
lea rdx, str._adnme_ks_uc.txt
lea rcx, [rsp + 0x70]
call fcn.14000ab00
lea rcx, [rsp + 0x70]
call fcn.140016000
test eax, eax
je 0x14001aa46
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x490]
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x14001aa7a
mov dword [rsp + 0x40], 1
lea rcx, [rsp + 0x70]
call fcn.140016000
test eax, eax
je 0x14001aa93
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.14001f370
add rsp, 0x8c0
pop rdi
ret

Function at 0x14001ffe8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020032
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020032
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020032
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020032
cmp dword [rcx + 0x84], 0xe
jbe 0x140020032
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140020034
xor al, al
add rsp, 0x28
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14004b490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14004b4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14002bca0
jmp 0x14000123c
mov rax, qword [0x14004b4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14004b4a0]
mov dword [rax], 1
mov rax, qword [0x14004b4e0]
mov rdx, rax
mov rax, qword [0x14004b4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14004f024], 1
mov rax, qword [0x14004b4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14004b4c0]
mov rdx, rax
mov rax, qword [0x14004b4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14004b4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14004b490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14004b3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14004b3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14002af28
mov rax, qword [0x14004b520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14004b480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14002a720
mov eax, dword [0x14004f004]
lea rdx, [0x14004f008]
mov ecx, eax
call fcn.14000147c
call fcn.14002a4b7
mov rax, qword [0x14004b410]
mov rax, qword [rax]
mov rdx, qword [0x14004f010]
mov qword [rax], rdx
mov rcx, qword [0x14004f010]
mov rdx, qword [0x14004f008]
mov eax, dword [0x14004f004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004f01c], eax
mov eax, dword [0x14004f020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004f01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14004f024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004f01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14004b440]
mov dword [rax], 1
mov rax, qword [0x14004b450]
mov dword [rax], 1
mov rax, qword [0x14004b460]
mov dword [rax], 1
mov rax, qword [0x14004b400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14002a730
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14002ba90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14002b402
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004f168]
test eax, eax
je 0x14002b49a
lea rax, [0x14004f140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004f170]
mov qword [rbp - 8], rax
jmp 0x14002b47e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14002b472
cmp qword [rbp - 0x10], 0
je 0x14002b472
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14002b438
lea rax, [0x14004f140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002b49b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14002b5a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14002b5c8
mov eax, 0
jmp 0x14002b616
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14002b5f1
mov eax, 0
jmp 0x14002b616
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14002b611
mov eax, 0
jmp 0x14002b616
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14002b61c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002b69a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002b691
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14002b691
mov rax, qword [rbp - 8]
jmp 0x14002b6af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14002b664
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ce9f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cfad0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cf3f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4cf48a
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4cf46e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cf462
cmp qword [rbp - 0x10], 0
je 0x2fc4cf462
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cf428
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cf48b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cf590
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cf5b8
mov eax, 0
jmp 0x2fc4cf606
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cf5e1
mov eax, 0
jmp 0x2fc4cf606
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cf601
mov eax, 0
jmp 0x2fc4cf606
mov eax, 1
add rsp, 0x20
pop rbp
ret