joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14020cf10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x14020d024
test r10, r10
je 0x14020d024
movzx eax, byte [rcx]
test r8d, r8d
jne 0x14020cf55
cmp al, 0x7f
jbe 0x14020d01d
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14020d02c
mov r11b, 0xff
cmp al, 0x80
jbe 0x14020cf6b
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14020d02c
jne 0x14020d01d
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x14020d00e
cmp rcx, 8
jb 0x14020d000
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax + rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
movd xmm1, dword [rax + rbx + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rax, rdx
jb 0x14020cfa0
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x14020d00e
nop
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x14020d000
neg edx
sbb r11b, r11b
movzx r11d, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x14020d02c
mov eax, 1
mov r10, rdx
mov qword [rsp + 0x10], rdi
test rsi, rsi
je 0x14020d085
mov rdi, qword [r9]
test rdi, rdi
je 0x14020d085
movzx r8d, r11b
lea r9, [rbx + r10]
and r8d, 1
mov byte [rdi], r11b
test r10, r10
je 0x14020d082
mov ebx, edx
add rbx, rdi
nop word [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x14020d060
add qword [rsi], rax
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
pop rsi
ret
Function at 0x14021eb90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.140358940
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.1401d5910
test eax, eax
je 0x14021ebcf
xor edx, edx
mov rcx, rbx
call fcn.1401d5d90
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x14021ec17
mov edx, ebp
mov rcx, rbx
call fcn.1401d6330
test rax, rax
je 0x14021ec7d
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x14021ec37
mov qword [r8], rcx
test rdi, rdi
jle 0x14021ec6e
sub r14, rax
nop
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x14021ec40
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x14021ec78
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret

Function at 0x140220500
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.140358940
sub rsp, rax
lea rcx, [0x14060f404]
add rsp, 0x28
jmp fcn.1401eb550

Function at 0x14024c2f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.140358940
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x14024c343
xor ecx, ecx
cmp rdx, r8
jb 0x14024c343
sub r8, r10
lea rax, [rcx + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rcx
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x14024c330
jmp 0x14024c356
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.140219480
test eax, eax
je 0x14024c387
cmp dword [rsp + 0x40], 0x10
jne 0x14024c387
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret
Function at 0x14024c530
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x14024c5b8
test r8, r8
je 0x14024c5b8
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x14024c576
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x14024c560
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x14024c5b8
sub r8, rax
cmp r8, 0x10
jbe 0x14024c58c
mov r8d, reloc.WS2_32.dll_recv
jmp 0x14024c591
test r8, r8
je 0x14024c5b8
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x14024c5a0
ret
Function at 0x140253050
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xd8
call fcn.140358940
sub rsp, rax
mov rax, qword [0x1406061c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, qword [rsp + 0x140]
xor r12d, r12d
mov rax, qword [rcx]
mov rbp, r9
movsxd rbx, r8d
mov rsi, rdx
mov qword [rsp + 0x20], r14
mov rdi, rcx
lea r15d, [r12 + 1]
mov r13d, r12d
test r9, r9
je 0x1402530bf
cmp r9, rax
je 0x1402530b7
test rdx, rdx
je 0x140253130
test r8d, r8d
js 0x140253130
mov r13d, r15d
mov qword [rcx], r9
jmp 0x1402530c7
test rax, rax
je 0x140253130
mov rbp, rax
mov rcx, rbp
call fcn.1401ccb80
test al, 2
jne 0x140253130
test rsi, rsi
je 0x140253198
mov rcx, rbp
mov r13d, r15d
call fcn.1401f6c90
cmp eax, 0x90
jg 0x140253130
cmp eax, ebx
jge 0x140253156
mov rcx, qword [rdi + 8]
mov r8, r14
mov rdx, rbp
call fcn.1401d9de0
test eax, eax
je 0x140253130
mov rcx, qword [rdi + 8]
mov r8, rbx
mov rdx, rsi
call fcn.1401da040
test eax, eax
je 0x140253130
mov rcx, qword [rdi + 8]
lea rsi, [rdi + 0x20]
mov r8, rsi
lea rdx, [rdi + 0x24]
call fcn.1401d9d00
test eax, eax
jne 0x140253173
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140358cc0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp ebx, 0x90
ja 0x140253130
mov r8, rbx
lea rcx, [rdi + 0x24]
mov rdx, rsi
call fcn.1403a05e0
lea rsi, [rdi + 0x20]
mov dword [rsi], ebx
mov ecx, dword [rsi]
cmp ecx, 0x90
je 0x1402531a1
mov eax, ecx
mov r8d, 0x90
sub r8d, ecx
xor edx, edx
lea rcx, [rdi + 0x24]
add rcx, rax
call fcn.1403a0c80
jmp 0x1402531a1
test r13d, r13d
je 0x140253276
lea r14, [rsp + 0x30]
mov esi, 0x48
sub r14, rdi
lea rbx, [rdi + 0x25]
lea r15, [rsp + 0x31]
mov rcx, rbx
sub r15, rdi
mov edx, esi
nop
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 2]
xor al, 0x36
mov byte [r14 + rcx - 0x27], al
movzx eax, byte [rcx - 2]
xor al, 0x36
mov byte [r15 + rcx - 0x27], al
sub rdx, 1
jne 0x1402531c0
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x10]
call fcn.1401d9de0
test eax, eax
je 0x140253289
mov rcx, rbp
call fcn.1401f6c90
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.1401da040
test eax, eax
je 0x140253289
nop word [rax + rax]
movzx eax, byte [rbx - 1]
lea rbx, [rbx + 2]
xor al, 0x5c
mov byte [rbx + r14 - 0x27], al
movzx eax, byte [rbx - 2]
xor al, 0x5c
mov byte [rbx + r15 - 0x27], al
sub rsi, 1
jne 0x140253220
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x18]
call fcn.1401d9de0
test eax, eax
je 0x140253289
mov rcx, rbp
call fcn.1401f6c90
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.1401da040
test eax, eax
je 0x140253289
lea r15d, [rsi + 1]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call fcn.1401da0b0
test eax, eax
cmovne r12d, r15d
test r13d, r13d
je 0x14025329d
mov edx, 0x90
lea rcx, [rsp + 0x30]
call fcn.140001240
mov eax, r12d
jmp 0x140253132
Function at 0x14029a1d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.140358940
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x14029a1f9
lea rax, [0x140298840]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.140291780
lea rax, [0x140297a00]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1402914d0
Function at 0x140306dd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov r12d, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2e0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1402f6570
mov dword [rsp + 0x20], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x140306e28
xor eax, eax
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rbp
mov ebp, dword [rbx + 0x40]
mov qword [rsp + 0x48], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x30]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x3c]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x38]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x34]
mov dword [rsp + 0x78], eax
test r12d, r12d
jg 0x140306e7a
mov ebx, 0x4b0000
jmp 0x140306e8a
shl r12d, 0x10
mov edx, ecx
mov ecx, r12d
call fcn.1402f8870
mov ebx, eax
bsr ecx, ebx
bsr eax, edi
add eax, ecx
cmp eax, 0x2e
jl 0x140306e9f
mov ecx, r14d
shl ecx, 0x10
jmp 0x140306eaa
mov edx, edi
mov ecx, ebx
call fcn.1402f8870
mov ecx, eax
mov r8d, dword [rsp + 0x88]
mov eax, r8d
shl eax, 0x10
cmp ecx, eax
jge 0x140306ec6
shl esi, 0x10
mov ecx, esi
jmp 0x140306f97
mov edx, dword [rsp + 0x70]
mov r12d, edx
shl r12d, 0x10
cmp ecx, r12d
jge 0x140306f04
mov ecx, edx
mov edx, edi
sub ecx, r8d
mov dword [rsp + 0x88], ecx
mov ecx, eax
call fcn.1402f6570
mov r8d, dword [rsp + 0x88]
mov ecx, ebx
sub ecx, eax
test r8d, r8d
je 0x140306f54
sub r13d, esi
mov edx, r13d
jmp 0x140306f3d
mov eax, r15d
shl eax, 0x10
cmp ecx, eax
jl 0x140306f58
mov eax, r14d
shl eax, 0x10
cmp ecx, eax
jge 0x140306f92
sub r14d, r15d
mov edx, edi
shl r15d, 0x10
mov ecx, r15d
call fcn.1402f6570
sub ebx, eax
test r14d, r14d
je 0x140306f92
mov esi, dword [rsp + 0x78]
mov r8d, r14d
sub ebp, esi
mov ecx, ebx
mov edx, ebp
call fcn.1402f87c0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1402f6570
add ebx, eax
jmp 0x140306fa0
mov edx, dword [rsp + 0x70]
mov esi, r15d
mov ecx, r12d
sub esi, edx
mov edx, edi
call fcn.1402f6570
mov ecx, ebx
sub ecx, eax
test esi, esi
je 0x140306f18
mov edx, dword [rsp + 0x78]
mov r8d, esi
sub edx, r13d
call fcn.1402f87c0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1402f6570
add ebx, eax
jmp 0x140306fa0
shl ebp, 0x10
mov ecx, ebp
mov edx, edi
call fcn.1402f6570
mov ebx, eax
mov edx, dword [rsp + 0x20]
mov ecx, ebx
call fcn.1402f6570
mov r15, qword [rsp + 0x30]
add eax, 0x8000
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
shr eax, 0x10
cwde
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
Function at 0x14033e550
Capabilities:
Encrypt data using rc4 prga

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 rax, qword [rcx + 0x20]
xor esi, esi
sub rax, 0x34
mov qword [rcx + 0x78], rsi
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], si
mov r10d, esi
mov dword [rcx + 0x3c], esi
mov ebp, esi
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], si
cmp si, word [rcx + 0xb8]
jge 0x14033e692
mov edi, esi
nop dword [rax]
mov rax, qword [rbx + 0xd0]
mov r9d, r14d
mov dword [rbx + 0x88], esi
movzx edx, r10w
mov qword [rbx + 0x80], rsi
mov rcx, rbx
movzx r8d, word [rdi + rax]
call fcn.14033e980
test al, al
jne 0x14033e6c4
mov rax, qword [rbx + 0xd0]
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
movzx r10d, word [rdi + rax]
inc r10d
lea eax, [r8 - 1]
test edx, eax
jne 0x14033e62a
cmp edx, dword [rbx + 0x60]
jl 0x14033e62a
cmp edx, dword [rbx + 0x64]
jg 0x14033e62a
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x14033e62a
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rax + 0x18]
xor cl, byte [r9 + 0x18]
test cl, 8
jne 0x14033e62a
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x14033e64d
test byte [r9 + 0x18], 8
je 0x14033e64d
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x14033e65e
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.14033f3d0
test al, al
jne 0x14033e6c4
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x14033e67d
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc ebp
add rdi, 2
cmp ebp, eax
jl 0x14033e5b0
mov rcx, rbx
call fcn.14033f470
test al, al
jne 0x14033e6c4
mov rcx, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rcx
setae al
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 al, 1
jmp 0x14033e6a9
Function at 0x1403560f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x140459200]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14035612a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14035612f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140356178
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140356178
dec r8
sub rdx, 1
jne 0x14035615e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14035944c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140359496
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140359496
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140359496
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140359496
cmp dword [rcx + 0x84], 0xe
jbe 0x140359496
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140359498
xor al, al
add rsp, 0x28
ret
Function at 0x140369534
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140358940
sub rsp, rax
mov rax, qword [0x1406061c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140382f08
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140369583
mov rax, rbp
jmp 0x14036968b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x611260]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140382810
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x611260]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140369687
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140369687
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140382810
test rax, rax
js 0x140369687
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140369687
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140369679
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140369679
cmp byte [rcx], 0xd
jne 0x14036965f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14036966e
cmp byte [rcx + 1], 0xa
jne 0x14036966e
inc rcx
jmp 0x14036966e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x606450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140369641
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14036968b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140358cc0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140379cdc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140379d4b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140379d4b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140379d4b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140379d4b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140379d4b
cmp dword [rcx + 0x84], 0xe
jbe 0x140379d4b
cmp dword [rcx + 0xf8], 0
je 0x140379d4b
mov ecx, ebx
call fcn.140379dfc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140379bd8
nop
cmp dword [rbp + 0x20], 0
je 0x140379d99
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140379da4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140379cdc
Function at 0x140379ee0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140379d4b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140379d4b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140379d4b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140379d4b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140379d4b
cmp dword [rcx + 0x84], 0xe
jbe 0x140379d4b
cmp dword [rcx + 0xf8], 0
je 0x140379d4b
mov ecx, ebx
call fcn.140379dfc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140379bd8
nop
cmp dword [rbp + 0x20], 0
je 0x140379d99
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140379da4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140379cdc

Function at 0x14037d360
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14037d397
call fcn.140379bb8
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140367f64
xor eax, eax
jmp 0x14037d425
mov rdx, r9
mov rcx, r8
call fcn.14037d2fc
mov rbx, rax
test rax, rax
je 0x14037d422
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14037d228]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14037d40f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140379b2c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14037d3f6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14037d405
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14038bcf4
jmp 0x14037d422
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14037d41f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14038145c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1406061c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140461410]
mov rbp, rcx
call fcn.140393d8c
xor edi, edi
test rax, rax
je 0x140381542
mov ebx, edi
call fcn.140379bb8
mov r14d, dword [rax]
call fcn.140379bb8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140393cd8
mov rsi, rax
test rax, rax
je 0x1403814d3
call fcn.140379bb8
mov dword [rax], r14d
jmp 0x1403814fd
call fcn.140379bb8
cmp dword [rax], 0x22
jne 0x14038153a
call fcn.140379bb8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140393cd8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14038153a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140381501
cmp rax, 3
je 0x14038151c
mov rcx, rsi
call fcn.1403813b8
test al, al
je 0x14038152d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14038152d
mov dil, 1
mov rcx, rbx
call fcn.140374ab0
mov al, dil
jmp 0x140381544
mov rcx, rbx
call fcn.140374ab0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140358cc0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140388e60
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140611260]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140388eb7
cmp word [rdx], r13w
jne 0x140388eb7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140388ebc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140388fe1
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140389002
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140388ef5
mov rdx, r9
mov word [rbx], cx
jmp 0x140388f1c
cmp r9, r8
jae 0x140388f2c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140388ed6
jmp 0x140388fe1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140388fd6
cmp dword [rsp + 0x80], esi
je 0x140388fd6
lea r8, [0x140611260]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140388fae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140388f7e
mov word [rbx], r13w
jmp 0x140388fde
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140388f8b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140388fde
cmp word [rsp + 0x70], r13w
jne 0x140388fbb
cmp rbx, r14
je 0x140388f78
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140382818
cmp word [rsp + 0x70], r13w
je 0x140388fe1
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140611260]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140388fdb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140388fe1