joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001190b
Capabilities:
Write file on windows

Disassembly:
jmp 0x140019d00
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140030040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x140037068]
call fcn.14001192e
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140019d67
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140019d6e
mov al, 1
jmp 0x140019ebe
call fcn.1400112c1
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400112c1
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011753
movzx eax, al
test eax, eax
je 0x140019dbf
xor al, al
jmp 0x140019ebe
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140019e24
cmp dword [rbp + 0x154], 1
je 0x140019e2f
cmp dword [rbp + 0x154], 3
je 0x140019ead
jmp 0x140019ebc
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140019e7f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140019e7f
xor al, al
jmp 0x140019ebe
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140019e9a
mov dword [rbp + 0x154], 1
jmp 0x140019ea4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140019ebe
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140019ebe
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140029bb0]
call fcn.1400117a8
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001147e
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14001f290
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011979
movzx eax, al
test eax, eax
jne 0x14001f2b0
mov ecx, 7
call fcn.1400117bc
nop
mov byte [rsp + 0x20], 0
call fcn.1400117fd
mov byte [rsp + 0x21], al
cmp dword [0x1400307d0], 1
jne 0x14001f2d4
mov ecx, 7
call fcn.1400117bc
nop
jmp 0x14001f32c
cmp dword [0x1400307d0], 0
jne 0x14001f327
mov dword [0x1400307d0], 1
lea rdx, [0x140028770]
lea rcx, [0x140028440]
call fcn.14001145b
test eax, eax
je 0x14001f308
mov eax, 0xff
jmp 0x14001f431
lea rdx, [0x140028330]
lea rcx, [section..rdata]
call fcn.1400117e9
mov dword [0x1400307d0], 2
jmp 0x14001f32c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011799
call fcn.1400116b3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14001f389
mov rcx, qword [rsp + 0x30]
call fcn.140011398
movzx eax, al
test eax, eax
je 0x14001f389
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140038020]
nop
call fcn.140011726
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001f3bd
mov rcx, qword [rsp + 0x38]
call fcn.140011398
movzx eax, al
test eax, eax
je 0x14001f3bd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400118e8
nop
call fcn.14001f4e0
mov dword [rsp + 0x28], eax
call fcn.140011686
movzx eax, al
test eax, eax
jne 0x14001f3dc
mov ecx, dword [rsp + 0x28]
call fcn.1400110cd
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001f3eb
call fcn.1400118fc
nop
xor edx, edx
mov cl, 1
call fcn.140011366
mov eax, dword [rsp + 0x28]
jmp 0x14001f431
add rsp, 0x68
ret
Function at 0x141106058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1411061df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141106089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14110606f
add dl, dl
jne 0x141106096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411060f6
xor eax, eax
add dl, dl
jne 0x1411060a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411061ad
add dl, dl
jne 0x1411060b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411060c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411060d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411060dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411060ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14110607e
mov eax, 1
add dl, dl
jne 0x141106106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141106113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411060fb
sub eax, ebx
mov ebx, 1
jne 0x14110614c
mov ecx, 1
add dl, dl
jne 0x14110612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14110613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141106123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141106168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141106175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14110615d
cmp eax, 0x7d00
jae 0x14110619b
cmp eax, 0x500
jb 0x141106196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110607e
cmp eax, 0x7f
ja 0x14110619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14110607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411061d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14110607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400011b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x3a0
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov rbp, rdx
test rdx, rdx
je 0x14000128e
xor r14d, r14d
xor edx, edx
mov ecx, 2
mov esi, r14d
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000128e
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001281
lea r9, [rsp + 0x6c]
mov qword [rsp + 0x30], r14
mov r8d, 0x104
mov qword [rsp + 0x20], 0xffffffffffffffff
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
mov rdx, rbp
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x14000126f
mov eax, dword [rsp + 0x5c]
cmp eax, ebx
jbe 0x14000126f
mov esi, dword [rsp + 0x48]
mov ebx, eax
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001220
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x140001290
xor eax, eax
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140002280
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140002dcc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
lea rcx, [0x18046b800]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800909e1
lea rcx, [0x18046b810]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180090af2
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.18020ffc8
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180090ae4
mov r9, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x180090ae4
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x28]
lea rdx, [0x18046ad84]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x180090ae4
cmp qword [rsp + 0x28], 0
je 0x180090ae4
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 0xc]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 8]
mov dword [rcx + rax], edx
mov rcx, qword [rsp + 0x30]
call fcn.18020f070
mov al, 1
jmp 0x180090af4
xor al, al
add rsp, 0x160
pop rdi
ret
Function at 0x180090b00
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x160
lea rcx, [0x18046b820]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180090b31
lea rcx, str.version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180090c39
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.18020ffc8
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180090c2b
mov r9, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x180090c2b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x28]
lea rdx, [0x18046ad9c]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.VERSION.dll_VerQueryValueA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x180090c2b
cmp qword [rsp + 0x28], 0
je 0x180090c2b
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 0xc]
mov dword [rcx + rax], edx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x178]
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + 8]
mov dword [rcx + rax], edx
mov rcx, qword [rsp + 0x30]
call fcn.18020f070
mov al, 1
jmp 0x180090c3b
xor al, al
add rsp, 0x160
pop rdi
ret

