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

Disassembly:
jmp 0x140007df0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x9a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x288]
lea rcx, [0x14011402b]
call fcn.14000184d
cmp qword [rbp + 0x260], 0
je 0x140007e42
mov rax, qword [rbp + 0x260]
cmp qword [rax], 0
jne 0x140007e49
xor eax, eax
jmp 0x140007f98
mov rax, qword [rbp + 0x260]
mov rax, qword [rax]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 8], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0xa4], eax
mov dword [rbp + 0xc4], 0
jmp 0x140007ef0
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xa4]
cmp dword [rbp + 0xc4], eax
jge 0x140007f96
movsxd rax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x108], rax
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x268]
call fcn.140003d50
test eax, eax
jne 0x140007f91
movsxd rax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0x124], ax
movzx eax, word [rbp + 0x124]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
jmp 0x140007f98
jmp 0x140007ee2
xor eax, eax
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret

Function at 0x140002ba3
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400247f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400241c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140024831
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140115010]
jmp 0x140024837
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400031c0
Capabilities:
Print debug messages

Disassembly:
jmp 0x140097440
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x140003265
Capabilities:
Parse pe header

Disassembly:
jmp 0x140008810
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
lea rcx, [0x14011402b]
call fcn.14000184d
cmp qword [rbp + 0x140], 0
je 0x140008863
mov rax, qword [rbp + 0x140]
cmp qword [rax + 0x10], 0
jne 0x14000886a
xor eax, eax
jmp 0x140008977
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140008896
mov dword [rbp + 0x114], 1
jmp 0x1400088a0
mov dword [rbp + 0x114], 0
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400088b4
jmp 0x140008960
xor eax, eax
test eax, eax
jne 0x14000887c
mov rax, qword [rbp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp dword [rax], 0x4550
jne 0x1400088eb
mov dword [rbp + 0x114], 1
jmp 0x1400088f5
mov dword [rbp + 0x114], 0
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140008906
jmp 0x140008960
xor eax, eax
test eax, eax
jne 0x1400088d3
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x140008959
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140008936
mov dword [rbp + 0x114], 1
jmp 0x140008940
mov dword [rbp + 0x114], 0
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140008951
jmp 0x140008960
xor eax, eax
test eax, eax
jne 0x14000891b
jmp 0x140008960
mov dword [rbp + 4], 0
cmp dword [rbp + 4], 0
jne 0x140008974
mov rax, qword [rbp + 0x140]
mov dword [rax + 0x20], 1
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x1400032c9
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400c9e80
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400c9ea4
xor eax, eax
jmp 0x1400c9ef2
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x1400c9ecc
xor eax, eax
jmp 0x1400c9ef2
mov rax, qword [rsp + 8]
add rax, 0x18
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
movzx eax, word [rax]
cmp eax, 0x20b
je 0x1400c9eed
xor eax, eax
jmp 0x1400c9ef2
mov eax, 1
add rsp, 0x28
ret
Function at 0x1400033aa
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400bbf30
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
lea rcx, [rsp + 0x70]
call fcn.14000416f
lea rcx, [rsp + 0x40]
call fcn.14000416f
call fcn.140003d96
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xb0]
call fcn.140001695
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400bbf9f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x40]
call fcn.140003f35
lea rcx, [rsp + 0x70]
call fcn.140003f35
mov eax, dword [rsp + 0x24]
jmp 0x1400bc02c
call fcn.140003d96
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xb8]
call fcn.140001695
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400bbfe6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x40]
call fcn.140003f35
lea rcx, [rsp + 0x70]
call fcn.140003f35
mov eax, dword [rsp + 0x2c]
jmp 0x1400bc02c
lea rcx, [rsp + 0x40]
call fcn.140001023
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x70]
call fcn.140001023
mov rcx, qword [rsp + 0x38]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.140003f35
lea rcx, [rsp + 0x70]
call fcn.140003f35
mov eax, dword [rsp + 0x30]
add rsp, 0xa8
ret

Function at 0x14000346d
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140024930
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140024280
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140024979
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140115010]
jmp 0x140024988
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x1400037bf
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000d370
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000d390
xor al, al
jmp 0x14000d411
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000d3a3
xor al, al
jmp 0x14000d411
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14000d3cd
xor al, al
jmp 0x14000d411
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14000d3e1
xor al, al
jmp 0x14000d411
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14000d3f3
xor al, al
jmp 0x14000d411
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000d40f
xor al, al
jmp 0x14000d411
mov al, 1
add rsp, 0x38
ret

Function at 0x140003a5d
Capabilities:
Terminate process

Disassembly:
jmp 0x140088300
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14008832e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140003b8e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140003bd4
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400248c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140024240
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400248ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140115010]
jmp 0x140024909
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140003c92
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140089d80
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.140088dd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140089db7
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x140115010]
jmp 0x140089dbd
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x38
ret
Function at 0x140003e1d
Capabilities:
Get geographical location

Disassembly:
jmp 0x14008a050
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140088fd0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14008a0a3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x140115010]
jmp 0x14008a0c5
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400027de
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret

Function at 0x140007570
Capabilities:
Create thread
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x208
lea rbp, [rsp + 0x40]
mov rdi, rsp
mov ecx, 0x82
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x228]
mov rax, qword [0x140105008]
xor rax, rbp
mov qword [rbp + 0x1b8], rax
lea rcx, [0x140114019]
call fcn.14000184d
mov dword [rbp + 4], 0
lea rax, [rbp + 4]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140002ce3]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x28], rax
lea rcx, [0x1400d40d4]
call fcn.1400027f2
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, str.temp.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x48], rax
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
mov ecx, eax
call fcn.140003a08
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov qword [rbp + 0x88], rax
mov dword [rbp + 0xa4], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xa4]
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x1e0], 2
jl 0x1400076ad
mov rax, qword [rbp + 0x88]
mov byte [rax], 0x4d
mov dword [rbp + 0xc4], 0
lea r8, [rbp + 0xc4]
mov edx, 1
mov rcx, qword [rbp + 0x88]
call fcn.14000419c
jmp 0x1400076dc
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x1400d3fc8]
call fcn.140003d91
mov rax, rdi
mov rcx, qword [rbp + 0x1b8]
xor rcx, rbp
call fcn.140001cee
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x140007df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140007df0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x9a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x288]
lea rcx, [0x14011402b]
call fcn.14000184d
cmp qword [rbp + 0x260], 0
je 0x140007e42
mov rax, qword [rbp + 0x260]
cmp qword [rax], 0
jne 0x140007e49
xor eax, eax
jmp 0x140007f98
mov rax, qword [rbp + 0x260]
mov rax, qword [rax]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 8], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x28]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0xa4], eax
mov dword [rbp + 0xc4], 0
jmp 0x140007ef0
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov eax, dword [rbp + 0xa4]
cmp dword [rbp + 0xc4], eax
jge 0x140007f96
movsxd rax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x108], rax
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x268]
call fcn.140003d50
test eax, eax
jne 0x140007f91
movsxd rax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0x124], ax
movzx eax, word [rbp + 0x124]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x260]
add rax, qword [rcx]
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
jmp 0x140007f98
jmp 0x140007ee2
xor eax, eax
lea rsp, [rbp + 0x248]
pop rdi
pop rbp
ret
Function at 0x140008810
Capabilities:
Parse pe header

Disassembly:
jmp 0x140008810
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
lea rcx, [0x14011402b]
call fcn.14000184d
cmp qword [rbp + 0x140], 0
je 0x140008863
mov rax, qword [rbp + 0x140]
cmp qword [rax + 0x10], 0
jne 0x14000886a
xor eax, eax
jmp 0x140008977
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x140008896
mov dword [rbp + 0x114], 1
jmp 0x1400088a0
mov dword [rbp + 0x114], 0
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400088b4
jmp 0x140008960
xor eax, eax
test eax, eax
jne 0x14000887c
mov rax, qword [rbp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp dword [rax], 0x4550
jne 0x1400088eb
mov dword [rbp + 0x114], 1
jmp 0x1400088f5
mov dword [rbp + 0x114], 0
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140008906
jmp 0x140008960
xor eax, eax
test eax, eax
jne 0x1400088d3
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x140008959
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140008936
mov dword [rbp + 0x114], 1
jmp 0x140008940
mov dword [rbp + 0x114], 0
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140008951
jmp 0x140008960
xor eax, eax
test eax, eax
jne 0x14000891b
jmp 0x140008960
mov dword [rbp + 4], 0
cmp dword [rbp + 4], 0
jne 0x140008974
mov rax, qword [rbp + 0x140]
mov dword [rax + 0x20], 1
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14000a200
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
jmp 0x14000a200
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
lea rcx, [0x14011402b]
call fcn.14000184d
cmp qword [rbp + 0x1e0], 0
je 0x14000a24f
cmp qword [rbp + 0x1e8], 0
jne 0x14000a256
xor eax, eax
jmp 0x14000a3ca
mov rax, qword [rbp + 0x1e0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000a276
xor eax, eax
jmp 0x14000a3ca
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x14000a2a2
xor eax, eax
jmp 0x14000a3ca
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14000a2c0
xor eax, eax
jmp 0x14000a3ca
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x84], 0
jmp 0x14000a317
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
cmp dword [rbp + 0x84], eax
jae 0x14000a3c8
mov eax, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x1e8]
call fcn.140003d50
test eax, eax
jne 0x14000a3c3
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xc8], rax
mov eax, dword [rbp + 0x84]
mov rcx, qword [rbp + 0xa8]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0xc8]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
mov rcx, qword [rbp + 0x1e0]
add rcx, rax
mov rax, rcx
jmp 0x14000a3ca
jmp 0x14000a309
xor eax, eax
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret

Function at 0x1400248c0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400248c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140024240
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400248ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140115010]
jmp 0x140024909
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x18002c300
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x208], rbx
mov rax, qword [0x1801c2938]
xor rax, rsp
mov qword [rbp + 0xb8], rax
mov r13d, r8d
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
je 0x18002c467
cmp qword [rcx + 0x18], 8
jb 0x18002c357
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18002c46e
lea rcx, [rsp + 0x50]
call fcn.180014d60
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.return_false1._GetLastError:
lea rcx, [rsp + 0x50]
call fcn.180022d00
mov rcx, rax
mov edx, ebx
call fcn.18002d850
mov rcx, rax
lea rdx, str.._file:
call fcn.180022d00
mov rcx, rax
mov rdx, rdi
call fcn.180022fd0
lea rdx, str.CFileUtility::SetFileBuf
lea rcx, [rbp + 0x68]
call fcn.180012480
nop
lea rdx, str.FileUtility.cpp
lea rcx, [rbp + 0x40]
call fcn.180012480
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180014e40
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x125
lea r8, [rbp + 0x40]
xor edx, edx
call fcn.180030340
nop
lea rcx, [rbp + 0x90]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0x40]
call fcn.180001850
nop
lea rcx, [rbp + 0x68]
call fcn.180001850
nop
lea rcx, [rbp - 0x28]
call fcn.180014de0
lea rcx, [rbp - 0x28]
call fcn.180013e40
xor al, al
jmp 0x18002c584
mov bl, 1
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r13d
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18002c578
lea rcx, [rsp + 0x50]
call fcn.180014d60
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.return_false2._GetLastError:
lea rcx, [rsp + 0x50]
call fcn.180022d00
mov rcx, rax
mov edx, ebx
call fcn.18002d850
mov rcx, rax
lea rdx, str.._file:
call fcn.180022d00
mov rcx, rax
mov rdx, rdi
call fcn.180022fd0
lea rdx, str.CFileUtility::SetFileBuf
lea rcx, [rbp + 0x40]
call fcn.180012480
nop
lea rdx, str.FileUtility.cpp
lea rcx, [rbp + 0x68]
call fcn.180012480
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.180014e40
mov rbx, rax
call fcn.180016d70
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x132
lea r8, [rbp + 0x68]
xor edx, edx
call fcn.180030340
nop
lea rcx, [rbp + 0x90]
call fcn.1800a20a0
nop
lea rcx, [rbp + 0x68]
call fcn.180001850
nop
lea rcx, [rbp + 0x40]
call fcn.180001850
nop
lea rcx, [rbp - 0x28]
call fcn.180014de0
lea rcx, [rbp - 0x28]
call fcn.180013e40
xor bl, bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rbp + 0xb8]
xor rcx, rsp
call fcn.1800bdf20
mov rbx, qword [rsp + 0x208]
add rsp, 0x1c0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret