joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400582e0
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 0x140058318
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.140058430
cmp byte [rcx + 0xf0e], 0
je 0x140058330
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140058e20
cmp byte [rcx + 0xf11], 0
je 0x1400583d1
mov r8, qword [rbx + 0xa88]
test r8, r8
jne 0x14005838b
mov r8, qword [rcx + 0xc08]
test r8, r8
jne 0x14005836e
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.14006eb20
test eax, eax
je 0x1400583c1
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xf1d], 0
lea rcx, [rbx + 0xa00]
je 0x1400583b1
lea rdx, str.PRET_STOR__s
call fcn.14006eb20
test eax, eax
je 0x1400583c1
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.14006eb20
test eax, eax
jne 0x1400583de
mov dword [rbx + 0xab8], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140058d90
add rsp, 0x20
pop rbx
ret

Function at 0x140058720
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 0x14005876d
cmp qword [rcx + 0xa88], 0
je 0x14005876d
add rcx, 0xa00
lea rdx, str.REST__d
xor r8d, r8d
call fcn.14006eb20
test eax, eax
jne 0x140058777
mov dword [rbx + 0xab8], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400582e0
add rsp, 0x20
pop rbx
ret

Function at 0x140058900
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 0x14005894c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14005894c
lea rdx, str.SIZE__s
call fcn.14006eb20
test eax, eax
jne 0x140058959
mov dword [rbx + 0xab8], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140058720
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xf1c], 0
je 0x1400589b8
cmp qword [rcx + 0xa88], 0
je 0x1400589b8
cmp byte [r9 + 0xf0b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0xaa8]
cmp eax, edx
je 0x1400589b8
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x10], 1
movzx edx, byte [r9 + 0xf0b]
jmp fcn.140057200
jmp fcn.140058900
Function at 0x1400589c0
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 0x1400589f5
lea rdx, str.Couldnt_set_desired_mode
call fcn.14003abe0
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x140058a0c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14003ad60
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x140058a28
mov rcx, rdi
call fcn.140058900
jmp 0x140058b5f
cmp esi, 0x14
jne 0x140058b41
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x140058aa9
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x140058aa9
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.140024270
test eax, eax
jne 0x140058b5f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140058a9e
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x140058aa9
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400752d6]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x140058acd
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14007902d]
test rbp, rbp
mov r9, r8
lea rax, [0x140079924]
cmovne r9, rbp
lea rcx, [0x14007de68]
cmovne r8, rax
call fcn.140029490
mov rcx, rbp
mov r14, rax
call qword [fcn.1400752d6]
test r14, r14
jne 0x140058b0c
lea ebx, [r14 + 0x1b]
jmp 0x140058b61
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x140082660]
call fcn.14006eb20
mov rcx, r14
mov esi, eax
call qword [fcn.1400752d6]
test esi, esi
je 0x140058b35
mov ebx, esi
jmp 0x140058b61
mov dword [rdi + 0xab8], 0x1f
jmp 0x140058b61
cmp esi, 0x15
jne 0x140058b4c
lea r8d, [rsi - 8]
jmp 0x140058b55
cmp esi, 0x16
jne 0x140058b61
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.140058430
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 0x14005e450
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x14005e574
cmp r8d, 0xff
jne 0x14005e4b1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14005e49b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x841e0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14003ad60
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14003ad60
cmp r8d, 0xfb
jne 0x14005e4c3
lea r9, str.WILL
jmp 0x14005e501
cmp r8d, 0xfc
jne 0x14005e4d5
lea r9, str.WONT
jmp 0x14005e501
cmp r8d, 0xfd
jne 0x14005e4e7
lea r9, [0x140084c04]
jmp 0x14005e501
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14005e55d
cmp r10d, 0x27
jg 0x14005e534
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x84800]
test r8, r8
jne 0x14005e544
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14003ad60
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14005e51b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14003ad60
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14003ad60
add rsp, 0x38
ret

Function at 0x14005e8c0
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 0x14005e91f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14003abe0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14005e450
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005ead0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14005ec78
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 0x14005eb35
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14005eb35
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14005eb35
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 0x14005eb6c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14005ebc2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005ebc2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005ebc2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005ebc2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005ebc2
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.14005e580
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 0x14005ec24
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14003abe0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14005e950
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 0x14005ec70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14003abe0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400603e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401f3380]
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 0x140060475
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 0x1400604d6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14003abe0
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.140074000
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 0x140060591
sub ecx, 1
je 0x140060604
sub ecx, 1
je 0x140060540
cmp ecx, 1
je 0x140060523
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140082660]
call fcn.14003abe0
jmp 0x140060604
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140060110
test eax, eax
je 0x140060604
jmp 0x1400604aa
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 0x140060604
sub rax, rsi
cmp rax, rbp
jae 0x140060604
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14003ad60
jmp 0x140060604
cmp r8d, 4
jle 0x140060604
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 0x140060604
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14003ab00
mov esi, eax
test eax, eax
je 0x1400605e3
mov edx, 5
mov rcx, rbx
call fcn.1400610d0
mov eax, esi
jmp 0x1400604aa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140049500
mov rcx, r14
call fcn.1400497e0
test eax, eax
je 0x1400604a8
mov edx, 5
mov rcx, rbx
call fcn.1400610d0
mov eax, Ordinal_45
jmp 0x1400604aa
Function at 0x1400733a0
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 0x1400733e2
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 0x140073429
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 0x140073482
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 0x140073440
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400734c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140087dea]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140087deb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140073490
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 0x1400734dc
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 0x140073516
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14007351b
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 0x140073564
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 0x140073564
dec r8
sub rdx, 1
jne 0x14007354a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140074f3c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [0x10057f690], ecx
xor eax, eax
add eax, 1
lea rdx, [0x10057f690]
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 0x100010548
mov dword [0x1001e32a0], 0x270
ret

Function at 0x100010590
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, [0x10057f690]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x10057f690]
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, [0x10057f690]
xor edx, dword [r8 + rcx*4 + 0x634]
mov ecx, eax
lea r8, [0x10057f690]
mov dword [r8 + rcx*4], edx
cmp eax, 0xe2
jl 0x100010598
mov eax, 0xe2
nop dword [rax]
add eax, 1
movsxd rdx, eax
lea rcx, [0x10057f690]
mov ecx, dword [rcx + rdx*4 + 4]
mov edx, eax
lea r8, [0x10057f690]
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, [0x10057f690]
xor edx, dword [r8 + rcx*4 - 0x38c]
mov ecx, eax
lea r8, [0x10057f690]
mov dword [r8 + rcx*4], edx
cmp eax, 0x26e
jl 0x100010608
mov edx, dword [0x10057f690]
mov ecx, dword [0x10058004c]
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 [0x10057fcc0]
mov dword [0x10058004c], eax
mov dword [0x1001e32a0], 0
ret

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

Disassembly:
push rbx
lea rsp, [rsp - 0x20]
mov ebx, dword [0x1001e32a0]
add dword [0x1001e32a0], 1
mov eax, dword [0x10057e020]
cmp eax, dword [0x1001e2a40]
jne 0x1000106e9
cmp ebx, 0x271
jb 0x10001070c
mov ecx, dword [0x10057e020]
call fcn.100010540
not dword [0x10057e020]
mov eax, dword [0x10057e020]
mov dword [0x1001e2a40], eax
mov ebx, 0x270
nop
cmp ebx, 0x270
jne 0x100010728
call fcn.100010590
xor ebx, ebx
mov dword [0x1001e32a0], 1
nop dword [rax]
and ebx, ebx
lea rax, [0x10057f690]
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 0x1000128e0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x1001e27a0]
cmp ax, 0xcb
je 0x100012a1c
cmp ax, 0xcc
je 0x100012a1c
nop
mov rax, qword [0x100580390]
test rax, rax
je 0x10001291d
mov ecx, dword [0x100580180]
call rax
mov rbx, rax
jmp 0x100012924
lea rbx, [0x100580188]
cmp word [0x100580170], 0
jle 0x10001294c
lea rcx, [0x100580140]
call fcn.100012c00
mov rcx, rbx
call fcn.1000123a0
mov rcx, rbx
call fcn.100012430
nop
mov rsi, qword [rbx]
jmp 0x100012979
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
jne 0x100012972
mov rdx, rsi
mov rcx, rbx
call fcn.100011620
jmp 0x100012976
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x100012958
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x100580170], 0
jle 0x100012a1c
lea rdx, [0x100580050]
mov rcx, rbx
call fcn.1000117a0
mov rsi, rax
test rax, rax
je 0x1000129e8
mov rax, qword [0x1005800f0]
mov qword [rsi + 0x18], rax
cmp qword [0x1005800f0], 0
je 0x1000129d8
mov rax, qword [0x1005800f0]
mov qword [rax + 0x10], rsi
nop dword [rax]
mov rax, qword [rbx + 0xa0]
mov qword [0x1005800f0], rax
nop
sub word [0x100580170], 1
cmp word [0x100580170], 0
sete bl
lea rcx, [0x100580140]
call fcn.100012c40
test bl, bl
je 0x100012a1c
lea rcx, [0x100580140]
call fcn.100012be0
nop dword [rax]
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x100015280
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 0x1000153be
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.10000c4a0
mov r8, qword [rdi]
test r8, r8
jne 0x10001530f
lea r8, [0x10057f460]
lea rcx, [rbp - 8]
lea r9, [rbp - 0x10]
mov edx, ebx
call sub.kernel32.dll_GetFullPathNameW
mov r12d, eax
test eax, eax
jne 0x10001537b
call sub.kernel32.dll_GetLastError
mov ecx, eax
call fcn.100003610
lea rcx, [rbp - 0x18]
call fcn.10000ad90
and esi, 0xff
lea edx, [esi + 0x41]
sub edx, 1
and edx, 0xffff
lea rcx, [rbp - 0x20]
call fcn.10000b2b0
mov rdx, qword [rbp - 0x20]
lea r8, [0x100205614]
lea rcx, [rbp - 0x18]
call fcn.10000b150
mov rdx, qword [rbp - 0x18]
mov rcx, rdi
call fcn.10000bc50
jmp 0x100015410
mov eax, ebx
sub rax, 1
mov edx, r12d
cmp rax, rdx
je 0x100015394
mov edx, r12d
mov rcx, rdi
call fcn.10000c4a0
cmp byte [0x1001e2a10], 0
jne 0x100015410
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.10000cb10
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.10000bd10
nop dword [rax]
jmp 0x100015410
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.10000c4a0
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1000153e6
lea rdx, [0x10057f460]
mov ecx, ebx
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x1001e2a10], 0
jne 0x100015410
mov rdx, qword [rdi]
lea rcx, [rbp - 0x28]
call fcn.10000cb10
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
call fcn.10000bd10
nop
nop
mov rcx, rbp
call fcn.100015250
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 0x100015840
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 [0x10057f3b0], 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.100015a20
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x10057f3b0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x24]
call fcn.100002db0
call sub.kernel32.dll_GetCommandLineA
mov qword [0x1001e2820], rax
mov r14, rax
jmp 0x1000159c7
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x1000158c8
cmp byte [r14], 0
je 0x1000159d1
nop
xor dil, dil
mov r12, r14
xor ebx, ebx
jmp 0x100015930
mov al, byte [r14]
cmp al, 1
jb 0x100015928
sub al, 0x20
jbe 0x100015904
sub al, 2
je 0x100015910
jmp 0x100015928
test dil, dil
je 0x100015936
add ebx, 1
jmp 0x10001592c
cmp byte [r14 + 1], 0x22
je 0x100015920
test dil, dil
sete dil
jmp 0x10001592c
add r14, 1
jmp 0x10001592c
add ebx, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x1000158f0
test esi, esi
je 0x1000159c4
mov r8d, ebx
mov edx, esi
mov rcx, rsp
call fcn.100015a20
xor dil, dil
mov r14, r12
mov rdx, qword [0x10057f3b0]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x1000159b8
mov al, byte [r14]
cmp al, 1
jb 0x1000159a8
sub al, 0x20
jbe 0x10001597c
sub al, 2
je 0x100015990
jmp 0x1000159a8
test dil, dil
je 0x1000159be
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x1000159b4
cmp byte [r14 + 1], 0x22
je 0x1000159a0
test dil, dil
sete dil
jmp 0x1000159b4
add r14, 1
jmp 0x1000159b4
mov al, byte [r14]
mov byte [r13], al
add r13, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100015968
mov byte [r13], 0
nop
add esi, 1
cmp byte [r14], 0
jne 0x1000158cc
mov dword [0x10057f3a0], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x10057f3b0]
call fcn.1000126c0
mov rax, qword [0x10057f3b0]
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