joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005725
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1d0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov ecx, 0x18000e8
call sub.msvcrt.dll_malloc
mov rsi, rax
xor r15d, r15d
mov r8d, 0x18000e8
mov rcx, rax
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rdi
call sub.msvcrt.dll__strdup
mov qword [rsi], rax
and qword [rsi + 8], 0
mov rcx, r14
call sub.msvcrt.dll__strdup
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x20], rbx
mov word [rsi + 0x28], 0x35
mov rcx, rdi
call fcn.1800058b5
mov qword [rsi + 0x18], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
and qword [rsi + 0x18000d0], 0
mov word [rsi + 0x18000d8], 0x100
mov byte [rsi + 0x18000da], 0
mov qword [rsi + 0x18000c8], 8
mov dword [rsi + 0x18000dc], 0x3e8
lea rcx, [rsi + 0x40]
mov r8d, 0x800000
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsi + 0x800040]
mov r8d, 0x800000
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rsi
add rcx, 0x1000040
mov r8d, 0x800000
xor edx, edx
call sub.msvcrt.dll_memset
cmp r15, 8
je 0x180005811
mov qword [rsi + r15*8 + 0x1800080], r15
inc r15
jmp 0x1800057fe
xor ebx, ebx
lea rdi, [0x180005924]
mov r14, qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
cmp rbx, 8
je 0x18000586b
mov ecx, 0x10
call sub.msvcrt.dll_malloc
mov qword [rax], rsi
mov dword [rax + 8], ebx
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rdi
mov r9, rax
call r14
mov qword [rsi + rbx*8 + 0x1800040], rax
mov ecx, 0xa
call r15
inc rbx
jmp 0x180005828
lea rdx, [rsp + 0x38]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x1800058ab
mov dword [rsi + 0x18000e0], 1
mov dword [rsi + 0x18000e4], eax
mov rax, rsi
add rsp, 0x1d0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call sub.msvcrt.dll_exit

Function at 0x1800060a9
Capabilities:
Terminate thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov edi, 0x300008
mov rbx, qword [sym.imp.KERNEL32.dll_TerminateThread]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x300010
je 0x1800060ed
mov rcx, qword [rsi + rdi*8]
xor edx, edx
call rbx
mov byte [rsi + 0x18000d8], 1
mov ecx, 0x3e8
call r14
inc rdi
jmp 0x1800060c8
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, 0x100008
cmp rdi, 0x200008
je 0x180006134
mov rcx, qword [rsi + rdi*8 - 0x800000]
test rcx, rcx
je 0x18000611c
call fcn.180007260
and qword [rsi + rdi*8 - 0x800000], 0
mov rcx, qword [rsi + rdi*8]
test rcx, rcx
je 0x18000612f
call fcn.180007260
and qword [rsi + rdi*8], 0
inc rdi
jmp 0x1800060f8
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180006147
call fcn.180007260
and qword [rsi + 8], 0
mov rcx, qword [rsi]
test rcx, rcx
je 0x180006158
call fcn.180007260
and qword [rsi], 0
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x18000616b
call fcn.180007260
and qword [rsi + 0x10], 0
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.180007260
Function at 0x18000617c
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
lea rbx, [rcx + 0x18000e0]
mov r14d, 0xfa
mov ebp, 0xa
lea r12, [rsp + 0x30]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
xor r15d, r15d
test r15, r15
jne 0x180006256
test ebp, ebp
jle 0x180006253
cmp byte [rdi + 0x18000d8], 0
jne 0x180006253
dec ebp
mov qword [rsp + 0x20], r12
and qword [rsp + 0x28], 0
mov rcx, rsi
mov dx, 5
mov r8d, 0x18c8
mov r9, rbx
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
je 0x180006208
cmp byte [rdi + 0x18000d8], 0
mov r15d, 0
jne 0x1800061b3
jmp 0x180006245
mov rax, r12
mov rax, qword [rax]
test rax, rax
je 0x180006228
cmp word [rax + 0x10], 5
jne 0x18000620b
mov rcx, qword [rax + 0x20]
call sub.msvcrt.dll__strdup
mov r15, rax
jmp 0x18000622b
xor r15d, r15d
mov rcx, qword [rsp + 0x30]
mov edx, 1
call sub.DNSAPI.dll_DnsFree
test r15, r15
jne 0x1800061b3
jmp 0x1800061f7
mov ecx, r14d
call r13
add r14, r14
jmp 0x1800061b0
xor r15d, r15d
mov rax, r15
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400051a4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000b808], rcx
je 0x1400051da
cmp rax, rcx
jne 0x1400051d8
mov ebx, 1
mov edi, ebx
jmp 0x1400051df
jmp 0x1400051bd
mov ebx, 1
mov eax, dword [0x14000b810]
cmp eax, ebx
jne 0x1400051f5
mov ecx, 0x1f
call 0x14017b000
jmp 0x14000522c
mov eax, dword [0x14000b810]
test eax, eax
jne 0x140005226
mov dword [0x14000b810], ebx
lea rdx, [0x140007430]
lea rcx, [0x140007410]
call sub.MSVCR120_CLR0400.dll__initterm_e
test eax, eax
je 0x14000522c
mov eax, 0xff
jmp 0x14000531d
mov dword [0x14000a9e8], ebx
mov eax, dword [0x14000b810]
cmp eax, ebx
jne 0x140005253
lea rdx, [0x140007408]
lea rcx, [0x1400073c8]
call sub.MSVCR120_CLR0400.dll__initterm
mov dword [0x14000b810], 2
test edi, edi
jne 0x140005260
xor eax, eax
xchg qword [0x14000b808], rax
cmp qword [0x14000b828], 0
je 0x140005298
lea rcx, [0x14000b828]
call fcn.140005600
test eax, eax
je 0x140005298
mov rbx, qword [0x14000b828]
mov rcx, rbx
mov rax, qword [fcn.140005cf0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rcx, qword [0x14000aa00]
mov rax, qword [sym.imp.MSVCR120_CLR0400.dll___winitenv]
mov qword [rax], rcx
mov r8, qword [0x14000aa00]
mov rdx, qword [0x14000a9f8]
mov ecx, dword [0x14000a9f4]
call fcn.140002a34
mov dword [0x14000a9ec], eax
cmp dword [0x14000a9f0], 0
jne 0x1400052d9
mov ecx, eax
call qword [sym.imp.MSVCR120_CLR0400.dll_exit]
cmp dword [0x14000a9e8], 0
jne 0x1400052ee
call qword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x14000a9ec]
jmp 0x14000531d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.140005680
add rsp, 0x28
jmp 0x1400051a4
Function at 0x140002374
Capabilities:
Parse pe header

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

Function at 0x14000b6e8
Capabilities:
Parse pe header

Disassembly:
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 0x14000b757
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b757
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b757
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b757
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b757
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b757
cmp dword [rcx + 0xf8], 0
je 0x14000b757
mov ecx, ebx
call fcn.14000b808
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.14000b5e4
nop
cmp dword [rbp + 0x20], 0
je 0x14000b7a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000b7b0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000b6e8

Function at 0x14000b8ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b6e8
Function at 0x140011c84
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011c9a
mov al, 1
jmp 0x140011cfa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011cab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011cf8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e4bc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011cf8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011cf8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011cf8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011cfa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013a24
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140013a54
xor eax, eax
jmp 0x140013b17
mov rbp, rbx
cmp word [rax], si
je 0x140013a79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013a60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013a5c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140013944
movsxd r14, eax
test eax, eax
jne 0x140013ab7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013a4d
mov rcx, r14
call fcn.14000f1fc
mov rdi, rax
test rax, rax
jne 0x140013ad0
xor ecx, ecx
call fcn.14000c884
jmp 0x140013aac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140013944
test eax, eax
jne 0x140013b01
mov rcx, rdi
call fcn.14000c884
jmp 0x140013b0b
xor ecx, ecx
call fcn.14000c884
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, 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
ret
Function at 0x140015588
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14005f270]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400155df
cmp word [rdx], r13w
jne 0x1400155df
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400155e4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140015709
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001572a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001561d
mov rdx, r9
mov word [rbx], cx
jmp 0x140015644
cmp r9, r8
jae 0x140015654
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400155fe
jmp 0x140015709
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400156fe
cmp dword [rsp + 0x80], esi
je 0x1400156fe
lea r8, [0x14005f270]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400156d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400156a6
mov word [rbx], r13w
jmp 0x140015706
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400156b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140015706
cmp word [rsp + 0x70], r13w
jne 0x1400156e3
cmp rbx, r14
je 0x1400156a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400152c0
cmp word [rsp + 0x70], r13w
je 0x140015709
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14005f270]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140015703
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140015709
Function at 0x140019d48
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140011904
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140019dd2
cmp byte [rbp - 0x21], r15b
je 0x140019dcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140019e08
call fcn.14000cad4
test eax, eax
jne 0x140019df4
cmp byte [rbp - 0x21], r15b
je 0x140019dec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140019e08
cmp byte [rbp - 0x21], r15b
je 0x140019e05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140011788
test eax, eax
jne 0x140019ea8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140011904
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140019e47
cmp byte [rbp - 0x21], r15b
je 0x140019e7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140019e7c
call fcn.14000cad4
test eax, eax
jne 0x140019e68
cmp byte [rbp - 0x21], r15b
je 0x140019e61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140019e7c
cmp byte [rbp - 0x21], r15b
je 0x140019e79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140011788
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140019ea8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140019eab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140019eb9
mov rcx, rdi
call fcn.14000c884
cmp byte [rbp + 0x3f], r15b
je 0x140019ec8
mov rcx, qword [rbp + 0x27]
call fcn.14000c884
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001b204
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400152c0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400152c0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001b354
cmp rax, 0xffffffffffffffff
je 0x14001b354
xor edi, edi
test rbp, rbp
jle 0x14001b2ff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000c80c
mov rbx, rax
test rax, rax
jne 0x14001b28c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001b2f5
mov edx, 0x8000
mov ecx, r14d
call fcn.14000b968
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14000eef4
cmp eax, 0xffffffff
je 0x14001b2d5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001b29c
mov edx, r15d
mov ecx, r14d
call fcn.14000b968
jmp 0x14001b2f5
cmp byte [rsi + 0x38], dil
je 0x14001b2ec
cmp dword [rsi + 0x34], 5
jne 0x14001b2ec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001b2f5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000c884
jmp 0x14001b368
jns 0x14001b368
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400152c0
cmp rax, 0xffffffffffffffff
jne 0x14001b320
cmp byte [rsi + 0x30], dil
je 0x14001b368
mov edi, dword [rsi + 0x2c]
jmp 0x14001b368
mov ecx, r14d
call fcn.14000e4bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001b368
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14001b368
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001b361
mov eax, dword [rsi + 0x2c]
jmp 0x14001b366
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400152c0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001bf90
Capabilities:
Parse pe header

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

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

Function at 0x1400b5c30
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400b5ca8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400b5ca8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400b5ca8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400b5c9c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400b5cba
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400b5c8a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400b5caa

Function at 0x1400c3e80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400c3e80
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 0x1400c3eef
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c3eef
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c3eef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c3eef
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c3eef
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c3eef
cmp dword [rcx + 0xf8], 0
je 0x1400c3eef
mov ecx, ebx
call fcn.1400c3db8
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.1400c4014
nop
cmp dword [rbp + 0x20], 0
je 0x1400c3f3d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400c3e4c
int3
Function at 0x140004000
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000405d
lea rbx, [0x14016d0b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140004044
cmp r10, 2
jb 0x140004044
cmp byte [r9], r8b
jne 0x140004044
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140004020
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000409f
lea rbx, [0x14016d0b0]
cmp r8b, 0x23
jne 0x140004083
cmp byte [r9], r8b
jne 0x140004083
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140004070
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400041e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400041fa
mov qword [r8], 0
lea rdx, [0x14016cc94]
call fcn.1400040b0
mov rbx, rax
test rax, rax
jne 0x14000421a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400042f3
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400042f3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400042f3
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400042f3
cmp rdi, 0xffffffffffffffff
je 0x1400042f3
mov rax, qword [0x140231b80]
test rax, rax
je 0x140004290
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400042f3
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400042e0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140231b80]
test rax, rax
je 0x1400042d5
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400042fc
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400042ee
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400042fe
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140006a60
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x14016d0b0]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x140231b80]
not ebx
cmp dword [rcx + 0x3ec4], ebx
jne 0x140006af5
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.1400195a0
mov eax, ebx
add rsp, 0x20
pop rbx
ret