joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009612c
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, [0x18010bc60]
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 0x180096183
cmp word [rdx], r13w
jne 0x180096183
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180096188
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800962ad
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800962ce
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800961c1
mov rdx, r9
mov word [rbx], cx
jmp 0x1800961e8
cmp r9, r8
jae 0x1800961f8
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 0x1800961a2
jmp 0x1800962ad
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 0x1800962a2
cmp dword [rsp + 0x80], esi
je 0x1800962a2
lea r8, [0x18010bc60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18009627a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18009624a
mov word [rbx], r13w
jmp 0x1800962aa
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 0x180096257
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800962aa
cmp word [rsp + 0x70], r13w
jne 0x180096287
cmp rbx, r14
je 0x180096244
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180096d94
cmp word [rsp + 0x70], r13w
je 0x1800962ad
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, [0x18010bc60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800962a7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800962ad
Function at 0x18009a0a8
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 0x18009a0d8
xor eax, eax
jmp 0x18009a19b
mov rbp, rbx
cmp word [rax], si
je 0x18009a0fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009a0e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009a0e0
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.180098790
movsxd r14, eax
test eax, eax
jne 0x18009a13b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009a0d1
mov rcx, r14
call fcn.1800931e8
mov rdi, rax
test rax, rax
jne 0x18009a154
xor ecx, ecx
call fcn.180092d64
jmp 0x18009a130
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.180098790
test eax, eax
jne 0x18009a185
mov rcx, rdi
call fcn.180092d64
jmp 0x18009a18f
xor ecx, ecx
call fcn.180092d64
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 0x18009cf10
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18008fe50
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18009cfb1
cmp ebx, dword [rsp + 0x30]
je 0x18009cfaa
test esi, esi
je 0x18009cfaa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18009cf85
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18009cf92
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18009cf6f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18009cf96
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18009cfb3
mov eax, 1
jmp 0x18009cfb3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a1948
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.180096d94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180096d94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800a1a98
cmp rax, 0xffffffffffffffff
je 0x1800a1a98
xor edi, edi
test rbp, rbp
jle 0x1800a1a43
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180091ca4
mov rbx, rax
test rax, rax
jne 0x1800a19d0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800a1a39
mov edx, 0x8000
mov ecx, r14d
call fcn.1800a17cc
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.180092a5c
cmp eax, 0xffffffff
je 0x1800a1a19
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800a19e0
mov edx, r15d
mov ecx, r14d
call fcn.1800a17cc
jmp 0x1800a1a39
cmp byte [rsi + 0x38], dil
je 0x1800a1a30
cmp dword [rsi + 0x34], 5
jne 0x1800a1a30
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800a1a39
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180092d64
jmp 0x1800a1aac
jns 0x1800a1aac
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180096d94
cmp rax, 0xffffffffffffffff
jne 0x1800a1a64
cmp byte [rsi + 0x30], dil
je 0x1800a1aac
mov edi, dword [rsi + 0x2c]
jmp 0x1800a1aac
mov ecx, r14d
call fcn.18009a864
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800a1aac
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 0x1800a1aac
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800a1aa5
mov eax, dword [rsi + 0x2c]
jmp 0x1800a1aaa
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180096d94
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 0x1800a22d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800a22f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800a22f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001e57
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000b008]
jne 0x140001a9a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001a96
repz ret
ror rcx, 0x10
jmp 0x140001db0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000c1f8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001e35
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000c100]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001e57
mov rax, qword [rsp + 0x88]
mov qword [0x14000c1f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000c198], rax
mov rax, qword [0x14000c1f8]
mov qword [0x14000c070], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000c180], rax
mov dword [0x14000c060], 0xc0000409
mov dword [0x14000c064], 1
mov rax, qword [0x14000b008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000b010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000c0f8], eax
mov ecx, 1
call fcn.14000384c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140008260]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000c0f8], 0
jne 0x140001ede
mov ecx, 1
call fcn.14000384c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140002760
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140003a64
nop
cmp dword [0x14000c628], 1
je 0x14000270c
mov dword [0x14000c624], 1
mov byte [0x14000c620], r12b
test ebx, ebx
jne 0x1400026f8
mov rcx, qword [0x14000d078]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400026e5
mov rcx, qword [0x14000d070]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140002684
call fcn.140001f04
cmp qword [rdi], rax
jne 0x140002684
jmp 0x14000266a
cmp rdi, rsi
jb 0x1400026e5
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140001f04
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14000d078]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14000d070]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400026c3
cmp r13, rax
je 0x1400026e3
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14000266a
lea rdx, [0x140008228]
lea rcx, [0x140008220]
call fcn.1400024b4
lea rdx, [0x140008238]
lea rcx, [0x140008230]
call fcn.1400024b4
nop
test r12d, r12d
je 0x14000271b
mov ecx, 8
call fcn.140003964
test r12d, r12d
jne 0x140002746
mov dword [0x14000c628], 1
lea ecx, [r12 + 8]
call fcn.140003964
mov ecx, r15d
call fcn.140002448
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400025d4

Function at 0x14000276c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400025d4
Function at 0x1400050b4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140001f04
xor ebx, ebx
mov rdi, rax
cmp qword [0x14000cd48], rbx
jne 0x1400051ba
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000528f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000528f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000cd48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000cd50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14000cd58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14000cd68], rax
test rax, rax
je 0x1400051b1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000cd60], rax
jmp 0x1400051c1
mov rax, qword [0x14000cd60]
jmp 0x1400051c8
mov rax, qword [0x14000cd60]
mov r11, qword [0x14000cd68]
cmp rax, rdi
je 0x140005230
cmp r11, rdi
je 0x140005230
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14000cd68]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140005230
test rax, rax
je 0x140005230
call rsi
test rax, rax
je 0x14000522a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000522a
test byte [rsp + 0x38], 1
jne 0x140005230
bts ebp, 0x15
jmp 0x14000526e
mov rcx, qword [0x14000cd50]
cmp rcx, rdi
je 0x14000526e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000526e
call rax
mov rbx, rax
test rax, rax
je 0x14000526e
mov rcx, qword [0x14000cd58]
cmp rcx, rdi
je 0x14000526e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000526e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000cd48]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000528f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140005291
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140c1c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c1c1df
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 0x140c1c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c1c06f
add dl, dl
jne 0x140c1c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c1c0f6
xor eax, eax
add dl, dl
jne 0x140c1c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c1c1ad
add dl, dl
jne 0x140c1c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c1c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c1c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c1c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c1c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c1c07e
mov eax, 1
add dl, dl
jne 0x140c1c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c1c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c1c0fb
sub eax, ebx
mov ebx, 1
jne 0x140c1c14c
mov ecx, 1
add dl, dl
jne 0x140c1c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c1c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c1c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c1c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c1c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c1c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c1c15d
cmp eax, 0x7d00
jae 0x140c1c19b
cmp eax, 0x500
jb 0x140c1c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c1c07e
cmp eax, 0x7f
ja 0x140c1c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c1c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c1c1d2
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 0x140c1c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400015ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
xor esi, esi
cmp eax, 0x102
ja 0x14000171e
lea edx, [rsi + 0x5c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x14000171e
mov word [rax], si
call fcn.140001380
mov rcx, rax
test rax, rax
je 0x14000176c
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [0x1400043e8]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
lea rdx, str._sSYMSRV.dll
lea rcx, [rsp + 0x20]
call fcn.140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400016fd
xor edx, edx
mov r8d, 0x1100
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000169a
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x1400043e8]
test rdi, rdi
je 0x14000171e
lea rdx, str.SymbolServerWithChecksumsW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140007888], rax
lea rdx, str.SymbolServerIsStoreW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140007880], rax
lea rdx, str.SymbolServerSetHttpAuthHeader
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140007878], rax
lea rdx, str.SymbolServerSetOptions
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140007870], rax
jmp 0x14000171e
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000171e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400043e8]
cmp qword [0x140007888], rsi
je 0x140001745
cmp qword [0x140007880], rsi
je 0x140001745
cmp qword [0x140007878], rsi
je 0x140001745
cmp qword [0x140007870], rsi
setne al
jmp 0x140001747
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140003050
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002e94
int3
Function at 0x140002c74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002ceb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002ceb
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140002cd8
cmp rbx, rcx
jae 0x140002ceb
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140002cc3
cmp rbx, rcx
jae 0x140002ceb
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140002ced
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140003a54
Capabilities:
Parse pe header

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

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

Function at 0x14002f330
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 0x14002f19b
xor ecx, ecx
call qword [0x140049190]
test rax, rax
je 0x14002f19b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002f19b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002f19b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002f19b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002f19b
cmp dword [rcx + 0xf8], 0
je 0x14002f19b
mov ecx, ebx
call fcn.14002f24c
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.14002f028
nop
cmp dword [rbp + 0x20], 0
je 0x14002f1e9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002f1f4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002f12c

Function at 0x1400470f0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x180008b84
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x180008c12
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180008be0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x180008be0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.180063730
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180008bfd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180008c05
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x180008ba1
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x180008cf0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x180008c29
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180008c2b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180008c5d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.180063730
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180008ced
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180008c98
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x180008cce
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.18004d204
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x180008ced
cmp rsi, rax
ja 0x180008ca1
test rsi, rsi
je 0x180008ced
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18004d204
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret