joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013380
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140061740]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140013489
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140013480
cmp dword [rsp + 0x20], 0x10
jb 0x140013462
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x140013462
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x140013462
mov r8, qword [rbx]
test r8, r8
jne 0x140013423
mov rcx, qword [0x1400687e0]
xor edx, edx
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x140013480
jmp 0x140013452
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x140013452
mov rcx, qword [0x1400687e0]
lea r9d, [rax + rax]
xor edx, edx
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x140013480
mov ecx, dword [rbx + 8]
mov qword [rbx], rax
add ecx, ecx
mov dword [rbx + 8], ecx
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rcx + rdx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400133d2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002e450
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400134b0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov ebp, r8d
mov r14d, edx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov rdi, rcx
call fcn.140013380
cmp qword [rdi], rbx
je 0x140013538
cmp dword [rdi + 0xc], ebx
jbe 0x140013538
mov qword [rsp + 0x30], rsi
nop dword [rax + rax]
mov rax, qword [rdi]
mov ecx, ebx
xor edx, edx
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x14001352c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1400131c0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1400134f0
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140013550
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
cmp dword [rcx + 0xc], ebx
jbe 0x1400135a8
mov qword [rsp + 0x30], rdi
nop dword [rax]
mov rax, qword [rsi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x14001359c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rsi + 0xc]
jb 0x140013570
mov rdi, qword [rsp + 0x30]
mov r8, qword [rsi]
mov rcx, qword [0x1400687e0]
xor edx, edx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]

Function at 0x1400135d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov esi, edx
mov ebp, 5
imul rbx, rbx, 0x38
add rbx, qword [0x14009eda0]
test byte [rbx + 0x20], 1
mov rdi, qword [rbx]
je 0x140013609
sub rdi, rbp
mov ebp, 7
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001362e
mov eax, 0xa
jmp 0x1400136bd
test esi, esi
je 0x140013650
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x140013673
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x140013673
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x14001366c
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x140013673
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400136e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov esi, ecx
mov ecx, dword [0x14009edac]
mov ebx, edi
test ecx, ecx
je 0x140013882
mov rax, qword [0x14009eda0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x140013730
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x140013710
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x140013882
mov qword [rsp + 0x60], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.140013380
mov r12, qword [rsp + 0x20]
mov r13d, dword [rsp + 0x2c]
test r12, r12
je 0x1400137cf
test r13d, r13d
je 0x1400137cf
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov r15d, r13d
mov r14, r12
mov r8d, dword [r14]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x1400137bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, edi
test esi, esi
setne r8b
or edx, 0xffffffff
mov rcx, rbp
call fcn.1400131c0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 4
dec r15
jne 0x140013780
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8d, dword [0x14009edac]
cmp ebx, r8d
jae 0x140013818
nop dword [rax + rax]
mov rax, qword [0x14009eda0]
mov ecx, ebx
imul rcx, rcx, 0x38
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x140013811
mov edx, esi
mov ecx, ebx
call fcn.1400135d0
mov edi, eax
test eax, eax
jne 0x140013818
mov r8d, dword [0x14009edac]
inc ebx
cmp ebx, r8d
jb 0x1400137e0
test r12, r12
je 0x140013873
test r13d, r13d
je 0x140013861
mov rsi, r12
mov rbp, r13
nop dword [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140013858
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
dec rbp
jne 0x140013830
mov rcx, qword [0x1400687e0]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140014e60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
add r8d, 0xdeadbeef
mov rdi, rdx
mov r11, rcx
add r8d, edx
mov r10d, r8d
mov ebx, r8d
cmp rdx, 0xc
jbe 0x140014f93
mov qword [rsp + 0x10], rsi
lea r9, [rdx - 0xd]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r9
mov rsi, rdx
shr rsi, 3
inc rsi
mov rax, rsi
imul rax, rax, 0xfffffffffffffff4
add rdi, rax
movzx eax, byte [r11 + 6]
movzx ecx, byte [r11 + 7]
movzx r9d, byte [r11 + 4]
movzx edx, byte [r11 + 8]
shl ecx, 8
add r9d, r10d
add ecx, eax
movzx eax, byte [r11 + 5]
add edx, r8d
shl ecx, 8
add r11, 0xc
add ecx, eax
movzx eax, byte [r11 - 2]
shl ecx, 8
add r9d, ecx
movzx ecx, byte [r11 - 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 0xa]
shl ecx, 8
add edx, ecx
movzx ecx, byte [r11 - 9]
shl ecx, 8
mov r8d, edx
add ecx, eax
movzx eax, byte [r11 - 0xb]
rol r8d, 4
shl ecx, 8
add ecx, eax
movzx eax, byte [r11 - 0xc]
shl ecx, 8
add ecx, eax
sub ecx, edx
add edx, r9d
add ecx, ebx
xor r8d, ecx
sub r9d, r8d
mov eax, r8d
add r8d, edx
rol eax, 6
xor eax, r9d
sub edx, eax
mov ecx, eax
add eax, r8d
rol ecx, 8
xor ecx, edx
sub r8d, ecx
mov ebx, ecx
add ecx, eax
rol ebx, 0x10
xor ebx, r8d
sub eax, ebx
mov r10d, ebx
add ebx, ecx
ror r10d, 0xd
xor r10d, eax
sub ecx, r10d
mov r8d, r10d
add r10d, ebx
rol r8d, 4
xor r8d, ecx
dec rsi
jne 0x140014eb0
mov rsi, qword [rsp + 0x10]
cmp rdi, 0xc
ja 0x14001501c
lea rcx, sym.NsGpuCNMiner.exe_8_e_FT___30Dcpnn_XO00j_y7o3WE34G6t9IPnCn
mov eax, dword [rcx + rdi*4 + 0x1507c]
add rax, rcx
jmp rax
movzx eax, byte [r11 + 0xb]
shl eax, 0x18
add r8d, eax
movzx eax, byte [r11 + 0xa]
shl eax, 0x10
add r8d, eax
movzx eax, byte [r11 + 9]
shl eax, 8
add r8d, eax
movzx eax, byte [r11 + 8]
add r8d, eax
movzx eax, byte [r11 + 7]
shl eax, 0x18
add r10d, eax
movzx eax, byte [r11 + 6]
shl eax, 0x10
add r10d, eax
movzx eax, byte [r11 + 5]
shl eax, 8
add r10d, eax
movzx eax, byte [r11 + 4]
add r10d, eax
movzx eax, byte [r11 + 3]
shl eax, 0x18
add ebx, eax
movzx eax, byte [r11 + 2]
shl eax, 0x10
add ebx, eax
movzx eax, byte [r11 + 1]
shl eax, 8
add ebx, eax
movzx eax, byte [r11]
add ebx, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0xe
sub r8d, eax
mov eax, r8d
mov edx, r8d
xor edx, ebx
rol eax, 0xb
sub edx, eax
xor r10d, edx
mov eax, edx
ror eax, 7
sub r10d, eax
xor r8d, r10d
mov eax, r10d
rol eax, 0x10
sub r8d, eax
mov eax, r8d
mov ecx, r8d
xor ecx, edx
rol eax, 4
sub ecx, eax
xor r10d, ecx
mov eax, ecx
rol eax, 0xe
sub r10d, eax
mov eax, r10d
xor r8d, r10d
ror eax, 8
sub r8d, eax
mov eax, r8d
mov rbx, qword [rsp + 0x18]
pop rdi
ret
Function at 0x14001bfc0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14001bb70
mov rcx, qword [0x140063950]
cmp rcx, 0xffffffffffffffff
je 0x14001bfdc
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140030520
int3

Function at 0x14001c000
Capabilities:
Accept command line arguments
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
cmp dword [0x140065478], 1
je 0x14001c136
mov rdi, qword [0x14007d308]
xor esi, esi
mov dword [0x140067ecc], 1
lea rcx, [rdi + 0x38]
mov dword [rdi + 0x78], esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140005fc0
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140063950]
cmp rcx, 0xffffffffffffffff
je 0x14001c077
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rbx, rax
test rax, rax
je 0x14001c121
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140035a80
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14001c1b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Restarting_failed:_error__d_n
xor ecx, ecx
mov r8d, eax
call fcn.14000ee60
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea rdx, str.Rebooting_n
xor ecx, ecx
call fcn.14000ee60
call fcn.14001bc80
mov rdi, qword [0x14007d308]
lea rcx, [rdi + 0x38]
xor esi, esi
mov dword [0x140067ecc], 1
mov dword [rdi + 0x78], esi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140005fc0
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140030520
int3
lea rdx, str.Restarting_OK__exit..._n_n_n
xor ecx, ecx
call fcn.14000ee60
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140030520
int3
Function at 0x14001c1f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rdx, [0x140056d9c]
xor ecx, ecx
call fcn.14000ee60
call fcn.14000f430
mov dl, 1
movzx ecx, dl
call fcn.14001b250
mov rbx, qword [0x14007d308]
lea rcx, [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140005fc0
lea rcx, [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdx, [0x140056d9c]
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000ee60
Function at 0x14001d160
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [0x14007d308]
mov dword [0x140067ecc], 1
lea rcx, [rdi + 0x38]
mov dword [rdi + 0x78], 0
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140005fc0
lea rcx, [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140030520
int3
Function at 0x140021830
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x140061740]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, [rsp + 0x40]
mov r8d, 0x12c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov qword [rsp + 0x30], 0
mov esi, 1
lea rcx, [rsp + 0x40]
mov r8d, esi
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400218dc
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x190], rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
lea ebx, [rax - 1]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x140065326]
cmp ebx, 0x1e847e
mov rbx, qword [rsp + 0x190]
cmovbe eax, esi
mov byte [0x140065326], al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14002e450
mov rsi, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
Function at 0x140021900
Capabilities:
Get file version info

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4d8]
sub rsp, 0x5d8
mov rax, qword [0x140061740]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov rbx, rcx
lea rcx, [rbp - 0x3f]
xor edx, edx
mov r8d, 0x104
mov byte [rbp - 0x40], 0
call fcn.140035a80
lea rdx, [rbp - 0x40]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140021aef
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x5f8], rsi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x140021ae7
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov rdx, rsi
mov qword [rsp + 0x600], rdi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
call fcn.140011e70
mov rdi, qword [rsp + 0x38]
lea rcx, [rbp - 0x40]
mov r9, rdi
mov r8d, esi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x140021b08
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov edx, ebx
mov ecx, ebx
lea r8, str._RwsjodGjmfHmgl_353835f5_Blls_mxM_nd
movzx eax, byte [rcx + r8]
test dl, 1
je 0x1400219de
xor al, 1
jmp 0x1400219e0
xor al, 3
inc edx
mov byte [rsp + rcx + 0x50], al
inc rcx
cmp edx, 0x24
jl 0x1400219d0
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov byte [rsp + 0x74], bl
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x140021b08
mov esi, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
lea rcx, [rbp + 0xd0]
mov r8d, esi
call fcn.14002e480
cmp rsi, 0x3e8
jae 0x140021b19
lea rcx, [rbp + 0xd0]
mov byte [rbp + rsi + 0xd0], bl
mov dword [rsp + 0x50], 0x6f72684b
mov dword [rsp + 0x54], 0x736f6e
call fcn.140031500
mov rsi, rax
test rax, rax
je 0x140021b08
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x5d0], r14
call fcn.140031500
mov r14, rax
test rax, rax
je 0x140021abb
mov rcx, rax
call fcn.140044440
mov rcx, rsi
mov rbx, rax
call fcn.140044440
mov rdx, rbx
mov rcx, rax
call fcn.14002ee68
mov rbx, rax
test rax, rax
je 0x140021ab3
lea rcx, [rbp + 0xd0]
sub rcx, rsi
add rbx, rcx
mov rcx, r14
call fcn.14002ed70
mov rcx, rsi
call fcn.14002ed70
mov r14, qword [rsp + 0x5d0]
test rbx, rbx
je 0x140021b08
test rdi, rdi
je 0x140021add
mov rcx, rdi
call fcn.14002eb00
mov al, 1
mov rdi, qword [rsp + 0x600]
mov rsi, qword [rsp + 0x5f8]
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.14002e450
add rsp, 0x5d8
pop rbx
pop rbp
ret
test rdi, rdi
je 0x140021b15
mov rcx, rdi
call fcn.14002eb00
xor al, al
jmp 0x140021adf
call fcn.14002f174
int3
Function at 0x140021b20
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x140061740]
xor rax, rsp
mov qword [rbp + 0x150], rax
lea rcx, str.amdocl64.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x140021bfc
mov byte [rbp + 0x40], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x41]
call fcn.140035a80
mov r8d, 0x104
lea rdx, [rbp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140021bfc
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test eax, eax
je 0x140021bfc
xor edi, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140011e70
nop
mov rsi, qword [rsp + 0x38]
mov r9, rsi
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
jne 0x140021c03
test rsi, rsi
je 0x140021bfc
mov rcx, rsi
call fcn.14002eb00
xor eax, eax
jmp 0x140021cd3
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
movups xmm0, xmmword [str.StringFileInfo040904b0ProductVersion]
movaps xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x140058b40]
movaps xmmword [rsp + 0x70], xmm1
movsd xmm0, qword [0x140058b50]
movsd qword [rbp - 0x80], xmm0
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x140021bef
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x140021c6b
mov r8, rbx
lea rdx, str.driver__s_n
mov ecx, 2
call fcn.14000ee60
mov eax, dword [rsp + 0x20]
test eax, eax
jle 0x140021c99
lea rcx, [rbp - 0x30]
mov r8d, eax
nop word [rax + rax]
movzx edx, byte [rbx]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x140021c91
mov byte [rcx], dl
inc edi
inc rcx
inc rbx
dec r8
jne 0x140021c80
movsxd rax, edi
cmp rax, 0x64
jae 0x140021ccd
mov byte [rbp + rax - 0x30], 0
lea rcx, [rbp - 0x30]
call fcn.14002f048
mov ebx, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
test rsi, rsi
je 0x140021cc9
mov rcx, rsi
call fcn.14002eb00
mov eax, ebx
jmp 0x140021cd3
call fcn.14002f174
nop
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14002e450
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14002bdf0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140061740]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 8
mov rbx, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 1
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x58]
mov rcx, rbx
mov edx, 0x98000004
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 0xc350
mov dword [rsp + 0x60], 0xc350
call qword [sym.imp.WS2_32.dll_WSAIoctl]
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002e450
add rsp, 0x70
pop rbx
ret
Function at 0x14002c760
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
test r8b, r8b
je 0x14002c789
mov r8, rdx
lea rdx, str.send:__s_n
mov ecx, 2
call fcn.14000ee60
or r8, 0xffffffffffffffff
cmp dword [rdi + 0x10], 0
je 0x14002c7b0
inc r8
cmp byte [rbx + r8], 0
jne 0x14002c793
mov rcx, qword [rdi + 8]
mov rdx, rbx
push rcx
call 0x14018a35a
jmp 0x14002c7c9
inc r8
cmp byte [rbx + r8], 0
jne 0x14002c7b0
mov rcx, qword [rdi]
xor r9d, r9d
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x14002c83e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14002c83e
cmp dword [rdi + 0x10018], 0xa
lea rcx, [0x1400672f0]
lea r9, [0x140066928]
cmovl r9, rcx
lea r8, str._s_Stratum___socket_send_failed__d__disconnect_n
mov edx, 3
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.14000f050
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002c818
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14002c827
call 0x140470e7a
int3
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov dword [rdi + 0x14], eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret