joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d760
Capabilities:
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx ecx, byte [rsp + 0x10]
mov rax, qword [rsp + 8]
mov eax, dword [rax]
xor eax, ecx
and eax, 0xff
movsxd rdx, eax
lea rcx, [0x14008f740]
mov rax, qword [rsp + 8]
mov eax, dword [rax]
shr eax, 8
mov ecx, dword [rcx + rdx*4]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 8]
mov ecx, dword [rax]
and ecx, 0xff
mov rax, qword [rsp + 8]
add ecx, dword [rax + 4]
mov rax, qword [rsp + 8]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 8]
mov ecx, dword [rax + 4]
imul ecx, ecx, 0x8088405
add ecx, 1
mov rax, qword [rsp + 8]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 8]
mov ecx, dword [rax + 4]
shr ecx, 0x18
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
xor eax, ecx
and eax, 0xff
mov edx, eax
lea rcx, [0x14008f740]
mov rax, qword [rsp + 8]
mov eax, dword [rax + 8]
shr eax, 8
mov ecx, dword [rcx + rdx*4]
xor ecx, eax
mov rax, qword [rsp + 8]
mov dword [rax + 8], ecx
ret

Function at 0x14000ed10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
imul rax, qword [rsp + 0x60]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
test eax, eax
je 0x14000ed8b
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14000ed7e
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x58]
jmp 0x14000ee00
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x2c]
add ecx, dword [rsp + 0x34]
mov rax, qword [rsp + 0x68]
cmp ecx, dword [rax + 0x28]
jbe 0x14000edb7
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x2c]
mov eax, dword [rdx + 0x28]
sub eax, ecx
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x34]
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0x2c]
mov rax, qword [rsp + 0x68]
add rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x50]
call fcn.14002da70
mov r11d, dword [rsp + 0x34]
mov dword [rsp + 0x30], r11d
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax + 0x2c]
add ecx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x2c], ecx
mov eax, dword [rsp + 0x30]
xor edx, edx
div qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x1400111f0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x14001121e
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0xffffffff
je 0x140011228
mov eax, 0x1000000
jmp 0x140011338
mov rdx, qword [rsp + 0x50]
add rdx, 0x150
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [rsp + 0x50]
add rcx, 0x150
call fcn.14002c6b0
mov r11, rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + r11 + 0x14f]
mov byte [rsp + 0x28], al
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5c
je 0x140011291
movsx eax, byte [rsp + 0x28]
cmp eax, 0x2f
je 0x140011291
mov rcx, qword [rsp + 0x50]
add rcx, 0x150
lea rdx, [0x14008e104]
call fcn.14002d160
cmp dword [rsp + 0x68], 1
jne 0x1400112e4
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400112c3
mov dword [rsp + 0x38], 1
jmp 0x1400112cb
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x1400112e4
mov eax, 0x2000000
jmp 0x140011338
lea r9, [rsp + 0x2c]
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.14000e870
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001130f
mov eax, dword [rsp + 0x2c]
jmp 0x140011338
mov rcx, qword [rsp + 0x20]
call fcn.14000f320
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax], r11
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x140011336
mov eax, 0x200
jmp 0x140011338
xor eax, eax
add rsp, 0x48
ret
Function at 0x140012170
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x1400a9610]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x280], 0
je 0x1400121c1
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400121c1
xor edx, edx
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [rsp + 0x288]
movsx eax, byte [rax]
test eax, eax
jne 0x1400121d5
jmp 0x140012314
mov rax, qword [rsp + 0x288]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
test eax, eax
je 0x140012241
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x14001221e
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x14001222b
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x148]
add rax, 1
mov qword [rsp + 0x148], rax
jmp 0x1400121ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x288]
cmp qword [rsp + 0x20], rax
je 0x1400122c3
mov rax, qword [rsp + 0x288]
mov r8, qword [rsp + 0x20]
sub r8, rax
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x150]
call fcn.14002da70
mov r11, qword [rsp + 0x288]
mov rax, qword [rsp + 0x20]
sub rax, r11
mov byte [rsp + rax + 0x150], 0
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x280]
call fcn.140012170
mov rax, qword [rsp + 0x140]
add rax, 1
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x280], 0
je 0x1400122e5
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x30]
call fcn.14002d200
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x30]
call fcn.14002d160
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140012314
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002ba00
add rsp, 0x278
ret
Function at 0x1400144c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x1400144ff
cmp dword [rcx + 0xa8], 0
jne 0x1400144ff
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1400253a8
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140014464
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140015544
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14002567c
mov rsi, rax
test rax, rax
je 0x1400155c0
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x1400155bb
cmp dword [rbx], 0x40
jb 0x1400155bb
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x1400155bb
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x1400155c4
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bf80
Capabilities:
Extract resource via kernel32 functions

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 r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14001bfe8
call fcn.1400253a8
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001bfe8
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14001c00a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001b998
mov esi, eax
test rdi, rdi
je 0x14001c008
test rbx, rbx
je 0x14001c008
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x14001cd38
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x14001cd76
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14001ce2a
call fcn.140021248
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14001cd95
mov ecx, 0x80004005
call fcn.1400040a0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14002e8c8
test eax, eax
je 0x14001cdfd
cmp eax, 0xc
je 0x14001cdf7
cmp eax, 0x16
je 0x14001cdf1
cmp eax, 0x22
je 0x14001cdf1
cmp eax, 0x50
je 0x14001cdfd
call fcn.140021154
int3
call fcn.140021154
int3
call fcn.14002110c
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14001ce28
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002eeac
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140038890
nop
cmp dword [0x140088b10], 1
je 0x14002ee58
mov dword [0x140088b0c], 1
mov byte [0x140088b08], r12b
test ebx, ebx
jne 0x14002ee44
mov rcx, qword [0x14008adb0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002ee31
mov rcx, qword [0x14008ada8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14002edd0
call fcn.14003003c
cmp qword [rdi], rax
jne 0x14002edd0
jmp 0x14002edb6
cmp rdi, rsi
jb 0x14002ee31
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14003003c
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14008adb0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14008ada8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002ee0f
cmp r13, rax
je 0x14002ee2f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14002edb6
lea rdx, [0x14008bd40]
lea rcx, [0x14008bd28]
call fcn.14002ec00
lea rdx, [0x14008bd50]
lea rcx, [0x14008bd48]
call fcn.14002ec00
nop
test r12d, r12d
je 0x14002ee67
mov ecx, 8
call fcn.140038790
test r12d, r12d
jne 0x14002ee92
mov dword [0x140088b10], 1
lea ecx, [r12 + 8]
call fcn.140038790
mov ecx, r15d
call fcn.14002eb94
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002ed20

Function at 0x14002eeb8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14002ed20
Function at 0x14002fe5f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400a9610]
jne 0x14002ba1a
rol rcx, 0x10
test cx, 0xffff
jne 0x14002ba16
repz ret
ror rcx, 0x10
jmp 0x14002fdb8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140088bd0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140088cc8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14002fe3d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140088bd0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14002fe5f
mov rax, qword [rsp + 0x88]
mov qword [0x140088cc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140088c68], rax
mov rax, qword [0x140088cc8]
mov qword [0x140088b40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140088c50], rax
mov dword [0x140088b30], 0xc0000409
mov dword [0x140088b34], 1
mov rax, qword [0x1400a9610]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400a9618]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140088bc8], eax
mov ecx, 1
call fcn.1400330d8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140094a10]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140088bc8], 0
jne 0x14002fee6
mov ecx, 1
call fcn.1400330d8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14003af64
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14003003c
xor ebx, ebx
mov rdi, rax
cmp qword [0x140089900], rbx
jne 0x14003b06a
lea rcx, [0x140095c58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003b13f
lea rdx, [0x140095c48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003b13f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140095c38]
mov rcx, rsi
mov qword [0x140089900], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140095c20]
mov rcx, rsi
mov qword [0x140089908], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140095c00]
mov rcx, rsi
mov qword [0x140089910], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140089920], rax
test rax, rax
je 0x14003b061
lea rdx, [0x140095be8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140089918], rax
jmp 0x14003b071
mov rax, qword [0x140089918]
jmp 0x14003b078
mov rax, qword [0x140089918]
mov r11, qword [0x140089920]
cmp rax, rdi
je 0x14003b0e0
cmp r11, rdi
je 0x14003b0e0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140089920]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14003b0e0
test rax, rax
je 0x14003b0e0
call rsi
test rax, rax
je 0x14003b0da
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14003b0da
test byte [rsp + 0x38], 1
jne 0x14003b0e0
bts ebp, 0x15
jmp 0x14003b11e
mov rcx, qword [0x140089908]
cmp rcx, rdi
je 0x14003b11e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003b11e
call rax
mov rbx, rax
test rax, rax
je 0x14003b11e
mov rcx, qword [0x140089910]
cmp rcx, rdi
je 0x14003b11e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003b11e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140089900]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003b13f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14003b141
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400426a0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400a9610]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140042701
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400426fb
shr ax, 8
cmp al, 2
jne 0x1400426fb
call fcn.140042b50
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14002ba00
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14002ba00
add rsp, 0x1d8
ret
Function at 0x140044b60
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x140058e70
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140058ecc
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x140058edc
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140044bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x140044bcc
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.14005ae10
Function at 0x14004fb10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14004fb4b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004fcd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x268]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14004fd13
mov rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
js 0x14004fd5a
cmp edx, 2
jg 0x14004fd5a
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1400979f8]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.14002c5f4
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.14002c5f4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400503e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rcx, edx
mov rax, qword [rbx + 0x5e0]
mov rbp, qword [rbx + rcx*8 + 0x210]
mov rdi, rcx
shl rdi, 5
mov rsi, qword [rdi + rbx + 0x260]
sub rsi, qword [rdi + rbx + 0x268]
test byte [rax + 0x74], 3
je 0x1400504f7
lea rax, [0x140050130]
cmp qword [rbx + rcx*8 + 0x238], rax
jne 0x1400504f7
cmp qword [rdi + rbx + 0x258], 0
je 0x140050453
test rsi, rsi
je 0x1400504f7
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.140042ef0
cmp eax, 0xffffffff
je 0x1400504f7
test al, 1
je 0x1400504f7
cmp qword [rdi + rbx + 0x258], 0
jne 0x1400504c9
mov ecx, 0x8000
mov qword [rdi + rbx + 0x260], 0x8000
call qword [fcn.1400aaee0]
mov rsi, qword [rdi + rbx + 0x260]
xor ecx, ecx
mov qword [rdi + rbx + 0x268], rcx
mov qword [rdi + rbx + 0x270], rcx
mov qword [rdi + rbx + 0x258], rax
test rax, rax
jne 0x1400504c9
mov qword [rdi + rbx + 0x260], rcx
jmp 0x1400504f7
mov rdx, qword [rdi + rbx + 0x258]
xor r9d, r9d
mov r8d, esi
add rdx, qword [rdi + rbx + 0x268]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400504f7
add qword [rdi + rbx + 0x268], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140050510
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov rbx, qword [rcx + rax*8 + 0x210]
mov rbp, rcx
call fcn.1400503e0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x1400505aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14005057c
mov dword [rsi], 0x51
xor eax, eax
jmp 0x1400505ad
mov edx, eax
mov rcx, rbp
call fcn.1400567e0
mov rcx, qword [rbp]
lea rdx, [0x140097ac8]
mov r8, rax
call fcn.14004ff40
mov r11, qword [rbp]
mov dword [r11 + 0x4a8c], ebx
mov dword [rsi], Ordinal_60
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140052950
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a9610]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x80c], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400529bf
lea rdx, [0x140097d80]
mov r8, rdi
mov rcx, rbx
call fcn.14004fe90
jmp 0x140052a4e
mov ecx, dword [rbx + 0x810]
mov dword [rsp + 0x58], 1
call fcn.140054450
mov ecx, dword [rbx + 0x814]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.140054450
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140052a4e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x140097d50]
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.14004fe90
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14002ba00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret