joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402611e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140396618]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea r8, [0x14063a9a0]
xor edx, edx
lea rcx, str.0.0.0.0
call fcn.14024ba40
test eax, eax
jne 0x14026137d
lea r8, [0x14063a980]
xor edx, edx
lea rcx, [0x140335ab8]
call fcn.14024bab0
test eax, eax
jne 0x14026137d
lea ecx, [rax + 0x43]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x140261365
mov ecx, 0x202
lea rdx, [rsp + 0x2c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140261383
mov qword [rsp + 0x480], rbx
lea edx, [rax + 1]
xor r8d, r8d
mov qword [rsp + 0x470], rdi
lea ecx, [rax + 2]
mov dword [0x14063a9b4], 1
call qword [sym.imp.WS2_32.dll_socket]
xor edi, edi
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402612e3
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1402612da
mov eax, dword [0x14063a9b4]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x14063a9b4], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor r8d, r8d
mov dword [0x14063a9b0], 1
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140261355
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x274
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x2005
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14026134c
mov eax, dword [0x14063a9b0]
test dword [rsp + 0x40], 0x20000
cmovne eax, edi
mov dword [0x14063a9b0], eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x470]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140283d00
add rsp, 0x478
ret
call fcn.140291b08
int3
lea rdx, str.WSAStartup
mov ecx, eax
call fcn.14025eb40
int3
Function at 0x140274440
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x140396618]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rcx, str.HWLOC_PCI_LOCALITY
call fcn.14028fa24
mov rbx, rax
test rax, rax
je 0x140274544
xor edx, edx
mov qword [rsp + 0x78], rdi
mov rcx, rax
mov dword [rsi + 0x350], 1
call fcn.14029e2e0
mov edi, eax
test eax, eax
js 0x140274534
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.140294558
test eax, eax
jne 0x14027452b
mov eax, dword [rsp + 0x34]
cmp eax, 0x10000
jg 0x140274500
inc eax
movsxd rcx, eax
call fcn.14028fa2c
mov rbx, rax
test rax, rax
je 0x1402744ef
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov ecx, edi
call fcn.14029bb1c
movsxd rcx, dword [rsp + 0x34]
cmp eax, ecx
jne 0x1402744ef
mov byte [rcx + rbx], 0
mov rdx, rbx
mov rcx, rsi
call fcn.140274560
mov rcx, rbx
call fcn.14028f1dc
mov ecx, edi
call fcn.14029b450
jmp 0x14027453f
call fcn.140264390
cmp eax, 2
jge 0x14027452b
mov ecx, 2
call fcn.14028b234
mov r9d, dword [rsp + 0x34]
lea rdx, str.hwloc_pci:_Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
mov rcx, rax
mov r8, rbx
call fcn.140002df0
mov ecx, edi
call fcn.14029b450
jmp 0x14027453f
mov rdx, rbx
mov rcx, rsi
call fcn.140274560
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140283d00
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x140278580
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x140396480]
cmp eax, 1
jbe 0x1402785c9
mov rdx, qword [0x140626ef8]
test rdx, rdx
je 0x1402785c1
lea ecx, [rax - 1]
call rdx
movzx ecx, ax
mov eax, dword [0x140396480]
shl eax, 6
add eax, 0xffffffc0
add eax, ecx
add rsp, 0x58
ret
shl eax, 6
add rsp, 0x58
ret
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14027dc70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x78
mov rax, qword [0x140396618]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx], 0x2d
mov r13, r8
mov r12, rdx
jne 0x14027dc9f
cmp byte [rcx + 1], 0
jne 0x14027dc9f
xor eax, eax
jmp 0x14027dca4
sbb eax, eax
or eax, 1
mov qword [rsp + 0xb8], rsi
lea rbx, str._dev_stdin
test eax, eax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
lea rdx, [0x140363d60]
cmovne rbx, rcx
mov qword [rsp + 0x60], r15
mov rcx, rbx
call fcn.140292e8c
mov rbp, rax
test rax, rax
je 0x14027ddb9
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov edi, 0x1000
call fcn.140294630
test eax, eax
jne 0x14027dd0e
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x14027dd0e
mov eax, dword [rsp + 0x34]
inc eax
movsxd rdi, eax
lea rcx, [rdi + 1]
call fcn.14028fa2c
mov rsi, rax
test rax, rax
je 0x14027ddb1
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140292634
mov r15, rax
mov byte [rax + rsi], 0
cmp rax, rdi
jne 0x14027dd91
nop dword [rax]
nop word [rax + rax]
add rdi, rdi
mov rcx, rsi
lea rdx, [rdi + 1]
call fcn.14028f798
mov r14, rax
test rax, rax
je 0x14027dda9
mov rbx, rdi
lea rcx, [rax + r15]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rsi, rax
call fcn.140292634
add r15, rax
mov byte [rsi + r15], 0
cmp rax, rbx
je 0x14027dd50
mov rcx, rbp
call fcn.140291e58
lea rax, [r15 + 1]
mov qword [r12], rsi
mov qword [r13], rax
xor eax, eax
jmp 0x14027ddbe
mov rcx, rsi
call fcn.14028f1dc
mov rcx, rbp
call fcn.140291e58
mov eax, 0xffffffff
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140283d00
add rsp, 0x78
pop r13
pop r12
pop rbp
pop rbx
ret

Function at 0x1402950a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140294ed0

Function at 0x14029b318
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14029b338
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14028f100
or eax, 0xffffffff
jmp 0x14029b33a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Encode data using xor
Terminate process

Disassembly:
sub rsp, 0x38
mov rcx, qword [rdx]
lea rdx, str.sakisaki.exe
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400011dd
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEncryptedFileRawA]
cmp eax, 0x7b
jne 0x14000103e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalSize]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x40], rbx
lea rcx, str.kernel32.dll
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov ebx, 0x5f5e0ff
nop dword [rax]
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
sub rbx, 1
jne 0x140001070
lea rdx, str.HeapCreate
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.HeapAlloc
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CreateThread
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WaitForSingleObject
mov rcx, rbp
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, 0x37a
mov ecx, 0x40000
mov r8d, ebx
mov edx, ebx
mov rbp, rax
call rdi
mov r8d, ebx
mov edx, 8
mov rcx, rax
call rsi
movdqa xmm1, xmmword [0x140002320]
lea rdx, [0x140004040]
movdqa xmm2, xmmword [0x140002310]
lea ecx, [rbx - 0xa]
mov rdi, qword [rsp + 0x58]
xor r9d, r9d
mov rsi, qword [rsp + 0x50]
mov r8d, r9d
mov r10, rax
movdqu xmm0, xmmword [r8 + rdx]
pxor xmm0, xmm1
paddb xmm0, xmm1
pxor xmm0, xmm2
paddb xmm0, xmm2
movdqu xmmword [r8 + rdx], xmm0
add r8, 0x10
cmp r8, rcx
jl 0x140001121
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor al, 5
add al, 5
xor al, 4
add al, 4
mov byte [rcx + rdx], al
inc rcx
cmp rcx, rbx
jl 0x140001150
mov rcx, r10
cmp r10, rdx
jae 0x1400011a0
sub rdx, r10
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rbx, 1
jne 0x140001180
jmp 0x1400011b0
movzx eax, byte [rbx + rdx - 1]
mov byte [r10 + rbx - 1], al
sub rbx, 1
jne 0x1400011a0
mov qword [rsp + 0x28], r9
mov r8, r10
xor edx, edx
mov dword [rsp + 0x20], r9d
xor ecx, ecx
call r14
mov edx, 0xffffffff
mov rcx, rax
call rbp
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret

Function at 0x140001adc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b26
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b26
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b26
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b26
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b26
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b28
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d77d0
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.2fc4d88b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d81d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d826a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d824e
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 0x2fc4d8242
cmp qword [rbp - 0x10], 0
je 0x2fc4d8242
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 0x2fc4d8208
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d826b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8370
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 0x2fc4d8398
mov eax, 0
jmp 0x2fc4d83e6
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 0x2fc4d83c1
mov eax, 0
jmp 0x2fc4d83e6
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 0x2fc4d83e1
mov eax, 0
jmp 0x2fc4d83e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d83ec
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 0x2fc4d846a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8461
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 0x2fc4d8461
mov rax, qword [rbp - 8]
jmp 0x2fc4d847f
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 0x2fc4d8434
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140a210b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a21237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a210e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a210c7
add dl, dl
jne 0x140a210ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a2114e
xor eax, eax
add dl, dl
jne 0x140a210fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a21205
add dl, dl
jne 0x140a2110e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a2111b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a21128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a21135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a21142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a210d6
mov eax, 1
add dl, dl
jne 0x140a2115e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a2116b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a21153
sub eax, ebx
mov ebx, 1
jne 0x140a211a4
mov ecx, 1
add dl, dl
jne 0x140a21186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a21193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a2117b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a210d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a211c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a211cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a211b5
cmp eax, 0x7d00
jae 0x140a211f3
cmp eax, 0x500
jb 0x140a211ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a210d6
cmp eax, 0x7f
ja 0x140a211f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a210d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a2122a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a210d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d0f10
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.2fc4d1ff0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1912
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d19aa
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d198e
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 0x2fc4d1982
cmp qword [rbp - 0x10], 0
je 0x2fc4d1982
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 0x2fc4d1948
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d19ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1ab0
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 0x2fc4d1ad8
mov eax, 0
jmp 0x2fc4d1b26
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 0x2fc4d1b01
mov eax, 0
jmp 0x2fc4d1b26
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 0x2fc4d1b21
mov eax, 0
jmp 0x2fc4d1b26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1b2c
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 0x2fc4d1baa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1ba1
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 0x2fc4d1ba1
mov rax, qword [rbp - 8]
jmp 0x2fc4d1bbf
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 0x2fc4d1b74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6ab0
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.2fc4d7b90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d74b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d754a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d752e
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 0x2fc4d7522
cmp qword [rbp - 0x10], 0
je 0x2fc4d7522
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 0x2fc4d74e8
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d754b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7650
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 0x2fc4d7678
mov eax, 0
jmp 0x2fc4d76c6
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 0x2fc4d76a1
mov eax, 0
jmp 0x2fc4d76c6
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 0x2fc4d76c1
mov eax, 0
jmp 0x2fc4d76c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d76cc
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 0x2fc4d774a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7741
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 0x2fc4d7741
mov rax, qword [rbp - 8]
jmp 0x2fc4d775f
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 0x2fc4d7714
mov eax, 0
add rsp, 0x20
pop rbp
ret