joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065794
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x1400657b5
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140065839
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x140065804
mov dword [rsp + 4], 0x9908b0df
jmp 0x14006580c
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400657a8
add rsp, 0x18
ret

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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov rax, qword [0x14009ac40]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x130]
call qword [rax + 8]
movzx eax, al
test eax, eax
jne 0x140069e94
mov eax, 0xffffffff
jmp 0x140069fc6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x130]
add rax, 0x3a0
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call fcn.14004a668
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x148]
mov r8d, dword [rsp + 0x140]
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
call fcn.14006af3c
mov rcx, qword [rsp + 0x130]
add rcx, 0x48
mov rdx, rax
call fcn.14004eb38
nop
mov rax, qword [rsp + 0x130]
add rax, 0x48
mov rcx, rax
call fcn.14004f4d4
cmp rax, 0xffffffffffffffff
jne 0x140069f26
mov eax, 0xffffffff
jmp 0x140069fc6
cmp dword [rsp + 0x140], 0
jne 0x140069fbf
mov dword [rsp + 0x30], 0x80
mov rax, qword [rsp + 0x130]
add rax, 0x48
mov rcx, rax
call fcn.14004f4d4
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x140069f72
mov eax, 0xffffffff
jmp 0x140069fc6
movzx eax, word [rsp + 0x90]
cmp eax, 2
jne 0x140069f94
movzx ecx, word [rsp + 0x92]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x140069fc6
movzx eax, word [rsp + 0x90]
cmp eax, 0x17
jne 0x140069fb6
movzx ecx, word [rsp + 0x92]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x140069fc6
mov eax, 0xffffffff
jmp 0x140069fc6
mov eax, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14007e590
add rsp, 0x128
ret
Function at 0x14006db28
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x470
mov rax, qword [0x14009ac40]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rax, qword [rsp + 0x480]
movzx eax, word [rax]
cmp eax, 2
jne 0x14006db86
mov rax, qword [rsp + 0x480]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov rcx, qword [rsp + 0x498]
mov dword [rcx], eax
jmp 0x14006dbbe
mov rax, qword [rsp + 0x480]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14006dbb7
mov rax, qword [rsp + 0x480]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov rcx, qword [rsp + 0x498]
mov dword [rcx], eax
jmp 0x14006dbbe
xor al, al
jmp 0x14006dc48
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x401
rep stosb byte [rdi], al
lea rcx, [rsp + 0x50]
call fcn.14007726c
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x50]
call fcn.140033bcc
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x488]
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x14006dc2c
xor al, al
jmp 0x14006dc48
lea rcx, [rsp + 0x50]
call fcn.140033bcc
mov rdx, rax
mov rcx, qword [rsp + 0x490]
call fcn.14004ec98
mov al, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14007e590
add rsp, 0x470
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x14009ac40]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x20], 0x80
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14006dd03
mov r9, qword [rsp + 0xe0]
mov r8, qword [rsp + 0xd8]
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14006db28
nop
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14007e590
add rsp, 0xc8
ret
Function at 0x14006fcc8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
add rax, 9
mov rcx, rax
call fcn.14004f4f4
movzx eax, al
test eax, eax
jne 0x14006fd4e
mov rax, qword [rsp + 0x50]
add rax, 9
mov dl, 1
mov rcx, rax
call fcn.14004eb60
mov rax, qword [rsp + 0x50]
add rax, 0x10
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, recv
xor r8d, r8d
lea rdx, str.InitialBootCount
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rax, qword [rsp + 0x50]
add rax, 9
xor edx, edx
mov rcx, rax
call fcn.14004eb60
nop
add rsp, 0x48
ret
Function at 0x140070a00
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x14009ac40]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x80]
call fcn.14006aa9c
lea rcx, [rsp + 0x48]
call fcn.14004a3d4
nop
mov qword [rsp + 0x38], 0
jmp 0x140070a4e
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x88]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp qword [rsp + 0x38], rax
jae 0x140070a89
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
movsx ax, byte [rax]
movzx edx, ax
lea rcx, [rsp + 0x48]
call fcn.1400537d4
nop
jmp 0x140070a41
lea rcx, [rsp + 0x48]
call fcn.14006a530
mov qword [rsp + 0x20], 0
mov r9d, 3
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFile2]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0xffffffffffffffff
jne 0x140070ae7
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x48]
call fcn.14004d810
mov al, byte [rsp + 0x30]
jmp 0x140070c15
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140070b2a
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x48]
call fcn.14004d810
mov al, byte [rsp + 0x31]
jmp 0x140070c15
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x10]
mov r8d, 2
xor edx, edx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingFromApp]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 8], 0
jne 0x140070ba7
mov rcx, qword [rsp + 0x80]
call fcn.14006aa9c
nop
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x48]
call fcn.14004d810
mov al, byte [rsp + 0x32]
jmp 0x140070c15
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileFromApp]
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 0x18], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x18], 0
jne 0x140070c02
mov rcx, qword [rsp + 0x80]
call fcn.14006aa9c
nop
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x48]
call fcn.14004d810
mov al, byte [rsp + 0x33]
jmp 0x140070c15
mov byte [rsp + 0x34], 1
lea rcx, [rsp + 0x48]
call fcn.14004d810
mov al, byte [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007e590
add rsp, 0x70
pop rdi
ret
Function at 0x14007bff0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14005a438]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x14005aa08]
mov qword [rsp + 0x78], rax
lea rax, [0x1400886d0]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x14007c0a9
lea rdx, str._n_n_Notepad
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400327e4
nop
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, str.Notepad
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x1400a2808], rax
mov edx, 5
mov rcx, qword [0x1400a2808]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x1400886c0]
mov rcx, qword [0x1400a2808]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x1400a2808]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1400a2808]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
add rsp, 0xc0
pop rdi
ret
Function at 0x14007edb8
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rdx, [0x140009648]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_setlocale]
lea rcx, str.CHEAT_PRAMA_n
call fcn.140001470
lea rcx, str.BY_PKSHOP_n
call fcn.140001470
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.Loading_Done__n
call fcn.140001470
call fcn.140002740
lea rcx, str.Update_Finish_n
call fcn.140001470
call fcn.140002d40
mov rax, qword [0x14000c800]
test rax, rax
jne 0x140005bd0
nop dword [rax + rax]
lea rdx, str.PLAYERUNKNOWNS_BATTLEGROUNDS
lea rcx, str.UnrealWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x14000c800], rax
test rax, rax
je 0x140005bb0
lea rdx, [rsp + 0xd0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0xd8]
sub eax, dword [rsp + 0xd0]
mov dword [0x14000c0c8], eax
mov eax, dword [rsp + 0xdc]
sub eax, dword [rsp + 0xd4]
cmp qword [0x14000c800], 0
mov dword [0x14000c0c0], eax
jne 0x140005c40
nop dword [rax]
nop word [rax + rax]
lea rdx, str.PLAYERUNKNOWNS_BATTLEGROUNDS
lea rcx, str.UnrealWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x14000c800], rax
test rax, rax
je 0x140005c20
lea rax, [0x140005660]
mov dword [rsp + 0x80], 0x50
xor ebx, ebx
mov qword [rsp + 0x88], rax
xor ecx, ecx
mov qword [rsp + 0x90], rbx
mov dword [rsp + 0x84], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xorps xmm0, xmm0
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0x80]
lea rax, str.Public
movdqa xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
mov qword [rsp + 0xc0], rax
movdqa xmmword [rsp + 0xb0], xmm1
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rsp + 0x98]
lea r8, str.PK_CHEATS_FREE
mov rdx, qword [rsp + 0xc0]
mov r9d, 0x80000000
mov qword [rsp + 0x58], rbx
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 0x436
mov dword [rsp + 0x30], 0x77e
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov r9d, 1
xor edx, edx
mov r8d, r9d
mov qword [0x14000c7e8], rax
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateRectRgn]
mov rcx, qword [0x14000c7e8]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 3
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x70], 1
call qword [sym.imp.dwmapi.dll_DwmEnableBlurBehindWindow]
mov rcx, qword [0x14000c7e8]
lea edx, [rbx + 0x11]
call qword [sym.imp.USER32.dll_SetWindowDisplayAffinity]
mov rcx, qword [0x14000c7e8]
lea edx, [rbx + 5]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14000c7e8]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.140003520
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140005530]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.1400056e0
int3
Function at 0x140005db0
Capabilities:
Set console window title
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, str.__Public__
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140005e43
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.ProxyEnable
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140005e43
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x140005e57
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007740
add rsp, 0x58
ret
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Success_
call fcn.140006890
mov rcx, rax
lea rdx, [0x140006a60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.140005b30
int3

Function at 0x1400081ec
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x14001bf00
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 0x140011654
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001d330
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001d350
xor al, al
jmp 0x14001d3d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001d363
xor al, al
jmp 0x14001d3d1
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 0x14001d38d
xor al, al
jmp 0x14001d3d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001d3a1
xor al, al
jmp 0x14001d3d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001d3b3
xor al, al
jmp 0x14001d3d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001d3cf
xor al, al
jmp 0x14001d3d1
mov al, 1
add rsp, 0x38
ret
Function at 0x1800016e0
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, [0x18013fa20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.180001630
test al, al
jne 0x18000170d
nop word [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001700
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test rax, rax
je 0x1800017a5
cmp dword [rsp + 0x30], 3
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], rdi
jle 0x18000174d
nop word [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001740
mov rsi, qword [rax + 8]
lea rdi, str.user
mov ecx, 5
repe cmpsw word [rsi], word [rdi]
je 0x18000178d
mov rsi, qword [rax + 0x10]
lea rdi, [0x18013fa40]
mov ecx, 4
repe cmpsw word [rsi], word [rdi]
je 0x18000178d
nop word [rax + rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001780
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.180001280
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x180001fd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x1801705d0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180002148
mov ecx, 0x228
call fcn.18000b130
mov rbx, rax
test rax, rax
je 0x180002148
xor edx, edx
mov r8d, 0x228
mov rcx, rax
call fcn.18012da30
test rdi, rdi
je 0x180002093
lea r9, [0x18014cac8]
mov r8, rdi
lea r10, [0x1801439c0]
sub r9, rdi
nop
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x18000216b
test ecx, ecx
jne 0x18000217d
lea rdi, [0x180178cb0]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call fcn.18012da30
lea rcx, str.SystemDrive
mov r8d, 0x8000
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x180002091
cmp eax, 0x8000
jbe 0x180002093
xor edi, edi
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012da30
lea r8, str._s
lea rcx, [rsp + 0x54]
mov r9, rdi
mov edx, 0x104
call fcn.180128cf4
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x54]
call fcn.18012947c
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x180002140
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x1800020e6
test al, 4
je 0x180002185
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012da30
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.1801295c4
cmp eax, 0xffffffff
je 0x180002140
nop word [rax + rax]
mov eax, dword [rsp + 0x30]
test al, 2
jne 0x18000211c
test al, 4
je 0x180002185
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x128
call fcn.18012da30
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.1801295c4
cmp eax, 0xffffffff
jne 0x180002110
mov rcx, rbx
call fcn.1800022b0
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180127870
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
movzx edx, byte [rax + r10]
movzx ecx, byte [rcx + r10]
sub ecx, edx
jne 0x180002093
inc r8
jmp 0x180002040
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x54]
mov r8d, 0x104
mov dword [rbx + 0xc], eax
call fcn.180129700
mov byte [rbx + 0x114], 0
mov rax, rbx
jmp 0x18000214a
Function at 0x180004980
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
lea rdx, [0x180143850]
mov rcx, rax
call fcn.18012997c
mov rdi, rax
test rax, rax
je 0x180004afd
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rbp
lea r8d, [rdx + 2]
call fcn.18012a2e8
mov rcx, rdi
call fcn.18012a108
mov rcx, rdi
movsxd rbp, eax
call fcn.180128838
mov r11, qword [rbx]
mov rax, qword [r11 + 0x18]
movsxd rcx, dword [rax + 0x88]
cmp rbp, rcx
jle 0x180004a36
mov dword [rbx + 0x24], 0x12
test byte [r11 + 0x14], 1
je 0x180004a1f
mov rax, qword [str.string_or_blob_too_big]
lea rdx, str.unknown_error
mov r9b, 1
test rax, rax
mov rcx, rbx
mov qword [rsp + 0x20], 0
cmovne rdx, rax
or r8d, 0xffffffff
call fcn.18003aea0
mov rcx, rdi
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.18012a484
mov qword [rsp + 0x48], rsi
test rbp, rbp
mov esi, 1
cmovne rsi, rbp
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x180004ae3
test rsi, rsi
je 0x180004ae3
mov rcx, rsi
call fcn.18000b130
mov rsi, rax
test rax, rax
je 0x180004ae3
mov r9, rdi
mov r8, rbp
mov edx, 1
mov rcx, rax
call fcn.180129c68
cmp rbp, rax
jne 0x180004a9c
lea r9, [sym.sqlite.dll_sqlite3_free]
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call sym.sqlite.dll_sqlite3_result_blob64
jmp 0x180004aeb
mov rax, qword [rbx]
mov dword [rbx + 0x24], 0xa
test byte [rax + 0x14], 1
je 0x180004ad9
mov rax, qword [str.disk_I_O_error]
lea rdx, str.unknown_error
mov r9b, 1
test rax, rax
mov rcx, rbx
mov qword [rsp + 0x20], 0
cmovne rdx, rax
or r8d, 0xffffffff
call fcn.18003aea0
mov rcx, rsi
call sym.sqlite.dll_sqlite3_free
jmp 0x180004aeb
mov rcx, rbx
call sym.sqlite.dll_sqlite3_result_error_nomem
mov rcx, rdi
call fcn.18012a484
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret