joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d4a0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d4a8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4a81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d4a81
mov rax, qword [rbp - 8]
jmp 0x2fc4d4a9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4a54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cce70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cdf50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cd872
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cd90a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cd8ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cd8e2
cmp qword [rbp - 0x10], 0
je 0x2fc4cd8e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cd8a8
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cd90b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cda10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cda38
mov eax, 0
jmp 0x2fc4cda86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cda61
mov eax, 0
jmp 0x2fc4cda86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cda81
mov eax, 0
jmp 0x2fc4cda86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cda8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cdb0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cdb01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cdb01
mov rax, qword [rbp - 8]
jmp 0x2fc4cdb1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cdad4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d2290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3370
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d2c92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d2d2a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d2d0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d2d02
cmp qword [rbp - 0x10], 0
je 0x2fc4d2d02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d2cc8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d2d2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2e30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d2e58
mov eax, 0
jmp 0x2fc4d2ea6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2e81
mov eax, 0
jmp 0x2fc4d2ea6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d2ea1
mov eax, 0
jmp 0x2fc4d2ea6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc564040
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc565120
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc564a42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc587108]
test eax, eax
je 0x2fc564ada
lea rax, [0x2fc5870e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc587110]
mov qword [rbp - 8], rax
jmp 0x2fc564abe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc564ab2
cmp qword [rbp - 0x10], 0
je 0x2fc564ab2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc564a78
lea rax, [0x2fc5870e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc564adb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc564be0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc564c08
mov eax, 0
jmp 0x2fc564c56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc564c31
mov eax, 0
jmp 0x2fc564c56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc564c51
mov eax, 0
jmp 0x2fc564c56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc564c5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc564cda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc564cd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc564cd1
mov rax, qword [rbp - 8]
jmp 0x2fc564cef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc564ca4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1401c0161
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1402b37d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140750b3a]
call fcn.1401ca792
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x1402b380c
mov rcx, qword [rbp + 0x100]
call fcn.1401c0747
jmp 0x1402b3827
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x1402b3827
mov rcx, qword [rbp + 0x100]
call fcn.1401c41f3
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1401c0210
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1402cf510
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140750aee]
call fcn.1401ca792
mov qword [rbp + 8], 0
jmp 0x1402cf54e
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1402cf5a4
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x1402cf543
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1401c0fe4
Capabilities:
Get common file path

Disassembly:
jmp 0x1404ebbd0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add rsp, 0x28
ret
Function at 0x1401c39ec
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140439650
mov rax, rcx
neg rcx
test rax, 7
je 0x14043966d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1404396c8
test al, 7
jne 0x140439660
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 0x140439681
mov rdx, qword [rax - 8]
test dl, dl
je 0x1404396f2
test dh, dh
je 0x1404396ec
shr rdx, 0x10
test dl, dl
je 0x1404396e6
test dh, dh
je 0x1404396e0
shr rdx, 0x10
test dl, dl
je 0x1404396da
test dh, dh
je 0x1404396d4
shr edx, 0x10
test dl, dl
je 0x1404396ce
test dh, dh
jne 0x140439681
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 0x1401c3a4b
Capabilities:
Query environment variable

Disassembly:
jmp 0x14051d920
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14051d4a0
lea rcx, [rsp + 0x20]
call fcn.14051d4f0
movzx eax, al
test eax, eax
jne 0x14051d965
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14051d4d0
mov rax, qword [rsp + 0x40]
jmp 0x14051da5f
lea rcx, [rsp + 0x20]
call fcn.14051d5f0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14051d590
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1401c42e8
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1401c2a51
lea rcx, [rsp + 0x28]
call fcn.1401c4eaa
movzx eax, al
test eax, eax
jne 0x14051d9ff
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1401c7fdd
lea rcx, [rsp + 0x20]
call fcn.14051d4d0
mov rax, qword [rsp + 0x50]
jmp 0x14051da5f
lea rcx, [rsp + 0x20]
call fcn.14051d5f0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1401ca517
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1401c412b
lea rcx, [rsp + 0x28]
call fcn.1401cbd5e
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1401c7fdd
lea rcx, [rsp + 0x20]
call fcn.14051d4d0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1401c41f3
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1402d9d80
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x140750b3a]
call fcn.1401ca792
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x1402d9dc4
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x1402d9e55
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x1402d9e1a
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1402d9e24
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1402d9db9
mov qword [rbp + 0x88], 0xe3
jmp 0x1402d9e73
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x1402d9f1c
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x1402d9ed8
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1402d9ee2
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1402d9e62
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x1402d9f7c
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1402d9f86
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x1401c454a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x1402e5070
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
mov rax, qword [0x140646600]
xor rax, rbp
mov qword [rbp + 0x200], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.1401ca792
mov rax, qword [rbp + 0x230]
mov rax, qword [rax]
mov rcx, qword [rbp + 0x230]
call qword [rax + reloc.WS2_32.dll_htonl]
movzx eax, al
test eax, eax
jne 0x1402e50ed
mov eax, 0xffffffff
jmp 0x1402e520a
lea rax, [rbp + 0x188]
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x230]
add rax, 0x380
mov rdx, rax
mov rcx, qword [rbp + 0x1e8]
call fcn.1401be90b
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x1f8]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x248]
mov r8d, dword [rbp + 0x240]
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x230]
call fcn.1401caaf3
mov rcx, qword [rbp + 0x230]
add rcx, 0x48
mov rdx, rax
call fcn.1401c9d6a
mov rax, qword [rbp + 0x230]
add rax, 0x48
mov rcx, rax
call fcn.1401c6345
cmp rax, 0xffffffffffffffff
jne 0x1402e5181
mov eax, 0xffffffff
jmp 0x1402e520a
cmp dword [rbp + 0x240], 0
jne 0x1402e5204
mov dword [rbp + 0xa4], 0x80
mov rax, qword [rbp + 0x230]
add rax, 0x48
mov rcx, rax
call fcn.1401c6345
lea r8, [rbp + 0xa4]
lea rdx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1402e51c7
mov eax, 0xffffffff
jmp 0x1402e520a
movzx eax, word [rbp + 0x10]
cmp eax, 2
jne 0x1402e51e1
movzx ecx, word [rbp + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1402e520a
movzx eax, word [rbp + 0x10]
cmp eax, 0x17
jne 0x1402e51fb
movzx ecx, word [rbp + 0x12]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x1402e520a
mov eax, 0xffffffff
jmp 0x1402e520a
mov eax, dword [rbp + 0x240]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401c8505
mov rax, rdi
mov rcx, qword [rbp + 0x200]
xor rcx, rbp
call fcn.1401c40e5
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret

Function at 0x1401c4676
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140435320
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140434ca0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14043535f
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 [0x140753020]
jmp 0x140435369
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x1401c4cc0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14051d670
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14051d4a0
lea rcx, [rsp + 0x40]
call fcn.14051d620
movzx eax, al
test eax, eax
jne 0x14051d6b8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14051d4d0
mov rax, qword [rsp + 0x70]
jmp 0x14051d889
lea rcx, [rsp + 0x40]
call fcn.14051d5f0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14051d590
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14051d5f0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1401c76fa
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14051d75e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14051d4d0
mov rax, qword [rsp + 0x80]
jmp 0x14051d889
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1401c42e8
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1401c3de8
lea rcx, [rsp + 0x48]
call fcn.1401c2f79
movzx eax, al
test eax, eax
jne 0x14051d7c5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1401bfedc
lea rcx, [rsp + 0x40]
call fcn.14051d4d0
mov rax, qword [rsp + 0x88]
jmp 0x14051d889
lea rcx, [rsp + 0x48]
call fcn.1401c58c3
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14051d5f0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1401c76fa
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14051d85b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1401bfedc
lea rcx, [rsp + 0x40]
call fcn.14051d4d0
mov rax, qword [rsp + 0xa0]
jmp 0x14051d889
lea rcx, [rsp + 0x48]
call fcn.1401c3d2f
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1401bfedc
lea rcx, [rsp + 0x40]
call fcn.14051d4d0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1401c4ced
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140435250
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140434c20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140435291
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 [0x140753020]
jmp 0x140435297
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret