joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007d00
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x180007d21
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x180007d9c
test rax, rax
jle 0x180007d7c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x180007d9c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180007d9c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
push 0x6cfdfce3
add dword [rbx + riz*2 - 0x1410b548], edi
rcl dword [rcx + 0x17], 0xaa
loop 0x18002801a
and dl, al
sal dword [rsp + rsi*8 - 0x12], 0xb3
hlt
out dx, al
mov bl, 0x57
mov dl, 0xcb
pop rbp
in eax, 0xe7
mov ch, 0xfb
push rsp
add r11b, byte [rbx]
add byte [rdx - 0xe], dh
int 0x92
adc dword [rsi - 4], edi
add dword [rbx - 0x4f12c84a], edi
jmp 0x14ab34c58
add eax, 0xdaa6b2da
cmc
movsb byte [rdi], byte [rsi]
sub byte [rax - 0x5c70f6a3], ch
loope 0x180028070
mov bl, 0xdf
inc dword [rcx - 0x19]
test eax, 0x83e784c9
sbb eax, esi
adc dword [rdx], ebp
lodsb al, byte [rsi]
xor eax, 0xc381f01
idiv ebx
mov word [rdi], es
enter 0x5ec1, 0x37
dec byte [rdx - 0x47]
xchg ebx, eax
invalid
sub dword [rdi + 0x4cd1f4e5], 0x70
cmp edi, edx
cmp cl, 0x17
mov al, 0xb4
invalid
Function at 0x140216920
Capabilities:
Create thread

Disassembly:
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 [0x1402990c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1402b297c]
call fcn.1400b6e3b
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140218440
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140217320
nop
lea rax, [0x1402164e0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1402186a0
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 0x1402169fc
lea rcx, [rbp + 8]
call fcn.140218850
nop
jmp 0x140216a15
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400b4a05
nop
lea rcx, [rbp + 8]
call fcn.140217950
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14027ca10]
call fcn.1400b6620
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400b55d6
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140216aa0
Capabilities:
Create thread

Disassembly:
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 [0x1402990c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1402b297c]
call fcn.1400b6e3b
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140218480
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1402173f0
nop
lea rax, [0x1402165f0]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1402186f0
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 0x140216b7c
lea rcx, [rbp + 8]
call fcn.1402188b0
nop
jmp 0x140216b95
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400b4a05
nop
lea rcx, [rbp + 8]
call fcn.1402179e0
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14027ca90]
call fcn.1400b6620
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400b55d6
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140216c20
Capabilities:
Create thread

Disassembly:
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 [0x1402990c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1402b297c]
call fcn.1400b6e3b
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1402184c0
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1402174c0
nop
lea rax, [0x140216700]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140218740
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 0x140216cfc
lea rcx, [rbp + 8]
call fcn.140218910
nop
jmp 0x140216d15
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400b4a05
nop
lea rcx, [rbp + 8]
call fcn.140217a70
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14027cb10]
call fcn.1400b6620
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400b55d6
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140216da0
Capabilities:
Create thread

Disassembly:
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 [0x1402990c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1402b297c]
call fcn.1400b6e3b
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140218500
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140217590
nop
lea rax, [0x140216810]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140218790
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 0x140216e7c
lea rcx, [rbp + 8]
call fcn.140218970
nop
jmp 0x140216e95
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400b4a05
nop
lea rcx, [rbp + 8]
call fcn.140217b00
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14027cb90]
call fcn.1400b6620
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400b55d6
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140001734
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000177e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000177e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000177e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000177e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000177e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001780
xor al, al
add rsp, 0x28
ret

Function at 0x140004df8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140004e67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004e67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004e67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004e67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004e67
cmp dword [rcx + 0x84], 0xe
jbe 0x140004e67
cmp dword [rcx + 0xf8], 0
je 0x140004e67
mov ecx, ebx
call fcn.140004f18
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140004cf4
nop
cmp dword [rbp + 0x20], 0
je 0x140004eb5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004ec0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140004df8

Function at 0x140004ffc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004df8
Function at 0x1400080bc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400080ec
xor eax, eax
jmp 0x1400081af
mov rbp, rbx
cmp word [rax], si
je 0x140008111
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400080f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400080f4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140007fdc
movsxd r14, eax
test eax, eax
jne 0x14000814f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400080e5
mov rcx, r14
call fcn.140008f98
mov rdi, rax
test rax, rax
jne 0x140008168
xor ecx, ecx
call fcn.14000663c
jmp 0x140008144
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140007fdc
test eax, eax
jne 0x140008199
mov rcx, rdi
call fcn.14000663c
jmp 0x1400081a3
xor ecx, ecx
call fcn.14000663c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000b6a0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400070ac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000b72a
cmp byte [rbp - 0x21], r15b
je 0x14000b725
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000b760
call fcn.1400097a8
test eax, eax
jne 0x14000b74c
cmp byte [rbp - 0x21], r15b
je 0x14000b744
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000b760
cmp byte [rbp - 0x21], r15b
je 0x14000b75d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000668c
test eax, eax
jne 0x14000b800
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400070ac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000b79f
cmp byte [rbp - 0x21], r15b
je 0x14000b7d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000b7d4
call fcn.1400097a8
test eax, eax
jne 0x14000b7c0
cmp byte [rbp - 0x21], r15b
je 0x14000b7b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000b7d4
cmp byte [rbp - 0x21], r15b
je 0x14000b7d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000668c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000b800
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000b803
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000b811
mov rcx, rdi
call fcn.14000663c
cmp byte [rbp + 0x3f], r15b
je 0x14000b820
mov rcx, qword [rbp + 0x27]
call fcn.14000663c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000e650
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e678
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e678
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140009a40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14000b048]
test rax, rax
je 0x140009a8a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009a8a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009a8a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009a8a
cmp dword [rcx + 0x84], 0xe
jbe 0x140009a8a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009a8c
xor al, al
add rsp, 0x28
ret
Function at 0x1400010b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea r9, [0x140001070]
lea r8, str.file
call fcn.14000b0c0
test eax, eax
je 0x1400010d4
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp qword [0x1403d4470], 0
jne 0x1400010ef
call fcn.140001400
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x28
ret
Function at 0x140001100
Capabilities:
Terminate process

Disassembly:
mov eax, 0x2058
call fcn.1400b5820
sub rsp, rax
mov rax, qword [0x1403d4408]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], rdx
mov rax, qword [rdx]
mov qword [0x140bd5900], rax
call fcn.1400086a0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, str.aria_dump_log
lea rcx, [0x1400b784c]
call fcn.140009020
test eax, eax
je 0x14000117e
xor ecx, ecx
cmp eax, 4
je 0x140001170
call fcn.140008550
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140008550
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x2050], rdi
lea rdx, [rsp + 0x38]
mov rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.1400010b0
cmp byte [0x1403d446c], 0
je 0x1400011aa
call fcn.140001480
jmp 0x1400011af
call fcn.1400023f0
mov qword [rsp + 0x2070], rbx
call fcn.140001fe0
mov rcx, qword [0x1403d4470]
lea rax, [0x1400b7850]
xor edx, edx
mov qword [0x140be7300], rax
lea r8d, [rdx + 0x10]
call fcn.140008010
mov dword [0x14021c048], eax
test eax, eax
jns 0x140001217
call fcn.140007520
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rbx]
lea rdx, str.Cant_open_file:__s__errno:__d_n
mov r8, qword [0x1403d4470]
mov rcx, rax
call fcn.140001020
jmp 0x14000132d
mov rdx, qword [0x1403d4460]
mov r9d, 0x10
xor r8d, r8d
mov ecx, eax
call fcn.140008470
mov rcx, qword [0x1403d4460]
cmp rax, rcx
je 0x140001259
call fcn.140007520
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Cant_set_position__lld__file:__s__errno:__d_n
jmp 0x140001311
cmp dword [0x1403d4468], 0
je 0x1400012cc
mov r9, rcx
mov dword [rsp + 0x20], 4
mov ecx, dword [0x14021c048]
lea rdx, [rsp + 0x40]
mov r8d, 0x2000
call fcn.140008140
test rax, rax
jne 0x1400012ea
mov rdx, qword [0x1403d4460]
lea rcx, str.Page_by_offset__llu__0x_llx__n
mov r8, rdx
call fcn.1400013a0
mov edx, dword [0x14021c048]
lea rcx, [rsp + 0x40]
call fcn.140001df0
mov rcx, qword [0x1403d4460]
add rcx, 0x2000
add dword [0x1403d4468], 0xffffffff
mov qword [0x1403d4460], rcx
jne 0x140001262
mov ecx, dword [0x14021c048]
xor edx, edx
call fcn.140007f40
mov rcx, rdi
call fcn.140008c30
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140007520
cmp dword [rax], 0xaf
je 0x1400012cc
call fcn.140007520
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Cant_read_page_at_position__lld__file:__s__errno:__d_n
mov r9, qword [0x1403d4470]
mov rcx, rax
mov eax, dword [rbx]
mov r8, qword [0x1403d4460]
mov dword [rsp + 0x20], eax
call fcn.140001020
mov ecx, dword [0x14021c048]
xor edx, edx
call fcn.140007f40
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140bd5908]
lea rdx, str._s:_FAILED_n
mov rcx, rax
call fcn.140001020
mov rcx, rdi
call fcn.140008c30
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140007af0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp byte [0x140bd5478], 0
jne 0x140007b6a
cmp byte [0x140bd5470], 0
mov byte [0x140bd5478], 1
jne 0x140007b45
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140c54950], eax
cmp eax, 0xffffffff
jne 0x140007b45
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 1
lea rdx, str.Cant_initialize_threads:_error__d_n
mov rcx, rax
call fcn.140001020
mov al, 1
add rsp, 0x28
ret
mov byte [0x140bd5470], 1
call fcn.140007e20
call fcn.140007b80
test al, al
jne 0x140007b3e
call fcn.140007530
mov dword [0x140bde0a8], eax
call fcn.140007ce0
xor al, al
add rsp, 0x28
ret

Function at 0x140007f10
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov ecx, dword [0x140c54950]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400086a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x140bd548c], 0
jne 0x1400087d3
inc dword [0x140bd5488]
lea rcx, str.UMASK
mov byte [0x140bd548c], 1
mov dword [0x14021ee14], 0x1b0
mov dword [0x14021ee20], 0x1c0
mov dword [0x140bd5b24], 0
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140008701
mov rcx, rax
call fcn.1400084e0
or eax, 0x180
mov dword [0x14021ee14], eax
lea rcx, str.UMASK_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140008726
mov rcx, rax
call fcn.1400084e0
or eax, 0x1c0
mov dword [0x14021ee20], eax
call fcn.14000ca70
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [0x140bd5900]
mov qword [0x140bd5498], rax
lea rax, [0x140bd5498]
mov qword [0x140bd5490], rax
lea rax, str.unknown
mov qword [0x140bd5908], rax
mov qword [0x140bd54a0], 0
test rcx, rcx
je 0x140008780
call fcn.140010840
add rax, qword [0x140bd5900]
mov qword [0x140bd5908], rax
call fcn.14000ca70
call fcn.140007af0
test al, al
je 0x140008795
mov al, 1
add rsp, 0x28
ret
lea rcx, str.HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x140bd58f8], rax
test rax, rax
je 0x1400087c4
mov rdx, rax
lea rcx, [0x140bd5b30]
call fcn.14000daa0
mov qword [0x140bd58f8], rax
call fcn.14000e310
call fcn.1400087e0
call fcn.1400088c0
xor al, al
add rsp, 0x28
ret
Function at 0x1400087e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140007570]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__tzset]
add rsp, 0x28
jmp 0x140008970
sub rsp, 0xa88
mov rax, qword [0x1403d4408]
xor rax, rsp
mov qword [rsp + 0xa70], rax
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMySQL
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140008aec
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x160]
mov qword [rsp + 0xa90], rbx
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov qword [rsp + 0xa80], rdi
xor edi, edi
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov dword [rsp + 0x44], 0xff
mov dword [rsp + 0x40], 0x3ff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x140008ad1
inc ebx
cmp eax, 0xea
je 0x140008a79
test eax, eax
jne 0x140008ad1
cmp dword [rsp + 0x48], 1
jne 0x140008a79
lea r9, [rsp + 0x160]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400b9dc8]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x560]
call fcn.140017270
lea rcx, [rsp + 0x560]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x160]
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 0x3ff
mov qword [rsp + 0x28], rax
mov edx, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x140008a24
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0xa80]
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rsp + 0xa70]
xor rcx, rsp
call fcn.1400b5880
add rsp, 0xa88
ret
Function at 0x140008800
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400088a7
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsock2Parameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400088a7
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsockParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400088a7
lea rcx, str.HAVE_TCPIP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400088a0
cmp byte [0x140bd548d], 0
je 0x1400088a7
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret

Function at 0x1400088c0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1403d4408]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call fcn.140008800
test al, al
je 0x140008947
mov qword [rsp + 0x1d0], rbx
lea rdx, [rsp + 0x20]
mov ebx, 0x202
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140008907
cmp word [rsp + 0x20], bx
je 0x14000891e
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, ebx
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140008925
mov byte [0x140bd548d], 1
mov rbx, qword [rsp + 0x1d0]
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400b5880
add rsp, 0x1d8
ret
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400b5880
add rsp, 0x1d8
ret