joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003ba2
Capabilities:
Parse pe header

Disassembly:
jmp 0x140021a48
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140021823
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140021823
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140021823
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140021823
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021823
cmp dword [rcx + 0x84], 0xe
jbe 0x140021823
cmp dword [rcx + 0xf8], 0
je 0x140021823
mov ecx, ebx
call fcn.14002198c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140021504
nop
cmp dword [rbp + 0x20], 0
je 0x140021871
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400218ac
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400217b4

Function at 0x14000aad4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140014ad0
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 0x14001127b
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
jmp 0x140013360
push r13
push rbp
push rdi
sub rsp, 0x5d0
lea r13, [rsp + 0x30]
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
lea rcx, [0x1400250e4]
call fcn.14001138e
lea rax, [rbp + 0x2b4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x2d4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x2b4]
movzx r8d, byte [rbp + 0x2d4]
movzx edx, byte [rbp + 0x2f4]
lea rcx, [rbp + 0x200]
call fcn.1400117f0
mov rcx, rax
call fcn.1400110a0
mov qword [rbp + 8], rax
lea rax, [rbp + 0x354]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x374]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x354]
movzx r8d, byte [rbp + 0x374]
movzx edx, byte [rbp + 0x394]
lea rcx, [rbp + 0x320]
call fcn.140011a90
mov rcx, rax
call fcn.14001100f
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 8]
xor ecx, ecx
call fcn.140011348
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jl 0x1400134cc
lea rax, [rbp + 0x3e4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x404]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x3e4]
movzx r8d, byte [rbp + 0x404]
movzx edx, byte [rbp + 0x424]
lea rcx, [rbp + 0x3c0]
call fcn.140011b60
mov rcx, rax
call fcn.140011230
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x28]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x140013598
lea rax, [rbp + 0x474]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x494]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x474]
movzx r8d, byte [rbp + 0x494]
movzx edx, byte [rbp + 0x4b4]
lea rcx, [rbp + 0x450]
call fcn.140011cc0
mov rcx, rax
call fcn.1400110fa
mov qword [rbp + 0x568], rax
lea rax, [rbp + 0x514]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x534]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x514]
movzx r8d, byte [rbp + 0x534]
movzx edx, byte [rbp + 0x554]
lea rcx, [rbp + 0x4e0]
call fcn.140011bf0
mov rcx, rax
call fcn.140011046
mov qword [rbp + 0x570], rax
mov r9d, 0x10
mov r8, qword [rbp + 0x568]
mov rdx, qword [rbp + 0x570]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
lea rsp, [r13 + 0x5a0]
pop rdi
pop rbp
pop r13
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015e20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015e40
xor al, al
jmp 0x140015ec1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015e53
xor al, al
jmp 0x140015ec1
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 0x140015e7d
xor al, al
jmp 0x140015ec1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015e91
xor al, al
jmp 0x140015ec1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015ea3
xor al, al
jmp 0x140015ec1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015ebf
xor al, al
jmp 0x140015ec1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001943c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400306f8], rbx
je 0x1400194a3
cmp rax, rbx
jne 0x140019496
mov ebx, 1
mov esi, ebx
jmp 0x1400194a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001947b
mov ebx, 1
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x1400194c0
mov edi, 0x1f
mov ecx, edi
call fcn.1401b4000
jmp 0x14001952c
mov eax, dword [0x140030700]
test eax, eax
jne 0x140019521
mov dword [0x140030700], ebx
lea r15, [0x14001dcb8]
lea rdi, [0x14001dca0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140019513
test eax, eax
jne 0x140019517
cmp qword [rdi], r14
je 0x140019508
mov rax, qword [rdi]
mov rcx, qword [0x14001dc18]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400194ea
test eax, eax
je 0x140019527
mov eax, 0xff
jmp 0x140019682
mov dword [0x14002ffb4], ebx
mov edi, 0x1f
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x140019553
lea rdx, [0x14001dc98]
lea rcx, [0x14001dc20]
call sub.msvcrt.dll__initterm
mov dword [0x140030700], 2
test esi, esi
jne 0x140019561
mov rax, r14
xchg qword [0x1400306f8], rax
cmp qword [0x140030718], r14
je 0x140019594
lea rcx, [0x140030718]
call fcn.140019a50
test eax, eax
je 0x140019594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030718]
mov r9, qword [0x14001dc18]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400195ad
mov eax, 0xff
jmp 0x140019682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140019633
test ax, ax
je 0x1400195c8
test edx, edx
jne 0x140019633
sub ax, bx
cmp ax, di
ja 0x1400195de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400195c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003e4c
mov dword [0x14002ffb0], eax
cmp dword [0x14002ffd0], r14d
jne 0x14001961c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002ffb4], r14d
jne 0x140019631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002ffb0]
jmp 0x140019682
cmp ax, 0x22
jne 0x140019647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400195b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140019ad0
add rsp, 0x28
jmp 0x14001943c
Function at 0x140004c80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140009810]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140004cef
mov rcx, r9
call fcn.140004b50
test eax, eax
je 0x140004cef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140004ced
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140004ce4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140004cef
add rdx, 0x28
cmp rdx, r9
jne 0x140004cd0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14011c864
Capabilities:
Parse pe header

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

Function at 0x14011d420
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 0x14011d45a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14011d45f
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 0x14011d4a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140134df0]
cmp byte [rcx + rax], 0
je 0x14011d4a8
dec r8
sub rdx, 1
jne 0x14011d48e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rax, qword gs:[0x60]
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400010dc
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx + 0x40]
lea rcx, [rsp + 0x230]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, str.kernel32.dll
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov edx, 0x104
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
jne 0x1400010ff
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140001040
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140001380
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1400010de

Function at 0x140001110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd rax, dword [rcx + 0x3c]
xor r10d, r10d
mov esi, edx
mov rbx, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov ebp, dword [r8 + 0x1c]
mov r14d, dword [r8 + 0x24]
add rbp, rcx
mov r11d, dword [r8 + 0x20]
add r14, rcx
mov edi, dword [r8 + 0x18]
add r11, rcx
test edi, edi
je 0x1400011b8
nop word [rax + rax]
mov r9d, dword [r11]
mov rax, 0xffffffffffffffff
add r9, rbx
nop dword [rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x140001170
xor r8d, r8d
mov ecx, 0x35
test rax, rax
je 0x1400011a8
nop word [rax + rax]
movzx edx, byte [r8 + r9]
inc r8
imul ecx, ecx, 0x11
add ecx, edx
and ecx, 0xffffff
cmp r8, rax
jb 0x140001190
cmp esi, ecx
je 0x1400011d1
inc r10d
add r11, 4
cmp r10d, edi
jb 0x140001160
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
movzx ecx, word [r14 + r10*2]
mov eax, dword [rbp + rcx*4]
add rax, rbx
jmp 0x1400011ba
Function at 0x1400011e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x4e20
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_Sleep]
call section..text
call section..text
mov rcx, rax
mov edx, 0x636157
call fcn.140001110
mov rbp, rax
call section..text
mov rcx, rax
mov edx, 0xd32ce7
call fcn.140001110
mov rbx, rax
call section..text
mov rcx, rax
mov edx, 0x80915d
call fcn.140001110
mov r14, rax
call section..text
mov rcx, rax
mov edx, 0xc79b31
call fcn.140001110
mov rdi, rax
call section..text
mov rcx, rax
mov edx, 0xdbaf4a
call fcn.140001110
xor ecx, ecx
mov edx, 0x195ff
mov r8d, 0x3000
mov rsi, rax
lea r9d, [rcx + 4]
call rbx
xor r9d, r9d
lea rcx, [0x140004090]
xor edx, edx
lea r10, [0x140004080]
mov rbx, rax
nop dword [rax]
nop word [rax + rax]
xor r8d, r8d
lea rcx, [rcx + 1]
cmp rdx, 6
cmovne r8, rdx
inc r9d
movzx eax, byte [r8 + r10]
lea rdx, [r8 + 1]
xor byte [rcx - 1], al
cmp r9d, 0x195ff
jb 0x1400012c0
mov r8d, 0x195ff
lea rdx, [0x140004090]
mov rcx, rbx
call rbp
lea r9, [rsp + 0x30]
mov edx, 0x195ff
mov r8d, 0x20
mov rcx, rbx
call r14
test eax, eax
je 0x14000133a
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call rdi
mov edx, 0xffffffff
mov rcx, rax
call rsi
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001380
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140001c7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cc8
xor al, al
add rsp, 0x28
ret
Function at 0x140011bbc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
mov r8, qword [rbx + 0x28]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
and qword [rbx + 0x28], 0
cmp dword [r8], 2
jne 0x140011c13
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 8], 0
mov r8, qword [rbx + 0x18]
cmp dword [r8], 2
jne case.default.0x140011c54
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 0x18], 0
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ntdll.dll_RtlFreeHeap]
call 0x119329310
xchg edi, eax
pushfq
add esi, dword [rdi]
insd dword [rdi], dx
std
int3
push rbx
sar byte [rbp - 6], cl
adc ebx, dword [rdi - 1]
cmp al, 0xdb
invalid
int3
Function at 0x1800015c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x18025ed68]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x20], rdx
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1800015fc
mov rcx, qword [rdx]
mov r8d, 0x400
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x18000164f
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], al
mov rcx, rdi
call fcn.180006fc0
mov rax, rbx
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.18015d5d0
mov rbx, qword [rsp + 0x460]
add rsp, 0x440
pop rdi
ret
mov eax, eax
cmp rax, 0x400
jae 0x180001699
mov byte [rsp + rax + 0x30], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180001680
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180009840
jmp 0x180001623
call fcn.18015d32c
int3

Function at 0x180001770
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 8
lea rcx, [0x180264900]
call sub.advapi32.dll_SystemFunction036
mov rax, qword [0x180264900]
add rax, 1
mov qword [0x180264900], rax
jne 0x1800017a3
inc rax
mov qword [0x180264900], rax
add rsp, 0x28
ret

