joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001dc4e
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x140031810
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, 0x1f8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
mov rax, qword [0x14006d158]
xor rax, rbp
mov qword [rbp + 0x198], rax
mov byte [rbp + 0x154], 0
lea rcx, [0x140077081]
call fcn.14001e13a
mov dword [rbp + 4], reloc.WS2_32.dll_recv
mov dword [rbp + 0x24], 0
cmp qword [rbp + 0x1c8], 0
je 0x140031894
lea rax, [rbp + 4]
mov qword [rbp + 0x188], rax
jmp 0x14003189f
mov qword [rbp + 0x188], 0
cmp qword [rbp + 0x1c8], 0
je 0x1400318bd
mov byte [rbp + 0x154], 1
lea rax, [rbp + 0x68]
mov qword [rbp + 0x190], rax
jmp 0x1400318c8
mov qword [rbp + 0x190], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rbp + 0x188]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x190]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x1d8]
mov rdx, qword [rbp + 0x1d0]
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x140031950
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x184], eax
cmp dword [rbp + 0x184], 0x2733
je 0x140031945
cmp dword [rbp + 0x184], 0x2746
je 0x140031945
jmp 0x140031949
xor eax, eax
jmp 0x1400319a6
mov eax, 0xffffffff
jmp 0x1400319a6
mov eax, dword [rbp + 0x24]
and eax, 0x8000
test eax, eax
je 0x140031963
mov eax, 0xffffffff
jmp 0x1400319a6
cmp qword [rbp + 0x1c8], 0
je 0x1400319a3
mov rax, qword [rbp + 0x1c8]
mov ecx, dword [rbp + 0x6c]
mov dword [rax], ecx
cmp byte [rbp + 0x154], 0
jne 0x14003198e
lea rcx, [0x14005e9c0]
call fcn.14001d2e4
movzx ecx, word [rbp + 0x6a]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rbp + 0x1c8]
mov word [rcx + 4], ax
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_connect
call fcn.14001de01
mov rax, rdi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.14001d857
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret

Function at 0x14001dc7b
Capabilities:
Resolve dns

Disassembly:
jmp 0x140030c00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140077081]
call fcn.14001e13a
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140030c49
mov rax, qword [rbp + 8]
movsx eax, word [rax + 0x10]
cmp eax, 2
je 0x140030c5e
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call fcn.14001d7ad
jmp 0x140030c80
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rax]
mov dword [rcx], eax
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14001dfe1
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14004b6c0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x140077153]
call fcn.14001e13a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0xf0]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14004b709
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
jmp 0x14004b750
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0xf0]
movsx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0xf8]
xor ecx, eax
mov eax, ecx
imul eax, eax, 0x1000193
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rbp + 0xf0]
add rdx, rcx
mov rcx, rdx
mov edx, eax
call fcn.14001dfe1
mov dword [rbp + 0xc0], eax
mov eax, dword [rbp + 0xc0]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x14001e072
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140030f30
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14006d158]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, [0x140077081]
call fcn.14001e13a
mov eax, 0x101
mov word [rbp + 4], ax
lea rdx, [rbp + 0x30]
movzx ecx, word [rbp + 4]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140030f8f
mov eax, 0xffffffff
jmp 0x140030fd1
movzx eax, word [rbp + 0x30]
and rax, 0xff
movzx eax, al
cmp eax, 1
jne 0x140030fb7
movzx eax, word [rbp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
je 0x140030fc4
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
jmp 0x140030fd1
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.14001de01
mov rax, rdi
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.14001d857
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret
Function at 0x14001e1df
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x140031a50
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, 0x178
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x14006d158]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x140077081]
call fcn.14001e13a
cmp qword [rbp + 0x148], 0
je 0x140031aed
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
lea rcx, [rbp + 8]
call fcn.14001dcdf
mov eax, 2
mov word [rbp + 8], ax
mov rax, qword [rbp + 0x148]
movzx ecx, word [rax + 4]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xa], ax
mov rax, qword [rbp + 0x148]
mov eax, dword [rax]
mov dword [rbp + 0xc], eax
cmp qword [rbp + 0x148], 0
je 0x140031b04
mov qword [rbp + reloc.WS2_32.dll_recv8], 0x10
jmp 0x140031b0f
mov qword [rbp + 0x108], 0
cmp qword [rbp + 0x148], 0
je 0x140031b26
lea rax, [rbp + 8]
mov qword [rbp + 0x110], rax
jmp 0x140031b31
mov qword [rbp + 0x110], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rbp + 0x108]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x110]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x34]
mov r8d, dword [rbp + 0x158]
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140031b9d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140031b96
xor eax, eax
jmp 0x140031ba0
mov eax, 0xffffffff
jmp 0x140031ba0
mov eax, dword [rbp + 0x34]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14001de01
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.14001d857
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14001e1e9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x140031530
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_shutdown
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x14006d158]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, [0x140077081]
call fcn.14001e13a
mov dword [rbp + 0x34], reloc.WS2_32.dll_recv
lea r8, [rbp + 0x34]
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1400315a6
mov eax, 0xffffffff
jmp 0x1400315c9
mov rax, qword [rbp + 0x138]
mov ecx, dword [rbp + 0xc]
mov dword [rax], ecx
movzx ecx, word [rbp + 0xa]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rbp + 0x138]
mov word [rcx + 4], ax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.14001de01
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.14001d857
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140026be0
Capabilities:
Hash data using crc32b

Disassembly:
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14007704d]
call fcn.14001e13a
mov dword [rbp + 4], 0
jmp 0x140026c0c
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x100
jge 0x140026c81
mov edx, 8
mov ecx, dword [rbp + 4]
call fcn.140026cd0
shl eax, 0x18
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x44], 0
jmp 0x140026c39
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 8
jge 0x140026c64
mov eax, dword [rbp + 0x24]
and eax, 0x80000000
test eax, eax
je 0x140026c5a
mov eax, dword [rbp + 0x24]
shl eax, 1
xor eax, 0x4c11db7
mov dword [rbp + 0x24], eax
jmp 0x140026c62
mov eax, dword [rbp + 0x24]
shl eax, 1
mov dword [rbp + 0x24], eax
jmp 0x140026c31
mov edx, 0x20
mov ecx, dword [rbp + 0x24]
call fcn.140026cd0
movsxd rcx, dword [rbp + 4]
lea rdx, [0x14006d8a0]
mov dword [rdx + rcx*4], eax
jmp 0x140026c04
mov dword [0x14006d890], 1
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14003b5e0
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140077119]
call fcn.14001e13a
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x88], 0
jbe 0x14003b6a6
xor r9d, r9d
mov rax, qword [rbp + 0x120]
mov r8d, dword [rax + 0x88]
mov rax, qword [rbp + 0x120]
mov rdx, qword [rax + 0x80]
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 0x60]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jg 0x14003b66d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14003b666
mov rcx, qword [rbp + 0x120]
call fcn.14003acc0
xor eax, eax
jmp 0x14003b775
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x120]
add rcx, 0x80
mov rdx, rax
call fcn.140038b80
mov rax, qword [rbp + 0x120]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0x120]
mov rax, qword [rax + 0x20]
mov qword [rcx + 0x48], rax
jmp 0x14003b773
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x98], 0
je 0x14003b767
mov rax, qword [rbp + 0x120]
add rax, 0x80
mov edx, 0x2000
mov rcx, rax
call fcn.140038ac0
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
je 0x14003b6e6
mov eax, dword [rbp + 0x24]
jmp 0x14003b775
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x98]
mov rax, qword [rbp + 0x120]
mov r8, qword [rax + 0x90]
mov edx, 1
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 0x80]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rbp + 0x120]
mov qword [rcx + 0x88], rax
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x88], 0
jbe 0x14003b73f
jmp 0x14003b614
mov rax, qword [rbp + 0x120]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.ucrtbased.dll_fclose]
mov rax, qword [rbp + 0x120]
mov qword [rax + 0x98], 0
jmp 0x14003b773
mov rcx, qword [rbp + 0x120]
call fcn.14003acc0
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140b122c0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b12447
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 0x140b122f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b122d7
add dl, dl
jne 0x140b122fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b1235e
xor eax, eax
add dl, dl
jne 0x140b1230d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b12415
add dl, dl
jne 0x140b1231e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b1232b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b12338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b12345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b12352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b122e6
mov eax, 1
add dl, dl
jne 0x140b1236e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b1237b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b12363
sub eax, ebx
mov ebx, 1
jne 0x140b123b4
mov ecx, 1
add dl, dl
jne 0x140b12396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b123a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b1238b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b122e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b123d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b123dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b123c5
cmp eax, 0x7d00
jae 0x140b12403
cmp eax, 0x500
jb 0x140b123fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b122e6
cmp eax, 0x7f
ja 0x140b12406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b122e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b1243a
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 0x140b122e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002590
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x1400025dc
cmp rax, rbx
jne 0x1400025cf
mov ebx, 1
mov esi, ebx
jmp 0x1400025e1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400025b4
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400025f7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000265c
mov eax, dword [0x140004658]
test eax, eax
jne 0x140002656
mov dword [0x140004658], ebx
lea r15, [0x1400033c0]
lea rdi, [0x1400033a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002648
test eax, eax
jne 0x14000264c
cmp qword [rdi], 0
je 0x14000263d
mov rax, qword [rdi]
mov rcx, qword [0x140003388]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000261e
test eax, eax
je 0x14000265c
mov eax, 0xff
jmp 0x140002738
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002683
lea rdx, [0x1400033a0]
lea rcx, [0x140003390]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x140002690
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x1400026c4
lea rcx, [0x140004660]
call fcn.140002940
test eax, eax
je 0x1400026c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003388]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.1400019b0
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x1400026f4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002709
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002738
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140134000
add rsp, 0x28
jmp 0x140002590

Function at 0x14000282c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002878
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002870
cmp dword [rcx + 0x3c], edx
jl 0x140002870
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002870
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002878
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001844
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0
mov rax, qword [0x140223e88]
test rax, rax
je 0x14000187a
mov rax, qword [0x140223e88]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [0x140223e88], 0
lea rax, str.HOME
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400018b5
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1400fa409]
mov rcx, rax
call fcn.1400015a4
lea rax, str.LOCALAPPDATA
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400018f0
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1400fa409]
mov rcx, rax
call fcn.1400015a4
lea rax, str.USERPROFILE
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000192b
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, str._s_Local_Settings_Application_Data_s
mov rcx, rax
call fcn.1400015a4
lea rax, str.COMMONPROGRAMFILES
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001966
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1400fa409]
mov rcx, rax
call fcn.1400015a4
lea rax, [rbp - 0x10]
mov edx, 0
mov rcx, rax
call fcn.140001683
mov rdx, qword [0x140223e80]
lea rax, [rbp - 0x10]
mov rcx, rax
call fcn.140001683
mov rax, qword [rbp - 0x10]
mov qword [0x140223e88], rax
mov rax, qword [0x140223e88]
add rsp, 0x30
pop rbp
ret

Function at 0x1400019a2
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
cmp qword [rbp + 0x10], 0
je 0x1400019be
mov rax, qword [rbp + 0x10]
jmp 0x1400019f2
lea rax, str.MAGIC
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
je 0x1400019de
mov rax, qword [rbp + 0x10]
jmp 0x1400019f2
cmp dword [rbp + 0x18], 0
jne 0x1400019eb
call fcn.140001844
jmp 0x1400019f2
lea rax, str._opt_mxe_usr_x86_64_w64_mingw32.static_share_misc_magic
add rsp, 0x20
pop rbp
ret
Function at 0x140031730
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140031842
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14003181a
add rax, 1
cmp rax, 0x6b
je 0x140031837
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140031810
cmp edx, 0x6a
je 0x140031837
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14003182b

Function at 0x140031be0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x140225220]
mov rcx, rsi
call fcn.1400314a0
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.140030000
mov ebx, dword [0x140225220]
test ebx, ebx
jne 0x140031c50
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f3e78], eax
cmp eax, 0xffffffff
je 0x1400cb786
mov dword [0x140225220], 1
mov rcx, r13
call fcn.140030320
test r12, r12
je 0x140031c82
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.140031860
cmp ebx, 1
je 0x140031c31
mov ecx, 2
call qword [fcn.140043590]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140030320
test r12, r12
jne 0x140031c3e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x140034bb0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140043590
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140043590
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140034c20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14022df54]
mov r12, rcx
test ebx, ebx
jle 0x140034d50
mov rax, qword [0x14022df58]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140034c6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140034cf5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140034c50
mov rcx, r12
call fcn.1400356a0
mov rsi, rax
test rax, rax
je 0x140034d72
mov rax, qword [0x14022df58]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400357d0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14022df58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140034d57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140034cee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140034d00
add dword [0x14022df54], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14022df58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140034cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140034bb0
nop dword [rax]
xor ebx, ebx
jmp 0x140034c78
mov rax, qword [0x14022df58]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140034bb0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140034bb0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400352f0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14022dfc0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14022dfa0]
test rbx, rbx
je 0x14003534c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140035343
test r12, r12
je 0x140035343
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140035328
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]