joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140127fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140128065
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
nop dword [rax + rax]
cmp ebx, 0x10
jae 0x140128059
mov dword [rsp + 0x38], ebx
mov byte [rsp + 0x3c], cl
mov qword [rsp + 0x10], rax
xor ebx, ebx
call fcn.140127ca0
nop dword [rax]
test rax, rax
je 0x14012804d
mov qword [rsp + 0x18], rax
nop
mov rax, qword [rsp + 0x10]
call fcn.140127e60
cmp ax, 0x20b
jne 0x140128013
mov ecx, dword [rsp + 0x38]
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
lea rcx, [rdx + rcx*8]
lea rcx, [rcx + 0x88]
jmp 0x140128026
mov edx, dword [rsp + 0x38]
mov edx, edx
mov rbx, qword [rsp + 0x18]
lea rcx, [rbx + rdx*8]
lea rcx, [rcx + 0x78]
movzx edx, byte [rsp + 0x3c]
test dl, dl
jne 0x140128034
cmp dword [rcx], 0
je 0x140128041
mov rax, rcx
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
xor eax, eax
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
mov qword [rsp + 8], rax
mov dword [rsp + 0x10], ebx
mov byte [rsp + 0x14], cl
call fcn.140062740
mov rax, qword [rsp + 8]
mov ebx, dword [rsp + 0x10]
movzx ecx, byte [rsp + 0x14]
jmp fcn.140127fa0

Function at 0x14012f860
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14013aa00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14013aa00
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14012f8d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1403598f4]
mov r12, rcx
test ebx, ebx
jle 0x14012fa00
mov rax, qword [0x1403598f8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14012f91c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14012f9a3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14012f900
mov rcx, r12
call fcn.140130270
mov rsi, rax
test rax, rax
je 0x14012fa22
mov rax, qword [0x1403598f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1401303a0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1403598f8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14012fa07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14012f99c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14012f9b0
add dword [0x1403598f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1403598f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14012f99c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14012f860
nop dword [rax]
xor ebx, ebx
jmp 0x14012f927
mov rax, qword [0x1403598f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14012f860
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14012f860
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14012fee0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140359960]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140359940]
test rbx, rbx
je 0x14012ff34
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14012ff2b
test r12, r12
je 0x14012ff2b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14012ff10
lea rcx, [0x140359960]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140130270
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402fc180]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140130290
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140130298
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140130290
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1401302e5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401302dc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140130290
add rax, 0x28
cmp rax, r9
jne 0x1401302c8
xor eax, eax
ret

Function at 0x1401302f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402fc180]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140130310
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140130318
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140130310
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1401303a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402fc180]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1401303c0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1401303c8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140131d20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1402fc200]
mov rax, qword [rsi]
test rax, rax
je 0x140131db0
cmp qword [rax + 0x30], 0
jne 0x140131dd0
lea rbx, [0x1401599c8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140131d80
cmp qword [rax + 0x30], 0
jne 0x140131da0
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14013ab90
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140136c20
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140131d62
test rax, rax
jne 0x140131da0
call fcn.140136c20
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140131d70
call fcn.140136c20
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140131d40
test rax, rax
jne 0x140131dd0
call fcn.140136c20
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140131d4b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140131de0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140131ef2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140131eca
add rax, 1
cmp rax, 0x6b
je 0x140131ee7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140131ec0
cmp edx, 0x6a
je 0x140131ee7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140131edb
Function at 0x140132900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1402fc200]
mov rax, qword [rsi]
test rax, rax
je 0x140132af0
cmp qword [rax + 0x28], 0
jne 0x140132ad8
lea rcx, [0x140359a18]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140132ae5
call fcn.140131f10
mov rax, qword [rsi]
test rax, rax
je 0x140132980
cmp qword [rax + 0x30], 0
jne 0x1401329a0
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1401329b4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140136c20
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140132950
test rax, rax
jne 0x1401329a0
call fcn.140136c20
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14013296e
call fcn.140131a50
cmp qword [0x14035d050], 0
mov rbx, rax
je 0x14013296e
test rax, rax
je 0x14013296e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140138ac0
cmp eax, 1
je 0x140132b5d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14013ab96
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140132b38
cmp qword [rax + 0x30], 0
je 0x140132b20
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14013ab96
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14013293c
mov rax, qword [rsi]
jmp 0x140132949
call fcn.140136c20
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140132928
test rax, rax
jne 0x140132ad8
call fcn.140136c20
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14013293c
jmp 0x140132941
lea rdx, [0x1401599c8]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140132aae
call fcn.140136c20
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140132b20
test rax, rax
jne 0x140132aaa
call fcn.140136c20
jmp 0x140132aaa
call fcn.140131de0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1402fc200]
mov rdx, qword [rax]
lea rax, [0x140359a28]
mov qword [rdx + 0x10], rax
ret
Function at 0x140136aa0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140136ac0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140136b08
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140136ab4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140136af5
Function at 0x140136c20
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140359b00]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140136c43
lea rax, [0x140359b08]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140136c8b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140136c88
lea rax, [0x140359b40]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140136cbb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140136cb8
xor ecx, ecx
mov byte [0x140359b59], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140359b62], rdx
lea r8, [0x140359b00]
lea rbx, [0x140359b5a]
mov qword [0x140359b72], rdx
mov qword [0x140359b82], rdx
mov qword [0x140359b92], rdx
xor edx, edx
mov qword [0x140359b5a], rax
mov qword [0x140359b6a], rax
mov qword [0x140359b7a], rax
mov qword [0x140359b8a], rax
mov byte [0x140359b9a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140136e96
lea rcx, [0x140359b40]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140136de1
lea rsi, [0x140359a40]
lea r8, [0x140359b9a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140136d8d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140136d80
lea rcx, [0x140359b40]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140136e83
lea rcx, [0x140136b30]
mov qword [0x140359a40], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140359a40]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140359b40]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x140359b9a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140136eb6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140136e33
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140136e20
mov rax, rdx
mov qword [0x140359a40], rax
lea rsi, [0x140359a40]
jmp 0x140136e59
cmp rdx, rsi
je 0x140136dbf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140136e50
cmp rdx, rsi
je 0x140136dbf
mov qword [rdx + 8], rsi
lea rcx, [0x140136b30]
call sub.msvcrt.dll__onexit
jmp 0x140136dbf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140136aa0
xor eax, eax
jmp 0x140136dd8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140136aa0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140136aa0
xor eax, eax
jmp 0x140136e3f
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call fcn.100145000
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.1000019b0
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001955
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180019858
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
lea rsi, [0x180045030]
mov ebp, 0x800
lea r8, str.._._._..._._._4_._._...
mov rcx, rsi
mov r9d, 0x1000
mov edx, ebp
call fcn.180019988
xor r14d, r14d
mov eax, r14d
xor byte [rax + rsi], 0x8a
inc rax
cmp rax, rbp
jl 0x18001989a
lea rcx, [rsp + 0x20]
mov r8d, ebp
mov rdx, rsi
call fcn.180014854
jmp 0x18001994a
lea rcx, [rsp + 0x20]
call fcn.180014900
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.180014900
mov rcx, qword [0x180050100]
movsx rdi, di
mov edx, ebx
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x180019934
dec edx
je 0x18001991d
dec edx
jne 0x18001994a
lea rcx, [rsp + 0x20]
movsx edx, ax
movsx rbx, ax
call fcn.18001489c
mov rcx, qword [0x180050100]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001d860
jmp 0x18001994a
lea rcx, [rsp + 0x20]
call fcn.180014864
mov rcx, qword [0x180050100]
mov dword [rdi + rcx + 8], eax
jmp 0x18001994a
lea rcx, [rsp + 0x20]
call fcn.180014900
mov rdx, qword [0x180050100]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.180014900
movzx edi, ax
test ax, ax
jg 0x1800198bb
mov r8, rbp
xor edx, edx
mov rcx, rsi
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
jmp fcn.18001d470

Function at 0x180019988
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x1800199ce
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov ebx, edx
mov r11, rcx
xor r10d, r10d
movsxd rdi, r9d
mov eax, r10d
mov rcx, rdi
inc r10d
cdq
idiv r9d
movsxd rax, edx
sub rcx, rax
mov al, byte [rcx + r8 - 1]
xor byte [r11], al
inc r11
cmp r10d, ebx
jl 0x1800199a1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1800199d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov ebx, edx
mov r11, rcx
test edx, edx
jle 0x1800199fd
mov eax, r10d
inc r10d
cdq
idiv r9d
movsxd rax, edx
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
cmp r10d, ebx
jl 0x1800199e1
mov rbx, qword [rsp + 8]
ret
Function at 0x140001810
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, ecx
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140001846
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
pop rbx
ret
Function at 0x1400078f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14000760c
mov ebx, eax
test eax, eax
jne 0x140007928
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14000798b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007982
test al, 0x10
je 0x140007982
bt eax, 0xa
jae 0x14000797b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14000799c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140007977
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140007977
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140007982
and dword [rsp + 0x3c], 0
jmp 0x140007987
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400079f4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140007a78
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140009490]
cmp byte [rcx + rax], 0
je 0x140007a78
dec r8
sub rdx, 1
jne 0x140007a5e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400084b0
Capabilities:
Parse pe header

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