joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400aa080
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x10], 0
je 0x1400aa0b8
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0xab8], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400aa1d0
cmp byte [rcx + 0xf0e], 0
je 0x1400aa0d0
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400aabc0
cmp byte [rcx + 0xf11], 0
je 0x1400aa171
mov r8, qword [rbx + 0xa88]
test r8, r8
jne 0x1400aa12b
mov r8, qword [rcx + 0xc08]
test r8, r8
jne 0x1400aa10e
cmp byte [rcx + 0xf0d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0xa00]
lea rdx, str.PRET__s
call fcn.1400c08c0
test eax, eax
je 0x1400aa161
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xf1d], 0
lea rcx, [rbx + 0xa00]
je 0x1400aa151
lea rdx, str.PRET_STOR__s
call fcn.1400c08c0
test eax, eax
je 0x1400aa161
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.1400c08c0
test eax, eax
jne 0x1400aa17e
mov dword [rbx + 0xab8], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400aab30
add rsp, 0x20
pop rbx
ret

Function at 0x1400aa4c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x10], 0
je 0x1400aa50d
cmp qword [rcx + 0xa88], 0
je 0x1400aa50d
add rcx, 0xa00
lea rdx, str.REST__d
xor r8d, r8d
call fcn.1400c08c0
test eax, eax
jne 0x1400aa517
mov dword [rbx + 0xab8], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400aa080
add rsp, 0x20
pop rbx
ret

Function at 0x1400aa6a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0xa00
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x10], 1
jne 0x1400aa6ec
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400aa6ec
lea rdx, str.SIZE__s
call fcn.1400c08c0
test eax, eax
jne 0x1400aa6f9
mov dword [rbx + 0xab8], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400aa4c0
add rsp, 0x20
pop rbx
ret

Function at 0x1400aa700
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xf1c], 0
je 0x1400aa758
cmp qword [rcx + 0xa88], 0
je 0x1400aa758
cmp byte [r9 + 0xf0b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0xaa8]
cmp eax, edx
je 0x1400aa758
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x10], 1
movzx edx, byte [r9 + 0xf0b]
jmp fcn.1400a8fa0
jmp fcn.1400aa6a0
Function at 0x1400aa760
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x1400aa795
lea rdx, str.Couldnt_set_desired_mode
call fcn.14008ca80
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400aa7ac
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14008cc00
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400aa7c8
mov rcx, rdi
call fcn.1400aa6a0
jmp 0x1400aa8ff
cmp esi, 0x14
jne 0x1400aa8e1
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x1400aa849
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400aa849
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.140076390
test eax, eax
jne 0x1400aa8ff
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400aa83e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400aa849
mov rcx, qword [rsp + 0x50]
call qword [str.zo_f_]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x1400aa86d
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400d9e7a]
test rbp, rbp
mov r9, r8
lea rax, [0x1400e3684]
cmovne r9, rbp
lea rcx, [0x1400cf698]
cmovne r8, rax
call fcn.14007b400
mov rcx, rbp
mov r14, rax
call qword [str.zo_f_]
test r14, r14
jne 0x1400aa8ac
lea ebx, [r14 + 0x1b]
jmp 0x1400aa901
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x1400de8b0]
call fcn.1400c08c0
mov rcx, r14
mov esi, eax
call qword [str.zo_f_]
test esi, esi
je 0x1400aa8d5
mov ebx, esi
jmp 0x1400aa901
mov dword [rdi + 0xab8], 0x1f
jmp 0x1400aa901
cmp esi, 0x15
jne 0x1400aa8ec
lea r8d, [rsi - 8]
jmp 0x1400aa8f5
cmp esi, 0x16
jne 0x1400aa901
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400aa1d0
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400b01f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400b0314
cmp r8d, 0xff
jne 0x1400b0251
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400b023b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xd59c0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14008cc00
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14008cc00
cmp r8d, 0xfb
jne 0x1400b0263
lea r9, str.WILL
jmp 0x1400b02a1
cmp r8d, 0xfc
jne 0x1400b0275
lea r9, str.WONT
jmp 0x1400b02a1
cmp r8d, 0xfd
jne 0x1400b0287
lea r9, [0x1400d63e4]
jmp 0x1400b02a1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400b02fd
cmp r10d, 0x27
jg 0x1400b02d4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xd5fe0]
test r8, r8
jne 0x1400b02e4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14008cc00
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400b02bb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14008cc00
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14008cc00
add rsp, 0x38
ret

Function at 0x1400b0660
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b06bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14008ca80
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400b01f0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b0870
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400b0a18
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400b08d5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400b08d5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400b08d5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400b090c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400b0962
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b0962
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b0962
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b0962
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400b0962
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400b0320
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400b09c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14008ca80
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400b06f0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400b0a10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14008ca80
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b2180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400fb080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400b2215
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400b2276
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14008ca80
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400c6390
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400b2331
sub ecx, 1
je 0x1400b23a4
sub ecx, 1
je 0x1400b22e0
cmp ecx, 1
je 0x1400b22c3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400de8b0]
call fcn.14008ca80
jmp 0x1400b23a4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400b1eb0
test eax, eax
je 0x1400b23a4
jmp 0x1400b224a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400b23a4
sub rax, rsi
cmp rax, rbp
jae 0x1400b23a4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14008cc00
jmp 0x1400b23a4
cmp r8d, 4
jle 0x1400b23a4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400b23a4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14008c9a0
mov esi, eax
test eax, eax
je 0x1400b2383
mov edx, 5
mov rcx, rbx
call fcn.1400b2e70
mov eax, esi
jmp 0x1400b224a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14009b2a0
mov rcx, r14
call fcn.14009b580
test eax, eax
je 0x1400b2248
mov edx, 5
mov rcx, rbx
call fcn.1400b2e70
mov eax, Ordinal_45
jmp 0x1400b224a
Function at 0x1400c5140
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c5182
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c51c9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c5222
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400c51e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c5263
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d958a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d958b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c5230
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400c5288
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, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400c52c2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400c52c7
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 0x1400c5310
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 0x1400c5310
dec r8
sub rdx, 1
jne 0x1400c52f6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400c6bf8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c6c42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c6c42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c6c42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c6c42
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c6c42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c6c44
xor al, al
add rsp, 0x28
ret
Function at 0x10000d720
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x1000786a0], ecx
xor eax, eax
add eax, 1
lea rdx, [0x1000786a0]
movsxd rcx, eax
mov r8d, dword [rdx + rcx*4 - 4]
mov ecx, r8d
shr ecx, 0x1e
xor ecx, r8d
imul ecx, ecx, 0x6c078965
mov r8d, eax
add r8d, ecx
mov ecx, eax
mov dword [rdx + rcx*4], r8d
cmp eax, 0x26f
jl 0x10000d728
mov dword [0x100051b00], 0x270
ret

Function at 0x10000d770
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0xffffffff
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x1000786a0]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x1000786a0]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x1000786a0]
xor edx, dword [r8 + rcx*4 + 0x634]
mov ecx, eax
lea r8, [0x1000786a0]
mov dword [r8 + rcx*4], edx
cmp eax, 0xe2
jl 0x10000d778
mov eax, 0xe2
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x1000786a0]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x1000786a0]
mov r8d, dword [r8 + rdx*4]
mov edx, ecx
and edx, 1
neg rdx
and edx, 0x9908b0df
and r8d, 0x80000000
and ecx, 0x7fffffff
or r8d, ecx
shr r8d, 1
xor edx, r8d
movsxd rcx, eax
lea r8, [0x1000786a0]
xor edx, dword [r8 + rcx*4 - 0x38c]
mov ecx, eax
lea r8, [0x1000786a0]
mov dword [r8 + rcx*4], edx
cmp eax, 0x26e
jl 0x10000d7e8
mov edx, dword [0x1000786a0]
mov ecx, dword [0x10007905c]
mov eax, edx
and eax, 1
neg rax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x100078cd0]
mov dword [0x10007905c], eax
mov dword [0x100051b00], 0
ret

Function at 0x10000d8a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbx
lea rsp, [rsp - 0x20]
mov ebx, dword [0x100051b00]
add dword [0x100051b00], 1
mov eax, dword [0x100077030]
cmp eax, dword [0x100051550]
jne 0x10000d8c9
cmp ebx, 0x271
jb 0x10000d8ec
mov ecx, dword [0x100077030]
call fcn.10000d720
not dword [0x100077030]
mov eax, dword [0x100077030]
mov dword [0x100051550], eax
mov ebx, 0x270
nop
cmp ebx, 0x270
jne 0x10000d908
call fcn.10000d770
xor ebx, ebx
mov dword [0x100051b00], 1
nop dword [rax]
and ebx, ebx
lea rax, [0x1000786a0]
mov edx, dword [rax + rbx*4]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
nop
lea rsp, [rsp + 0x20]
pop rbx
ret
Function at 0x10000f9b0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x1000512b0]
cmp ax, 0xcb
je 0x10000faec
cmp ax, 0xcc
je 0x10000faec
nop
mov rax, qword [0x1000793a0]
test rax, rax
je 0x10000f9ed
mov ecx, dword [0x100079190]
call rax
mov rbx, rax
jmp 0x10000f9f4
lea rbx, [0x100079198]
cmp word [0x100079180], 0
jle 0x10000fa1c
lea rcx, [0x100079150]
call fcn.10000fcd0
mov rcx, rbx
call fcn.10000f470
mov rcx, rbx
call fcn.10000f500
nop
mov rsi, qword [rbx]
jmp 0x10000fa49
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
jne 0x10000fa42
mov rdx, rsi
mov rcx, rbx
call fcn.10000e6f0
jmp 0x10000fa46
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x10000fa28
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x100079180], 0
jle 0x10000faec
lea rdx, [0x100079060]
mov rcx, rbx
call fcn.10000e870
mov rsi, rax
test rax, rax
je 0x10000fab8
mov rax, qword [0x100079100]
mov qword [rsi + 0x18], rax
cmp qword [0x100079100], 0
je 0x10000faa8
mov rax, qword [0x100079100]
mov qword [rax + 0x10], rsi
nop dword [rax]
mov rax, qword [rbx + 0xa0]
mov qword [0x100079100], rax
nop
sub word [0x100079180], 1
cmp word [0x100079180], 0
sete bl
lea rcx, [0x100079150]
call fcn.10000fd10
test bl, bl
je 0x10000faec
lea rcx, [0x100079150]
call fcn.10000fcb0
nop dword [rax]
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x100012670
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x70]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], r12
mov sil, cl
mov rdi, rdx
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
nop
test sil, sil
je 0x1000127ae
movzx eax, sil
sub eax, 0xffffffc0
mov word [rbp - 8], ax
mov word [rbp - 6], 0x3a
mov word [rbp - 4], 0
mov word [rbp - 2], 0
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
xor r8, r8
xor edx, edx
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
mov edx, ebx
sub rdx, 1
mov rcx, rdi
call fcn.100009d40
mov r8, qword [rdi]
test r8, r8
jne 0x1000126ff
lea r8, [0x100078470]
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
mov edx, ebx
call sub.kernel32.dll_GetFullPathNameW
mov r12d, eax
test eax, eax
jne 0x10001276b
call sub.kernel32.dll_GetLastError
mov ecx, eax
call fcn.1000031d0
lea rcx, [rbp - 0x18]
call fcn.100008b90
and esi, 0xff
lea edx, [esi + 0x41]
sub edx, 1
and edx, 0xffff
lea rcx, [rbp - 0x20]
call fcn.1000090b0
mov rdx, qword [rbp - 0x20]
lea r8, [0x100058874]
lea rcx, [rbp - 0x18]
call fcn.100008f50
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.100009780
jmp 0x100012800
mov eax, ebx
sub rax, 1
mov edx, r12d
cmp rax, rdx
je 0x100012784
mov edx, r12d
mov rcx, rdi
call fcn.100009d40
cmp byte [0x100051520], 0
jne 0x100012800
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.10000a430
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.1000097d0
nop dword [rax]
jmp 0x100012800
xor edx, edx
xor ecx, ecx
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
mov edx, ebx
sub rdx, 1
mov rcx, rdi
call fcn.100009d40
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1000127d6
lea rdx, [0x100078470]
mov ecx, ebx
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x100051520], 0
jne 0x100012800
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.10000a430
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.1000097d0
nop
nop
mov rcx, rbp
call fcn.100012640
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
mov r12, qword [rbp - 0x30]
lea rsp, [rbp]
pop rbp
ret
Function at 0x100012bb0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push rsi
push r12
push r13
push r14
lea rsp, [rsp - 0x128]
xor esi, esi
mov qword [0x1000783c0], 0
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x24]
mov r8d, 0x104
xor ecx, ecx
call sub.kernel32.dll_GetModuleFileNameA
mov ebx, eax
and eax, eax
mov byte [rsp + rax + 0x24], 0
mov r8d, ebx
xor edx, edx
mov rcx, rsp
call fcn.100012d90
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x1000783c0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x24]
call fcn.1000029b0
call sub.kernel32.dll_GetCommandLineA
mov qword [0x100051320], rax
mov r14, rax
jmp 0x100012d37
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x100012c38
cmp byte [r14], 0
je 0x100012d41
nop
xor dil, dil
mov r12, r14
xor ebx, ebx
jmp 0x100012ca0
mov al, byte [r14]
cmp al, 1
jb 0x100012c98
sub al, 0x20
jbe 0x100012c74
sub al, 2
je 0x100012c80
jmp 0x100012c98
test dil, dil
je 0x100012ca6
add ebx, 1
jmp 0x100012c9c
cmp byte [r14 + 1], 0x22
je 0x100012c90
test dil, dil
sete dil
jmp 0x100012c9c
add r14, 1
jmp 0x100012c9c
add ebx, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100012c60
test esi, esi
je 0x100012d34
mov r8d, ebx
mov edx, esi
mov rcx, rsp
call fcn.100012d90
xor dil, dil
mov r14, r12
mov rdx, qword [0x1000783c0]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x100012d28
mov al, byte [r14]
cmp al, 1
jb 0x100012d18
sub al, 0x20
jbe 0x100012cec
sub al, 2
je 0x100012d00
jmp 0x100012d18
test dil, dil
je 0x100012d2e
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x100012d24
cmp byte [r14 + 1], 0x22
je 0x100012d10
test dil, dil
sete dil
jmp 0x100012d24
add r14, 1
jmp 0x100012d24
mov al, byte [r14]
mov byte [r13], al
add r13, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100012cd8
mov byte [r13], 0
nop
add esi, 1
cmp byte [r14], 0
jne 0x100012c3c
mov dword [0x1000783b0], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x1000783c0]
call fcn.10000f790
mov rax, qword [0x1000783c0]
movsxd rsi, esi
mov qword [rax + rsi*8], 0
nop
lea rsp, [rsp + 0x128]
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
ret

Function at 0x100016770
Capabilities:
Hash data with crc32

Disassembly:
mov dx, 0xffff
nop dword [rax]
add dx, 1
movsx eax, dx
mov ecx, eax
xor r8w, r8w
nop
add r8w, 1
mov eax, ecx
and eax, 1
je 0x1000167a2
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x1000167a4
shr ecx, 1
cmp r8w, 8
jl 0x100016788
movzx eax, dx
lea r9, [0x100182190]
mov dword [r9 + rax*4], ecx
cmp dx, 0xff
jl 0x100016778
ret

Function at 0x1000167d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ebx, ecx
mov rsi, rdx
mov edi, r8d
cmp dword [0x100182194], 0
jne 0x1000167f0
call fcn.100016770
nop
mov eax, ebx
not eax
cmp edi, 1
jl 0x10001682c
xor edx, edx
nop dword [rax + rax]
add edx, 1
mov cl, al
xor cl, byte [rsi]
and ecx, 0xff
mov r8d, eax
shr r8d, 8
lea r9, [0x100182190]
xor r8d, dword [r9 + rcx*4]
mov eax, r8d
add rsi, 1
cmp edi, edx
jg 0x100016800
nop
not eax
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret