joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800062a0
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
add rbx, 0x20
mov r11, qword [rbx]
cmp r11, rbx
je 0x180006336
mov rax, qword [r11 + 0x50]
test rax, rax
je 0x18000632e
lea r10, str.Winhttp.dll
sub r10, rax
nop dword [rax]
movzx edx, word [r10 + rax]
movzx ecx, word [rax]
cmp dx, cx
je 0x18000631f
mov r9d, ecx
add ecx, 0xffffffe0
cmp edx, ecx
je 0x18000631f
lea ecx, [r9 + 0x20]
cmp edx, ecx
jne 0x18000632e
test dx, dx
je 0x1800063d4
add rax, 2
jmp 0x180006300
mov r11, qword [r11]
cmp r11, rbx
jne 0x1800062e6
xor ebx, ebx
xor ecx, ecx
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x180006358
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x180006358
lea rcx, [rbx + 0x18]
add rcx, rax
mov eax, dword [rcx + 0x70]
xor edi, edi
add rax, rbx
mov qword [rsp + 0x250], r12
mov esi, dword [rax + 0x20]
mov r14d, dword [rax + 0x1c]
add rsi, rbx
mov r15d, dword [rax + 0x24]
add r14, rbx
mov ebp, dword [rax + 0x18]
add r15, rbx
test ebp, ebp
je 0x18000642a
lea r12, str.WinHttpQueryDataAvailable
nop
xor edx, edx
lea rcx, [rsp + 0x22]
mov r8d, 0x1fe
call fcn.180008b40
mov edx, dword [rsi]
lea r8, [rsp + 0x20]
add rdx, rbx
mov ecx, 0xff
movsx eax, byte [rdx]
lea rdx, [rdx + 1]
mov word [r8], ax
lea r8, [r8 + 2]
mov r9d, ecx
test ax, ax
je 0x1800063dd
sub ecx, 1
jns 0x1800063b1
mov ecx, 0x101
jmp 0x1800063e2
mov rbx, qword [r11 + 0x20]
jmp 0x180006338
mov ecx, 0xff
sub rcx, r9
test rcx, rcx
je 0x18000642a
xor ecx, ecx
nop dword [rax]
movzx edx, word [rsp + rcx + 0x20]
movzx eax, word [rcx + r12]
cmp dx, ax
je 0x180006411
mov r9d, eax
add eax, 0xffffffe0
cmp edx, eax
je 0x180006411
lea eax, [r9 + 0x20]
cmp edx, eax
jne 0x18000641c
test dx, dx
je 0x18000646a
add rcx, 2
jmp 0x1800063f0
inc edi
add rsi, 4
cmp edi, ebp
jb 0x180006390
mov qword [0x180027fd8], 0
mov r12, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180006c10
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movzx ecx, word [r15 + rdi*2]
mov eax, dword [r14 + rcx*4]
add rax, rbx
mov qword [0x180027fd8], rax
jmp 0x180006435
Function at 0x180006480
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
add rbx, 0x20
mov r11, qword [rbx]
cmp r11, rbx
je 0x180006516
mov rax, qword [r11 + 0x50]
test rax, rax
je 0x18000650e
lea r10, str.Winhttp.dll
sub r10, rax
nop dword [rax]
movzx edx, word [r10 + rax]
movzx ecx, word [rax]
cmp dx, cx
je 0x1800064ff
mov r9d, ecx
add ecx, 0xffffffe0
cmp edx, ecx
je 0x1800064ff
lea ecx, [r9 + 0x20]
cmp edx, ecx
jne 0x18000650e
test dx, dx
je 0x1800065b4
add rax, 2
jmp 0x1800064e0
mov r11, qword [r11]
cmp r11, rbx
jne 0x1800064c6
xor ebx, ebx
xor ecx, ecx
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x180006538
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x180006538
lea rcx, [rbx + 0x18]
add rcx, rax
mov eax, dword [rcx + 0x70]
xor edi, edi
add rax, rbx
mov qword [rsp + 0x250], r12
mov esi, dword [rax + 0x20]
mov r14d, dword [rax + 0x1c]
add rsi, rbx
mov r15d, dword [rax + 0x24]
add r14, rbx
mov ebp, dword [rax + 0x18]
add r15, rbx
test ebp, ebp
je 0x18000660a
lea r12, str.WinHttpReadData
nop
xor edx, edx
lea rcx, [rsp + 0x22]
mov r8d, 0x1fe
call fcn.180008b40
mov edx, dword [rsi]
lea r8, [rsp + 0x20]
add rdx, rbx
mov ecx, 0xff
movsx eax, byte [rdx]
lea rdx, [rdx + 1]
mov word [r8], ax
lea r8, [r8 + 2]
mov r9d, ecx
test ax, ax
je 0x1800065bd
sub ecx, 1
jns 0x180006591
mov ecx, 0x101
jmp 0x1800065c2
mov rbx, qword [r11 + 0x20]
jmp 0x180006518
mov ecx, 0xff
sub rcx, r9
test rcx, rcx
je 0x18000660a
xor ecx, ecx
nop dword [rax]
movzx edx, word [rsp + rcx + 0x20]
movzx eax, word [rcx + r12]
cmp dx, ax
je 0x1800065f1
mov r9d, eax
add eax, 0xffffffe0
cmp edx, eax
je 0x1800065f1
lea eax, [r9 + 0x20]
cmp edx, eax
jne 0x1800065fc
test dx, dx
je 0x18000664a
add rcx, 2
jmp 0x1800065d0
inc edi
add rsi, 4
cmp edi, ebp
jb 0x180006570
mov qword [0x180027fa0], 0
mov r12, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180006c10
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movzx ecx, word [r15 + rdi*2]
mov eax, dword [r14 + rcx*4]
add rax, rbx
mov qword [0x180027fa0], rax
jmp 0x180006615
Function at 0x180006660
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
add rbx, 0x20
mov r11, qword [rbx]
cmp r11, rbx
je 0x1800066f6
mov rax, qword [r11 + 0x50]
test rax, rax
je 0x1800066ee
lea r10, str.Winhttp.dll
sub r10, rax
nop dword [rax]
movzx edx, word [r10 + rax]
movzx ecx, word [rax]
cmp dx, cx
je 0x1800066df
mov r9d, ecx
add ecx, 0xffffffe0
cmp edx, ecx
je 0x1800066df
lea ecx, [r9 + 0x20]
cmp edx, ecx
jne 0x1800066ee
test dx, dx
je 0x180006794
add rax, 2
jmp 0x1800066c0
mov r11, qword [r11]
cmp r11, rbx
jne 0x1800066a6
xor ebx, ebx
xor ecx, ecx
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x180006718
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x180006718
lea rcx, [rbx + 0x18]
add rcx, rax
mov eax, dword [rcx + 0x70]
xor edi, edi
add rax, rbx
mov qword [rsp + 0x250], r12
mov esi, dword [rax + 0x20]
mov r14d, dword [rax + 0x1c]
add rsi, rbx
mov r15d, dword [rax + 0x24]
add r14, rbx
mov ebp, dword [rax + 0x18]
add r15, rbx
test ebp, ebp
je 0x1800067ea
lea r12, str.WinHttpCloseHandle
nop
xor edx, edx
lea rcx, [rsp + 0x22]
mov r8d, 0x1fe
call fcn.180008b40
mov edx, dword [rsi]
lea r8, [rsp + 0x20]
add rdx, rbx
mov ecx, 0xff
movsx eax, byte [rdx]
lea rdx, [rdx + 1]
mov word [r8], ax
lea r8, [r8 + 2]
mov r9d, ecx
test ax, ax
je 0x18000679d
sub ecx, 1
jns 0x180006771
mov ecx, 0x101
jmp 0x1800067a2
mov rbx, qword [r11 + 0x20]
jmp 0x1800066f8
mov ecx, 0xff
sub rcx, r9
test rcx, rcx
je 0x1800067ea
xor ecx, ecx
nop dword [rax]
movzx edx, word [rsp + rcx + 0x20]
movzx eax, word [rcx + r12]
cmp dx, ax
je 0x1800067d1
mov r9d, eax
add eax, 0xffffffe0
cmp edx, eax
je 0x1800067d1
lea eax, [r9 + 0x20]
cmp edx, eax
jne 0x1800067dc
test dx, dx
je 0x18000682a
add rcx, 2
jmp 0x1800067b0
inc edi
add rsi, 4
cmp edi, ebp
jb 0x180006750
mov qword [0x180027f90], 0
mov r12, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180006c10
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movzx ecx, word [r15 + rdi*2]
mov eax, dword [r14 + rcx*4]
add rax, rbx
mov qword [0x180027f90], rax
jmp 0x1800067f5
Function at 0x180006840
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
add rbx, 0x20
mov r11, qword [rbx]
cmp r11, rbx
je 0x1800068d6
mov rax, qword [r11 + 0x50]
test rax, rax
je 0x1800068ce
lea r10, [0x180022d88]
sub r10, rax
nop dword [rax]
movzx edx, word [r10 + rax]
movzx ecx, word [rax]
cmp dx, cx
je 0x1800068bf
mov r9d, ecx
add ecx, 0xffffffe0
cmp edx, ecx
je 0x1800068bf
lea ecx, [r9 + 0x20]
cmp edx, ecx
jne 0x1800068ce
test dx, dx
je 0x180006974
add rax, 2
jmp 0x1800068a0
mov r11, qword [r11]
cmp r11, rbx
jne 0x180006886
xor ebx, ebx
xor ecx, ecx
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1800068f8
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x1800068f8
lea rcx, [rbx + 0x18]
add rcx, rax
mov eax, dword [rcx + 0x70]
xor edi, edi
add rax, rbx
mov qword [rsp + 0x250], r12
mov esi, dword [rax + 0x20]
mov r14d, dword [rax + 0x1c]
add rsi, rbx
mov r15d, dword [rax + 0x24]
add r14, rbx
mov ebp, dword [rax + 0x18]
add r15, rbx
test ebp, ebp
je 0x1800069ca
lea r12, str.HeapCreate
nop
xor edx, edx
lea rcx, [rsp + 0x22]
mov r8d, 0x1fe
call fcn.180008b40
mov edx, dword [rsi]
lea r8, [rsp + 0x20]
add rdx, rbx
mov ecx, 0xff
movsx eax, byte [rdx]
lea rdx, [rdx + 1]
mov word [r8], ax
lea r8, [r8 + 2]
mov r9d, ecx
test ax, ax
je 0x18000697d
sub ecx, 1
jns 0x180006951
mov ecx, 0x101
jmp 0x180006982
mov rbx, qword [r11 + 0x20]
jmp 0x1800068d8
mov ecx, 0xff
sub rcx, r9
test rcx, rcx
je 0x1800069ca
xor ecx, ecx
nop dword [rax]
movzx edx, word [rsp + rcx + 0x20]
movzx eax, word [rcx + r12]
cmp dx, ax
je 0x1800069b1
mov r9d, eax
add eax, 0xffffffe0
cmp edx, eax
je 0x1800069b1
lea eax, [r9 + 0x20]
cmp edx, eax
jne 0x1800069bc
test dx, dx
je 0x180006a0a
add rcx, 2
jmp 0x180006990
inc edi
add rsi, 4
cmp edi, ebp
jb 0x180006930
mov qword [0x180027f98], 0
mov r12, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180006c10
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movzx ecx, word [r15 + rdi*2]
mov eax, dword [r14 + rcx*4]
add rax, rbx
mov qword [0x180027f98], rax
jmp 0x1800069d5
Function at 0x180006a20
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [0x180026008]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, qword gs:[0x60]
mov rbx, qword [rax + 0x18]
add rbx, 0x20
mov r11, qword [rbx]
cmp r11, rbx
je 0x180006ab6
mov rax, qword [r11 + 0x50]
test rax, rax
je 0x180006aae
lea r10, str.ntdll.dll
sub r10, rax
nop dword [rax]
movzx edx, word [r10 + rax]
movzx ecx, word [rax]
cmp dx, cx
je 0x180006a9f
mov r9d, ecx
add ecx, 0xffffffe0
cmp edx, ecx
je 0x180006a9f
lea ecx, [r9 + 0x20]
cmp edx, ecx
jne 0x180006aae
test dx, dx
je 0x180006b54
add rax, 2
jmp 0x180006a80
mov r11, qword [r11]
cmp r11, rbx
jne 0x180006a66
xor ebx, ebx
xor ecx, ecx
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x180006ad8
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x180006ad8
lea rcx, [rbx + 0x18]
add rcx, rax
mov eax, dword [rcx + 0x70]
xor edi, edi
add rax, rbx
mov qword [rsp + 0x250], r12
mov esi, dword [rax + 0x20]
mov r14d, dword [rax + 0x1c]
add rsi, rbx
mov r15d, dword [rax + 0x24]
add r14, rbx
mov ebp, dword [rax + 0x18]
add r15, rbx
test ebp, ebp
je 0x180006baa
lea r12, str.RtlAllocateHeap
nop
xor edx, edx
lea rcx, [rsp + 0x22]
mov r8d, 0x1fe
call fcn.180008b40
mov edx, dword [rsi]
lea r8, [rsp + 0x20]
add rdx, rbx
mov ecx, 0xff
movsx eax, byte [rdx]
lea rdx, [rdx + 1]
mov word [r8], ax
lea r8, [r8 + 2]
mov r9d, ecx
test ax, ax
je 0x180006b5d
sub ecx, 1
jns 0x180006b31
mov ecx, 0x101
jmp 0x180006b62
mov rbx, qword [r11 + 0x20]
jmp 0x180006ab8
mov ecx, 0xff
sub rcx, r9
test rcx, rcx
je 0x180006baa
xor ecx, ecx
nop dword [rax]
movzx edx, word [rsp + rcx + 0x20]
movzx eax, word [rcx + r12]
cmp dx, ax
je 0x180006b91
mov r9d, eax
add eax, 0xffffffe0
cmp edx, eax
je 0x180006b91
lea eax, [r9 + 0x20]
cmp edx, eax
jne 0x180006b9c
test dx, dx
je 0x180006bea
add rcx, 2
jmp 0x180006b70
inc edi
add rsi, 4
cmp edi, ebp
jb 0x180006b10
mov qword [0x180027fd0], 0
mov r12, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.180006c10
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
movzx ecx, word [r15 + rdi*2]
mov eax, dword [r14 + rcx*4]
add rax, rbx
mov qword [0x180027fd0], rax
jmp 0x180006bb5
Function at 0x1400054f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005570
cmp r10, r11
jb 0x1400055e7
cmp r10, rdx
ja 0x1400055f9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140005572
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005550
jmp 0x1400055d4
ja 0x14000557a
mov r11, r10
cmp rax, r8
jne 0x14000551e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1400055b0
mov rdi, r8
sub ecx, edx
jns 0x1400055cb
jmp 0x1400055d6
cmp r8, rsi
je 0x140005608
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400055d6
xor al, 1
cmp rdi, rsi
jne 0x140005590
jmp 0x1400055d6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140023b50
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140023860
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140023bc0
int3
Function at 0x14000e3b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000e3d5
cmp rax, rcx
je 0x14000e3db
cmp rdx, 4
jae 0x14000e3e2
xor eax, eax
xor r8d, r8d
jmp 0x14000e480
pop rbp
jmp fcn.140002d80
xor eax, eax
jmp 0x14000e497
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [section..rdata]
movdqa xmm3, xmmword [0x140026010]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000e410
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000e497
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000e480
pop rbp
ret
Function at 0x14001d50d
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.shell32.dll_CommandLineToArgvW]
test rax, rax
je 0x14001d5cf
mov rdi, rax
movsxd r13, dword [rsp + 0x2c]
lea rbx, [rsp + 0x48]
and qword [rbx], 0
mov qword [rbx + 8], 8
and qword [rbx + 0x10], 0
shl r13, 3
xor ebp, ebp
lea r14, [rsp + 0x60]
lea r15, [rsp + 0x30]
cmp r13, rbp
je 0x14001d5a9
mov r12, qword [rdi + rbp]
mov rcx, r12
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rax, [r12 + rax*2]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], rax
and word [rsp + 0x40], 0
mov rcx, r14
mov rdx, r15
call fcn.1400223c1
mov rcx, rbx
mov rdx, r14
call case.0x140011e04.279
add rbp, 8
jmp 0x14001d568
mov rcx, rdi
call qword [sym.imp.kernel32.dll_LocalFree]
test rax, rax
jne 0x14001d5bc
call fcn.140022a23
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x48]
and al, 0x48
and qword [rsi], 0
mov qword [rsi + 8], 8
mov dword [rsi + 8], 8
Function at 0x1400230bc
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140009008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140009008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140009ce8
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140009d16
xor eax, eax
jmp 0x140009dfc
cmp qword [rcx + 0x68], 0
je 0x140009d27
call fcn.140009e18
jmp 0x140009dfc
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009d3e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009d40
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009d72
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140029780
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140009df6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009da9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140009dd2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140016dac
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140009df6
cmp rsi, rbx
ja 0x140009db0
test rsi, rsi
je 0x140009df6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140016dac
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14000c028
Capabilities:
Parse pe header

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

Function at 0x14001977c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019578
Function at 0x14001efdc
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.14000ba50
sub rsp, rax
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001dbbc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f02b
mov rax, rbp
jmp 0x14001f133
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3f730]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400200fc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f730]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001f12f
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 0x14001f12f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400200fc
test rax, rax
js 0x14001f12f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001f12f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001f121
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001f121
cmp byte [rcx], 0xd
jne 0x14001f107
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001f116
cmp byte [rcx + 1], 0xa
jne 0x14001f116
inc rcx
jmp 0x14001f116
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3d460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001f0e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001f133
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b250
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 0x14001f354
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001f36a
mov al, 1
jmp 0x14001f3ca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001f37b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001f3c8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140023d24
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001f3c8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001f3c8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001f3c8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001f3ca
xor al, al
add rsp, 0x20
pop rbx
ret