joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035d30
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140146fc0]
mov edx, 0x210
call fcn.140014940
cmp byte [rax], 0
je 0x140035dd4
mov rcx, qword [0x140146fc0]
mov edx, 0x210
call fcn.140005210
cmp byte [rax + 8], 0
jne 0x140035dd4
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140035dd4
cmp qword [0x140146fc0], 0
jne 0x140035d9c
mov r8d, 0x10ae
lea rdx, str.C:UsersuserDesktopcppproject_yimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1400d6804
mov rbx, qword [0x140146fc0]
cmp byte [rbx + 0x38d9], 0
je 0x140035dc0
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.140005800
mov dword [rbx + 0x370], 0x210
mov dword [rbx + 0x930], 0xa0
mov rcx, qword [0x140146fc0]
mov edx, 0x214
call fcn.140014940
cmp byte [rax], 0
je 0x140035e72
mov rcx, qword [0x140146fc0]
mov edx, 0x214
call fcn.140005210
cmp byte [rax + 8], 0
jne 0x140035e72
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140035e72
cmp qword [0x140146fc0], 0
jne 0x140035e3a
mov r8d, 0x10ae
lea rdx, str.C:UsersuserDesktopcppproject_yimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1400d6804
mov rbx, qword [0x140146fc0]
cmp byte [rbx + 0x38d9], 0
je 0x140035e5e
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.140005800
mov dword [rbx + 0x374], 0x214
mov dword [rbx + 0x940], 0xa1
mov rcx, qword [0x140146fc0]
mov edx, 0x212
call fcn.140014940
cmp byte [rax], 0
je 0x140035f10
mov rcx, qword [0x140146fc0]
mov edx, 0x212
call fcn.140005210
cmp byte [rax + 8], 0
jne 0x140035f10
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140035f10
cmp qword [0x140146fc0], 0
jne 0x140035ed8
mov r8d, 0x10ae
lea rdx, str.C:UsersuserDesktopcppproject_yimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1400d6804
mov rbx, qword [0x140146fc0]
cmp byte [rbx + 0x38d9], 0
je 0x140035efc
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.140005800
mov dword [rbx + 0x25c], 0x212
mov dword [rbx + 0x938], 0x5b
mov rcx, qword [0x140146fc0]
mov edx, 0x216
call fcn.140014940
cmp byte [rax], 0
je 0x140035fb0
mov rcx, qword [0x140146fc0]
mov edx, 0x216
call fcn.140005210
cmp byte [rax + 8], 0
jne 0x140035fb0
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140035fb0
mov rbx, qword [0x140146fc0]
test rbx, rbx
jne 0x140035f7f
mov r8d, 0x10ae
lea rdx, str.C:UsersuserDesktopcppproject_yimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call fcn.1400d6804
mov rbx, qword [0x140146fc0]
cmp byte [rbx + 0x38d9], 0
je 0x140035f9c
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.140005800
mov dword [rbx + 0x260], 0x216
mov dword [rbx + 0x948], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x140045a20
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm7
mov rax, qword [0x1401418e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov bpl, 1
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], rax
lea esi, [rax + 7]
movss xmm6, dword [0x14012b77c]
movsd xmm7, qword [0x14012b720]
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [rsp + 0x28]
mov ebx, dword [rsp + 0x2c]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rsp + 0x28]
cmp edi, eax
je 0x140045aca
mov edx, dword [rsp + 0x2c]
cmp ebx, edx
je 0x140045aca
sub edx, ebx
movd xmm0, edx
cvtdq2ps xmm0, xmm0
sub eax, edi
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm0, xmm1
call fcn.1400f9614
jmp 0x140045acd
xorps xmm0, xmm0
mulss xmm0, xmm6
cvtss2sd xmm0, xmm0
divsd xmm0, xmm7
cvtsd2ss xmm0, xmm0
cvttss2si eax, xmm0
mov dword [rsp + 0x20], eax
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsp + 0x40]
je 0x140045afb
mov dword [rdx], eax
add qword [rsp + 0x38], 4
jmp 0x140045b0a
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14004ff00
sub rsi, 1
jne 0x140045a73
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
cmp rdi, rsi
je 0x140045b76
nop dword [rax]
nop word [rax + rax]
mov ebx, dword [rdi]
lea rdx, [0x14012acbc]
lea rcx, [0x1401454a0]
call fcn.14004ce20
mov edx, ebx
mov rcx, rax
call fcn.140049050
mov rcx, rax
call fcn.14004d0e0
neg ebx
xor ecx, ecx
movzx eax, bpl
cmp ebx, 0x2d
cmovle ecx, eax
movzx ebp, cl
add rdi, 4
cmp rdi, rsi
jne 0x140045b30
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x140045bb0
mov rdx, qword [rsp + 0x40]
sub rdx, rdi
and rdx, 0xfffffffffffffffc
mov rax, rdi
cmp rdx, 0x1000
jb 0x140045ba8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045be1
mov rcx, rdi
call fcn.1400b9ffc
movzx eax, bpl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b9d40
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
mov rsp, r11
pop rdi
ret
call fcn.1400d7794
int3
Function at 0x140048160
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140048182
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400481fc
mov rdi, r14
mov rcx, rbx
call fcn.14004b160
test rax, rax
jle 0x1400481d4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400bc140
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400481ec
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x1400481f4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140048196
sub r14, rdi
jmp 0x1400482df
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140048213
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140048215
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140048247
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400bc140
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400482dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140048282
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400482bd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400d09b0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400482dc
cmp rbp, rax
ja 0x140048290
test rbp, rbp
je 0x1400482dc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400d09b0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140050a20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401418e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400ba4ec
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
mov qword [rsp + 0x30], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140050ad0]
xor edx, edx
xor ecx, ecx
call fcn.1400d6d40
mov qword [rdi], rax
test rax, rax
je 0x140050a9b
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b9d40
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call fcn.1400b8748
int3
Function at 0x140057560
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140057642
call fcn.1400679e0
test al, al
jne 0x140057642
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140057592
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.140071e60
test rax, rax
je 0x1400575d7
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.140071e60
mov rsi, rax
test rax, rax
je 0x1400575d7
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14005760b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400648c0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1400575f0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400629f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1400e5ad4
cdqe
add rsp, 0x28
ret

Function at 0x140062cd0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1400fffa8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140062cfa
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, [0x1400fffc8]
mov rcx, rbx
mov r14, rax
call fcn.1400d9810
test rax, rax
je 0x140062d5d
mov rcx, rbx
test r14, r14
je 0x140062d47
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 0x140062d95
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140062d95
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 0x140062e58
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140062dc0
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140062e4a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140062e4a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140062df0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140062e04
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 0x140062e20
mov rcx, rdi
test r14, r14
je 0x140062e41
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140062e47
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [str.__a_r_]
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 0x1400725f0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140057950
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x14005eb03.1
mov rcx, rdi
mov rsi, rax
call case.0x14005eb03.1
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x1400726a0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140057950
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400579e0
cmp rax, 0x3e8
ja 0x1400726d1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140072650
test rsi, rsi
je 0x1400726ad
mov rcx, rsi
call fcn.1400d073c
test rbx, rbx
je 0x1400726ba
mov rcx, rbx
call fcn.1400d073c
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1400726de
mov rcx, rsi
call fcn.1400d073c
test rbx, rbx
je 0x1400726eb
mov rcx, rbx
call fcn.1400d073c
mov eax, 1
jmp 0x1400726bc
Function at 0x140072c50
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140072dee
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x140072dce
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140072cbe
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140072cb0
inc rbx
jmp 0x140072cc0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x140072ccd
lea ebp, [rax + 0xe]
jmp 0x140072cd9
cmp eax, 0x17
jne 0x140072d71
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x140072d71
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140072d71
cmp rax, rbp
jb 0x140072d71
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov r14, rax
test rax, rax
je 0x140072d80
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.1400bc140
test rbx, rbx
je 0x140072d5e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1400bc140
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x140072d6e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140072ca0
jmp 0x140072d86
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x140072da0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140072dc9
test rdi, rdi
je 0x140072dc5
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [str.__a_r_]
mov rdi, rbx
test rbx, rbx
jne 0x140072db0
xor edi, edi
jmp 0x140072ddd
test rdi, rdi
jne 0x140072ddd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x1400730e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call fcn.1400d6d40
test rax, rax
je 0x140073116
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x140073180
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14007324b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14005d570
cmp eax, 4
jne 0x1400731fc
cmp byte [0x140144104], r14b
jne 0x140073208
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x14007324d
mov eax, dword [rsp + 0x50]
jmp 0x140073227
imul eax, dword [0x140144100], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x140144100], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140073242
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140073230
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1400731b0
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140073260
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x140073302
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14005d570
cmp eax, 4
jne 0x1400732ce
cmp byte [0x140144104], bpl
jne 0x14007331a
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x140073339
mov eax, ebp
test eax, eax
jne 0x140073307
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x140073290
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140073290
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x140144100], 0x41c64e6d
add ecx, 0x3039
mov dword [0x140144100], ecx
rol ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x1400732d6
mov eax, 2
jmp 0x140073307
Function at 0x140076440
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 [case.0x14005eb03.0]
mov rdi, rax
test rax, rax
je 0x1400764bd
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 0x1400764e8
cmp ebx, esi
je 0x1400764e8
cmp ebx, 0x8000
ja 0x1400764e8
cmp ebx, esi
jb 0x1400764e3
mov edx, ebx
mov rcx, rdi
call qword [case.0x14005eb03.0]
mov rdi, rax
test rax, rax
jne 0x140076480
mov rcx, rbp
call qword [str.__a_r_]
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 0x1400764c8
mov rcx, rdi
jmp 0x1400764c0

Function at 0x140077fd0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1d8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14007802f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14005ffd0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.140077b70
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400781d0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14007837d
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x198]
mov rdi, rcx
mov r15, qword [rcx + 0x20]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rsi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rsi + 0x1cb8]
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x140078222
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14007823b
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14007823b
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140078271
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x1400782c7
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400782c7
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400782c7
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400782c7
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400782c7
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ec0], r9
lea r8, [rsi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.140077ca0
mov rcx, qword [r15 + 0x1d8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140078329
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.14005ffd0
lea rdx, [rsi + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.140078060
mov rcx, qword [r15 + 0x1d8]
lea rdx, [rsi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140078375
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.14005ffd0
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret