joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140104030
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14010405a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1402ab3c8]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x1401040bc
mov rcx, rbx
test r14, r14
je 0x1401040a9
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x1401040f3
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401040f3
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x1401041bc
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140104120
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1401041ae
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1401041ae
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140104153
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x140104165
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140104180
mov rcx, rsi
test r14, r14
je 0x1401041a5
xor edx, edx
mov r8d, 8
call r14
jmp 0x1401041ab
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14016f1de]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14010f8c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
test rcx, rcx
je 0x14010f9d2
lea rdx, [rsp + 0x20]
call fcn.14012e840
test eax, eax
jg 0x14010f9d2
xor r8d, r8d
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], r8b
jne 0x14010f900
test rdx, rdx
je 0x14010f964
lea rcx, [rbx - 1]
add rcx, rdx
cmp rcx, rbx
jb 0x14010f964
nop word [rax + rax]
cmp byte [rcx], 0x2e
je 0x14010f92f
dec rcx
cmp rcx, rbx
jae 0x14010f920
jmp 0x14010f964
test rcx, rcx
je 0x14010f964
cmp rcx, rbx
je 0x14010f964
dec rcx
cmp rcx, rbx
jb 0x14010f964
cmp byte [rcx], 0x2e
je 0x14010f950
dec rcx
cmp rcx, rbx
jae 0x14010f941
jmp 0x14010f964
mov r8, rcx
test rcx, rcx
je 0x14010f964
inc r8
mov rax, rbx
sub rax, r8
add rdx, rax
test r8, r8
cmovne rbx, r8
mov r8d, 0x1505
lea r9, [rbx + rdx]
cmp rbx, r9
jae 0x14010f998
lea rdx, [0x14026b9b0]
movzx eax, byte [rbx]
inc rbx
imul r8, r8, 0x21
movsx rcx, byte [rax + rdx]
xor r8, rcx
cmp rbx, r9
jb 0x14010f981
mov rcx, r8
movabs rax, 0x410410410410411
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub r8, rcx
mov rax, r8
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x30
pop rbx
ret

Function at 0x140114ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rdx + 0x24]
cmp byte [rcx + 0x24], al
jne 0x140114f24
mov eax, dword [rdx + 0x20]
cmp dword [rcx + 0x20], eax
jne 0x140114f24
mov r8, qword [rdx + 0x10]
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x140114f1c
test r8, r8
je 0x140114f24
cmp byte [rdx], 0
je 0x140114ef1
lea r9, [0x14026b9b0]
nop
movzx eax, byte [r8]
test al, al
je 0x140114ef1
movzx ecx, byte [rdx]
movzx eax, byte [rax + r9]
cmp byte [rcx + r9], al
jne 0x140114f12
inc rdx
inc r8
cmp byte [rdx], 0
jne 0x140114ed0
xor r9d, r9d
mov ecx, r9d
mov eax, r9d
cmp byte [rdx], cl
sete cl
cmp byte [r8], al
mov r9d, ecx
setne al
xor r9d, eax
test r9d, r9d
setne al
ret
xor r9d, r9d
test r9d, r9d
setne al
ret
test r8, r8
jne 0x140114f24
mov al, 1
ret
xor al, al
ret
Function at 0x140120e20
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x1402de988]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x140120e9e
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
mov ecx, 6
call fcn.14012a7e0
test al, al
je 0x140120e92
mov dword [0x1402de988], 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x50
pop rbx
ret
mov dword [0x1402de988], 1
jmp 0x140120ea3
cmp eax, 2
je 0x140120ef5
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140120ed4
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x140120ef5
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x50
pop rbx
ret
Function at 0x1401216a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword [rcx]
mov rsi, r9
mov rdi, rcx
mov rbp, r8
mov r14, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x14012173d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140121707
mov dword [rsi], 0x51
jmp 0x140121736
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.1400fb380
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.140101f40
mov rax, qword [rdi + 8]
mov dword [rax + 0xcfc], ebx
mov dword [rsi], gethostname
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu__fd_qd______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x30], edx
mov rdx, qword [r14 + 0x98]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdi]
call fcn.140102180
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140121a40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x360]
test dword [rcx + 0x84], 0x800
jne 0x140121beb
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140121b13
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0xb0]
mov ebx, eax
call fcn.1400fb380
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140101f40
mov eax, 2
jmp 0x140121bed
movzx ecx, word [rsp + 0x30]
sub ecx, 1
je 0x140121bb4
cmp ecx, 1
jne 0x140121b5b
mov r8d, reloc.WLDAP32.dll_Ordinal_46
lea rdx, [rbx + 0x10e]
lea rcx, [rsp + 0x34]
call fcn.14013bf90
test rax, rax
je 0x140121b5b
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx + 0x140], eax
jmp 0x140121beb
mov byte [rbx + 0x10e], 0
mov dword [rbx + 0x140], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400fb380
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140101f40
mov eax, 2
jmp 0x140121bed
cmp dword [rsp + 0x20], 2
jle 0x140121bda
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x1402a877c]
lea rcx, [rbx + 0x10e]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x140121be1
mov byte [rbx + 0x10e], 0
mov dword [rbx + 0x140], 0
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14016dfe0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14012aa00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x14015e1a2.2]
mov rdi, rax
test rax, rax
je 0x14012aa7d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14012aaa8
cmp ebx, esi
je 0x14012aaa8
cmp ebx, 0x8000
ja 0x14012aaa8
cmp ebx, esi
jb 0x14012aaa3
mov edx, ebx
mov rcx, rdi
call qword [case.0x14015e1a2.2]
mov rdi, rax
test rax, rax
jne 0x14012aa40
mov rcx, rbp
call qword [fcn.14016f1de]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14012aa88
mov rcx, rdi
jmp 0x14012aa80
Function at 0x14012de90
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r8
mov dword [rsp + 0x40], 4
xor r14d, r14d
mov rbx, r9
mov rbp, rdx
mov qword [rsp + 0x48], r14
mov rsi, rcx
mov qword [rsp + 0x38], r14
mov rcx, rdi
mov dword [rsp + 0x30], r14d
mov r8, r9
mov dword [rsp + 0x44], ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r9d, Ordinal_27
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14012dfae
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14012df8c
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14012df8c
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x20], r14d
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14012df8c
mov eax, dword [rsp + 0x30]
cmp rbx, rax
jb 0x14012df8c
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x44]
mov r8, rdi
mov dword [rsp + 0x20], r14d
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14012df9c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14012dfae
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012e6b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, qword [rsp + 0x50]
xor eax, eax
mov qword [r9], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [r14], rax
test r8, r8
jne 0x14012e6f8
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], al
jne 0x14012e6f0
lea rcx, [rbx + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
lea rcx, [rdx*4 + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov r9, rax
test rax, rax
jne 0x14012e732
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14012e823
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rbx, 3
jb 0x14012e7b8
mov rax, rbp
mul rbx
mov r8, rdx
shr r8, 1
imul rax, r8, 0xfffffffffffffffd
add rbx, rax
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
movzx eax, byte [rdi + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [rdi + 1]
movzx eax, byte [rdi + 2]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rdi + 2]
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r8, 1
jne 0x14012e752
test rbx, rbx
je 0x14012e815
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
cmp rbx, 1
jne 0x14012e7eb
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
jmp 0x14012e811
movzx eax, byte [rdi + 1]
shr rax, 4
or rax, rdx
movzx eax, byte [rax + r10]
mov byte [rcx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
add rcx, 4
mov byte [rcx], 0
sub rcx, r9
mov qword [r14], rcx
xor eax, eax
mov qword [rsi], r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14013c910
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [0x1402df141], 0
mov rbp, rdx
mov rbx, rcx
je 0x14013c973
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x1402df138]
mov rax, qword [rsp + 0x20]
cqo
idiv r8
mov rsi, rax
mov rax, qword [rsp + 0x20]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
mov r14, rax
jmp 0x14013c999
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov esi, edx
imul edx, edx, 0x3e8
sub r8d, edx
imul r14d, r8d, 0x3e8
mov rcx, rbx
mov qword [rsp + 0x70], r15
call fcn.140102780
mov rcx, rbp
mov rdi, rax
call fcn.140102780
mov r8d, 1
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14013caa7
movabs rbp, 0xffdf3b645a1cac09
movabs r15, 0x20c49ba5e353f7
cmp byte [0x1402df141], 0
je 0x14013ca1c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cqo
idiv qword [0x1402df138]
mov r8, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402df138]
mov rcx, rax
jmp 0x14013ca43
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
mov eax, 0x10624dd3
mul r9d
shr edx, 6
imul ecx, edx, 0x3e8
mov r8d, edx
sub r9d, ecx
imul ecx, r9d, 0x3e8
sub r8, rsi
cmp r8, r15
jge 0x14013cae2
cmp r8, rbp
jle 0x14013cae2
sub ecx, r14d
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r8, 0x3e8
movsxd rdx, edx
add rdx, rax
cmp rdx, 0x3e8
ja 0x14013cae2
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14013c9e2
test rdi, rdi
je 0x14013cab5
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14013cac3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rdi, rdi
je 0x14013caf0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14013cafe
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14013cac5
Function at 0x140145790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov eax, dword [rcx + 0xd0c]
xor edi, edi
xor r12d, r12d
mov esi, r8d
mov r14d, edx
mov r13, rcx
cmp r8d, eax
jg 0x1401457f8
cmp r8d, 0xffffffff
cmove esi, eax
test r9, r9
je 0x1401457d5
mov r9, qword [r9 + 0x28]
test r9, r9
je 0x1401457f8
mov r9, qword [r9 + 0x10]
jmp 0x1401457dc
mov r9, qword [rcx + 0x11e8]
test r9, r9
je 0x1401457f8
mov rbx, qword [r9]
test byte [rbx + 0x2c], r14b
je 0x1401457ef
cmp dword [rbx + 0x28], esi
je 0x14014580c
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x1401457e1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
mov r10, qword [rcx + 0x11e8]
mov qword [rsp + 0x30], r15
test r10, r10
je 0x1401458c4
mov qword [rsp + 0x28], rbp
mov rbp, qword [rbx + 0x18]
nop word [rax + rax]
mov r11, qword [r10]
mov r8, qword [r11 + 0x18]
test rbp, rbp
je 0x140145895
test r8, r8
je 0x1401458a9
cmp byte [rbp], 0
mov rax, rbp
je 0x14014587a
nop word [rax + rax]
movzx ecx, byte [r8]
test cl, cl
je 0x14014587a
movzx edx, byte [rax]
lea rbp, [0x14026b9b0]
movzx ecx, byte [rcx + rbp]
cmp byte [rdx + rbp], cl
mov rbp, qword [rbx + 0x18]
jne 0x140145891
inc rax
inc r8
cmp byte [rax], 0
jne 0x140145850
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor eax, eax
cmp byte [r8], al
setne al
xor ecx, eax
test ecx, ecx
je 0x1401458a9
jmp 0x14014589a
xor ecx, ecx
jmp 0x14014588b
test r8, r8
jne 0x1401458a9
cmp dword [r11 + 0x28], esi
jne 0x1401458a9
test byte [r11 + 0x2c], r14b
je 0x1401458a9
inc rdi
cmp r10, r9
jne 0x1401458b2
lea r12, [rdi - 1]
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140145830
mov rbp, qword [rsp + 0x28]
mov rcx, qword [rbx + 0x18]
lea rax, [r13 + 0x1238]
mov r15, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov qword [rax], rcx
mov rcx, qword [rbx + 0x20]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
movzx ecx, byte [rbx + 0x2c]
mov rbx, qword [rsp + 0x38]
bts ecx, 0x1b
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r9
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14014d030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rsi, rcx
xor r9d, r9d
xor edi, edi
mov rbx, qword [rax + 0x628]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x144]
mov rdx, qword [rbx + 0x150]
add r8d, 4
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbx + 0x13c], eax
cmp dword [rbx + 0x138], edi
jne 0x14014d0c6
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x138], eax
mov r8d, dword [rbx + 0x13c]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x14014d126
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140101f40
mov dword [rbx + 0xc], 7
mov eax, edi
mov r14, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14016dfe0
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [rbx + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14014d15c.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x14d294]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14014d15c.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14014d15c.4
lea eax, [r8 - 4]
lea r14, [rdx + 4]
movsxd rbp, eax
cmp qword [rsi + 0x158], rdi
jne 0x14014d1ab
mov rcx, rsi
call fcn.140100c60
mov edi, eax
test eax, eax
jne 0x14014d1df
mov rdx, qword [rsi + 0x158]
test rdx, rdx
jne 0x14014d1be
mov edi, reloc.WS2_32.dll_socket
jmp 0x14014d1d7
mov rax, qword [rdx]
mov r9, r14
mov r8d, 1
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [rax + Ordinal_26]
mov edi, eax
test edi, edi
je case.0x14014d15c.4
mov edx, 5
mov rcx, rbx
call fcn.14014cd10
jmp 0x14014d0f9
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd r14, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, r14
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je case.0x14014d15c.4
sub rax, rbp
cmp rax, r14
jae case.0x14014d15c.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.140102070
jmp case.0x14014d15c.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14014ba10
mov edi, eax
test eax, eax
je case.0x14014d15c.4
jmp 0x14014d0fb
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1402a877c]
call fcn.140101f40
mov rcx, rsi
call fcn.140120770
test eax, eax
je 0x14014d0f9
mov edx, 5
mov rcx, rbx
call fcn.14014cd10
mov eax, Ordinal_46
jmp 0x14014d0fb
Function at 0x14014fc50
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402dc040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x28]
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rdi, qword [rsi + 0x228]
mov rcx, rdi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14014fdba
lea r8, [rsp + 0x28]
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x20], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14014fdba
lea rdx, str.Connection_accepted_from_server
mov rcx, rbx
call fcn.140102070
lea r8, [rsp + 0x2c]
mov byte [rsi + 0x34d], 0
mov edx, 0x8004667e
mov dword [rsp + 0x2c], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call fcn.140123460
test eax, eax
jne 0x14014fdce
cmp qword [rbx + 0x298], 0
je 0x14014fdb6
mov rax, qword [rbx + 0xe0]
lea rdi, [rbx + 0xd8]
test rax, rax
jne 0x14014fd3e
mov rax, qword [rdi]
test rax, rax
je 0x14014fd45
mov byte [rax + 0x1cb], 1
mov rdx, qword [rsp + 0x20]
mov r8d, 1
mov rcx, qword [rbx + 0x2a0]
call qword [rbx + 0x298]
mov rcx, qword [rbx + 0xe0]
mov edx, eax
test rcx, rcx
je 0x14014fd74
mov byte [rcx + 0x1cb], 0
jmp 0x14014fd83
mov rax, qword [rdi]
test rax, rax
je 0x14014fd83
mov byte [rax + 0x1cb], 0
test edx, edx
je 0x14014fdb6
mov rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x258]
test rcx, rcx
je 0x14014fda0
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
lea rcx, [rsi + 0x258]
mov rdx, rbx
call fcn.14010c330
mov eax, Ordinal_46
jmp 0x14014fdce
xor eax, eax
jmp 0x14014fdce
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rbx
call fcn.140101f40
mov eax, 0x1e
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14016dfe0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret