joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060700
Capabilities:
Parse pe header

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

Function at 0x140064020
Capabilities:
Parse pe header

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

Function at 0x140066e20
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002270
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400022c0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140001853
mov dword [rax + 0x60], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14009c480
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002270
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.1400022c0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140001853
mov dword [rax + 0x60], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140011e10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rbp, rbx
test rcx, rcx
je 0x140011eea
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140011eed
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x140011e9c
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140011eea
mov rdx, rsi
lea r8, [rbp + r8*2]
nop dword [rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
add r8, 2
dec rcx
cmp rax, rcx
jb 0x140011ec0
mov rax, rbp
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 0x140012570
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400125d2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400125c7
cmp edi, eax
jb 0x1400125c7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140014d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x40
mov rbx, rcx
xor ecx, ecx
mov ebp, r8d
mov r12d, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140014ef2
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x140014de7
cmp ax, 0x2f
je 0x140014de7
movzx ecx, ax
call fcn.1400d021c
test eax, eax
je 0x140014ef2
cmp word [rbx + 2], 0x3a
jne 0x140014ef2
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x140014de7
cmp ax, 0x2f
jne 0x140014ef2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014ed6
test al, 0x50
jne 0x140014ed6
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140014e54
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x60]
test ebp, ebp
mov rcx, rbx
cmove rdx, rdi
mov dword [rsp + 0x60], edi
call fcn.140013010
test eax, eax
je 0x140014e84
test ebp, ebp
je 0x140014e98
cmp dword [rsp + 0x60], edi
jne 0x140014e98
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edx, eax
call fcn.1400134f0
test eax, eax
je 0x140014eb0
and r12d, 0xffffe0f7
xor edx, edx
mov rcx, rbx
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x140014ece
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
jmp 0x140014e41
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
Function at 0x140014f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rbx, rcx
xor ecx, ecx
mov ebp, r8d
mov r12d, edx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400150e1
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x140014fec
cmp ax, 0x2f
je 0x140014fec
movzx ecx, ax
call fcn.1400d021c
test eax, eax
je 0x1400150e1
cmp word [rbx + 2], 0x3a
jne 0x1400150e1
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x140014fec
cmp ax, 0x2f
jne 0x1400150e1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400150da
test al, 0x50
jne 0x1400150da
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001503d
lea ecx, [rax + 0x21]
jmp 0x1400150e6
mov rcx, rbx
call fcn.140012e50
test eax, eax
jne 0x1400150af
lea rdx, [rsp + 0x60]
test ebp, ebp
mov rcx, rbx
cmove rdx, rsi
mov dword [rsp + 0x60], esi
call fcn.140013010
test eax, eax
je 0x140015079
test ebp, ebp
je 0x1400150af
cmp dword [rsp + 0x60], esi
jne 0x1400150af
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov edx, eax
call fcn.1400134f0
test eax, eax
jne 0x1400150af
test rdi, rdi
je 0x1400150ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400150ef
mov r8d, r12d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rdi, rdi
je 0x1400150ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x1400150e6
mov ecx, 0x7e
jmp 0x1400150e6
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140016650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140016862
mov rcx, rdi
call fcn.140011fc0
test eax, eax
jne 0x140016862
mov rcx, rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
call fcn.1400163d0
mov rbp, rax
test rax, rax
je 0x14001676e
mov qword [rsp + 0x50], r12
call fcn.140012570
mov r12, rax
test rax, rax
je 0x14001675b
mov rcx, rbp
call fcn.140011fc0
test eax, eax
je 0x140016744
lea rax, str.system32_
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
mov rdx, qword [rbx]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdi, [rcx - 1]
mov rcx, rbp
call fcn.1400b82cc
test eax, eax
je 0x140016717
lea rax, [rsp + 0x30]
add rbx, 8
cmp rbx, rax
jb 0x1400166e1
jmp 0x140016727
lea rdx, [rbp + rdi*2]
mov rcx, r12
call fcn.140016020
mov rsi, rax
lea rax, [rsp + 0x30]
cmp rbx, rax
jne 0x140016752
mov rcx, rbp
call fcn.140012020
test eax, eax
je 0x140016752
mov rsi, rbp
xor ebp, ebp
jmp 0x140016752
mov rdx, rbp
mov rcx, r12
call fcn.140016020
mov rsi, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x50]
jmp 0x140016812
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140016837
mov rcx, rdi
call fcn.140014240
mov rbx, rax
test rax, rax
je 0x140016837
mov ecx, 0x37e4
call fcn.140013e30
test eax, eax
je 0x1400167b0
lea rcx, [0x14014bee0]
call fcn.140015ce0
mov rdi, rax
jmp 0x1400167b8
call fcn.140012570
mov rdi, rax
test rdi, rdi
je 0x140016809
mov rdx, rbx
mov rcx, rdi
call fcn.140016020
mov rsi, rax
test rax, rax
je 0x140016800
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400167e2
test al, 0x50
je 0x140016800
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400167f5
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x140016837
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001684a
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400186f0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbx, rcx
call fcn.1401020a0
lea esi, [rdi + rdi]
cmp dword [rbx + 0x1c], esi
jae 0x14001873f
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140018725
call fcn.14006dab8
and esi, 0xfffff000
lea eax, [rsi + 0x1000]
mov ecx, eax
mov dword [rbx + 0x1c], eax
call fcn.14006e344
mov qword [rbx + 0x10], rax
mov r8d, dword [rbx + 0x1c]
xor edx, edx
mov rcx, qword [rbx + 0x10]
call fcn.14009c0b0
xor esi, esi
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [rbx + 0x24], esi
cmp edi, 3
jb 0x1400187f0
mov r10d, dword [rbx + 0x24]
add r10, qword [rbx + 0x10]
mov edx, esi
add esi, 3
add rdx, qword [rbx + 8]
movzx eax, word [rdx]
movzx r11d, byte [rdx + 2]
movzx r8d, al
mov word [rsp + 0x30], ax
movzx edx, r11b
movzx ecx, byte [rsp + 0x31]
and r11b, 0x3f
shl al, 4
movzx r9d, cl
shr r9b, 4
or r9b, al
shr dl, 6
shr r8b, 2
and r9b, 0x3f
movzx eax, r8b
shl cl, 2
or dl, cl
and dl, 0x3f
movzx eax, byte [rax + rbp]
mov byte [r10], al
movzx eax, r9b
movzx eax, byte [rax + rbp]
mov byte [r10 + 1], al
movzx eax, dl
movzx eax, byte [rax + rbp]
mov byte [r10 + 2], al
movzx eax, r11b
movzx eax, byte [rax + rbp]
mov byte [r10 + 3], al
lea eax, [rsi + 3]
add dword [rbx + 0x24], 4
cmp eax, edi
jbe 0x140018763
cmp edi, esi
jbe 0x1400188b0
xor eax, eax
mov edx, esi
add rdx, qword [rbx + 8]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], eax
movzx eax, dil
sub al, sil
sub edi, esi
mov r8d, edi
mov byte [rsp + 0x34], al
call fcn.14009b9a0
mov r11d, dword [rbx + 0x24]
add r11, qword [rbx + 0x10]
movzx ecx, byte [rsp + 0x31]
movzx eax, byte [rsp + 0x30]
movzx r10d, cl
movzx r8d, byte [rsp + 0x32]
movzx r9d, al
shl al, 4
movzx edx, r8b
shr r10b, 4
and r8b, 0x3f
or r10b, al
shr dl, 6
shl cl, 2
and r10b, 0x3f
or dl, cl
shr r9b, 2
movzx ecx, byte [rsp + 0x34]
and dl, 0x3f
movzx eax, r9b
movzx eax, byte [rax + rbp]
mov byte [r11], al
movzx eax, r10b
movzx eax, byte [rax + rbp]
mov byte [r11 + 1], al
movzx eax, dl
movzx eax, byte [rax + rbp]
mov byte [r11 + 2], al
movzx eax, r8b
movzx eax, byte [rax + rbp]
mov byte [r11 + 3], al
sub ecx, 1
je 0x1400188a2
cmp ecx, 1
je 0x1400188a7
jmp 0x1400188ac
mov byte [r11 + 2], 0x3d
mov byte [r11 + 3], 0x3d
add dword [rbx + 0x24], 4
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b0c0
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x70
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbp, r9
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
xor edx, edx
lea r8d, [rdx + 0x5c]
call fcn.14009c0b0
mov dword [rdi], 0x67452301
mov dword [rdi + 4], 0xefcdab89
mov dword [rdi + 8], 0x98badcfe
mov dword [rdi + 0xc], 0x10325476
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.14001a1b0
mov rbx, qword [rsp + 0xa0]
cmp qword [rbx + 0x10], 0
je 0x14001b153
cmp qword [rbx + 0x18], 0x10
jb 0x14001b144
mov rdx, qword [rbx]
jmp 0x14001b147
mov rdx, rbx
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14001a1b0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14001af90
nop
xor edx, edx
lea r8d, [rdx + 0x5c]
mov rcx, rdi
call fcn.14009c0b0
mov dword [rdi], 0x67452301
mov dword [rdi + 4], 0xefcdab89
mov dword [rdi + 8], 0x98badcfe
mov dword [rdi + 0xc], 0x10325476
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.14001a1b0
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.14001a1b0
cmp qword [rbx + 0x10], 0
je 0x14001b1d9
cmp qword [rbx + 0x18], 0x10
jb 0x14001b1ca
mov rdx, qword [rbx]
jmp 0x14001b1cd
mov rdx, rbx
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14001a1b0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14001af90
nop
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14001d880
nop
mov rax, qword [rsp + 0x68]
cmp rax, 0x10
jb 0x14001b250
inc rax
mov rcx, qword [rsp + 0x50]
cmp rax, 0x1000
jb 0x14001b24b
test cl, 0x1f
je 0x14001b21e
call fcn.1400a5694
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001b22d
call fcn.1400a5694
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001b23c
call fcn.1400a5694
int3
cmp rcx, 0x27
jbe 0x14001b248
call fcn.1400a5694
int3
mov rcx, rax
call fcn.14006dab0
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], 0
mov byte [rsp + 0x50], 0
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x14001b2bf
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x14001b2ba
test cl, 0x1f
je 0x14001b28d
call fcn.1400a5694
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001b29c
call fcn.1400a5694
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001b2ab
call fcn.1400a5694
int3
cmp rcx, 0x27
jbe 0x14001b2b7
call fcn.1400a5694
int3
mov rcx, rax
call fcn.14006dab0
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
mov rcx, rbx
call fcn.14001b510
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14001fd30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14001fd63
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001fdaa
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14001fda5
nop
cmp rbx, rcx
jae 0x14001fdaa
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14001fd90
cmp rbx, rcx
jb 0x14001fdae
xor eax, eax
jmp 0x14001fdba
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400242e0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14017c0f0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140024341
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14002433b
shr ax, 8
cmp al, 2
jne 0x14002433b
call fcn.1400304b0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14006e6a0
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.14006e6a0
add rsp, 0x1d8
ret
Function at 0x140038cf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x14017c0f0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x739], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x140038e38
test rax, rax
je 0x140038e38
mov rdx, qword [rax + 0xd8]
test rdx, rdx
je 0x140038e38
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x140038d7b
sub ecx, 1
je 0x140038d6b
sub ecx, 1
je 0x140038d82
cmp ecx, 1
je 0x140038d72
jmp 0x140038e38
lea r9, str.Header
lea rax, [0x1401396c0]
jmp 0x140038d89
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.140046c80
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140038db2
cmp qword [rdi + 0x2b8], 0
je 0x140038e02
mov dl, 1
mov rcx, rdi
call fcn.1400270d0
mov rax, qword [rdi + 0x208]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x2b8]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400270d0
test ebx, ebx
je 0x140038e38
mov eax, ebx
jmp 0x140038e48
mov r9, qword [rdi + 0x200]
lea rcx, [0x1401395e8]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400a5db4
mov r9, qword [rdi + 0x200]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.1400a5db4
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.140039a50
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14006e6a0
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140039160
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 0x14003919b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
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 0x1400394f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor eax, eax
mov rdi, r9
cmp rdx, qword [rcx + 0x240]
mov rsi, r8
mov r14, rcx
sete al
mov edx, eax
mov rbx, qword [rcx + rdx*8 + 0x238]
call fcn.140039950
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x140039590
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140039564
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x14003959a
mov edx, ebx
mov rcx, r14
call fcn.140049d30
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140038e70
mov rax, qword [r14]
mov dword [rax + 0x4c94], ebx
mov eax, gethostname
jmp 0x140039592
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret