joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59b620
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x59b643
call fcn.0059afa0
cmp eax, 1
je 0x59b64e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
lea rbx, [rsp + 0x20]
xor eax, eax
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x59b6d7
mov eax, 0x28
jmp 0x59b6aa
add rax, 1
cmp rax, 0x6b
je 0x59b6c9
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x59b6a0
cmp eax, 0x6a
je 0x59b6c9
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x59b6b7

Function at 0x59b770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00732b30], 1
je 0x59b786
call fcn.0059b6e0
mov ecx, dword [0x0067e5f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x59b7b0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0059b560
cmp qword [0x00736058], 0
mov rsi, rax
je 0x59b79a
test rax, rax
je 0x59b79a
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], 0xffffffffffffffff
call fcn.0059b620
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov dword [rsp + 0x20], 0
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x59b899
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
mov rdx, rsi
mov dword [rsi + 0xbc], 0
mov ecx, dword [0x0067e5f8]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x59b899
mov rbx, rsi
jmp 0x59b79a
call sub.msvcrt.dll_abort
nop
nop
Function at 0x59cdf0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r13, rcx
mov rbp, rdx
mov rsi, r8
mov rdi, r9
call fcn.0059b560
test rax, rax
mov rbx, rax
je 0x59d001
test r13, r13
je 0x59ce2b
mov rax, qword [rax + 0x1d8]
mov qword [r13], rax
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
mov esi, 1
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x59cea0
cmp esi, 1
je 0x59ce91
mov ecx, 0x14
call r14
cmp esi, 5
je 0x59cea0
add esi, 1
jmp 0x59ce62
xor ecx, ecx
call r12
jmp 0x59ce8c
lea rdi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rdi
call fcn.0059b620
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x59cfe2
test rbp, rbp
je 0x59d050
mov eax, dword [rbp]
mov rsi, qword [rbp + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x59d030
mov eax, dword [rbp + 0x18]
mov edx, esi
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x0059bbe0]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x59cfb2
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x59cf62
cmp eax, 0xffffffff
mov edx, 0xfffffffe
jl 0x59cf62
cmp eax, 0xe
mov edx, 0xf
jg 0x59cf62
cmp eax, 2
mov edx, 2
cmovle edx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
je 0x59d015
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x59cfc1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.00405c50
mov rcx, rdi
call fcn.0059b620
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test r13, r13
je 0x59cfef
mov qword [r13], 0
cmp qword [rbx + 0x1d0], 0
jne 0x59d001
mov rcx, rbx
call fcn.0059b400
mov eax, 0xb
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x59cf99
call fcn.0059b770
mov eax, dword [rax + 0xc0]
mov edx, esi
mov dword [rbx + 0xc0], eax
jmp 0x59ceff
xor edx, edx
jmp 0x59ceff
Function at 0x6186a0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x6186c8
call r12
cmp dword [rax], 4
jne 0x6186e6
mov rcx, rbp
call fcn.006185b0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read_1
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x6186c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
lea rdx, str.mt19937
mov rbx, rcx
mov rcx, rsi
call fcn.005d3230
test eax, eax
je 0x629e85
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x629e8c
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
jne 0x629e8c
mov dword [rbx], ecx
mov edx, 1
jmp 0x629e54
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x629e50
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov ecx, 0x1571
jmp 0x629e43
lea rcx, str.random_device::_M_strtoul_const_std::string_
call fcn.0065fc40
nop
nop
nop
nop
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
lea rdx, [0x006ce10c]
mov rbx, rcx
mov rcx, rsi
call fcn.005c9830
test eax, eax
mov ecx, 0x1571
jne 0x629f05
mov dword [rbx], ecx
mov edx, 1
jmp 0x629ed4
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x629ed0
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x629f29
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x629ec4
lea rcx, [0x006ce0d8]
call fcn.0065fc40
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x629ea0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
lea rdx, str.mt19937
mov rbx, rcx
mov rcx, rsi
call fcn.005d3230
test eax, eax
je 0x629e85
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x629e8c
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
jne 0x629e8c
mov dword [rbx], ecx
mov edx, 1
jmp 0x629e54
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x629e50
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov ecx, 0x1571
jmp 0x629e43
lea rcx, str.random_device::_M_strtoul_const_std::string_
call fcn.0065fc40
nop
nop
nop
nop
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
lea rdx, [0x006ce10c]
mov rbx, rcx
mov rcx, rsi
call fcn.005c9830
test eax, eax
mov ecx, 0x1571
jne 0x629f05
mov dword [rbx], ecx
mov edx, 1
jmp 0x629ed4
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x629ed0
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sub.msvcrt.dll_strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x629f29
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x629ec4
lea rcx, [0x006ce0d8]
call fcn.0065fc40
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

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

Disassembly:
jmp 0x635440
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x9c0]
mov rbx, rcx
cmp rax, 0x26f
jbe 0x635463
call fcn.006351d0
mov rax, qword [rcx + 0x9c0]
lea rdx, [rax + 1]
mov eax, dword [rbx + rax*4]
mov qword [rbx + 0x9c0], rdx
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor edx, eax
mov eax, edx
shl eax, 0xf
and eax, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

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

Disassembly:
lea r11, [rcx + 0x38c]
mov rax, rcx
mov rdx, rcx
nop dword [rax]
mov r9d, dword [rdx]
mov r8d, dword [rdx + 4]
and r9d, 0x80000000
and r8d, 0x7fffffff
or r9d, r8d
mov r8d, r9d
shr r8d, 1
xor r8d, dword [rdx + 0x634]
mov r10d, r8d
xor r10d, 0x9908b0df
and r9d, 1
cmovne r8d, r10d
add rdx, 4
mov dword [rdx - 4], r8d
cmp r11, rdx
jne 0x6351e0
lea r10, [rcx + 0x630]
nop dword [rax + rax]
mov r8d, dword [rax + 0x38c]
mov edx, dword [rax + 0x390]
and r8d, 0x80000000
and edx, 0x7fffffff
or r8d, edx
mov edx, r8d
shr edx, 1
xor edx, dword [rax]
mov r9d, edx
xor r9d, 0x9908b0df
and r8d, 1
cmovne edx, r9d
add rax, 4
mov dword [rax + 0x388], edx
cmp r10, rax
jne 0x635230
mov edx, dword [rcx + 0x9bc]
mov eax, dword [rcx]
mov qword [rcx + 0x9c0], 0
and eax, 0x7fffffff
and edx, 0x80000000
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [rcx + 0x630]
mov r8d, eax
xor r8d, 0x9908b0df
and edx, 1
cmovne eax, r8d
mov dword [rcx + 0x9bc], eax
ret
Function at 0x635440
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x635440
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x9c0]
mov rbx, rcx
cmp rax, 0x26f
jbe 0x635463
call fcn.006351d0
mov rax, qword [rcx + 0x9c0]
lea rdx, [rax + 1]
mov eax, dword [rbx + rax*4]
mov qword [rbx + 0x9c0], rdx
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor edx, eax
mov eax, edx
shl eax, 0xf
and eax, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x6595e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, qword [0x006d1040]
mov rbx, qword [rdx + 0x10]
mov rsi, rcx
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
test rbx, rbx
je 0x659664
movzx r9d, byte [r8]
jmp 0x659622
mov rax, qword [rbx + 0x10]
mov r10d, 1
test rax, rax
je 0x659637
mov rbx, rax
movzx ecx, byte [rbx + 0x20]
cmp r9b, cl
jl 0x659610
mov rax, qword [rbx + 0x18]
xor r10d, r10d
test rax, rax
jne 0x65961f
test r10b, r10b
mov r11, rbx
jne 0x659668
cmp r9b, cl
jg 0x659693
mov qword [rsi], rbx
mov qword [rsi + 8], 0
mov rdx, qword [rsp + 0x38]
xor rdx, qword [rdi]
mov rax, rsi
jne 0x6596ad
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea rbx, [rdx + 8]
cmp qword [rdx + 0x18], rbx
je 0x6596a0
mov rcx, rbx
mov qword [rsp + 0x28], r8
call fcn.0065f540
mov r8, qword [rsp + 0x28]
movzx ecx, byte [rax + 0x20]
mov r11, rbx
mov rbx, rax
movzx r9d, byte [r8]
cmp r9b, cl
jle 0x659644
mov qword [rsi], 0
mov qword [rsi + 8], r11
jmp 0x65964f
mov qword [rsi], 0
mov qword [rsi + 8], rbx
jmp 0x65964f
call fcn.00582f30
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400026b0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rcx
mov rcx, qword [0x14001f438]
test rcx, rcx
je 0x1400026e9
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x14001f438], 0
mov edx, 1
mov edi, 2
mov ecx, edi
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
lea rcx, str.111.173.83.176
mov word [rsp + 0x20], di
mov qword [0x14001f438], rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x698e
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [0x14001f438]
lea r8d, [rdi + 0xe]
lea rdx, [rsp + 0x20]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
mov rcx, qword [0x14001f438]
lea r9d, [rdi + 0x21]
mov r8d, 0x8001
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140003570
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140002780
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movzx ebx, r8w
movzx r15d, cx
mov esi, r8d
mov r14, rdx
lea rcx, [rbx + 0x10]
call fcn.14000807c
mov rdi, rax
test rax, rax
je 0x1400028fe
movzx ecx, r15w
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rdi], ax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, 0xffffffff
mov word [rdi + 2], ax
call qword [sym.imp.WS2_32.dll_ntohl]
xor ecx, ecx
mov word [rdi + 8], 1
mov dword [rdi + 4], eax
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rdi + 0xa], ax
call qword [sym.imp.WS2_32.dll_htons]
lea ecx, [rbx + 2]
mov word [rdi + 0xc], ax
call qword [sym.imp.WS2_32.dll_ntohs]
mov r8d, esi
lea rcx, [rdi + 0x10]
mov rdx, r14
mov word [rdi + 0xe], ax
call fcn.140010ed0
lea r8d, [rbx + 0x1a]
mov eax, 8
mov ecx, r8d
and ecx, 7
sub eax, ecx
test ecx, ecx
cmove eax, ecx
add eax, r8d
movsxd rcx, eax
add rcx, 0x12
mov dword [rsp + 0x70], eax
call fcn.14000807c
mov rsi, rax
test rax, rax
je 0x1400028fe
lea r9, [rax + 0x12]
mov rcx, rdi
lea rax, [rsp + 0x70]
lea edx, [rbx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140001430
mov ebx, dword [rsp + 0x70]
mov rcx, rdi
add ebx, 0x12
call fcn.140008068
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, reloc.WS2_32.dll_WSACleanup
mov dword [rsi], eax
call qword [sym.imp.WS2_32.dll_ntohs]
xor ecx, ecx
mov word [rsi + 4], ax
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rsi + 6], ax
call qword [sym.imp.WS2_32.dll_ntohl]
xor ecx, ecx
mov dword [rsi + 8], eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov word [rsi + 0x10], 1
mov rdi, rsi
mov dword [rsi + 0xc], eax
test ebx, ebx
jle 0x1400028f6
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x14001f438]
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400028f6
movsxd rcx, eax
sub ebx, eax
add rdi, rcx
test ebx, ebx
jg 0x1400028d0
mov rcx, rsi
call fcn.140008068
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140002a80
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp r8w, 1
jne 0x140002ceb
push r12
mov eax, 0x1060
call fcn.140010980
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r10, rdx
mov qword [rsp + 0x1080], rbx
mov r12, rcx
mov qword [rsp + 0x1050], rsi
mov rcx, r10
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea rsi, [rsp + 0x20]
mov r8d, 0x1000
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jle 0x140002cc2
mov qword [rsp + 0x1030], r15
mov r15, qword [0x14001f418]
mov qword [rsp + 0x1058], rbp
mov qword [rsp + 0x1048], rdi
mov qword [rsp + 0x1040], r13
mov qword [rsp + 0x1038], r14
test r15, r15
je 0x140002c30
mov r14, qword [0x14001f428]
cmp r14, 4
jae 0x140002b6a
mov edi, 4
lea rcx, [r14 + r15]
sub edi, r14d
lea rdx, [rsp + 0x20]
cmp eax, edi
cmovl edi, eax
movsxd rsi, edi
mov r8, rsi
call fcn.140010ed0
lea rax, [rsi + r14]
mov qword [0x14001f428], rax
cmp rax, 4
jb 0x140002c9a
lea rsi, [rsp + rsi + 0x20]
sub ebx, edi
mov ecx, dword [r15]
call qword [sym.imp.WS2_32.dll_ntohl]
mov r15, qword [0x14001f428]
mov ebp, eax
sub ebp, r15d
movsxd r14, eax
cmp r14, qword [0x14001f420]
jle 0x140002bbd
mov rcx, qword [0x14001f418]
mov rdx, r14
mov qword [0x14001f420], r14
call fcn.140008060
mov rdi, rax
test rax, rax
je 0x140002c9a
mov r15, qword [0x14001f428]
mov qword [0x14001f418], rax
jmp 0x140002bc4
mov rdi, qword [0x14001f418]
test ebp, ebp
js 0x140002c0d
cmp ebx, ebp
lea rcx, [r15 + rdi]
mov rdx, rsi
cmovl ebp, ebx
movsxd r13, ebp
mov r8, r13
call fcn.140010ed0
lea rax, [r15 + r13]
mov qword [0x14001f428], rax
cmp rax, r14
jl 0x140002c9a
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140002920
mov rdi, qword [0x14001f418]
add rsi, r13
sub ebx, ebp
mov rcx, rdi
call fcn.140008068
xor eax, eax
mov qword [0x14001f418], rax
mov qword [0x14001f428], rax
test ebx, ebx
jle 0x140002c9a
nop dword [rax]
mov r14d, ebx
cmp r14, 4
jae 0x140002c40
mov edi, 4
jmp 0x140002c4a
mov ecx, dword [rsi]
call qword [sym.imp.WS2_32.dll_ntohl]
mov edi, eax
movsxd rbp, edi
cmp edi, ebx
jg 0x140002c6a
mov r8, rbp
mov rdx, rsi
mov rcx, r12
call fcn.140002920
add rsi, rbp
sub ebx, edi
test ebx, ebx
jg 0x140002c30
jmp 0x140002c9a
mov rcx, rbp
mov qword [0x14001f420], rbp
call fcn.14000807c
test rax, rax
je 0x140002c9a
mov r8, r14
mov qword [0x14001f418], rax
mov rdx, rsi
mov rcx, rax
call fcn.140010ed0
mov qword [0x14001f428], r14
mov r14, qword [rsp + 0x1038]
mov r13, qword [rsp + 0x1040]
mov rdi, qword [rsp + 0x1048]
mov rbp, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1030]
mov rbx, qword [rsp + 0x1080]
mov rsi, qword [rsp + 0x1050]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140003570
add rsp, 0x1060
pop r12
ret
Function at 0x140002cf0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2290
call fcn.140010980
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2280], rax
mov rdi, 0xffffffffffffffff
mov rsi, rdx
mov rbx, rdi
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140002d27
mov rdx, rcx
mov byte [rsp + 0x280], bl
lea rcx, [rsp + 0x281]
mov r8, rbx
call fcn.140010ed0
nop word [rax + rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140002d50
mov byte [rsp + rbx + 0x281], dil
mov r8, rdi
lea rbx, [rsp + rbx + 0x282]
mov rdx, rsi
mov rcx, rbx
call fcn.140010ed0
xor edx, edx
lea rsi, [rbx + rdi]
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor ebx, ebx
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002de3
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002dda
nop dword [rax + rax]
lea rdx, [rsp + 0x6c]
lea rcx, str.GameApp.exe
call fcn.140007ee4
test eax, eax
lea rdx, [rsp + 0x40]
mov rcx, rdi
cmove ebx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002db0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsi], eax
mov ecx, 1
lea rdx, [rsp + 0x280]
lea rax, [rsp + 0x280]
sub esi, eax
lea r8d, [rsi + 4]
call fcn.140002780
mov rcx, qword [rsp + 0x2280]
xor rcx, rsp
call fcn.140003570
lea r11, [rsp + 0x2290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003fd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004022
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004022
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004022
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004022
cmp dword [rcx + 0x84], 0xe
jbe 0x140004022
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004024
xor al, al
add rsp, 0x28
ret

Function at 0x140008c68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008a64
Function at 0x14000c6d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000c757
mov rsi, rbx
cmp word [rax], bp
je 0x14000c716
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000c700
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000c6fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000acec
mov rdi, rax
test rax, rax
je 0x14000c744
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140010ed0
mov rbp, rdi
xor ecx, ecx
call fcn.14000a1a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400108c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400108e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400108e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111e0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012360
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
lea rcx, [0x140024011]
call fcn.1400113bb
cmp qword [rbp + 0x160], 0
jne 0x1400123a4
xor eax, eax
jmp 0x140012408
mov rax, qword [rbp + 0x160]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400123c1
xor eax, eax
jmp 0x140012408
mov dword [rbp + 0x24], 0x400
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x3c]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x400
jle 0x1400123df
xor eax, eax
jmp 0x140012408
movsxd rax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0x4550
je 0x140012404
xor eax, eax
jmp 0x140012408
mov rax, qword [rbp + 0x68]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x140011221
Capabilities:
Terminate process

Disassembly:
jmp 0x140013e20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112a8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015170
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015190
xor al, al
jmp 0x140015211
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400151a3
xor al, al
jmp 0x140015211
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400151cd
xor al, al
jmp 0x140015211
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400151e1
xor al, al
jmp 0x140015211
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400151f3
xor al, al
jmp 0x140015211
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001520f
xor al, al
jmp 0x140015211
mov al, 1
add rsp, 0x38
ret