joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400da490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400da4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400bcaa0
jmp 0x14000123c
mov rax, qword [0x1400da4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400da4a0]
mov dword [rax], 1
mov rax, qword [0x1400da4e0]
mov rdx, rax
mov rax, qword [0x1400da4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1400de024], 1
mov rax, qword [0x1400da4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400da4c0]
mov rdx, rax
mov rax, qword [0x1400da4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400da4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400da490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400da3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400da3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400bbd28
mov rax, qword [0x1400da520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400da480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400bb520
mov eax, dword [0x1400de004]
lea rdx, [0x1400de008]
mov ecx, eax
call fcn.14000147c
call fcn.1400bb2b7
mov rax, qword [0x1400da410]
mov rax, qword [rax]
mov rdx, qword [0x1400de010]
mov qword [rax], rdx
mov rcx, qword [0x1400de010]
mov rdx, qword [0x1400de008]
mov eax, dword [0x1400de004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x1400de01c], eax
mov eax, dword [0x1400de020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400de01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1400de024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400de01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400da440]
mov dword [rax], 1
mov rax, qword [0x1400da450]
mov dword [rax], 1
mov rax, qword [0x1400da460]
mov dword [rax], 1
mov rax, qword [0x1400da400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400bb530
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.1400bc890
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400bc202
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400de168]
test eax, eax
je 0x1400bc29a
lea rax, [0x1400de140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400de170]
mov qword [rbp - 8], rax
jmp 0x1400bc27e
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 0x1400bc272
cmp qword [rbp - 0x10], 0
je 0x1400bc272
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 0x1400bc238
lea rax, [0x1400de140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400bc29b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400bc3a0
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 0x1400bc3c8
mov eax, 0
jmp 0x1400bc416
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 0x1400bc3f1
mov eax, 0
jmp 0x1400bc416
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 0x1400bc411
mov eax, 0
jmp 0x1400bc416
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400bc41c
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 0x1400bc49a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400bc491
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 0x1400bc491
mov rax, qword [rbp - 8]
jmp 0x1400bc4af
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 0x1400bc464
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140023ba0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140023bad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140023bbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140023ba5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140023bd5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140023bc2
sub eax, 3
jb 0x140023bef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140023c26
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140023c16
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140023c14
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140023c03
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140023b62
jmp 0x140023bad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xee00
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140023c72
cmp rsi, rcx
jae 0x140023c7a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140023c59
cmp al, 0x8f
ja 0x140023c59
cmp byte [rsi - 2], 0xf
je 0x140023c5f
sub al, 0xe8
cmp al, 1
ja 0x140023c43
cmp rsi, rcx
jae 0x140023c7a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140023c49
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140023c7a
lodsb al, byte [rsi]
jmp 0x140023c59
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x21000]
mov eax, dword [rdi]
or eax, eax
je 0x140023cd7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2414c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140023c87
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140023cd1
mov qword [rbx], rax
add rbx, 8
jmp 0x140023ca7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140023d11
cmp al, 0xef
ja 0x140023d03
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140023ce3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140023cf2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140023d65
sub rsp, 0xffffffffffffff80
jmp 0x140002700
Function at 0x180925058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1809251df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180925089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18092506f
add dl, dl
jne 0x180925096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809250f6
xor eax, eax
add dl, dl
jne 0x1809250a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809251ad
add dl, dl
jne 0x1809250b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809250c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809250d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809250dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809250ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18092507e
mov eax, 1
add dl, dl
jne 0x180925106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180925113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809250fb
sub eax, ebx
mov ebx, 1
jne 0x18092514c
mov ecx, 1
add dl, dl
jne 0x18092512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18092513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180925123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18092507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180925168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180925175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18092515d
cmp eax, 0x7d00
jae 0x18092519b
cmp eax, 0x500
jb 0x180925196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18092507e
cmp eax, 0x7f
ja 0x18092519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18092507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809251d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18092507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400016a0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000f948]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400016e0
mov eax, 0xff
jmp 0x140001883
mov r9d, dword [rsp + 0x3c]
and r9d, 0x7fff
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov r8d, dword [rsp + 0x40]
mov dword [0x140010048], r8d
mov dword [0x140010050], ecx
mov dword [0x140010054], edx
mov dword [0x140010058], eax
mov eax, r9d
bts eax, 0xf
cmp r8d, 2
cmove eax, r9d
mov dword [0x14001004c], eax
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140001776
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001776
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140001776
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x140001778
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x140001778
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.140003dc8
test eax, eax
jne 0x1400017ae
cmp dword [0x140010028], 2
je 0x14000179a
call fcn.140003bb0
mov ecx, 0x1c
call fcn.140003bfc
mov ecx, 0xff
call fcn.1400037e0
call fcn.1400036c0
test eax, eax
jne 0x1400017da
cmp dword [0x140010028], 2
je 0x1400017c5
call fcn.140003bb0
mov ecx, 0x10
call fcn.140003bfc
mov ecx, 0xff
call fcn.1400037e0
nop
call fcn.140003e3c
test eax, eax
jns 0x1400017ed
mov ecx, 0x1b
call fcn.1400037fc
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x140012138], rax
call fcn.14000463c
mov qword [0x140010020], rax
call fcn.1400040cc
test eax, eax
jns 0x140001818
mov ecx, 8
call fcn.1400037fc
call fcn.140004400
test eax, eax
jns 0x14000182b
mov ecx, 9
call fcn.1400037fc
mov ecx, edi
call fcn.140003860
test eax, eax
je 0x14000183d
mov ecx, eax
call fcn.1400037fc
mov r8, qword [0x140010038]
mov qword [0x140010068], r8
mov rdx, qword [0x140010030]
mov ecx, dword [0x14001002c]
call fcn.140001200
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
je 0x1400018a4
call fcn.14000384c
jmp 0x140001881
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400a2000
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
mov ecx, eax
call fcn.140003ba0
nop
mov ecx, eax
call fcn.140003770
nop
int3
sub rsp, 0x28
call fcn.140004560
add rsp, 0x28
jmp 0x1400016a0
Function at 0x1408c39d0
Capabilities:
Encode data using xor

Disassembly:
cld
pop r11
jmp 0x1408c39dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1408c39ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1408c39d5
lea eax, [rcx + 1]
jmp 0x1408c39fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1408c3a0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1408c39f4
sub eax, 3
jb 0x1408c3a32
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1408c3a81
sar eax, 1
movsxd rbp, eax
jb 0x1408c3a68
jmp 0x1408c3a40
add ebx, ebx
jne 0x1408c3a3e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408c3a68
inc ecx
add ebx, ebx
jne 0x1408c3a4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1408c3a68
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1408c3a61
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1408c3a50
add ecx, 2
jmp 0x1408c3a6d
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140957000
jmp 0x1408c39dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
lea rcx, [0xf60b2]
lea rbx, [0x25d9178e]
mov rax, rbx
shr rax, 0x10
lea rdi, [rsi + rax]
lea rax, [rsi]
add rcx, rax
mov al, byte [rdi]
xor al, bl
add bl, bh
mov byte [rdi], al
inc rdi
cmp rdi, rcx
jne 0x1408c3aa7
sub rsp, 0x28
lea rdi, [rsi + 0x8b2000]
mov eax, dword [rdi]
or eax, eax
je 0x1408c3b12
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8c8e98]
add rbx, rsi
add rdi, 8
call qword [rsi + 0x8c9078]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1408c3ac2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [rsi + 0x8c9080]
or rax, rax
je 0x1408c3b0c
mov qword [rbx], rax
add rbx, 8
jmp 0x1408c3ae2
jmp qword [rsi + 0x8c90a0]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1408c3b56
cmp al, 0xef
ja 0x1408c3b3e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1408c3b1e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1408c3b2d
mov eax, dword [rdi]
add rdi, 4
jmp 0x1408c3b2d
mov rbp, qword [rsi + 0x8c9088]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1408c3baa
sub rsp, 0xffffffffffffff80
jmp 0x1400e10a8
Function at 0x409dd0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
mov eax, dword [rdx + 0x150]
mov rbp, r9
mov rbx, rdx
mov rsi, r8
lea rdx, [0x0044c8ad]
mov rdi, rcx
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov r9d, dword [r8]
lea r8, str.send__d_mess_len__stream_type_d
call fcn.00406ca0
cmp dword [rbx + 0x150], 1
jne 0x409f31
mov edx, dword [rbx + 0x12d0]
cmp edx, 1
jbe 0x409f3a
cmp edx, 3
mov eax, 0xffffffff
ja 0x409f54
mov dword [rsp + 0x4b], 0
mov byte [rsp + 0x4f], 0
mov eax, 0x1a
mov r12d, 0x12
je 0x409fca
test byte [rbx + 0x1330], 1
je 0x409f95
mov edx, dword [rsi]
mov r12d, eax
mov ecx, r12d
call fcn.00447d10
cmp rax, 0x1000
ja 0x40a006
mov r9d, dword [rsi]
lea r14, [rsp + 0x50]
lea r8, [rsp + 0x4b]
mov edx, r12d
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov rcx, r14
mov dword [rsp + 0x60], 0
call fcn.00447eb0
lea rcx, [rsp + 0x30]
mov r8d, eax
mov rdx, r14
mov r13, rax
call fcn.00410be0
mov r12, qword [rsp + 0x30]
mov edx, dword [rbx + 0x150]
lea r8, str.ws_send__d_mess_len__stream_type_d
xor ecx, ecx
mov r14, qword [rsp + 0x38]
movsxd rax, r12d
mov dword [rsp + 0x20], edx
lea rdx, [0x0044c8ad]
lea r9, [rax + r13]
call fcn.00406ca0
mov rdx, qword [rsi + 8]
mov rax, qword [rsi]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rbp
mov r9d, 2
mov rcx, rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x88], rdx
lea rdx, [rbx + 8]
mov qword [rsp + 0x80], rax
call fcn.0042fe30
jmp 0x409f54
test byte [rbx + 0x1338], 2
jne 0x409f70
lea rdx, [rbx + 8]
mov qword [rsp + 0x20], rbp
mov r9d, 1
mov r8, rsi
mov rcx, rdi
call fcn.0042fe30
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, dword [rsi]
test edx, edx
je 0x409f3a
xor eax, eax
nop dword [rax + rax]
mov rcx, rax
add rcx, qword [rsi + 8]
add rax, 1
xor byte [rcx], 0x44
cmp rax, rdx
jne 0x409f80
jmp 0x409f3a
test byte [rbx + 0x1338], 2
mov edx, dword [rsi]
je 0x409e69
test edx, edx
je 0x409e69
mov ecx, edx
xor eax, eax
mov rdx, rax
add rdx, qword [rsi + 8]
add rax, 1
xor byte [rdx], 0x44
cmp rcx, rax
jne 0x409fb0
mov edx, dword [rsi]
jmp 0x409e69
lea r12, [rsp + 0x4b]
mov edx, 4
mov rcx, r12
call fcn.0040b6d0
mov rcx, qword [rsi + 8]
mov r8d, dword [rsi]
mov r9, r12
mov dword [rsp + 0x20], 0
mov r12d, 0x32
mov rdx, rcx
call fcn.00447cd0
mov eax, 0x3a
jmp 0x409e57
lea r8, str.ws_send__d_mess_len__too_long
lea rdx, [0x0044c8ad]
mov r9, rax
mov ecx, 2
call fcn.00406ca0
mov eax, 0xffffffff
jmp 0x409f54
Function at 0x413830
Capabilities:
Set socket configuration

Disassembly:
cmp dword [rcx + 0x10], 0xc
mov r9d, r8d
jne 0x413860
test byte [rcx + 0x58], 3
jne 0x413860
movzx eax, word [rdx]
cmp ax, 2
je 0x413870
cmp ax, 0x17
jne 0x413860
mov r8d, 0x1c
jmp 0x433780
mov eax, 0xfffff019
ret
mov r8d, 0x10
jmp 0x433780
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbx, rcx
mov rcx, qword [rcx + 0x110]
mov rdi, rdx
mov ebp, r8d
mov r12d, r9d
cmp rcx, 0xffffffffffffffff
je 0x4337e0
cmp word [rdi], 0x17
je 0x433870
mov r8d, ebp
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4338a3
or dword [rbx + 0x58], 0x2000
xor esi, esi
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
test r9b, 1
movzx ecx, word [rdx]
je 0x433810
cmp cx, 0x17
mov esi, 0x57
je 0x433810
mov ecx, esi
call fcn.00416500
mov esi, eax
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x4338d0
movzx eax, word [rdi]
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0x58]
lea r8, [rbx + 0x110]
mov dword [rsp + 0x28], 0
mov r9, r13
mov dword [rsp + 0x20], eax
call fcn.00430620
test eax, eax
mov esi, eax
jne 0x4338e0
mov rcx, qword [rbx + 0x110]
jmp 0x4337a5
and r12d, 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x3c], r12d
mov r8d, 0x1b
mov edx, 0x29
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
jmp 0x4337af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
mov esi, eax
je 0x4338c0
test esi, esi
jne 0x4337f4
jmp 0x4337cd
mov dword [rbx + 0x118], 0x2740
jmp 0x4337c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x4338b2
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4337f4

Function at 0x4170d0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x48]
lea rcx, [0x006e2400]
mov dword [0x004593e0], eax
call fcn.0042b1f0
test eax, eax
jne 0x41712f
lea rdx, [0x00459400]
lea rax, [0x0045a400]
lea rcx, [0x006e2400]
nop
mov qword [rdx + 8], rax
add rax, 0x2880
mov qword [rdx], 0
add rdx, 0x10
cmp rax, rcx
jne 0x417110
add rsp, 0x58
ret
lea rdx, str.uv_mutex_init
mov ecx, eax
call fcn.00416440
nop
nop
Function at 0x41bcb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rdi, qword [rcx + 0x150]
mov rbx, rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x41bd11
mov qword [rbx + 0x88], 0xfffffffffffff02c
mov dword [rbx + 0x14c], 0x10b
xor esi, esi
mov rcx, rsi
call fcn.00410a10
xor ecx, ecx
call fcn.00410a10
mov qword [rbx + 0x90], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, 0x290
call fcn.004109f0
test rax, rax
mov rsi, rax
je 0x41bdd0
mov rcx, rdi
lea r13, [0x0044e516]
call sub.msvcrt.dll_wcslen
test rax, rax
mov rbp, rax
je 0x41bd5e
movzx eax, word [rdi + rax*2 - 2]
cmp ax, 0x5c
je 0x41bdf0
cmp ax, 0x2f
lea r13, str._s
je 0x41bdf0
lea rcx, [rbp + rbp + 8]
call fcn.004109f0
test rax, rax
mov r12, rax
je 0x41bdd0
mov r9, rdi
mov r8, r13
lea rdx, [rbp + 3]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__snwprintf]
lea rdx, [rsi + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, r12
mov qword [rsi + 0x30], rax
call fcn.00410a10
cmp qword [rsi + 0x30], 0xffffffffffffffff
je 0x41be00
mov dword [rsi + 0x288], 0
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x88], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [rbx + 0x88], 0xfffffffffffff027
mov dword [rbx + 0x14c], 0xe
jmp 0x41bcea
lea r13, [0x0044e51e]
jmp 0x41bd5e
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
cmp eax, 2
je 0x41bda3
call rdi
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.00416500
cdqe
mov qword [rbx + 0x88], rax
jmp 0x41bcea