Function at 0x1800017b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, 4
lea rcx, [rsp + 0x30]
call sub.advapi32.dll_SystemFunction036
mov eax, dword [rsp + 0x30]
mov ecx, 1
cdq
mov byte [rbx + 7], cl
xor eax, edx
sub eax, edx
cmove eax, ecx
and dword [rbx + 4], 0xff100001
or dword [rbx + 4], 0x100001
mov dword [rbx], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x180001800
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, 4
lea rcx, [rsp + 0x30]
call sub.advapi32.dll_SystemFunction036
mov eax, dword [rsp + 0x30]
mov ecx, 1
cdq
mov byte [rbx + 7], cl
xor eax, edx
sub eax, edx
cmove eax, ecx
and dword [rbx + 4], 0xff300001
or dword [rbx + 4], 0x300001
mov dword [rbx], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1800018a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov edx, 4
lea rcx, [rsp + 0x30]
call sub.advapi32.dll_SystemFunction036
mov eax, dword [rsp + 0x30]
mov ecx, 1
cdq
mov byte [rbx + 7], cl
xor eax, edx
sub eax, edx
cmove eax, ecx
and dword [rbx + 4], 0xff840001
or dword [rbx + 4], 0x840001
mov dword [rbx], eax
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1800028a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xorps xmm0, xmm0
mov rsi, rdx
mov rdi, rcx
mov edx, 4
movups xmmword [rsp + 0x28], xmm0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], 0
call sub.advapi32.dll_SystemFunction036
mov eax, dword [rsp + 0x50]
mov ecx, 1
cdq
mov byte [rsp + 0x57], cl
xor eax, edx
sub eax, edx
mov rdx, qword [rdi + 0x20]
cmove eax, ecx
lea rcx, [rdi + 0x18]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x54]
and eax, 0xffa00001
or eax, 0xa00001
mov dword [rsp + 0x54], eax
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
cmp rdx, qword [rcx + 0x10]
je 0x180002932
movups xmm0, xmmword [rsp + 0x20]
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
add qword [rcx + 8], 0x18
jmp 0x18000293c
lea r8, [rsp + 0x20]
call fcn.180004e40
mov qword [rsi], rbx
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180003280
Capabilities:
Hook routines via microsoft detours

Disassembly:
sub rsp, 0x28
call fcn.1800a3b10
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800a4350
lea rdx, [0x180003030]
lea rcx, [0x180264878]
call fcn.1800a4400
add rsp, 0x28
jmp fcn.1800a3d40

Function at 0x1800032c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
sub rsp, 0x28
call fcn.1800a3b10
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.1800a4350
lea rdx, [0x180003030]
lea rcx, [0x180264878]
call fcn.1800a4830
add rsp, 0x28
jmp fcn.1800a3d40
Function at 0x180008f90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov esi, edx
mov rbp, rcx
mov edx, 8
lea rcx, [0x180264900]
mov ebx, r9d
mov rdi, r8
call sub.advapi32.dll_SystemFunction036
mov rdx, qword [0x180264900]
add rdx, 1
mov qword [0x180264900], rdx
jne 0x180008fde
inc rdx
mov qword [0x180264900], rdx
movzx eax, byte [rsp + 0x78]
mov r9, rdi
movsd xmm0, qword [rsp + 0x70]
mov r8d, esi
mov byte [rsp + 0x30], al
mov rcx, rbp
movsd qword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], ebx
call fcn.180009020
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18000cbc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x18025ed68]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], 4
mov dword [rsp + 0x38], 0x45564153
mov byte [rsp + 0x3c], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x60]
call fcn.18017baa0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x18000cc69
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18000cc50
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180009840
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18000cca4
lea rax, [rcx + 1]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x38]
mov word [rax + rcx], 0x5c
lea rdi, [rsp + 0x38]
jmp 0x18000ccc8
mov qword [rsp + 0x20], 1
lea r9, [0x1801b73bc]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x38]
call fcn.180005920
mov rdi, rax
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x11
jb 0x18000cd0f
lea rax, [rcx + 0x11]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x18000ccf0
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Goldberg_SteamEmu
mov rcx, rbx
call fcn.18017b690
mov byte [rbx + 0x11], 0
jmp 0x18000cd31
mov qword [rsp + 0x20], reloc.WS2_32.dll_recvfrom
lea r9, str.Goldberg_SteamEmu
xor r8d, r8d
lea edx, [r8 + 0x11]
mov rcx, rdi
call fcn.180005920
mov rdi, rax
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x18000cd78
lea rax, [rcx + 6]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x18000cd59
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, 6
lea rdx, str._Saves
mov rcx, rbx
call fcn.18017b690
mov byte [rbx + 6], 0
jmp 0x18000cd9a
mov qword [rsp + 0x20], 6
lea r9, str._Saves
xor r8d, r8d
lea edx, [r8 + 6]
mov rcx, rdi
call fcn.180005920
mov rdi, rax
mov rdx, rdi
mov rcx, rsi
call fcn.180006480
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18000cddf
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000cdda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000ce07
call fcn.18015ce94
mov rax, rsi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18015d5d0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.18018023c
int3