joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001cb0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 4
jae 0x140001ccd
mov eax, 0xffffffff
jmp 0x140001ccf
xor eax, eax
add rsp, 0x58
ret

Function at 0x140002360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0xa
mov edx, 0x64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140002390
xor eax, eax
jmp 0x1400024d8
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400023b1
xor eax, eax
jmp 0x1400024d8
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x38], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
sub rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x20]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, rax
call sub.mfc140u.dll_operator_1
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
dec eax
cdqe
mov rcx, qword [rsp + 0x38]
inc rcx
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memmove
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x30]
call fcn.140002c10
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call fcn.1400024e0
mov qword [rsp + 0x58], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
mov r9d, eax
mov r8, qword [rsp + 0x50]
mov rax, qword [rsp + 0x80]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x58]
call fcn.140002cd0
mov rax, qword [rsp + 0x58]
add rsp, 0x78
ret
Function at 0x1400024e0
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000251d
xor eax, eax
jmp 0x140002665
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140002566
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x140002665
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x30], 8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
mov edx, 0x20000005
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x1400025b4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rsp + 0x48], 0
jne 0x1400025c3
xor eax, eax
jmp 0x140002665
mov rcx, qword [rsp + 0x48]
call sub.mfc140u.dll_operator_1
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400025fe
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x140002665
mov dword [rsp + 0x34], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14000263c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call sub.mfc140u.dll_operator
xor eax, eax
jmp 0x140002665
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x48]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rsp + 0x50]
add rsp, 0x78
ret
Function at 0x140002790
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call sub.mfc140u.dll_CMFCColorButton::OnFillBackground
mov r8d, 1
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x178]
mov rcx, qword [rsp + 0x40]
call fcn.140002b00
xor r8d, r8d
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x178]
mov rcx, qword [rsp + 0x40]
call fcn.140002b00
mov rax, qword [rsp + 0x40]
add rax, 0x180
mov r8w, 0x64
xor edx, edx
mov rcx, rax
call fcn.140002b80
mov rax, qword [rsp + 0x40]
add rax, 0x180
xor edx, edx
mov rcx, rax
call fcn.140002b40
call fcn.140001ce0
cmp eax, 0xffffffff
je 0x14000281b
call fcn.140001cb0
cmp eax, 0xffffffff
jne 0x14000283f
mov r9d, 0x1040
lea r8, [0x140006000]
lea rdx, [0x140006008]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, qword [rsp + 0x40]
call fcn.140002320
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [0x140001ef0]
call sub.mfc140u.dll_AFX_WM_ON_MOVETABCOMPLETE
mov eax, 1
add rsp, 0x38
ret

Function at 0x140003a54
Capabilities:
Parse pe header

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

Function at 0x2fc4d5b92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5c2a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5c0e
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 0x2fc4d5c02
cmp qword [rbp - 0x10], 0
je 0x2fc4d5c02
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 0x2fc4d5bc8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5c2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5d30
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 0x2fc4d5d58
mov eax, 0
jmp 0x2fc4d5da6
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 0x2fc4d5d81
mov eax, 0
jmp 0x2fc4d5da6
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 0x2fc4d5da1
mov eax, 0
jmp 0x2fc4d5da6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400a878f
Capabilities:
Execute command

Disassembly:
jmp 0x1400b4f10
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14029b263]
call fcn.1400aa792
lea rcx, str.ping__c_1_google.com
call qword [sym.imp.ucrtbased.dll_system]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400b4f4d
mov dword [rbp + 0xd4], 1
jmp 0x1400b4f57
mov dword [rbp + 0xd4], 0
movzx eax, byte [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400a9635
Capabilities:
Terminate process

Disassembly:
jmp 0x1401f5d90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400a9950
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400fa700
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14029b393]
call fcn.1400aa792
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400a9ab3
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400fa690
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14029b393]
call fcn.1400aa792
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ucrtbased.dll_fread]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400a9ac7
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1400fac50
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rcx, [0x14029b393]
call fcn.1400aa792
mov eax, dword [rbp + 0x1a0]
not eax
mov dword [rbp + 0x1a0], eax
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea rax, [0x140204c50]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x1400fad95
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x198]
dec rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x158], 0
je 0x1400face9
mov dword [rbp + 0x160], 1
jmp 0x1400facf3
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x1400fad90
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0x23
jne 0x1400fad6a
cmp qword [rbp + 0x198], 2
jb 0x1400fad6a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400fad6a
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400fad6a
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x64]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x1400facb4
jmp 0x1400fae2f
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
test eax, eax
je 0x1400fae2f
movzx eax, byte [rbp + 0x84]
cmp eax, 0x23
jne 0x1400fae06
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400fae06
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1400fae06
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x84]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x1400fad95
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400a9bdf
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401f79f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401f7a10
xor al, al
jmp 0x1401f7a91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401f7a23
xor al, al
jmp 0x1401f7a91
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 0x1401f7a4d
xor al, al
jmp 0x1401f7a91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401f7a61
xor al, al
jmp 0x1401f7a91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401f7a73
xor al, al
jmp 0x1401f7a91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401f7a8f
xor al, al
jmp 0x1401f7a91
mov al, 1
add rsp, 0x38
ret
Function at 0x1400aa4e5
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1400fab30
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x14029b393]
call fcn.1400aa792
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x140204c50]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x1400fabaf
mov dword [rbp + 0x120], 1
jmp 0x1400fabb9
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x1400fac02
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
jmp 0x1400fab7a
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x1400aa8c8
Capabilities:
Create thread

Disassembly:
jmp 0x1400b2bc0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1402836c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14029b262]
call fcn.1400aa792
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400aa27e
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1400a948c
nop
lea rax, [0x1400a96fd]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1400a8983
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x1400b2c9a
lea rcx, [rbp + 8]
call fcn.1400aa927
jmp 0x1400b2cb3
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400a88de
nop
lea rcx, [rbp + 8]
call fcn.1400a839d
lea rcx, [rbp - 0x30]
lea rdx, [0x1402044a0]
call fcn.1400aa13e
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400a9347
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140001db8
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140058060], 0
je 0x140001ddb
mov edx, 1
jmp 0x140001fa2
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x140001e3e
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x140001e36
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x140001e36
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x140001e48
mov r8, qword [r8]
mov rbx, rdx
jmp 0x140001df0
test rax, rax
jne 0x140001e4b
jmp 0x140001fa2
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x140058068]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x140001eb3
call fcn.140001d00
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x140001ec5
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x140001ec5
mov r10, rax
jmp 0x140001e77
mov dword [0x140058060], esi
lea ebp, [rsi - 1]
lea r10, [0x140058068]
test ebp, ebp
je 0x140001f2c
lea rdx, [0x140058060]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x140001f20
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x140001ee2
dec ebp
jmp 0x140001ed5
mov eax, dword [0x14005806c]
mov r13d, dword [0x14005807c]
xor edi, edi
lea r15, [0x140054c20]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x140001dd1
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140001f49
lea rdi, [0x140058060]
test r14d, r14d
je 0x140001dd1
add rdi, 0x10
cmp esi, ebp
je 0x140001dd1
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140001d28
mov qword [rdi], rax
jmp 0x140001f7e
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002b80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008800
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008800
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14005a074]
mov rbx, rcx
test esi, esi
jle 0x140002d20
mov rax, qword [0x14005a078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002c3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002cc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002c20
mov rcx, rbx
call fcn.140003640
mov rdi, rax
test rax, rax
je 0x140002d42
mov rax, qword [0x14005a078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003780
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14005a078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002d27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002cbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002cd0
add dword [0x14005a074], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14005a078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002cbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002b80
nop dword [rax]
xor esi, esi
jmp 0x140002c48
mov rax, qword [0x14005a078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002b80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002b80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400032b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14005a0e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005a0c0]
test rbx, rbx
je 0x14000330c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003303
test rsi, rsi
je 0x140003303
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400032e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]