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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1407ddd00]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400be825
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400be886
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400990b0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401db8e0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400be941
sub ecx, 1
je 0x1400be9b4
sub ecx, 1
je 0x1400be8f0
cmp ecx, 1
je 0x1400be8d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1404e0e18]
call fcn.1400990b0
jmp 0x1400be9b4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400be4c0
test eax, eax
je 0x1400be9b4
jmp 0x1400be85a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400be9b4
sub rax, rsi
cmp rax, rbp
jae 0x1400be9b4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140099230
jmp 0x1400be9b4
cmp r8d, 4
jle 0x1400be9b4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400be9b4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140098fd0
mov esi, eax
test eax, eax
je 0x1400be993
mov edx, 5
mov rcx, rbx
call fcn.1400bf480
mov eax, esi
jmp 0x1400be85a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400a78b0
mov rcx, r14
call fcn.1400a7b90
test eax, eax
je 0x1400be858
mov edx, 5
mov rcx, rbx
call fcn.1400bf480
mov eax, Ordinal_45
jmp 0x1400be85a
Function at 0x1400d1750
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [0x140510020]
mov rdi, rax
test rax, rax
jne 0x1400d1792
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d17d9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d1832
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400d17f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d1873
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401f5db2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401f5db3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d1840
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400d73f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x1400d7410
mov dword [rcx], 0x270
mov rax, rcx
ret
Function at 0x1400d9620
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x1400d982a
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1400d96e4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1400d96a0
mov ecx, dword [r10]
jmp 0x1400d97c7
cmp ecx, 0x4e0
jb 0x1400d97c7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400d9700
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400d9750
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x1400d9680
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x1400d9670
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x1400d984a
cmp r8d, r14d
jne 0x1400d9650
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x1400d9f80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov esi, r14d
mov ebp, r14d
mov rdi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl esi, cl
add esi, esi
nop word [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1400da024
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1400d9fe0
mov ecx, dword [r10]
jmp 0x1400da107
cmp ecx, 0x4e0
jb 0x1400da107
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400da040
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400da090
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [rdi + 0x10]
ja 0x1400d9fc0
mov rax, qword [rdi + 8]
or esi, ecx
add rbp, rax
cmp rbp, 0x20
jb 0x1400d9fb0
mov rbx, qword [rsp + 0x10]
mov eax, esi
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
pop r14
ret
Function at 0x140104630
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rbx, [rcx + 8]
xor esi, esi
mov qword [rsp + 0x30], rbx
lea rax, vtable.sql::mysql::MySQL_DebugLogger.0
mov qword [rcx], rax
mov rdi, rcx
mov qword [rbx], rsi
lea ecx, [rsi + 0x10]
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
call fcn.1401dc044
lea rcx, str.MYSQLCPPCONN_TRACE_ENABLED
mov qword [rax + 8], rsi
mov qword [rbx], rax
mov qword [rax], rbx
mov dword [rdi + 0x30], esi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
mov rax, rdi
je 0x14010469b
mov dword [rdi + 0x30], 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140104eb0
Capabilities:
Query environment variable

Disassembly:
mov rax, r8
mov ecx, edx
mov rdx, rax
mov r8, r9
jmp fcn.140116d40

Function at 0x140112740
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, str.LIBMYSQL_PLUGINS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str.LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140112796
movsx edx, byte [rax]
lea rcx, [0x1402082a4]
call sub.VCRUNTIME140.dll_strchr
movzx ecx, byte [0x1407e05b0]
test rax, rax
mov edx, 1
cmovne ecx, edx
mov byte [0x1407e05b0], cl
test rbx, rbx
je 0x140112807
mov ecx, dword [0x1407e053c]
mov r8d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], rbp
mov rdx, rbx
mov qword [rsp + 0x38], rdi
call fcn.14012a8a0
mov rdi, rax
mov rbp, rax
nop
mov edx, Ordinal_60
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
xor r9d, r9d
mov rbx, rax
mov rdx, rdi
mov rcx, rsi
lea r8d, [r9 - 1]
test rax, rax
je 0x1401127f0
mov byte [rax], r9b
call fcn.140112bb0
lea rdi, [rbx + 1]
jmp 0x1401127c0
call fcn.140112bb0
mov rcx, rbp
call fcn.14012a820
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140115c60
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.USER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rdx, str.ODBC
mov r8d, 0x60
test rax, rax
mov rcx, rbx
cmovne rdx, rax
add rsp, 0x20
pop rbx
jmp fcn.140138a70

Function at 0x140116d40
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp byte [0x1407e05a8], bl
jne 0x140116e2e
movzx eax, byte [0x1407e0929]
mov byte [0x1407e05a9], al
mov byte [0x1407e05a8], 1
call fcn.14012fb90
test al, al
jne 0x140116e23
call fcn.14012ac10
call fcn.1401129b0
test eax, eax
jne 0x140116e23
call fcn.140139670
cmp dword [0x1407e05bc], ebx
jne 0x140116deb
lea rdx, [0x140208438]
mov dword [0x1407e05bc], 0xcea
lea rcx, str.mysql
call qword [sym.imp.WS2_32.dll_getservbyname]
test rax, rax
je 0x140116dca
movzx ecx, word [rax + 0x18]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [0x1407e05bc], eax
lea rcx, str.MYSQL_TCP_PORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140116deb
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1407e05bc], eax
cmp qword [0x1407e05c0], rbx
jne 0x140116e36
lea rax, str.MySQL
lea rcx, str.MYSQL_UNIX_PORT
mov qword [0x1407e05c0], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140116e36
mov qword [0x1407e05c0], rax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.1401331d0
movzx ebx, al
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14011efc0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x140208fb8]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14011eff0
lea rdx, str.Windows_NT
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x14011eff0
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140126bc0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1407ddd00]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov rdi, rdx
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov rbx, qword [rcx]
mov r8, qword [rbx + 8]
mov rdx, rcx
call fcn.140126610
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [r15 + 8], r12
lea edx, [r12 + 0x21]
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call sub.DNSAPI.dll_DnsQuery_A
mov r14d, eax
test eax, eax
jne 0x140126d1d
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140126d07
nop dword [rax + rax]
cmp word [rbx + 0x10], 0x21
jne 0x140126cf6
movzx edi, word [rbx + 0x2a]
movzx esi, word [rbx + 0x28]
movzx ebp, word [rbx + 0x2c]
mov rdx, qword [rbx + 0x20]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140126c90
lea rcx, [rsp + 0x38]
call fcn.14005fbd0
nop
mov dword [rsp + 0x20], edi
mov r9d, esi
mov r8d, ebp
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.1401268a0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140126cf6
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140126cf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140126d16
call fcn.1401dbfcc
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140126c50
mov rbx, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbx
call sub.DNSAPI.dll_DnsFree
jmp 0x140126d20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov dword [rsi], r14d
test r14d, r14d
setne al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401db8e0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140129b00
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x20
test rcx, rcx
mov r14d, edx
mov esi, 1
lea rdx, [0x14012a1b0]
cmovne rsi, rcx
lea rcx, [0x1407e0818]
call fcn.140129620
mov rcx, rsi
test r14b, 0x20
je 0x140129b44
mov rax, qword [0x1407e0800]
mov edx, 1
call rax
jmp 0x140129b4d
mov rax, qword [0x1407e07f8]
call rax
mov rdi, rax
test rax, rax
jne 0x140129bce
mov qword [rsp + 0x50], rbp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.140133160
mov ebp, r14d
and ebp, 8
je 0x140129ba1
lea rax, [fcn.140144da0]
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.1400d3740
lea rcx, fcn.140144da0
mov rbx, rax
call fcn.140060440
xchg qword [rax], rbx
mov rbx, qword [rsp + 0x48]
test r14b, 0x18
je 0x140129bb9
mov r8, rsi
mov edx, 0x440
mov ecx, 5
call fcn.14012f3a0
test ebp, ebp
mov rbp, qword [rsp + 0x50]
je 0x140129bce
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14012fb90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1407e0929], 0
jne 0x14012fc51
lea rcx, str.UMASK
mov byte [0x1407e0929], 1
mov dword [0x1405222c0], 0x1a0
mov dword [0x1405222c4], 0x1e8
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14012fbe1
mov rcx, rax
call fcn.14012fa10
or eax, 0x180
mov dword [0x1405222c0], eax
lea rcx, str.UMASK_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14012fc06
mov rcx, rax
call fcn.14012fa10
or eax, 0x1c0
mov dword [0x1405222c4], eax
call fcn.140132ff0
test al, al
jne 0x14012fc58
call fcn.1401331d0
test al, al
jne 0x14012fc58
lea rcx, str.HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x1407e51c8], rax
test rax, rax
je 0x14012fc47
mov rdx, rax
lea rcx, [0x1407e53f0]
call fcn.14013d530
mov qword [0x1407e51c8], rax
call fcn.14012fc60
call fcn.14014d100
xor al, al
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

Function at 0x14012fc90
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 0x14012fd37
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 0x14012fd37
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 0x14012fd37
lea rcx, str.HAVE_TCPIP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14012fd30
cmp byte [0x1407e0928], 0
je 0x14012fd37
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 0x14012fd50
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1407ddd00]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call fcn.14012fc90
test al, al
je 0x14012fdd7
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 0x14012fd97
cmp word [rsp + 0x20], bx
je 0x14012fdae
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 0x14012fdb5
mov byte [0x1407e0928], 1
mov rbx, qword [rsp + 0x1d0]
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401db8e0
add rsp, 0x1d8
ret
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401db8e0
add rsp, 0x1d8
ret
Function at 0x14012fe00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1407ddd00]
xor rax, rsp
mov qword [rbp + 0x970], 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 0x14012ff7e
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x44]
mov qword [rsp + 0xa90], rbx
lea r8, [rsp + 0x60]
lea ebx, [rax + 1]
mov qword [rsp + 0xa98], rdi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x38], rax
xor edi, edi
lea rax, [rbp + 0x60]
mov dword [rsp + 0x40], 0x3ff
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x14012ff63
nop word [rax + rax]
cmp eax, 0xea
je 0x14012ff0d
test eax, eax
jne 0x14012ff63
cmp dword [rsp + 0x48], 1
jne 0x14012ff0d
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rdi
lea r8, [0x1401f5bcc]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
call fcn.1401430d0
lea rcx, [rbp + 0x460]
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, [rbp + 0x60]
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
inc ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x14012fec0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0xa98]
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1401db8e0
add rsp, 0xa80
pop rbp
ret

Function at 0x1401308b0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1407ddd00]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x1407e4958]
test rax, rax
jne 0x140130967
movzx eax, word [0x1402279f0]
lea r8, [rsp + 0x22]
mov word [rsp + 0x20], ax
mov edx, 0x1004
movzx eax, byte [0x1402279f2]
mov ecx, 0x800
mov byte [rsp + 0x22], al
xor eax, eax
mov dword [rsp + 0x23], eax
mov word [rsp + 0x27], ax
mov byte [rsp + 0x29], al
lea r9d, [rax + 7]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor edx, edx
lea r8, [rsp + 0x20]
mov eax, edx
lea r9, str.cp932
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140130947
cmp rax, 6
jne 0x140130930
jmp 0x14013094c
sbb edx, edx
or edx, 1
test edx, edx
lea rcx, [0x140523de0]
lea rax, [0x140523230]
cmove rax, rcx
mov qword [0x1407e4958], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401db8e0
add rsp, 0x48
ret