joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001150
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8d, dword [rsp + 0x20]
mov r9, rax
call fcn.140001b10
test eax, eax
jne 0x140001382
mov rax, qword [0x1400097f8]
mov qword [rsp + 0x40], rbx
test rax, rax
jne 0x1400011a8
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006d70]
call fcn.1400036a0
mov qword [0x1400097f8], rax
lea rcx, [0x140006680]
mov qword [rsp + 0x30], rdi
call rax
mov rbx, rax
test rax, rax
je 0x1400012b0
mov rax, qword [0x1400097d0]
mov qword [rsp + 0x48], rsi
test rax, rax
jne 0x1400011ed
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ef8]
call fcn.1400036a0
mov qword [0x1400097d0], rax
xor r9d, r9d
lea rcx, str._MessageBox
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._MessageBox]
mov rdi, rax
mov rax, qword [0x140009920]
test rax, rax
jne 0x14000122e
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ee0]
call fcn.1400036a0
mov qword [0x140009920], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rax, qword [0x1400097d0]
test rax, rax
jne 0x14000125f
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ef8]
call fcn.1400036a0
mov qword [0x1400097d0], rax
xor r9d, r9d
lea rcx, str._SHGetSpecialFolderPath
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._SHGetSpecialFolderPath]
mov rdi, rax
mov rax, qword [0x140009920]
test rax, rax
jne 0x1400012a0
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ee0]
call fcn.1400036a0
mov qword [0x140009920], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x48]
call fcn.1400013f0
lea rcx, str.PYTHONINSPECT
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14000134e
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009878]
test rax, rax
jne 0x1400012fe
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006a18]
call fcn.1400036a0
mov qword [0x140009878], rax
lea rdx, str._stdin_
mov rcx, rdi
call rax
test eax, eax
je 0x14000134e
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x1400099b0]
test rax, rax
jne 0x14000133f
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006a30]
call fcn.1400036a0
mov qword [0x1400099b0], rax
xor r8d, r8d
lea rdx, str._stdin_
mov rcx, rdi
call rax
mov rax, qword [0x1400097b8]
mov rdi, qword [rsp + 0x30]
test rax, rax
jne 0x140001379
mov rcx, qword [0x1400098c8]
lea rdx, [0x140006ab8]
call fcn.1400036a0
mov qword [0x1400097b8], rax
call rax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x140059950
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005995d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005996d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140059955
lea eax, [rcx + 1]
jmp 0x14005997b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005998e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140059974
sub eax, 3
jb 0x1400599ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400599fd
sar eax, 1
movsxd rbp, eax
jb 0x1400599e4
jmp 0x1400599bc
add ebx, ebx
jne 0x1400599ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400599e4
inc ecx
add ebx, ebx
jne 0x1400599ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400599e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400599dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400599cc
add ecx, 2
jmp 0x1400599e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140059912
jmp 0x14005995d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29e00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140059a49
cmp rsi, rcx
jae 0x140059a51
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140059a30
cmp al, 0x8f
ja 0x140059a30
cmp byte [rsi - 2], 0xf
je 0x140059a36
sub al, 0xe8
cmp al, 1
ja 0x140059a1a
cmp rsi, rcx
jae 0x140059a51
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140059a20
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140059a51
lodsb al, byte [rsi]
jmp 0x140059a30
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x57000]
mov eax, dword [rdi]
or eax, eax
je 0x140059aba
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x69e40]
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 0x140059a5e
jns 0x140059a93
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140059a9d
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 0x140059ab4
mov qword [rbx], rax
add rbx, 8
jmp 0x140059a7e
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 0x140059af4
cmp al, 0xef
ja 0x140059ae6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140059ac6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140059ad5
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 + 0x237]
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 0x140059b48
sub rsp, 0xffffffffffffff80
jmp 0x14000c2f0
Function at 0x14000afc0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000afcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000afdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000afc5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000aff5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000afe2
sub eax, 3
jb 0x14000b00f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000b046
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000b036
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000b034
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000b023
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000af82
jmp 0x14000afcd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1e00
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000b092
cmp rsi, rcx
jae 0x14000b09a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000b079
cmp al, 0x8f
ja 0x14000b079
cmp byte [rsi - 2], 0xf
je 0x14000b07f
sub al, 0xe8
cmp al, 1
ja 0x14000b063
cmp rsi, rcx
jae 0x14000b09a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000b069
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000b09a
lodsb al, byte [rsi]
jmp 0x14000b079
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000b0f7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb1dc]
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 0x14000b0a7
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 0x14000b0f1
mov qword [rbx], rax
add rbx, 8
jmp 0x14000b0c7
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 0x14000b131
cmp al, 0xef
ja 0x14000b123
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000b103
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000b112
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 + 0x21f]
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 0x14000b185
sub rsp, 0xffffffffffffff80
jmp 0x140002000
Function at 0x14001edd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x700], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14001ee2e
mov dl, 1
call fcn.14000f0c0
mov rax, qword [rdi + 0x658]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14000f0c0
mov eax, ebx
jmp 0x14001ee70
cmp ebx, 2
ja 0x14001ee6e
mov r9, qword [rdi + 0x650]
lea rdx, [0x1400716f8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14004a3d8
mov r9, qword [rdi + 0x650]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.14004a3d8
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001ee90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x14008d0c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf69], 0
mov rdi, rcx
jne 0x14001eed3
cmp qword [rcx + 0x660], 0
je 0x14001efb0
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140022120
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14001ef01
mov rcx, qword [rdi + 0x660]
test rcx, rcx
je 0x14001ef48
cmp byte [rdi + 0x16c3], 0
jne 0x14001ef48
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001ef30
mov byte [rdi + 0x16c3], 1
cmp byte [rdi + 0xf69], 0
je 0x14001efa8
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x14001f001
cmp qword [rdi + 0x700], 0
mov byte [rsp + rbx + 0x30], 0
je 0x14001efc9
mov dl, 1
mov rcx, rdi
call fcn.14000f0c0
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.14000f0c0
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140042670
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x650]
lea rcx, [0x1400716f8]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14004a3d8
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.14004a3d8
jmp 0x14001efa8
call fcn.140042af8
int3
Function at 0x14001f010
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14001f174
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x14008d0c0]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf69], 0
mov rdi, rcx
je 0x14001f15c
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140022120
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x14001f0d1
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x14001f090
cmp byte [rax + rcx - 1], 0xa
jne 0x14001f0b8
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x14001f0cc
lea r8, [0x140071718]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.140022010
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14001f0d6
cmp qword [rdi + 0x700], 0
je 0x14001f11e
mov dl, 1
mov rcx, rdi
call fcn.14000f0c0
mov rax, qword [rdi + 0x658]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x700]
xor edx, edx
mov rcx, rdi
call fcn.14000f0c0
jmp 0x14001f154
mov r9, qword [rdi + 0x650]
lea rcx, [0x1400716f8]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.14004a3d8
mov r9, qword [rdi + 0x650]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.14004a3d8
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140042670
add rsp, 0x860
pop rdi
ret

Function at 0x14001f210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14001f252
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x38
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14001f3f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x14008d0c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x6b0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14001f4f7
lea rax, [0x14001f2a0]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x14001f4f7
cmp qword [rbx], r13
je 0x14001f47e
test rdi, rdi
je 0x14001f4f7
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.14002e780
cmp eax, 0xffffffff
je 0x14001f4f7
test al, 1
je 0x14001f4f7
mov rax, qword [rbx]
test rax, rax
jne 0x14001f4d0
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb98]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [section..data]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x14001f4f3
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14001f4f7
add qword [rbx + 0x10], rcx
jmp 0x14001f4f7
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x14001f564
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14001f530
mov dword [r14], 0x51
mov rax, r13
jmp 0x14001f567
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14000b4e0
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14001ee90
mov rcx, qword [rsi]
mov dword [rcx + 0x1238], ebx
mov dword [r14], 0x37
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140042670
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140021880
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x140071b98]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400218aa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140071bb8]
mov rcx, rbx
mov r14, rax
call fcn.140053e00
test rax, rax
je 0x14002190d
mov rcx, rbx
test r14, r14
je 0x1400218f7
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140021945
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140021945
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140021a08
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140021970
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400219fa
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400219fa
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1400219a0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1400219b4
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400219d0
mov rcx, rdi
test r14, r14
je 0x1400219f1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400219f7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400495cc]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14002d1c0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14008d0c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002d215
jmp 0x14002d3c4
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14002d39b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14002d39b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14002d39b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14002d39b
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14002d39b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002d39b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14002d39b
mov r9, rsi
lea r8, [0x140083eac]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.140022010
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002d335
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14002d39b
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14002d39b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.14006bfe0
test eax, eax
jne 0x14002d39b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14002d3bc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140042670
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140031090
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14003122e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14003120e
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400310fe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400310f0
inc rbx
jmp 0x140031100
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14003110e
lea r14d, [rax + 0xe]
jmp 0x14003111b
cmp eax, 0x17
jne 0x1400311b4
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1400311b4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400311b4
cmp rax, r14
jb 0x1400311b4
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400311c3
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.14006b5a0
test rbx, rbx
je 0x1400311a1
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.14006b5a0
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x1400311b1
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400310e0
jmp 0x1400311c9
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x1400311e3
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140031209
test rbp, rbp
je 0x140031205
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.1400495cc]
mov rbp, rbx
test rbx, rbx
jne 0x1400311f0
xor ebp, ebp
jmp 0x14003121d
test rbp, rbp
jne 0x14003121d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x140034970
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x14008d010]
mov rdi, rax
test rax, rax
je 0x1400349ed
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140034a18
cmp ebx, esi
je 0x140034a18
cmp ebx, 0x8000
ja 0x140034a18
cmp ebx, esi
jb 0x140034a13
mov edx, ebx
mov rcx, rdi
call qword [0x14008d010]
mov rdi, rax
test rax, rax
jne 0x1400349b0
mov rcx, rbp
call qword [fcn.1400495cc]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1400349f8
mov rcx, rdi
jmp 0x1400349f0

Function at 0x1400433ec
Capabilities:
Parse pe header

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

Function at 0x140057818
Capabilities:
Parse pe header

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