joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d6190
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d7270
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d6b92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d6c2a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d6c0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6c02
cmp qword [rbp - 0x10], 0
je 0x2fc4d6c02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6bc8
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d6c2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6d30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d6d58
mov eax, 0
jmp 0x2fc4d6da6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d6d81
mov eax, 0
jmp 0x2fc4d6da6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6da1
mov eax, 0
jmp 0x2fc4d6da6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d6dac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d6e2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6e21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d6e21
mov rax, qword [rbp - 8]
jmp 0x2fc4d6e3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d6df4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400018d4
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov dl, byte [rsp + 0x57]
or dl, 0xab
mov r8d, dword [rax + 0xc]
mov byte [rsp + 0x97], dl
mov r8d, r8d
mov r9d, r8d
mov r10, qword [rsp + 0x78]
add r10, r9
mov r8d, dword [rax + 0x14]
mov r9d, r8d
mov qword [rsp + 0x98], 0x71a31801
mov r11, qword [rsp + 0x70]
add r11, r9
mov r8d, dword [rax + 0x10]
mov r9, qword [rsp + 0x80]
xor r9, 0x12c531c9
mov qword [rsp + 0x30], rcx
and al, 0x30
mov rcx, r10
mov rdx, r11
and al, 0x50
add eax, 0x6fb292e7
mov dword [rsp + 0x8c], eax
mov r10b, byte [rsp + 0x57]
sub dl, r10b
mov r8, qword [rsp + 0x58]
mov r11w, word [r8 + 0x14]
mov byte [rsp + 0x97], dl
movzx eax, r11w
mov esi, eax
add r9, rsi
mov byte [rsp + 0x97], 0xc0
mov rsi, qword [rsp + 0x60]
xor rsi, 0xa8cd46e
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], r9
jmp 0x1400017c9

Function at 0x140001930
Capabilities:
Encode data using add xor sub operations

Disassembly:
push rdi
push rbx
push rsi
sub rsp, 0x30
xor eax, eax
mov dx, word [rsp + 0x2e]
mov r8w, dx
and r8w, 0xd091
mov word [rsp + 0x2e], r8w
mov byte [rsp + 0x2c], 0xfb
mov dword [rsp + 0x1c], 0x610a7231
mov qword [rsp + 0x10], rcx
mov dword [rsp + 0x10], ecx
mov word [rsp + 0xe], dx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
mov ecx, 0x610a7232
mov word [rsp + 0x2e], 0xdb0d
fisttp dword [rbx + 0x411c2454]
mov eax, eax
mov r9d, r8d
mov r10, qword [rsp + 0x10]
mov r11b, byte [r10 + r9]
mov bl, byte [rsp + 0x2d]
mov sil, 0x6f
mov dword [rsp + 4], eax
mov al, bl
mul sil
sub ecx, edx
mov bl, byte [rsp + 0x2c]
xor bl, 0xfb
mov byte [rsp + 0x2d], al
mov r9, qword [rsp + 0x20]
or r9, qword [rsp + 0x20]
mov qword [rsp + 0x20], r9
mov edx, dword [rsp + 4]
add edx, ecx
mov di, word [rsp + 0xe]
and di, 0x69a
mov word [rsp + 0x2e], di
cmp r11b, bl
mov dword [rsp + 8], edx
jne 0x140001969
mov eax, dword [rsp + 4]
add rsp, 0x30
pop rsi
pop rbx
pop rdi
ret

Function at 0x140001978
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rbx
push rsi
sub rsp, 0x30
xor eax, eax
mov dx, word [rsp + 0x2e]
mov r8w, dx
and r8w, 0xd091
mov word [rsp + 0x2e], r8w
mov byte [rsp + 0x2c], 0xfb
mov dword [rsp + 0x1c], 0x610a7231
mov qword [rsp + 0x10], rcx
mov dword [rsp + 0x10], ecx
mov word [rsp + 0xe], dx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
mov ecx, 0x610a7232
mov word [rsp + 0x2e], 0xdb0d
fisttp dword [rbx + 0x411c2454]
mov eax, eax
mov r9d, r8d
mov r10, qword [rsp + 0x10]
mov r11b, byte [r10 + r9]
mov bl, byte [rsp + 0x2d]
mov sil, 0x6f
mov dword [rsp + 4], eax
mov al, bl
mul sil
sub ecx, edx
mov bl, byte [rsp + 0x2c]
xor bl, 0xfb
mov byte [rsp + 0x2d], al
mov r9, qword [rsp + 0x20]
or r9, qword [rsp + 0x20]
mov qword [rsp + 0x20], r9
mov edx, dword [rsp + 4]
add edx, ecx
mov di, word [rsp + 0xe]
and di, 0x69a
mov word [rsp + 0x2e], di
cmp r11b, bl
mov dword [rsp + 8], edx
jne 0x140001969
mov eax, dword [rsp + 4]
add rsp, 0x30
pop rsi
pop rbx
pop rdi
ret
Function at 0x1400040c0
Capabilities:
Encode data using xor

Disassembly:
xor sil, 0xe8
mov byte [rsp + 0xde], sil
fiadd word [rax]
add byte [rax], al
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r10
mov byte [rsp + 0x37], bl
mov dword [rsp + 0x30], eax
mov byte [rsp + 0x2f], r8b
and al, 0x2f
call fcn.140004b00
mov r8b, byte [rsp + 0xdf]
add r8b, 3
mov bl, byte [rsp + 0x2f]
cmp r8b, bl
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x20], eax
ja 0x140003d9e
jmp 0x140003fea
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.140002d60
mov dl, byte [rsp + 0x37]
add dl, 0x53
mov byte [rsp + 0xf3], dl
mov r8d, dword [rax + 0x88]
mov dword [rsp + 0xf4], 0x5cf58132
mov r9w, word [rsp + 0xf0]
xor r9w, word [rsp + 0xf0]
mov r8d, r8d
mov eax, r8d
mov word [rsp + 0xf0], r9w
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov dl, byte [rsp + 0x37]
push rsp
and al, 0x37
mov byte [rsp + 0xf3], dl
or dl, dl
mov byte [rsp + 0xf3], dl
mov r9w, word [rsp + 0xf0]
xor r9w, 0xffff
mov r8d, dword [rsp + 0xe0]
xor r8d, 0x681dba67
mov r10d, dword [rax + 0x20]
mov word [rsp + 0xf0], r9w
mov r10d, r10d
mov eax, r10d
mov rcx, qword [rsp + 0x38]
and rcx, 0x27f7efa6
mov qword [rsp + 0xe8], rcx
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0xf4], 0x590f6a93
mulps xmm1, xmmword [rax + 1]
ror dword [rax - 0x77], 0x8c
and al, 0xb0
add byte [rax], al
add byte [rdx + 0x20372454], cl
ror byte [rax + 0xf32494], cl
add byte [rax], al
mov rax, qword [rsp + 0x70]
mov r9w, word [rsp + 0xf0]
add r9w, word [rsp + 0xf0]
add rax, 0x18
mov word [rsp + 0xf0], r9w
mov qword [rsp + 0xc0], rax
imul r9w, word [rsp + 0xf0], 0x1566
mov word [rsp + 0xf0], r9w
mov rax, qword [rsp + 0xc0]
mov r10d, dword [rax]
mov dword [rsp + 0xf4], 0xd9ca3649
mov qword [rsp + 0x68], 0
push 0
cmp r10d, r8d
je 0x140004171
jmp 0x140003d05

Function at 0x1400042d4
Capabilities:
Encode data using xor

Disassembly:
mov word [rsp + 0x7e], r10w
mov dword [rsp + 0x78], edx
mov qword [rsp + 0x70], r9
jmp 0x1400043cb
Function at 0x14000588c
Capabilities:
Encode data using xor

Disassembly:
mov ax, word [rsp + 0x6e]
and ax, word [rsp + 0x6e]
mov word [rsp + 0x6e], ax
mov ecx, dword [rsp + 0x44]
mov dword [rsp + 0x40], ecx
or byte [rcx + rcx*4 + 0x44], cl
and al, 0x60
sub al, dl
mov byte [rsp + 0x3f], cl
mov cl, byte [rsp + 0x3f]
mov dl, byte [rsp + 3]
sub dl, dl
mov byte [rsp + 0x5f], dl
cmp al, cl
jne 0x1400058b4
jmp 0x140005874
add rsp, 0x70
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x48]
xor rcx, 0x574846ec
mov rdx, qword [rsp + 0x30]
mov r8b, byte [rsp + 3]
mov byte [rsp + 0x5f], r8b
mov r9, qword [rsp + 8]
imul r10, r9, 0x1c3dab9c
add rdx, rcx
add rax, 0xffffffffa8b7b933
add eax, 0xa8b7b933
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x28], rdx
mov byte [rsp + 0x5f], 0xf6
cmp rdx, rax
je 0x1400058ac
lea rax, [0x140087950]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 8]
or rcx, 0x2848df32
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x30]
mov edx, dword [rax + rcx*4]
mov dword [rsp + 0x44], edx
mov edx, dword [rsp + 0x44]
mov rax, qword [rsp + 8]
or rax, rax
mov qword [rsp + 0x60], rax
mov r8d, dword [rsp + 0x1c]
cmp edx, r8d
jb 0x140005783
jmp 0x140005874
Function at 0x140013620
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a7700]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x140013651
xor eax, eax
jmp 0x1400137a0
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14001368e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x14001368e
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x1400137a0
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140013795
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400136d5
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400136ff
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x140013795
movzx edi, si
jmp 0x140013795
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], si
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140013755
sub eax, 1
je 0x140013755
cmp eax, 2
jne 0x140013795
movzx ecx, word [rsp + 0x50]
jmp 0x1400136e1
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140013783
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140013795
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne di, si
mov rbp, qword [rsp + 0xb0]
movzx eax, di
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140081120
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x140014440
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140014484
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140014470
ret
Function at 0x140015d90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a7700]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140015e65
cmp byte [rcx + 0x72], 0
je 0x140015e65
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + Ordinal_26]
cmp di, ax
je 0x140015e61
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140015e26
sub eax, 1
je 0x140015e2a
cmp eax, 2
jne 0x140015e61
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140081120
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140015e58
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140015e61
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140015e0e
xor al, al
jmp 0x140015e0e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140081120
add rsp, 0x60
pop rbx
ret
Function at 0x140021500
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1400215e3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400215e3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140021601
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x1400215d3
cmp word [rax], 0x5c
jne 0x1400215cc
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x1400215cc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400215b7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x1400215c9
test r8b, 0x10
jne 0x1400215cc
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x1400215cc
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001cb20
test edi, edi
jne 0x140021530
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14001cb10
int3
Function at 0x14002dd90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14002de72
call fcn.1400445e0
test al, al
jne 0x14002de72
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14002ddc2
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.14004e1f0
test rax, rax
je 0x14002de07
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.14004e1f0
mov rsi, rax
test rax, rax
je 0x14002de07
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14002de3b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400412f0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14002de20
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14003aca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa97], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14003ad6b
cmp qword [rcx + 0x260], 0
je 0x14003ad1e
mov qword [rsp + 0x40], rbx
call fcn.140028560
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1400288c0
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.1400288c0
mov rbx, qword [rsp + 0x40]
jmp 0x14003ad6b
mov ecx, esi
test edx, edx
je 0x14003ad2e
sub ecx, 1
je 0x14003ad2e
cmp ecx, 1
jne 0x14003ad6b
mov r9, qword [rdi + 0x1d0]
lea rax, [0x14008a830]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14003d600
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x14003d910
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14003d93a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14008ad10]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x14003d99e
mov rcx, rbx
test r14, r14
je 0x14003d988
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x14003d9d6
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003d9d6
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x14003da98
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x14003da00
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14003da8a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14003da8a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x14003da30
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x14003da44
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14003da60
mov rcx, rdi
test r14, r14
je 0x14003da81
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14003da87
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400820dc]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14003db00
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400a7700]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14003db66
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14003db49
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14003db43
shr ax, 8
cmp al, 2
je 0x14003db66
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140081120
add rsp, 0x1e8
ret
call fcn.1400723d0
test eax, eax
jne 0x14003dd7e
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14003dba6
mov qword [0x1400a86a8], rsi
jmp 0x14003dd3b
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExA
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x14008ad10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x14003dc0b
mov rcx, rbx
test rbp, rbp
je 0x14003dbfd
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14003dcfa
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x14003dcfa
test rbp, rbp
je 0x14003dc3a
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003dc3a
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14003dcfa
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x14003dcf2
lea ecx, [rax + 1]
add rcx, 0xc
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14003dce9
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14003dce9
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x14003dc90
mov edx, 0x5c
mov word [rax + rdi], dx
inc rcx
cmp byte [rdi + rcx], sil
jne 0x14003dca4
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x14003dcc0
mov rcx, rdi
test rbp, rbp
je 0x14003dce0
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14003dce6
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400820dc]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1400a86a8], rsi
test rsi, rsi
je 0x14003dd3b
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400a86a0]
test rax, rax
cmovne rcx, rax
mov qword [0x1400a86a0], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140071f80
test al, al
lea rcx, [0x1400a8df8]
setne byte [0x1400a8df0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140081120
add rsp, 0x1e8
ret