Function at 0x180090c50
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x278
mov edx, dword [rsp + 0x280]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
je 0x180090ce5
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x180090cd3
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x288], rax
jne 0x180090cbf
mov rax, qword [rsp + 0x290]
mov ecx, dword [rsp + 0x3c]
mov dword [rax], ecx
jmp 0x180090cd3
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x180090ca0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180090ce7
xor eax, eax
add rsp, 0x278
ret
Function at 0x180091ef0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x20], rax
cmp qword [rsp + 0xc8], 0
je 0x180091f68
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx + 8]
mov qword [rax + 0x30], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xc0]
lea r8, [0x180091cf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 0x38], rax
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x38], 0
je 0x180092170
cmp qword [rsp + 0xc8], 0
je 0x1800920aa
mov ecx, Ordinal_211
call fcn.1800b70fc
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0xc0], 0
je 0x180091fff
mov rax, qword [rsp + 0xc0]
add rax, 0x18
mov qword [rsp + 0x30], rax
jmp 0x180092008
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
call fcn.180093030
mov qword [rsp + 0x38], rax
jmp 0x18009202a
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x60]
call fcn.180092560
nop
lea rcx, [rsp + 0x60]
call fcn.180080b30
cmp dword [rax + 0x10], 0
je 0x18009209b
lea rcx, [rsp + 0x60]
call fcn.180080b30
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [rax]
test eax, eax
je 0x18009209b
mov rax, qword [rsp + 0xc0]
add rax, 0x40
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180092430
nop
lea rcx, [rsp + 0x60]
call fcn.1800767b0
jmp 0x180092170
mov ecx, 0x1c0
call fcn.1800b70fc
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0xc0], 0
je 0x1800920da
mov rax, qword [rsp + 0xc0]
add rax, 0x18
mov qword [rsp + 0x48], rax
jmp 0x1800920e3
mov qword [rsp + 0x48], 0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
call fcn.18007f3f0
mov qword [rsp + 0x50], rax
jmp 0x180092105
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.1800925a0
nop
lea rcx, [rsp + 0x70]
call fcn.180080b30
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call qword [rax]
test eax, eax
je 0x180092166
mov rax, qword [rsp + 0xc0]
add rax, 0x40
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.180092430
nop
lea rcx, [rsp + 0x70]
call fcn.1800767b0
mov eax, 1
add rsp, 0xb8
ret
Function at 0x180093990
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x90]
call fcn.1800821b0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x459
jne 0x180093a03
lea rcx, str.Utf82Unicode:_Invalid_UTF_8_sequence._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rsp + 0x30], 0
jne 0x180093a17
lea rcx, str.Utf82Unicode:_Error_in_conversion._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movsxd rax, dword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180093e70
nop
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180093e10
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x90]
call fcn.1800821b0
mov ecx, dword [rsp + 0x30]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
je 0x180093a8b
lea rcx, str.Utf82Unicode:_MultiByteToWideChar_CP_UTF8_failed._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180093e10
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.180081ee0
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x50]
call fcn.180093e40
mov rax, qword [rsp + 0x88]
add rsp, 0x78
ret
Function at 0x180093ad0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov dword [rsp + 0x44], 0
mov rcx, qword [rsp + 0xa0]
call fcn.180081e70
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x459
jne 0x180093b58
lea rcx, str.WideByte2Acsi:_Invalid_UTF_8_sequence._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rsp + 0x40], 0
jne 0x180093b6c
lea rcx, str.WideByte2Acsi:_Error_in_conversion._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
movsxd rax, dword [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.180093d70
nop
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.180093d10
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0xa0]
call fcn.180081e70
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
je 0x180093bf2
lea rcx, str.WideByte2Acsi:_WideCharToMultiByte_CP_OEMCP_failed._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.180093d10
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call fcn.180082710
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x60]
call fcn.180093d40
mov rax, qword [rsp + 0x98]
add rsp, 0x88
ret
Function at 0x180096250
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
xor edx, edx
mov rax, qword [rsp + 0xa0]
movabs rcx, 0x100000000
div rcx
mov rax, rdx
cmp rax, 0x7fffffff
jbe 0x180096287
mov byte [rsp + 0x20], 1
jmp 0x18009628c
mov byte [rsp + 0x20], 0
xor edx, edx
mov rax, qword [rsp + 0xa0]
movabs rcx, 0x100000000
div rcx
movabs rcx, 0x100000000
imul rax, rcx
movzx ecx, byte [rsp + 0x20]
movabs rdx, 0x100000000
imul rcx, rdx
add rax, rcx
mov qword [rsp + 0x28], rax
movabs rax, 0x800000000000
cmp qword [rsp + 0x28], rax
jne 0x1800962ec
movabs rax, 0x7fff80000000
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x58]
lea rcx, [0x18051c180]
call fcn.180080e60
lea rdx, [rsp + 0x70]
lea rcx, [0x18051c180]
call fcn.180080910
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.180080670
movzx eax, al
test eax, eax
je 0x1800964da
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
movsx eax, byte [0x18051c0fa]
mov ecx, dword [0x18051c0fc]
imul ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x30], 0
jne 0x18009637a
xor edx, edx
mov eax, 0x10000
div dword [0x18051c0fc]
imul eax, dword [0x18051c0fc]
mov eax, eax
mov qword [rsp + 0x30], rax
mov r9d, 1
mov r8d, 0x2000
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180096479
mov eax, dword [0x18051c0fc]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x18009645c
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x68], eax
mov eax, dword [0x18051c0fc]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
mov rax, qword [rsp + 0x50]
mov ecx, dword [0x18051c0fc]
mov dword [rax + 4], ecx
lea rdx, [rsp + 0x28]
lea rcx, [0x18051c180]
call fcn.1800983b0
lea rcx, [rsp + 0x60]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x28]
lea rcx, [0x18051c180]
call fcn.1800983b0
jmp 0x1800964e8
mov dword [rsp + 0x40], 0x13f
lea rdx, [0x180494e50]
lea rcx, [rsp + 0x40]
call fcn.18020d4c8
xor eax, eax
jmp 0x1800964e8
mov eax, dword [0x18051c0fc]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18009637a
mov eax, dword [0x18051c0fc]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18009637a
mov dword [rsp + 0x44], 0x146
lea rdx, [0x180494e50]
lea rcx, [rsp + 0x44]
call fcn.18020d4c8
xor eax, eax
jmp 0x1800964e8
lea rcx, [rsp + 0x58]
call fcn.180080650
add rax, 8
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x180098260
Capabilities:
Allocate thread local storage
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x18051c100], eax
cmp dword [0x18051c100], 0xffffffff
jne 0x180098297
mov dword [rsp + 0x20], 0x47a
lea rdx, [0x180494e50]
lea rcx, [rsp + 0x20]
call fcn.18020d4c8
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x18051c0d0], rax
cmp qword [0x18051c0d0], 0
jne 0x1800982ce
mov dword [rsp + 0x24], 0x47f
lea rdx, [0x180494e50]
lea rcx, [rsp + 0x24]
call fcn.18020d4c8
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov byte [0x18051c0f8], 1
mov byte [0x18051c0f9], 0
mov byte [0x18051c0fa], 1
mov eax, dword [rsp + 0x2c]
mov dword [0x18051c0fc], eax
lea rax, [0x180096500]
mov qword [0x18051c0f0], rax
lea rax, [0x180096840]
mov qword [0x18051c0e8], rax
lea rax, [fcn.180096980]
mov qword [0x18051c0e0], rax
lea rax, [0x180096b10]
mov qword [0x18051c0d8], rax
mov qword [0x18051c0c8], 0
mov rax, qword [rsp + 0x70]
add rsp, 0x68
ret

Function at 0x18009ff10
Capabilities:
Read file on windows

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, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov r14d, ecx
test r8d, r8d
jle 0x18009ff6f
nop word [rax + rax]
mov r8d, esi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rbp
mov ecx, r14d
call fcn.1802316dc
mov edi, eax
test eax, eax
je 0x18009ff6f
cmp eax, 0xffffffff
jne 0x18009ff69
call fcn.180213e9c
cmp dword [rax], 4
jne 0x18009ff8c
add ebx, edi
cmp ebx, esi
jl 0x18009ff40
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
or eax, 0xffffffff
jmp 0x18009ff71