joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140154b29
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1401c4c40
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140156884
mov eax, dword [rbp + 0x1a0]
not eax
mov dword [rbp + 0x1a0], eax
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x28], rax
lea rax, [0x140411b10]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x198], 0
je 0x1401c4d85
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x198]
dec rax
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x158], 0
je 0x1401c4cd9
mov dword [rbp + 0x160], 1
jmp 0x1401c4ce3
mov dword [rbp + 0x160], 0
cmp dword [rbp + 0x160], 0
je 0x1401c4d80
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x64], al
movzx eax, byte [rbp + 0x64]
cmp eax, 0x23
jne 0x1401c4d5a
cmp qword [rbp + 0x198], 2
jb 0x1401c4d5a
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401c4d5a
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401c4d5a
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x64]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x1401c4ca4
jmp 0x1401c4e1f
mov rax, qword [rbp + 0x28]
movzx eax, byte [rax]
mov byte [rbp + 0x154], al
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x84], al
movzx eax, byte [rbp + 0x84]
test eax, eax
je 0x1401c4e1f
movzx eax, byte [rbp + 0x84]
cmp eax, 0x23
jne 0x1401c4df6
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401c4df6
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1401c4df6
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
movzx edx, byte [rbp + 0x84]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
jmp 0x1401c4d85
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140154b8d
Capabilities:
Execute command
Set console window title

Disassembly:
jmp 0x140195980
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x1404e9a6e]
call fcn.140156884
lea rcx, str.external
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.140156505
call fcn.1401524ff
lea rcx, str.offsets_updated_n
call fcn.1401539e0
lea rcx, str.waiting_for_cs2.exe..._n
call fcn.1401539e0
xor eax, eax
cmp eax, 1
je 0x140195a4a
lea rax, [rbp + 0x1c8]
mov qword [rbp + 0x208], rax
lea rdx, str.cs2.exe
mov rcx, qword [rbp + 0x208]
call fcn.140153882
mov qword [rbp + 0x358], rax
mov rdx, qword [rbp + 0x358]
lea rcx, [0x1404a7008]
call fcn.140153cce
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140195a3d
lea rcx, [0x1404c07a0]
call fcn.1401566bd
movzx eax, al
test eax, eax
je 0x140195a3b
jmp 0x140195a4a
jmp 0x140195a48
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401959db
lea rcx, str.running..._n
call fcn.1401539e0
nop
lea rax, [rbp + 0x228]
mov qword [rbp + 0x288], rax
lea rdx, [0x140152cb1]
mov rcx, qword [rbp + 0x288]
call fcn.14015109b
mov qword [rbp + 0x358], rax
mov rax, qword [rbp + 0x358]
mov qword [rbp + 0x360], rax
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x368], rax
lea rax, [rbp + 0x2a8]
mov qword [rbp + 0x2e8], rax
lea rdx, str.SDL_app
mov rcx, qword [rbp + 0x2e8]
call fcn.140153882
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x378], rax
mov rax, qword [rbp + 0x378]
mov qword [rbp + 0x380], rax
lea rax, [rbp + 0x308]
mov qword [rbp + 0x348], rax
lea rdx, str.Counter_Strike_2
mov rcx, qword [rbp + 0x348]
call fcn.140153882
mov qword [rbp + 0x388], rax
mov rax, qword [rbp + 0x388]
mov qword [rbp + 0x390], rax
mov r9, qword [rbp + 0x368]
mov r8, qword [rbp + 0x380]
mov rdx, qword [rbp + 0x390]
mov rcx, qword [0x1404c0788]
call fcn.140151bdb
nop
jmp 0x140195b39
lea rcx, str.pause
call qword [sym.imp.ucrtbased.dll_system]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401559a2
mov eax, edi
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret

Function at 0x140154d45
Capabilities:
Parse pe header

Disassembly:
jmp 0x1403e27a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1403e27c0
xor al, al
jmp 0x1403e2841
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1403e27d3
xor al, al
jmp 0x1403e2841
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1403e27fd
xor al, al
jmp 0x1403e2841
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1403e2811
xor al, al
jmp 0x1403e2841
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1403e2823
xor al, al
jmp 0x1403e2841
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1403e283f
xor al, al
jmp 0x1403e2841
mov al, 1
add rsp, 0x38
ret
Function at 0x140154f4d
Capabilities:
Create thread

Disassembly:
jmp 0x14036aea0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14036aefc
mov ecx, 0xffffffff
call fcn.140153ffd
cmp qword [rsp + 0x30], rax
jne 0x14036af00
xor eax, eax
jmp 0x14036af05
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x140155ecf
Capabilities:
Write file on windows

Disassembly:
jmp 0x1403371c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xa8f]
test eax, eax
je 0x1403372cc
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x258], 0
je 0x140337255
mov rcx, qword [rsp + 0x50]
call fcn.140154d77
mov byte [rsp + 0x30], al
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.1401558ee
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x258]
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.1401558ee
jmp 0x1403372cc
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140337274
cmp dword [rsp + 0x34], 1
je 0x140337274
cmp dword [rsp + 0x34], 2
je 0x140337274
jmp 0x1403372cc
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x140467f20]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x1c8]
mov r8d, 1
mov edx, 2
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x1c8]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ucrtbased.dll_fwrite]
add rsp, 0x40
pop rdi
ret
Function at 0x140155f65
Capabilities:
Get common file path

Disassembly:
jmp 0x14033e370
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14033e3ad
xor eax, eax
jmp 0x14033e54a
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
lea rdx, [0x1404af090]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ucrtbased.dll_strpbrk]
test rax, rax
je 0x14033e41a
cmp qword [rsp + 0x28], 0
je 0x14033e3fb
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x50], rax
jmp 0x14033e40b
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
jmp 0x14033e545
cmp qword [rsp + 0x28], 0
je 0x14033e454
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14033e454
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x20], rax
jmp 0x14033e545
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14033e545
mov rcx, qword [rsp + 0x70]
call fcn.1401537e2
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x38]
inc eax
mov eax, eax
add rax, qword [rsp + 0x40]
mov rcx, rax
call qword [fcn.14015443f]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14033e53a
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14033e53a
mov rcx, qword [rsp + 0x48]
call fcn.1401537e2
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
lea rdx, [0x1404af0a8]
mov rcx, rax
call fcn.140152d06
mov rcx, qword [rsp + 0x48]
call fcn.1401537e2
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call fcn.140152d06
cmp qword [rsp + 0x28], 0
je 0x14033e520
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rsp + Ordinal_41]
mov qword [rsp + 0x58], rax
jmp 0x14033e530
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x48]
call qword [0x1404acc50]
mov rax, qword [rsp + 0x20]
add rsp, 0x60
pop rdi
ret
Function at 0x1401561f9
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1401c4b20
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140156884
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x140411b10]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x1401c4b9f
mov dword [rbp + 0x120], 1
jmp 0x1401c4ba9
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x1401c4bf2
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 0x114], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x114]
mov dword [rbp + 4], eax
jmp 0x1401c4b6a
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140156226
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1403adfd0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x1404c9300], 0
jne 0x1403ae051
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140155a5b
movzx eax, al
test eax, eax
je 0x1403ae047
mov dword [0x1404c9300], 2
jmp 0x1403ae051
mov dword [0x1404c9300], 1
cmp dword [0x1404c9300], 2
jne 0x1403ae05c
jmp 0x1403ae0ba
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1403ae094
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x1403ae094
jmp 0x1403ae0ba
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401559a2
add rsp, 0x90
pop rdi
ret
Function at 0x1401562a8
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x14018efa0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x878
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x17e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x898]
mov rax, qword [0x1404bf700]
xor rax, rbp
mov qword [rbp + 0x828], rax
lea rcx, [0x1404e958c]
call fcn.140156884
mov dword [rbp + 0x10], 0x438
mov rax, qword [rbp + 0x850]
mov edx, dword [rax + 0x10]
mov ecx, 8
call fcn.140153a08
mov qword [rbp + 0x468], rax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x468]
call fcn.1401546a1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x490]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp + 0x858]
call fcn.140151820
mov rdx, rax
lea rcx, [rbp + 0x490]
call fcn.14015713f
test eax, eax
jne 0x14018f0a6
mov rcx, qword [rbp + 0x468]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x7f8], rax
mov rcx, qword [rbp + 0x858]
call fcn.140152081
mov rax, qword [rbp + 0x7f8]
jmp 0x14018f0e9
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x468]
call fcn.140151d5c
test eax, eax
jne 0x14018f020
mov rcx, qword [rbp + 0x468]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x818], 0
mov rcx, qword [rbp + 0x858]
call fcn.140152081
mov rax, qword [rbp + 0x818]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rbp + 0x828]
xor rcx, rbp
call fcn.140153acb
lea rsp, [rbp + 0x838]
pop rdi
pop rbp
ret

Function at 0x14015637a
Capabilities:
Read file on windows

Disassembly:
jmp 0x14033d940
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x20
mov rcx, qword [rsp + 0x40]
call fcn.140152b67
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.ucrtbased.dll__read]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x140156762
Capabilities:
Write file on windows

Disassembly:
jmp 0x1402f5ab0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, reloc.WLDAP32.dll_Ordinal_50
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1404bf700]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1404ea810]
call fcn.140156884
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x1402f5b16
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1402f5b1d
mov al, 1
jmp 0x1402f5c8d
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.140152874
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.140152874
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1401555ec
movzx eax, al
test eax, eax
je 0x1402f5b80
xor al, al
jmp 0x1402f5c8d
mov qword [rbp + 8], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x1402f5bf3
cmp dword [rbp + 0x160], 1
je 0x1402f5bfe
cmp dword [rbp + 0x160], 3
je 0x1402f5c7c
jmp 0x1402f5c8b
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1402f5c4e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1402f5c4e
xor al, al
jmp 0x1402f5c8d
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1402f5c69
mov dword [rbp + 0x154], 1
jmp 0x1402f5c73
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1402f5c8d
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1402f5c8d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401559a2
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140153acb
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1401567ee
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x140353b90
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x50]
add rax, 0xf0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x50]
mov dword [rax + 0x1380], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x1388], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1359]
test eax, eax
je 0x140353c05
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x1359]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x6e4]
cmp eax, ecx
jle 0x140353c1c
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x6e4]
mov byte [rax + 0x1359], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x1168], 0
je 0x140353c55
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x135a]
test eax, eax
jne 0x140353c55
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x1a0
jne 0x140353c55
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xd0], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0xa
jne 0x140353c88
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.1401560f5
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.140153adf
jmp 0x140353cf0
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0x14
je 0x140353caf
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x6c], 2
jne 0x140353cc9
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x65
jne 0x140353cc9
xor eax, eax
test eax, eax
jne 0x140353caf
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x6a8]
mov dword [rax], 2
jmp 0x140353cf0
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x6e4]
cmp eax, 0xb
jl 0x140353cf0
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x2ae]
test eax, eax
jne 0x140353cf0
xor eax, eax
test eax, eax
jne 0x140353cea
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0x64
jl 0x140353d13
mov rax, qword [rsp + 0x20]
cmp dword [rax + 0x50], 0xc8
jge 0x140353d13
mov dword [rsp + 0x28], 1
jmp 0x140353d1b
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x28], 0
jne 0x140353d2c
mov dword [rsp + 0x2c], 0
jmp 0x140353d34
mov dword [rsp + 0x2c], 1
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x2c]
mov byte [rax + 0xd1], cl
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xcc
je 0x140353d88
cmp dword [rsp + 0x30], 0x130
je 0x140353d66
jmp 0x140353dad
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x510]
test eax, eax
je 0x140353d82
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x145c], 1
xor eax, eax
test eax, eax
jne 0x140353d82
mov rax, qword [rsp + 0x20]
mov qword [rax], 0
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov byte [rax + 0xd1], 1
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140156a64
Capabilities:
Generate random numbers via winapi

Disassembly:
jmp 0x14036b380
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14015529f
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call fcn.140151762
test eax, eax
je 0x14036b3c2
mov eax, 2
jmp 0x14036b3c4
xor eax, eax
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x54], 4
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov r8d, 0x1008
mov edx, 0xffff
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14030efc4
cmp dword [rsp + 0x34], 1
jne 0x14030efc4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401559a2
add rsp, 0x70
pop rdi
ret

Function at 0x140317000
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x1505
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jae 0x14031708b
mov rax, qword [rsp + 0x28]
shl rax, 5
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
movzx ecx, byte [rsp + 0x30]
call fcn.140156d57
movsx rax, al
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x14031702d
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x3f
div rcx
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140346d40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4004747b
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140346de1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x64]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401559a2
add rsp, 0xa0
pop rdi
ret