joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800873f0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x180087598
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 0x180087455
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x180087455
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180087455
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 0x18008748c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1800874e2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1800874e2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1800874e2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1800874e2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1800874e2
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.180086ea0
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 0x180087544
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800680d0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.180087270
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 0x180087590
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800680d0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x180088d00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1800c6080]
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 0x180088d95
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 0x180088df6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1800680d0
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.18009b7d0
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 0x180088eb1
sub ecx, 1
je 0x180088f24
sub ecx, 1
je 0x180088e60
cmp ecx, 1
je 0x180088e43
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1800af61c]
call fcn.1800680d0
jmp 0x180088f24
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.180088a30
test eax, eax
je 0x180088f24
jmp 0x180088dca
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 0x180088f24
sub rax, rsi
cmp rax, rbp
jae 0x180088f24
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.180068250
jmp 0x180088f24
cmp r8d, 4
jle 0x180088f24
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 0x180088f24
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.180067ff0
mov esi, eax
test eax, eax
je 0x180088f03
mov edx, 5
mov rcx, rbx
call fcn.1800899f0
mov eax, esi
jmp 0x180088dca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1800724a0
mov rcx, r14
call fcn.180072780
test eax, eax
je 0x180088dc8
mov edx, 5
mov rcx, rbx
call fcn.1800899f0
mov eax, Ordinal_46
jmp 0x180088dca
Function at 0x18009b680
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 [0x1800c6020]
mov rdi, rax
test rax, rax
jne 0x18009b6c2
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 0x18009b709
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 0x18009b762
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 0x18009b720
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18009b7a3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800aa992]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800aa993]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18009b770
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 0x409150
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042d090], 0
je 0x4091ee
cmp word [0x0042d3a0], 0xd7b2
jne 0x409183
cmp dword [0x0042d3a8], 0
jbe 0x409183
lea rcx, [0x0042d398]
call qword [0x0042d3c0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0042962c]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00409224]
call fcn.00409eb0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x409210
cmp byte [0x0042803a], 0
jne 0x409210
xor rcx, rcx
lea rdx, [0x0042962c]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40b8b0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00431c78]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00431ca0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00431c70], al
cmp byte [0x00431c70], 0
je 0x40b94f
lea rcx, [0x0040b954]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b96e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00431c58], rax
lea rcx, [0x0040b954]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b98c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00431c60], rax
lea rcx, [0x0040b954]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b9aa]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00431c68], rax
add rsp, 0x28
ret
Function at 0x40bc20
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.00409580
movzx rax, word [rbp + 0x4e]
cmp word [0x00429af0], ax
ja 0x40bd08
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00429ef0]
mov word [rbp + 0x4e], ax
ja 0x40bd08
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40bd07
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00429af0]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40bcc1
mov ecx, eax
sub ecx, 1
jmp 0x40bd02
lea rdx, [0x00429af0]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40bce3
mov r8d, eax
add r8d, 1
jmp 0x40bd02
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00429af8]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040bac0
jmp 0x40bd07
cmp ecx, r8d
jae 0x40bc90
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40bdea
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bdea
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040a240
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040a240
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040a240
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040be44]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040be54]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040a600
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00409660
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40c060
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00431c78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00431ca0], ax
jne 0x40c0cb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00431ca2]
mov r8d, 0x55
call fcn.0040a240
lea rcx, [0x00431c78]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c1d6
lea rcx, [0x00431c78]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00409580
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c190
cmp byte [0x00431c70], 0
je 0x40c124
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040bef0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00409a20
jmp 0x40c190
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040bc20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409a20
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40c190
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40c16f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040c224]
call fcn.0040a3f0
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040bc20
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040a3f0
lea rcx, [0x00431c78]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00431ca0], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040a190
lea rcx, [0x00431ca2]
mov edx, 0xaa
mov r8, rax
call fcn.0040b9e0
lea rcx, [0x00431c78]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00409660
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40cc00
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.00409710
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040a240
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040a4e0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040ca20
test al, al
jne 0x40ccce
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040a240
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040a4e0
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040ca20
test al, al
jne 0x40ccce
mov rcx, qword [rbp + 0x20]
call fcn.00409580
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.00409660
lea rcx, [rbp + 0x70]
call fcn.00409580
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40cd40
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.00409710
mov rcx, qword [rbp + 0x90]
call fcn.00409710
nop
mov rcx, qword [rbp + 0x28]
call fcn.00409580
cmp qword [rbp + 0x90], 0
je 0x40cf06
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00409aa0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40cdf1
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40ce2b
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40ce24
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040a6f0
jmp 0x40ce2b
sub eax, 1
test eax, eax
jne 0x40cdf6
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040c910
cmp qword [rbp + 0x68], 0
je 0x40ce69
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040cac0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00409a20
jmp 0x40cf05
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040c060
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040cac0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00409a20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40cede
cmp byte [0x00431c70], 0
jne 0x40cede
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040c060
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040cac0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409a20
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40cf05
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040cc00
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00409a20
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00409660
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00409660
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40d810
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40d830
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40d854
cmp eax, 1
jae 0x40d859
cmp ecx, 5
jbe 0x40d865
mov dword [0x0042d998], 0x7f
jmp 0x40d86f
mov dword [0x0042d998], 0x409
add rsp, 0x28
ret
Function at 0x40db10
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040db00
mov ebx, eax
test ebx, ebx
je 0x40db5b
cmp dword [0x0042a2f4], 0xffffffff
jne 0x40db34
mov ecx, 0xe2
call fcn.004093f0
mov ecx, ebx
call fcn.0040dae0
test rax, rax
jne 0x40db4d
mov ecx, 0xe2
call fcn.004093f0
jmp 0x40db5b
mov ecx, dword [0x0042a2f4]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40db70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00431d4c], 0
je 0x40dbab
mov ecx, dword [0x0042a2f4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40dbbf
call fcn.0040db10
mov ecx, dword [0x0042a2f4]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40dbbf
mov rax, qword [0x00431d80]
jmp 0x40dbbf
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0042a2f4]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41e660
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41e687
movzx rax, word [rbp + 0x2c]
jmp 0x41e689
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x41f950
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.0041f6f0
mov ebx, eax
mov rax, qword [0x0042c330]
cmp byte [rax], 0
je 0x41fa88
mov rcx, qword [0x0042c178]
call fcn.00405fc0
call fcn.004054f0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0041f910]
mov r8d, 1
movsxd r9, esi
call fcn.0040b510
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0041fb28]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x41face
mov rcx, qword [0x00431d50]
call fcn.0040b680
mov rcx, rax
mov rax, qword [0x0042c128]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0041f910]
call fcn.0040b550
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x421f20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00409bd0
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040d7f0
mov esi, eax
cmp esi, 0x104
jbe 0x421f7d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004051b0
mov rdi, rax
jmp 0x421f81
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040d7f0
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x421fd7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x421fbb
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x421fe9
mov rcx, rdi
call fcn.004051e0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x423a40
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov byte [rbp + 0x5f], 0
call sub.kernel32.dll_GetCurrentProcess
mov rcx, rax
mov edx, 0x28
lea r8, [rbp + 0x50]
call sub.advapi32.dll_OpenProcessToken
xor rcx, rcx
lea rdx, [0x00423ac4]
lea r8, [rbp + 0x44]
call sub.advapi32.dll_LookupPrivilegeValueW
test eax, eax
je 0x423ab9
mov dword [rbp + 0x40], 1
mov dword [rbp + 0x4c], 2
mov rcx, qword [rbp + 0x50]
xor rdx, rdx
lea r8, [rbp + 0x40]
mov r9d, 0x10
mov qword [rsp + 0x20], 0
lea rax, [rbp + 0x3c]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_AdjustTokenPrivileges
test eax, eax
setne al
mov byte [rbp + 0x5f], al
movzx rax, byte [rbp + 0x5f]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x423af0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x48], rbp
mov qword [rbp + 0xb0], rcx
mov dword [rbp + 0xb8], edx
mov byte [rbp + 0x97], 0
call fcn.00423a40
test al, al
je 0x423cdf
mov ecx, 0x1fffff
xor rdx, rdx
mov r8d, dword [rbp + 0xb8]
call sub.kernel32.dll_OpenProcess
mov qword [rbp + 0x98], rax
nop
mov dword [rbp + 0x5c], 0
cmp qword [rbp + 0xb0], 0
je 0x423b5b
mov rax, qword [rbp + 0xb0]
mov eax, dword [rax - 4]
mov dword [rbp + 0x5c], eax
mov ecx, dword [rbp + 0x5c]
add ecx, ecx
add ecx, 1
movsxd rcx, ecx
call fcn.004051b0
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x58], 0
cmp qword [rbp + 0xb0], 0
je 0x423b8d
mov rax, qword [rbp + 0xb0]
mov eax, dword [rax - 4]
mov dword [rbp + 0x58], eax
mov rcx, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0x78]
mov r8d, dword [rbp + 0x58]
add r8d, r8d
add r8d, 1
call fcn.0040b0b0
mov rcx, qword [rbp + 0x78]
call sub.kernel32.dll_lstrlenW_1
add eax, 1
add eax, eax
mov dword [rbp + 0x68], eax
mov rcx, qword [rbp + 0x98]
xor rdx, rdx
mov r8d, dword [rbp + 0x68]
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
call sub.kernel32.dll_VirtualAllocEx
mov qword [rbp + 0x80], rax
cmp qword [rbp + 0x80], 0
je 0x423cd2
mov rcx, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x80]
mov r8, qword [rbp + 0x78]
mov r9d, dword [rbp + 0x68]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x423cd2
mov eax, dword [rbp + 0x68]
cmp qword [rbp + 0x60], rax
jne 0x423cd2
mov dword [rbp + 0x6c], 0
lea rcx, [0x00423d18]
call sub.kernel32.dll_GetModuleHandleW_2
mov rcx, rax
lea rdx, [0x00423d32]
call fcn.0040eef0
mov qword [rbp + 0x70], rax
mov rcx, qword [rbp + 0x98]
xor rdx, rdx
xor r8, r8
mov r9, qword [rbp + 0x70]
mov rax, qword [rbp + 0x80]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rax, [rbp + 0x6c]
mov qword [rsp + 0x30], rax
call sub.kernel32.dll_CreateRemoteThread
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x88]
or edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov rcx, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x80]
xor r8, r8
mov r9d, 0x8000
call sub.kernel32.dll_VirtualFreeEx
cmp qword [rbp + 0x88], 0
je 0x423cc6
mov byte [rbp + 0x97], 1
mov rcx, qword [rbp + 0x88]
call sub.kernel32.dll_CloseHandle_1
nop
mov rcx, qword [rbp + 0x98]
call sub.kernel32.dll_CloseHandle_1
movzx rax, byte [rbp + 0x97]
lea rsp, [rbp + 0xa0]
pop rbp
ret