joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b9510
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400b9634
cmp r8d, 0xff
jne 0x1400b9571
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400b955b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xdfb00]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140095f40
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140095f40
cmp r8d, 0xfb
jne 0x1400b9583
lea r9, str.WILL
jmp 0x1400b95c1
cmp r8d, 0xfc
jne 0x1400b9595
lea r9, str.WONT
jmp 0x1400b95c1
cmp r8d, 0xfd
jne 0x1400b95a7
lea r9, [0x1400e0524]
jmp 0x1400b95c1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400b961d
cmp r10d, 0x27
jg 0x1400b95f4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xe0120]
test r8, r8
jne 0x1400b9604
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140095f40
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400b95db
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140095f40
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140095f40
add rsp, 0x38
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b99df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140095dc0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400b9510
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b9b90
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400b9d38
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400b9bf5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400b9bf5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400b9bf5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, 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 0x1400b9c2c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400b9c82
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b9c82
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b9c82
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b9c82
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b9c82
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400b9640
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400b9ce4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140095dc0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400b9a10
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b9d30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140095dc0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400bb4a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140108080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400bb535
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400bb596
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140095dc0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400cf290
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400bb651
sub ecx, 1
je 0x1400bb6c4
sub ecx, 1
je 0x1400bb600
cmp ecx, 1
je 0x1400bb5e3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400f1c54]
call fcn.140095dc0
jmp 0x1400bb6c4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400bb1d0
test eax, eax
je 0x1400bb6c4
jmp 0x1400bb56a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400bb6c4
sub rax, rsi
cmp rax, rbp
jae 0x1400bb6c4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140095f40
jmp 0x1400bb6c4
cmp r8d, 4
jle 0x1400bb6c4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400bb6c4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140095ce0
mov esi, eax
test eax, eax
je 0x1400bb6a3
mov edx, 5
mov rcx, rbx
call fcn.1400bc190
mov eax, esi
jmp 0x1400bb56a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400a45c0
mov rcx, r14
call fcn.1400a48a0
test eax, eax
je 0x1400bb568
mov edx, 5
mov rcx, rbx
call fcn.1400bc190
mov eax, Ordinal_46
jmp 0x1400bb56a
Function at 0x1400ce460
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400ce4a2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400ce4e9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400ce542
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400ce500
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400ce583
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e366b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e366c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400ce550
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400ce5a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400ce5da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400ce5df
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400ce628
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400ce628
dec r8
sub rdx, 1
jne 0x1400ce60e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400cedec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400ce6b8
mov ebx, eax
test eax, eax
jne 0x1400cee1c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400cee7f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400cee76
test al, 0x10
je 0x1400cee76
bt eax, 0xa
jae 0x1400cee6f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400cee90
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400cee6b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400cee6b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400cee76
and dword [rsp + 0x3c], 0
jmp 0x1400cee7b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d0228
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013490
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 0x14001121c
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x140011840
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x128], rax
lea rcx, [0x1400240f4]
call fcn.1400113b6
mov dword [rbp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 8]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140011937
mov dword [rbp + 0x48], 1
mov eax, 0xc
imul rax, rax, 0
lea rax, [rbp + rax + 0x4c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0x54], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rbp + 0x48]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001191a
mov dword [rbp + 0x124], 1
jmp 0x140011924
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x124]
mov dword [rbp + 0x24], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x24]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001acc0]
call fcn.14001134d
mov eax, edi
mov rcx, qword [rbp + 0x128]
xor rcx, rbp
call fcn.1400111c7
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x140011299
Capabilities:
Terminate process

Disassembly:
jmp 0x140011e30
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400240f4]
call fcn.1400113b6
cmp dword [rbp + 0x100], 3
jne 0x140011ec4
mov eax, 8
imul rax, rax, 2
mov qword [rbp + 0xd8], rax
mov ecx, 8
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rdx + rcx]
call qword [sym.imp.ucrtbased.dll_atol]
mov rcx, qword [rbp + 0x108]
mov rdx, qword [rbp + 0xd8]
mov rdx, qword [rcx + rdx]
mov ecx, eax
call fcn.140011186
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x140011eb6
lea rcx, str.Inject_dll_failed_n
call fcn.1400111ae
jmp 0x140011ec2
lea rcx, str.Inject_dll_successfully_n
call fcn.1400111ae
jmp 0x140011efb
lea rcx, [0x14001aec0]
call fcn.1400111ae
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x108]
mov rdx, qword [rcx + rax]
lea rcx, str.Usage:__s_PID__DllPath__n
call fcn.1400111ae
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
jmp 0x140011eff
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400112a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400147e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014800
xor al, al
jmp 0x140014881
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014813
xor al, al
jmp 0x140014881
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 0x14001483d
xor al, al
jmp 0x140014881
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014851
xor al, al
jmp 0x140014881
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014863
xor al, al
jmp 0x140014881
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001487f
xor al, al
jmp 0x140014881
mov al, 1
add rsp, 0x38
ret
Function at 0x140001db0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x40], 0x3a98
mov rax, rdx
mov dword [rsp + 0x20], 0xa4000000
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rcx], xmm0
xor ecx, ecx
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rcx
mov byte [rbx], cl
mov qword [rbx + 0x20], rcx
lea edx, [rcx + 1]
mov qword [rbx + 0x28], rcx
mov dword [rbx + 0x30], ecx
mov rcx, rax
mov dword [rbx + 0x34], r8d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1800014ca
mov r9d, 4
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [r9 - 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x40]
mov r9d, 4
lea edx, [r9 + 4]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x40]
mov r9d, 4
lea edx, [r9 + 3]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x1800018e0
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x48], 0
mov ecx, 0x1000
call fcn.18002eae0
mov rbp, rax
test rax, rax
je 0x180001a82
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.180053c00
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x48]
mov r8d, 0x1000
mov rdx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x48]
test ecx, ecx
je 0x180001a7a
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
nop dword [rax]
mov rdx, qword [rdi + 0x10]
test rdx, rdx
jne 0x1800019e9
mov r9, rbp
cmp ecx, 3
jb 0x18000198f
movzx eax, byte [0x18006b002]
movzx edx, word [section..data]
cmp word [r9], dx
jne 0x18000198f
cmp byte [r9 + 2], al
jne 0x18000198f
add ecx, 0xfffffffd
add r9, 3
mov dword [rsp + 0x48], ecx
cmp ecx, 3
jae 0x180001973
cmp ecx, 2
jbe 0x1800019a8
movzx eax, word [r9]
cmp ax, word [0x18006b004]
jne 0x1800019a8
mov dword [rdi + 0x30], 1
test ecx, ecx
je 0x180001a3c
mov rax, qword [rdi + 0x18]
mov ebx, ecx
cmp rbx, rax
ja 0x1800019df
mov qword [rdi + 0x10], rbx
mov rsi, rdi
cmp rax, 0xf
jbe 0x1800019cb
mov rsi, qword [rdi]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.180053560
mov byte [rsi + rbx], 0
jmp 0x180001a3c
mov qword [rsp + 0x20], rbx
mov rdx, rbx
jmp 0x180001a31
mov esi, ecx
mov rcx, qword [rdi + 0x18]
mov rax, rcx
sub rax, rdx
cmp rsi, rax
ja 0x180001a26
lea rax, [rdx + rsi]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rcx, 0xf
jbe 0x180001a0e
mov rax, qword [rdi]
lea rbx, [rax + rdx]
mov r8, rsi
mov rcx, rbx
mov rdx, rbp
call fcn.180053560
mov byte [rbx + rsi], 0
jmp 0x180001a3c
mov qword [rsp + 0x20], rsi
mov r9, rbp
mov rdx, rsi
xor r8d, r8d
mov rcx, rdi
call fcn.180001290
xor edx, edx
mov r8d, 0x1000
mov rcx, rbp
call fcn.180053c00
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x48]
mov r8d, 0x1000
mov rdx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x48]
test ecx, ecx
jne 0x180001950
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.18002ead8
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180023e5c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x1800101ea
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1800101cd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1800101b8

Function at 0x1800361ac
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18003605f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003605f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18003605f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18003605f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18003605f
cmp dword [rcx + 0x84], 0xe
jbe 0x18003605f
cmp dword [rcx + 0xf8], 0
je 0x18003605f
mov ecx, ebx
call fcn.180036110
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180035eec
nop
cmp dword [rbp + 0x20], 0
je 0x1800360ad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800360b8
int3
xor r8d, r8d
xor edx, edx
jmp 0x180035ff0
Function at 0x18004a214
Capabilities:
Query environment variable

Disassembly:
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 esi, esi
mov rbx, rax
test rax, rax
jne 0x18004a244
xor eax, eax
jmp 0x18004a307
mov rbp, rbx
cmp word [rax], si
je 0x18004a269
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004a250
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18004a24c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800481ec
movsxd r14, eax
test eax, eax
jne 0x18004a2a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18004a23d
mov rcx, r14
call fcn.180044090
mov rdi, rax
test rax, rax
jne 0x18004a2c0
xor ecx, ecx
call fcn.180044054
jmp 0x18004a29c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800481ec
test eax, eax
jne 0x18004a2f1
mov rcx, rdi
call fcn.180044054
jmp 0x18004a2fb
xor ecx, ecx
call fcn.180044054
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18004a324
Capabilities:
Query environment variable

Disassembly:
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 ebp, ebp
mov rbx, rax
test rax, rax
je 0x18004a3ab
mov rsi, rbx
cmp word [rax], bp
je 0x18004a36a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18004a354
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18004a350
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180044090
mov rdi, rax
test rax, rax
je 0x18004a398
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180053560
mov rbp, rdi
xor ecx, ecx
call fcn.180044054
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18004d398
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180041ea8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18004d439
cmp ebx, dword [rsp + 0x30]
je 0x18004d432
test esi, esi
je 0x18004d432
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18004d40d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18004d41a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18004d3f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18004d41e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18004d43b
mov eax, 1
jmp 0x18004d43b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800531b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800531d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800531d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret