joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cb440
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400fcac0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
lea rcx, [0x14030415e]
call fcn.1400cf004
mov dword [rbp + 4], 0
lea r8, [rbp + 4]
mov edx, 0x8004667e
mov rcx, qword [rbp + 0x100]
call fcn.1400ce5aa
mov rax, qword [rbp + 0x108]
lea rcx, [0x1400cbc74]
mov qword [rax + 0x28], rcx
mov rax, qword [rbp + 0x108]
lea rcx, [0x1400cbc74]
mov qword [rax + 0x38], rcx
mov rax, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x108]
lea rcx, [0x1400cce67]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0x108]
lea rcx, [0x1400cc057]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x108]
lea rcx, [0x1400ca44b]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x108]
lea rcx, [0x1400c9a14]
mov qword [rax + 0x30], rcx
mov rax, qword [rbp + 0x108]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

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

Disassembly:
jmp 0x1400fcfb0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
lea rcx, [0x14030415e]
call fcn.1400cf004
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0xea60
mov dword [rbp + 4], eax
mov r8d, dword [rbp + 0x1d8]
mov rdx, qword [rbp + 0x1d0]
lea rcx, [rbp + 0x28]
call fcn.1400cc8a4
lea rcx, [rbp + 0x28]
call fcn.1400ca7f7
mov qword [rbp + 0x58], rax
lea rcx, [rbp + 0x28]
call fcn.1400cf045
mov dword [rbp + 0x74], eax
lea rcx, [rbp + 0x28]
call fcn.1400c9b2c
mov qword [rbp + 0x98], rax
lea rcx, [rbp + 0x28]
call fcn.1400cc4ad
mov dword [rbp + 0xb4], eax
call fcn.1400cebe0
mov qword [rbp + 0xd8], 0
xor eax, eax
cmp eax, 1
je 0x1400fd0bb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rbp + 4]
jb 0x1400fd08e
mov ecx, 0x46
call fcn.1400cf4eb
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0xd8]
call fcn.1400ccd7c
jmp 0x1400fd0ef
movzx edx, word [rbp + 0x74]
mov rcx, qword [rbp + 0x58]
call fcn.1400cf775
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
je 0x1400fd0ae
jmp 0x1400fd0bb
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400fd059
xor r9d, r9d
mov r8d, dword [rbp + 0xb4]
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0xd8]
call fcn.1400cf2d9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp + 0xd8]
call fcn.1400ccd7c
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x1400cb53f
Capabilities:
Clear file content

Disassembly:
jmp 0x14025fce0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov r8, qword [rsp + 0xa8]
mov edx, dword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.1400c92a3
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x14025fd19
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14025fd37
call fcn.1400cb297
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.1400cab71
mov eax, dword [rsp + 0x40]
jmp 0x14025ff53
cmp qword [rsp + 0x78], 0
jle 0x14025fe98
mov dword [rsp + 0x20], 0x4a
lea r9, str.minkernelcrtsucrt_src_appcrtlowiochsize.cpp
mov r8d, 2
mov edx, 1
mov ecx, 0x1000
call fcn.1400cf824
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400cbd3c
lea rcx, [rsp + 0x38]
call fcn.1400cb643
movzx eax, al
test eax, eax
jne 0x14025fdb8
call fcn.1400cb297
mov dword [rax], ntohl
call fcn.1400cb297
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x38]
call fcn.1400c9f46
lea rcx, [rsp + 0x68]
call fcn.1400cab71
mov eax, dword [rsp + 0x44]
jmp 0x14025ff53
mov edx, 0x8000
mov ecx, dword [rsp + 0xa0]
call fcn.1400cd45c
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x78], 0x1000
jl 0x14025fde2
mov dword [rsp + 0x30], 0x1000
jmp 0x14025fdea
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.1400cc976
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov ecx, dword [rsp + 0xa0]
call fcn.1400ce082
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x14025fe58
call fcn.1400ccd81
cmp dword [rax], 5
jne 0x14025fe30
call fcn.1400cb297
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400cb297
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.1400c9f46
lea rcx, [rsp + 0x68]
call fcn.1400cab71
mov eax, dword [rsp + 0x4c]
jmp 0x14025ff53
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jg 0x14025fdcd
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xa0]
call fcn.1400cd45c
lea rcx, [rsp + 0x38]
call fcn.1400c9f46
jmp 0x14025ff3d
cmp qword [rsp + 0x78], 0
jge 0x14025ff3d
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
call fcn.1400ca009
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
jne 0x14025fee9
call fcn.1400cb297
mov eax, dword [rax]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.1400cab71
mov eax, dword [rsp + 0x54]
jmp 0x14025ff53
mov ecx, dword [rsp + 0xa0]
call fcn.1400cf397
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14025ff3d
call fcn.1400cb297
mov dword [rax], reloc.WS2_32.dll_listen
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
call fcn.1400ccd81
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
call fcn.1400cb297
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x68]
call fcn.1400cab71
mov eax, dword [rsp + 0x5c]
jmp 0x14025ff53
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.1400cab71
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret
Function at 0x1400cb67f
Capabilities:
Delete directory

Disassembly:
jmp 0x140228080
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1402280ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400cac57
mov eax, 0xffffffff
jmp 0x1402280ae
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400cbb43
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14019d600
mov rax, rcx
neg rcx
test rax, 7
je 0x14019d61d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14019d678
test al, 7
jne 0x14019d610
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14019d631
mov rdx, qword [rax - 8]
test dl, dl
je 0x14019d6a2
test dh, dh
je 0x14019d69c
shr rdx, 0x10
test dl, dl
je 0x14019d696
test dh, dh
je 0x14019d690
shr rdx, 0x10
test dl, dl
je 0x14019d68a
test dh, dh
je 0x14019d684
shr edx, 0x10
test dl, dl
je 0x14019d67e
test dh, dh
jne 0x14019d631
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400cbb8e
Capabilities:
Query environment variable

Disassembly:
jmp 0x14023ba38
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x14023bad5
mov rbp, rax
cmp word [rax], si
je 0x14023ba81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14023ba68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14023ba64
sub rbp, rbx
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
add rbp, 2
mov r9d, 0x40
sar rbp, 1
add rbp, rbp
mov rcx, rbp
lea edx, [r9 - 0x3e]
call fcn.1400cbf85
mov rdi, rax
test rax, rax
je 0x14023bac0
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.1400cbec2
mov rsi, rdi
mov edx, 2
xor ecx, ecx
call fcn.1400ca13a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400cbbde
Capabilities:
Set current directory

Disassembly:
jmp 0x1400f8ed0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6a8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x112
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6c8]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x678], rax
lea rcx, [0x140304128]
call fcn.1400cf004
cmp qword [rbp + 0x6a8], 0x3ff
ja 0x1400f8f7a
mov r8, qword [rbp + 0x6a8]
mov rdx, qword [rbp + 0x6a0]
lea rcx, [rbp + 0x10]
call fcn.1400ca860
mov rax, qword [rbp + 0x6a8]
mov qword [rbp + 0x668], rax
cmp qword [rbp + 0x668], 0x400
jae 0x1400f8f5f
jmp 0x1400f8f64
call fcn.1400cd4cf
mov rax, qword [rbp + 0x668]
mov byte [rbp + rax + 0x10], 0
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rcx, qword [rbp + 0x678]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x688]
pop rdi
pop rbp
ret
Function at 0x1400cbd05
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140110110
push rbx
push rsi
push rdi
push r12
sub rsp, 0x28
mov r12, r8
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14011013f
lea r8d, [rcx + 0x21]
lea rcx, str.hmac___NULL
lea rdx, str.srcmachmachmac_done.c
call fcn.1400cabda
test rbx, rbx
jne 0x14011015b
lea r8d, [rbx + 0x22]
lea rdx, str.srcmachmachmac_done.c
lea rcx, str.out___NULL
call fcn.1400cabda
movsxd rsi, dword [rdi + 0x1a0]
mov ecx, esi
call fcn.1400cd0dd
test eax, eax
jne 0x1401102ec
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r13
mov r13, rsi
shl r13, 7
mov qword [rsp + 0x50], rsi
lea rsi, [0x1402e62d0]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], r15
mov ecx, dword [rsi + r13 + 0x10]
mov r15d, dword [rsi + r13 + 0xc]
call fcn.1400cc8b8
mov ecx, r15d
mov rbp, rax
call fcn.1400cc8b8
mov r14, rax
test rbp, rbp
je 0x1401102c6
test rax, rax
je 0x1401102c1
mov rdx, rax
mov rcx, rdi
call qword [rsi + r13 + 0x68]
mov esi, eax
test eax, eax
jne 0x1401102a1
xor r8d, r8d
lea r9, [0x1402e62d0]
cmp dword [r9 + r13 + 0x10], r8d
jbe 0x14011020d
nop dword [rax]
mov rax, qword [rdi + 0x348]
movzx ecx, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + rbp], cl
inc r8d
cmp r8d, dword [r9 + r13 + 0x10]
jb 0x1401101f0
mov rcx, rdi
call qword [r9 + r13 + 0x58]
mov esi, eax
test eax, eax
jne 0x1401102a1
mov rax, qword [rsp + 0x50]
lea r9, [0x1402e62d0]
shl rax, 7
mov rdx, rbp
mov rcx, rdi
mov r8d, dword [rax + r9 + 0x10]
call qword [rax + r9 + 0x60]
mov esi, eax
test eax, eax
jne 0x1401102a1
mov r8d, r15d
lea rax, [0x1402e62d0]
mov rdx, r14
mov rcx, rdi
call qword [rax + r13 + 0x60]
mov esi, eax
test eax, eax
jne 0x1401102a1
mov rdx, rbp
lea rax, [0x1402e62d0]
mov rcx, rdi
call qword [rax + r13 + 0x68]
mov esi, eax
test eax, eax
jne 0x1401102a1
xor ecx, ecx
test r15d, r15d
je 0x14011029b
mov rdx, rbp
sub rdx, rbx
cmp ecx, dword [r12]
jae 0x14011029b
movzx eax, byte [rdx + rbx]
inc ecx
mov byte [rbx], al
inc rbx
cmp ecx, r15d
jb 0x140110285
mov dword [r12], ecx
xor esi, esi
mov rcx, qword [rdi + 0x348]
call fcn.1400cb21f
mov rcx, r14
call fcn.1400cb21f
mov rcx, rbp
call fcn.1400cb21f
mov eax, esi
jmp 0x1401102d8
mov rcx, rbp
jmp 0x1401102ce
test r14, r14
je 0x1401102d3
mov rcx, r14
call fcn.1400cb21f
mov eax, reloc.WS2_32.dll_listen
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400cc0f2
Capabilities:
Connect socket

Disassembly:
jmp 0x14017ba8b
jmp qword [sym.imp.WS2_32.dll_connect]

Function at 0x1400cc156
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14019d330
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14019ccb0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14019d36f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140305020]
jmp 0x14019d379
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400cc165
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400fce60
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 + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
lea rcx, [0x14030415e]
call fcn.1400cf004
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
cmp dword [rbp + 0x150], 0
jle 0x1400fcf41
xor eax, eax
cmp eax, 1
je 0x1400fcf3d
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x150]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x2000
jle 0x1400fcee4
mov dword [rbp + 0x44], 0x2000
movsxd rax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x148]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 4]
mov r8d, dword [rbp + 0x44]
mov rdx, rax
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400fcf1c
jmp 0x1400fcf3d
mov eax, dword [rbp + 4]
mov ecx, dword [rbp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x150]
cmp dword [rbp + 0x24], eax
jl 0x1400fcf3b
mov eax, 1
jmp 0x1400fcf46
jmp 0x1400fcebd
xor eax, eax
jmp 0x1400fcf46
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400cc2a5
Capabilities:
Enumerate files on windows

Disassembly:
jmp 0x1400dcec0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x140304031]
call fcn.1400cf004
mov ecx, 0x8000
call fcn.1400cc8b8
mov qword [rbp + 8], rax
mov r9, qword [rbp + 0x140]
lea r8, [0x140274fb0]
mov edx, 0x8000
mov rcx, qword [rbp + 8]
call fcn.1400cca7a
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 8]
call fcn.1400cb21f
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x1400dd04c
mov rax, qword [rbp + 0x148]
mov eax, dword [rax]
and eax, 0x10
test eax, eax
je 0x1400dd00b
mov rax, qword [rbp + 0x148]
add rax, 0x2c
lea rdx, [0x140274fb8]
mov rcx, rax
call fcn.1400cf9b4
test eax, eax
je 0x1400dd009
mov rax, qword [rbp + 0x148]
add rax, 0x2c
lea rdx, [0x140274fbc]
mov rcx, rax
call fcn.1400cf9b4
test eax, eax
je 0x1400dd009
mov ecx, 0x8000
call fcn.1400cc8b8
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x148]
add rax, 0x2c
mov r9, rax
lea r8, [0x140274fc0]
mov edx, 0x8000
mov rcx, qword [rbp + 0x48]
call fcn.1400cca7a
mov rax, qword [rbp + 0x148]
add rax, 0x2c
mov r9, qword [rbp + 0x150]
mov r8, qword [rbp + 0x148]
mov rdx, rax
mov rcx, qword [rbp + 0x140]
call fcn.1400cbc56
mov r8d, 1
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x140]
call qword [rbp + 0x150]
mov rcx, qword [rbp + 0x48]
call fcn.1400cb21f
jmp 0x1400dd029
mov rax, qword [rbp + 0x148]
add rax, 0x2c
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x140]
call qword [rbp + 0x150]
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400dcf3c
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400cc403
Capabilities:
Query environment variable

Disassembly:
jmp 0x14023b8dc
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14023b9c4
mov rsi, rax
cmp word [rax], r14w
je 0x14023b92f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14023b917
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14023b913
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.1400cd812
movsxd rbp, eax
test eax, eax
je 0x14023b9c4
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.1400cbf85
mov rdi, rax
test rax, rax
je 0x14023b9b2
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1400cd812
test eax, eax
je 0x14023b9b2
mov rsi, rdi
mov rdi, r14
jmp 0x14023b9b5
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.1400ca13a
jmp 0x14023b9c7
mov rsi, r14
test rbx, rbx
je 0x14023b9d5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400cc42b
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14019d260
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14019cc30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14019d2a1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140305020]
jmp 0x14019d2a7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400cc4ee
Capabilities:
Get geographical location

Disassembly:
jmp 0x14021d380
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14021c300
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14021d3d3
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
call qword [0x140305020]
jmp 0x14021d3f5
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400cb585
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x48
ret
Function at 0x1400cc502
Capabilities:
Terminate process

Disassembly:
jmp 0x1401237a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400cc908
Capabilities:
Print debug messages

Disassembly:
jmp 0x140252a20
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140252a46
jmp 0x140252ac3
mov rcx, qword [rbp + 0x30]
call fcn.1400cbb43
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140252a5f
jmp 0x140252ac3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140252a7c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400ca194
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400ca8b5
test eax, eax
jne 0x140252ac3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400ccae8
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400f7160
mov dword [rsp + 0x18], r8d
mov word [rsp + 0x10], dx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x178]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1403040eb]
call fcn.1400cf004
mov dword [rbp + 0x34], 1
call fcn.1400cebe0
xor r8d, r8d
mov edx, 1
mov ecx, 2
call fcn.1400cab80
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0xffffffffffffffff
jne 0x1400f71e3
mov rax, 0xffffffffffffffff
jmp 0x1400f725e
mov eax, 2
mov word [rbp + 8], ax
movzx ecx, word [rbp + 0x158]
call fcn.1400ce622
mov word [rbp + 0xa], ax
mov eax, dword [rbp + 0x150]
mov dword [rbp + 0xc], eax
lea r8, [rbp + 0x34]
mov edx, 0x8004667e
mov rcx, qword [rbp + 0x58]
call fcn.1400ce5aa
cmp eax, 0xffffffff
je 0x1400f7248
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x58]
call fcn.1400ca586
cmp eax, 0xffffffff
je 0x1400f7248
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x58]
call fcn.1400cdf74
cmp eax, 0xffffffff
jne 0x1400f725a
mov rcx, qword [rbp + 0x58]
call fcn.1400ccd7c
mov rax, 0xffffffffffffffff
jmp 0x1400f725e
mov rax, qword [rbp + 0x58]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400cdefc
mov rax, rdi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x1400ccb8d
Capabilities:
Create thread
Terminate process

Disassembly:
jmp 0x1400ec4a0
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x1403040bf]
call fcn.1400cf004
mov ecx, gethostname
call fcn.1400cf0e0
cwde
cmp eax, 1
jne 0x1400ec4f7
mov ecx, 0x27
call fcn.1400cf0e0
cwde
cmp eax, 1
jne 0x1400ec4ef
xor eax, eax
cmp eax, 1
je 0x1400ec4ef
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400ec4db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
mov ecx, 0x27
call fcn.1400cf0e0
cwde
cmp eax, 1
je 0x1400ec50f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret