joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f826b
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x140166390
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x698
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x10e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6b8]
mov rax, qword [0x140a3b940]
xor rax, rbp
mov qword [rbp + 0x660], rax
mov dword [rbp + 0x644], 0
lea rcx, [0x140a5f24f]
call fcn.1400fe346
nop
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop
mov edx, 0x100
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.WS2_32.dll_gethostname]
nop
mov rcx, qword [rbp + 0x690]
call fcn.1400fe2ab
mov qword [rbp + 0x658], rax
mov eax, dword [rbp + 0x644]
or eax, 1
mov dword [rbp + 0x644], eax
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x2e8]
call fcn.1400fc5f0
nop
mov dword [rbp + 0x2ec], 2
mov dword [rbp + 0x2f0], 2
lea r9, [rbp + 0x338]
lea r8, [rbp + 0x2e8]
xor edx, edx
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14016650d
mov rax, qword [rbp + 0x338]
mov qword [rbp + 0x398], rax
jmp 0x140166498
mov rax, qword [rbp + 0x398]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0x398], rax
cmp qword [rbp + 0x398], 0
je 0x1401664ff
mov rax, qword [rbp + 0x398]
cmp dword [rax + 4], 2
jne 0x1401664fd
mov rax, qword [rbp + 0x398]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x3b8], rax
mov rax, qword [rbp + 0x3b8]
add rax, 4
mov r9d, 0x16
lea r8, [rbp + 0x3d8]
mov rdx, rax
mov ecx, 2
call fcn.1400fb05b
nop
lea rdx, [rbp + 0x3d8]
mov rcx, qword [rbp + 0x690]
call fcn.1400f7424
nop
jmp 0x1401664ff
jmp 0x140166486
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rax, qword [rbp + 0x690]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14030c190]
call fcn.1400fcf55
mov rax, rdi
mov rcx, qword [rbp + 0x660]
xor rcx, rbp
call fcn.1400fa791
lea rsp, [rbp + 0x678]
pop rdi
pop rbp
ret

Function at 0x1400f83ec
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1401af080
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x1401af0a8
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1401af0f2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x1401af09d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400f8a13
Capabilities:
Terminate process

Disassembly:
jmp 0x14015d0f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140a5f24e]
call fcn.1400fe346
nop
cmp qword [rbp + 0xe8], 0
je 0x14015d142
cmp qword [rbp + 0xe8], 0xffffffffffffffff
je 0x14015d142
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0xe8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0xe0]
cmp qword [rax + 8], 0
je 0x14015d162
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0xe0]
cmp qword [rax], 0
je 0x14015d196
mov edx, 0xffffffff
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400fa37c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1402f2270
mov rax, rcx
neg rcx
test rax, 7
je 0x1402f228d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1402f22e8
test al, 7
jne 0x1402f2280
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1402f22a1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1402f2312
test dh, dh
je 0x1402f230c
shr rdx, 0x10
test dl, dl
je 0x1402f2306
test dh, dh
je 0x1402f2300
shr rdx, 0x10
test dl, dl
je 0x1402f22fa
test dh, dh
je 0x1402f22f4
shr edx, 0x10
test dl, dl
je 0x1402f22ee
test dh, dh
jne 0x1402f22a1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400fa3e5
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402c8b40
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402c86c0
lea rcx, [rsp + 0x20]
call fcn.1402c8710
movzx eax, al
test eax, eax
jne 0x1402c8b85
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1402c86f0
mov rax, qword [rsp + 0x40]
jmp 0x1402c8c7f
lea rcx, [rsp + 0x20]
call fcn.1402c8810
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1402c87b0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, [0x140337430]
mov edx, 2
mov rcx, rax
call fcn.1400fa8cc
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400f9ad5
lea rcx, [rsp + 0x28]
call fcn.1400faf75
movzx eax, al
test eax, eax
jne 0x1402c8c1f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400fcc03
lea rcx, [rsp + 0x20]
call fcn.1402c86f0
mov rax, qword [rsp + 0x50]
jmp 0x1402c8c7f
lea rcx, [rsp + 0x20]
call fcn.1402c8810
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400fe1de
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400fa7d2
lea rcx, [rsp + 0x28]
call fcn.1400fef94
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400fcc03
lea rcx, [rsp + 0x20]
call fcn.1402c86f0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400fab06
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1402003c0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401ffd40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1402003ff
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 [0x140a60020]
jmp 0x140200409
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1400fae62
Capabilities:
Query environment variable

Disassembly:
jmp 0x1402c8890
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1402c86c0
lea rcx, [rsp + 0x40]
call fcn.1402c8840
movzx eax, al
test eax, eax
jne 0x1402c88d8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1402c86f0
mov rax, qword [rsp + 0x70]
jmp 0x1402c8aa9
lea rcx, [rsp + 0x40]
call fcn.1402c8810
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1402c87b0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1402c8810
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400fc6cc
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1402c897e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1402c86f0
mov rax, qword [rsp + 0x80]
jmp 0x1402c8aa9
mov r9d, 0x66
lea r8, [0x140337430]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400fa8cc
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400fa5de
lea rcx, [rsp + 0x48]
call fcn.1400f9daf
movzx eax, al
test eax, eax
jne 0x1402c89e5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400f81fd
lea rcx, [rsp + 0x40]
call fcn.1402c86f0
mov rax, qword [rsp + 0x88]
jmp 0x1402c8aa9
lea rcx, [rsp + 0x48]
call fcn.1400fb538
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1402c8810
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400fc6cc
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1402c8a7b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400f81fd
lea rcx, [rsp + 0x40]
call fcn.1402c86f0
mov rax, qword [rsp + 0xa0]
jmp 0x1402c8aa9
lea rcx, [rsp + 0x48]
call fcn.1400fa57f
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400f81fd
lea rcx, [rsp + 0x40]
call fcn.1402c86f0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400fae85
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1402002f0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1401ffcc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140200331
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 [0x140a60020]
jmp 0x140200337
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400faf84
Capabilities:
Get geographical location

Disassembly:
jmp 0x1402ab910
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1402aa7b0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1402ab96c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call fcn.1400fef62
jmp 0x1402ab98e
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400f9cdd
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400fafa2
Capabilities:
Terminate process

Disassembly:
jmp 0x1401ddb00
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]
nop
add rsp, 0x28
ret
Function at 0x1400fb4bb
Capabilities:
Print debug messages

Disassembly:
jmp 0x1402d61a0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140a3b940]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1402d61c9
jmp 0x1402d624e
mov rcx, qword [rbp + 0x30]
call fcn.1400fa37c
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1402d61e2
jmp 0x1402d624e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1402d61ff
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f84e1
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400f8d56
test eax, eax
jne 0x1402d624e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400fa791
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400fb989
Capabilities:
Create process on windows

Disassembly:
jmp 0x1402b88f0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400f9a71
lea rcx, [rsp + 0xb8]
call fcn.1400f9a71
lea rcx, [rsp + 0x88]
call fcn.1400f9a71
call fcn.1400fad86
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400f95ee
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1402b8992
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400fa192
lea rcx, [rsp + 0xb8]
call fcn.1400fa192
lea rcx, [rsp + 0xe8]
call fcn.1400fa192
mov eax, dword [rsp + 0x54]
jmp 0x1402b8b38
call fcn.1400fad86
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400f95ee
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1402b89f2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400fa192
lea rcx, [rsp + 0xb8]
call fcn.1400fa192
lea rcx, [rsp + 0xe8]
call fcn.1400fa192
mov eax, dword [rsp + 0x5c]
jmp 0x1402b8b38
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x1402b8a78
call fcn.1400fad86
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400f95ee
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1402b8a66
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400fa192
lea rcx, [rsp + 0xb8]
call fcn.1400fa192
lea rcx, [rsp + 0xe8]
call fcn.1400fa192
mov eax, dword [rsp + 0x64]
jmp 0x1402b8b38
lea rcx, [rsp + 0x88]
call fcn.1400f9913
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400f9913
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400f9913
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400fa192
lea rcx, [rsp + 0xb8]
call fcn.1400fa192
lea rcx, [rsp + 0xe8]
call fcn.1400fa192
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400fba8d
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402ca9b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400fbef7
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401df6d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1401df6f0
xor al, al
jmp 0x1401df771
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401df703
xor al, al
jmp 0x1401df771
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 0x1401df72d
xor al, al
jmp 0x1401df771
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1401df741
xor al, al
jmp 0x1401df771
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1401df753
xor al, al
jmp 0x1401df771
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1401df76f
xor al, al
jmp 0x1401df771
mov al, 1
add rsp, 0x38
ret

Function at 0x1400fc1a9
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x14015d4c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rcx, [0x140a5f24e]
call fcn.1400fe346
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14015d52e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x14015d5f6
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x14015d555
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x14015d5f6
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x14015d59f
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x14015d5f6
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jne 0x14015d5e7
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x48], 0
je 0x14015d5e3
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x14015d5f6
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400fca78
Capabilities:
Terminate process

Disassembly:
jmp 0x1402013c0
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 0x1402013ee
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400fdae5
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 0x1400fdb9e
Capabilities:
Print debug messages

Disassembly:
jmp 0x140298190
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 0x1400fdd79
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140200430
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401ffd80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140200479
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 [0x140a60020]
jmp 0x140200488
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400fdf1d
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402e5a00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400f9a71
lea rcx, [rsp + 0x48]
call fcn.1400f9a71
call fcn.1400fad86
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400f95ee
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402e5a6f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400fa192
lea rcx, [rsp + 0x78]
call fcn.1400fa192
mov eax, dword [rsp + 0x24]
jmp 0x1402e5b00
call fcn.1400fad86
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400f95ee
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1402e5ab6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400fa192
lea rcx, [rsp + 0x78]
call fcn.1400fa192
mov eax, dword [rsp + 0x2c]
jmp 0x1402e5b00
lea rcx, [rsp + 0x48]
call fcn.1400f9913
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400f9913
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400fa192
lea rcx, [rsp + 0x78]
call fcn.1400fa192
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1402841a0
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1402841c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.140284340
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1402af1c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400f84e1
sub rsp, rax
mov rax, qword [0x140a3b940]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140a409f0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402af3ba
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1402af306
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402af306
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1402af2eb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1402af288
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402af37a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402af3d9
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x1402af3b5
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402af3d9
jmp 0x1402af25e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400fa791
add rsp, 0x1498
pop rdi
pop rsi
ret