joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ccc0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1b0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x14003cd13
test r9d, r9d
je 0x14003ccfd
sub r9d, 2
je 0x14003cd25
cmp r9d, r8d
jne 0x14003cd53
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x14003cd53
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.14003c910
sub r9d, 1
je 0x14003cd3d
sub r9d, 1
je 0x14003cce5
cmp r9d, 1
jne 0x14003cd53
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x14003cd53
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.14003c910
ret

Function at 0x14003cd60
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1b0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x14003cdb9
test r9d, r9d
je 0x14003cda0
sub r9d, 2
je 0x14003cdcb
cmp r9d, r8d
jne 0x14003cdfc
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x14003cdfc
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.14003c910
sub r9d, 1
je 0x14003cde3
sub r9d, 1
je 0x14003cd88
cmp r9d, 1
jne 0x14003cdfc
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x14003cdfc
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.14003c910
ret
Function at 0x14003dfd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14009d070]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x4b0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x14003e069
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.14004f5b0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x14003e0ca
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140018fa0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14004d760
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.14003db10
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x14003e0fb.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x3e214]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x14003e0fb.4
mov rcx, r14
call fcn.14003daf0
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne case.0x14003e0fb.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rsi
call fcn.140018ec0
mov ebx, eax
test eax, eax
je 0x14003e156
mov edx, 5
mov rcx, rdi
call fcn.14003ea80
mov eax, ebx
jmp 0x14003e09e
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.1400286d0
jmp case.0x14003e0fb.4
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.14003daf0
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14003eb90
cmp rax, rbx
jae case.0x14003e0fb.4
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s
call fcn.140019080
jmp case.0x14003e0fb.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14003dd30
test eax, eax
je case.0x14003e0fb.4
jmp 0x14003e09e
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14007db00]
call fcn.140018fa0
mov rcx, rsi
call fcn.140028970
test eax, eax
je 0x14003e09c
mov edx, 5
mov rcx, rdi
call fcn.14003ea80
mov eax, Ordinal_46
jmp 0x14003e09e
Function at 0x1400400f0
Capabilities:
Query environment variable

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
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x14009d020]
mov rdi, rax
test rax, rax
je 0x14004016d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140040198
cmp ebx, esi
je 0x140040198
cmp ebx, 0x8000
ja 0x140040198
cmp ebx, esi
jb 0x140040193
mov edx, ebx
mov rcx, rdi
call qword [0x14009d020]
mov rdi, rax
test rax, rax
jne 0x140040130
mov rcx, rbp
call qword [fcn.140054ef8]
xor eax, eax
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
mov rax, rdi
jmp 0x140040178
mov rcx, rdi
jmp 0x140040170
jmp 0x1400400f0

Function at 0x1400401a0
Capabilities:
Query environment variable

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
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x14009d020]
mov rdi, rax
test rax, rax
je 0x14004016d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140040198
cmp ebx, esi
je 0x140040198
cmp ebx, 0x8000
ja 0x140040198
cmp ebx, esi
jb 0x140040193
mov edx, ebx
mov rcx, rdi
call qword [0x14009d020]
mov rdi, rax
test rax, rax
jne 0x140040130
mov rcx, rbp
call qword [fcn.140054ef8]
xor eax, eax
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
mov rax, rdi
jmp 0x140040178
mov rcx, rdi
jmp 0x140040170
jmp 0x1400400f0
Function at 0x14004c060
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14009d070]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14004c12c
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0x64]
xor ebp, ebp
mov dword [rsp + 0x58], 0x208
mov rcx, rsi
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
call fcn.14004c1a0
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.14004d610
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x14004c130
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14004c17a
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14004d760
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004c740
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.1400552f4]
mov rdi, rax
test rax, rax
jne 0x14004c782
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14004c7c9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14004c822
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14004c7e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14004c863
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140086738]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140086739]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14004c830
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140053f44
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140053dd7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140053dd7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140053dd7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140053dd7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140053dd7
cmp dword [rcx + 0x84], 0xe
jbe 0x140053dd7
cmp dword [rcx + 0xf8], 0
je 0x140053dd7
mov ecx, ebx
call fcn.140053e78
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140053c68
cmp dword [rbp + 0x20], 0
je 0x140053e24
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140053e2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140053d70
Function at 0x14006f850
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14006f82d
call fcn.140054ed8
mov dword [rax], Ordinal_27
call fcn.140055178
or eax, 0xffffffff
jmp 0x14006f84a
sub dword [rcx + 0x10], 1
jns 0x14006f83c
add rsp, 0x28
jmp fcn.14006f328
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14006f80c
Function at 0x1400757f4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140075814
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140054e68
or eax, 0xffffffff
jmp 0x140075816
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800053f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x180005486
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18000548d
mov r15, rsi
jmp 0x18000544b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.18002e9f0
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x18000547e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180005463
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x180005420
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18000547e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x18000544b
sub rsi, r15
jmp 0x18000557a
xor esi, esi
jmp 0x18000557a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800054e0
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x1800054e0
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.18002e9f0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x1800054f1
jmp 0x180005577
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x180005577
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x180005520
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x180005553
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.180014e14
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x180005520
jmp 0x180005577
test r14, r14
je 0x180005574
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.180014e14
sub r14, rax
jmp 0x180005577
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x18000a060
Capabilities:
Enumerate services

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
mov rax, qword [0x180042740]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
xor edi, edi
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x18000a1ad
mov r14, rax
xorps xmm6, xmm6
movups xmmword [rsp + 0x40], xmm6
lea r12, [rsp + 0x50]
mov qword [rsp + 0x38], r12
lea r13, [rsp + 0x54]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rax
xor edx, edx
mov r8d, 0x30
mov r9d, 3
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov r15d, dword [rsp + 0x54]
add r15d, 0x38
mov ecx, 1
mov rdx, r15
call fcn.1800143fc
test rax, rax
je 0x18000a1ad
mov rbx, rax
movups xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
xor edi, edi
mov rcx, r14
xor edx, edx
mov r8d, 0x30
mov r9d, 3
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov ebp, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
je 0x18000a1a5
cmp dword [rsp + 0x50], 0
je 0x18000a19d
xor edi, edi
mov r15, qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov r14, rbx
nop word cs:[rax + rax]
mov rcx, qword [r14]
mov rdx, rsi
call r15
test eax, eax
je 0x18000a1a1
inc rdi
mov eax, dword [rsp + 0x50]
add r14, 0x38
cmp rdi, rax
jb 0x18000a180
xor edi, edi
jmp 0x18000a1ad
mov edi, dword [r14 + 0x2c]
mov rcx, rbx
call fcn.180015094
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000bf20
mov eax, edi
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x18000d2b0
Capabilities:
Get geographical location

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

Function at 0x1800129b4
Capabilities:
Parse pe header

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

Function at 0x180016a60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180016a88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180016a88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180020cd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18000e1f0
sub rsp, rax
mov rax, qword [0x180042740]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001fd18
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180020d1f
mov rax, rbp
jmp 0x180020e27
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x446d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180020a00
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x446d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180020e23
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180020e23
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180020a00
test rax, rax
js 0x180020e23
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180020e23
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180020e15
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180020e15
cmp byte [rcx], 0xd
jne 0x180020dfb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180020e0a
cmp byte [rcx + 1], 0xa
jne 0x180020e0a
inc rcx
jmp 0x180020e0a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x43300]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180020ddd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180020e27
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000bf20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180021a18
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 0x180021a48
xor eax, eax
jmp 0x180021b0b
mov rbp, rbx
cmp word [rax], si
je 0x180021a6d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180021a54
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180021a50
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.18001a114
movsxd r14, eax
test eax, eax
jne 0x180021aab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180021a41
mov rcx, r14
call fcn.18001a024
mov rdi, rax
test rax, rax
jne 0x180021ac4
xor ecx, ecx
call fcn.180019fe8
jmp 0x180021aa0
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.18001a114
test eax, eax
jne 0x180021af5
mov rcx, rdi
call fcn.180019fe8
jmp 0x180021aff
xor ecx, ecx
call fcn.180019fe8
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 0x180022e14
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180022e2a
mov al, 1
jmp 0x180022e8a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180022e3b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180022e88
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800291a4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180022e88
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180022e88
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180022e88
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180022e8a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800237c0
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, [0x1800446d0]
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 0x180023817
cmp word [rdx], r13w
jne 0x180023817
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18002381c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180023941
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180023962
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180023855
mov rdx, r9
mov word [rbx], cx
jmp 0x18002387c
cmp r9, r8
jae 0x18002388c
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 0x180023836
jmp 0x180023941
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 0x180023936
cmp dword [rsp + 0x80], esi
je 0x180023936
lea r8, [0x1800446d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18002390e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800238de
mov word [rbx], r13w
jmp 0x18002393e
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 0x1800238eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18002393e
cmp word [rsp + 0x70], r13w
jne 0x18002391b
cmp rbx, r14
je 0x1800238d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002095c
cmp word [rsp + 0x70], r13w
je 0x180023941
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, [0x1800446d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18002393b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180023941