joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180092710
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 0x18009274a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18009274f
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 0x180092798
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x180092798
dec r8
sub rdx, 1
jne 0x18009277e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180096ae0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1801489e8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5c3c], ecx
test rbx, rbx
je 0x180096b4f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.1800969e0
lea rdx, [0x1800f71f8]
mov rcx, rbx
mov rdi, rax
call fcn.1800b0f90
mov rbx, rax
test rax, rax
je 0x180096b4a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x180096e40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1801489e8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180096ea3
mov qword [rsp], rbx
lea rbx, [0x1800f7d70]
nop dword [rax]
cmp r9b, 0x23
jne 0x180096e83
cmp byte [r8], r9b
jne 0x180096e83
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180096e70
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c50]
not eax
mov r8, qword [r10 + 0x5c58]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x180096ecf
cmp dword [r8 + 8], eax
je 0x180096ed6
add r8, 0x48
cmp r8, rcx
jne 0x180096ec0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1800974f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ce0], 0
lea rbx, [rcx + 0x5ce8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180097597
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18009754a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1800053a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1800b06d0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ce0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cf0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1801489d4]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18009759f
mov rcx, rbx
call fcn.1800b06d0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x18009d0d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1801253c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1801489e8]
mov edi, ecx
cmp byte [rbx + 0x4ac1], 0
jne 0x18009d131
cmp byte [rbx + 0x4ac2], 0
jne 0x18009d131
movsx r9d, word [rbx + 0x5bf4]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.1800b13e0
test dil, 2
je 0x18009d25f
jmp 0x18009d1ba
movss xmm1, dword [rbx + 0x3894]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x180108a94]
xor eax, eax
mulss xmm1, dword [0x180108a78]
addss xmm0, dword [rbx + 0xe00]
lea edx, [rax + 0x10]
addss xmm1, dword [rbx + 0xe04]
mov qword [rbx + 0x4800], rax
mov dword [rbx + 0x47ec], 1
movss dword [rbx + 0x47f8], xmm0
movss dword [rbx + 0x47fc], xmm1
movss xmm0, dword [rbx + 0x38fc]
mulss xmm0, dword [0x180108984]
or dword [rbx + 0x47e8], 0x41
movss dword [rbx + 0x4848], xmm0
movsx r9d, word [rbx + 0x5bf4]
call fcn.1800b13e0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x18009d210
lea r11, [0x1800f7d70]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x18009d1f3
cmp byte [r8], r9b
jne 0x18009d1f3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18009d1e0
not ecx
call fcn.1800a8f20
test rax, rax
je 0x18009d25f
cmp byte [rax + 0xb6], 0
je 0x18009d25f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, reloc.WS2_32.dll_recv
inc word [rbx + 0x5bf4]
movsx r9d, word [rbx + 0x5bf4]
call fcn.1800b13e0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1800a3bd0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800935b0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800adae0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rdi, edx
mov r15, rcx
mov esi, edi
mov ebp, edi
mov r14d, edi
shr esi, 0x18
shr ebp, 0x10
shr r14d, 8
cmp dword [rcx + 0xf0], 0
jg 0x1800adb2a
mov r8d, 0x73a
lea rdx, str.C:UsersElectDocumentsGitHubPacketV3PacketV3BaseIncludeImGUIimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rcx, dword [r15 + 0xf0]
lea rdx, [0x1800f7d70]
mov rax, qword [r15 + 0xf8]
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r14b
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, bpl
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, esi
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [r15]
not ebx
cmp dword [rcx + 0x3f50], ebx
jne 0x1800adb9f
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.180095220
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800b0d50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x1800b0d7f
mov r8d, 0x4a3
lea rdx, str.C:UsersElectDocumentsGitHubPacketV3PacketV3BaseIncludeImGUIimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x1800b0d8b
mov qword [rdi], 0
lea rdx, [0x1800f1e8c]
mov rcx, rbx
call fcn.1800b0f90
mov rbx, rax
test rax, rax
jne 0x1800b0dad
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1800b0e84
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800b0e84
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1800b0e84
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1800b0e84
cmp rsi, 0xffffffffffffffff
je 0x1800b0e84
mov rax, qword [0x1801489e8]
test rax, rax
je 0x1800b0e21
inc dword [rax + 0xf0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x1800b0e84
mov r9, rbx
mov r8, rsi
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, rsi
je 0x1800b0e71
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1801489e8]
test rax, rax
je 0x1800b0e66
dec dword [rax + 0xf0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1800b0e8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x1800b0e7f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x1800b0e8f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800b1140
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 0x1800b119d
lea rbx, [0x1800f7d70]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800b1184
cmp r10, 2
jb 0x1800b1184
cmp byte [r9], r8b
jne 0x1800b1184
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 0x1800b1160
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800b11df
lea rbx, [0x1800f7d70]
cmp r8b, 0x23
jne 0x1800b11c3
cmp byte [r9], r8b
jne 0x1800b11c3
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 0x1800b11b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1800b15f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x70
cmp qword [rcx + 0xdf0], 0
mov rbx, rcx
movaps xmmword [rsp + 0x60], xmm6
movaps xmm6, xmm1
movaps xmmword [rsp + 0x50], xmm7
movaps xmm7, xmm2
jne 0x1800b1631
mov r8d, 0x288
lea rdx, str.C:UsersElectDocumentsGitHubPacketV3PacketV3BaseIncludeImGUIimgui.cpp
lea rcx, str.Ctx___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp byte [rbx + 0x37a9], 0
mov rbp, qword [rbx + 0xdf0]
je 0x1800b1800
movss xmm1, dword [0x180108c3c]
xorps xmm2, xmm2
comiss xmm7, xmm1
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x90], r14
jbe 0x1800b1685
comiss xmm7, xmm2
cvttss2si eax, xmm7
jae 0x1800b167e
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm7
jp 0x1800b167c
je 0x1800b167e
dec eax
movd xmm7, eax
cvtdq2ps xmm7, xmm7
comiss xmm6, xmm1
jbe 0x1800b16aa
comiss xmm6, xmm2
cvttss2si eax, xmm6
jae 0x1800b16a3
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm6
jp 0x1800b16a1
je 0x1800b16a3
dec eax
movd xmm6, eax
cvtdq2ps xmm6, xmm6
lea r14, [rbp + 0x3e80]
mov qword [rsp + 0x88], rdi
mov ebx, dword [r14]
sub ebx, 1
movsxd rsi, ebx
js 0x1800b1701
imul rdi, rsi, 0x1c
cmp ebx, dword [r14]
jl 0x1800b16e7
mov r8d, 0x731
lea rdx, str.C:UsersElectDocumentsGitHubPacketV3PacketV3BaseIncludeImGUIimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 8]
cmp dword [rdi + rax], 1
je 0x1800b1797
dec ebx
sub rdi, 0x1c
sub rsi, 1
jns 0x1800b16c8
movsd xmm0, qword [rbp + 0xe00]
lea rax, [rsp + 0x28]
movsd qword [rsp + 0x28], xmm0
movss xmm0, dword [rax]
ucomiss xmm0, xmm6
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
movss xmm1, dword [rax + 4]
jp 0x1800b173f
jne 0x1800b173f
ucomiss xmm1, xmm7
jp 0x1800b173f
je 0x1800b17f8
mov eax, dword [rbp + 0x3ea4]
mov dword [rsp + 0x38], eax
inc eax
mov dword [rbp + 0x3ea4], eax
mov ecx, dword [r14]
mov r8d, dword [r14 + 4]
mov eax, dword [rbp + 0x3ea0]
movss dword [rsp + 0x3c], xmm6
movss dword [rsp + 0x40], xmm7
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], eax
cmp ecx, r8d
jne 0x1800b17cd
inc ecx
test r8d, r8d
je 0x1800b17b9
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x1800b17be
movss xmm0, dword [rdi + rax + 0xc]
movss xmm1, dword [rdi + rax + 0x10]
lea rax, [rsp + 0x20]
movss dword [rsp + 0x20], xmm0
movss dword [rsp + 0x24], xmm1
jmp 0x1800b1714
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, r14
call fcn.1800057d0
movsxd rax, dword [r14]
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
imul rcx, rax, 0x1c
mov rax, qword [r14 + 8]
movups xmmword [rcx + rax], xmm0
movsd qword [rcx + rax + 0x10], xmm1
mov dword [rcx + rax + 0x18], 0
inc dword [r14]
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x98]
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x50]
add rsp, 0x70
pop rbp
ret
Function at 0x1800ba850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x1800ba884
cmp ecx, r10d
jge 0x1800ba872
mov rcx, rbx
call fcn.1800bb270
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x1800ba8be
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x1800ba8a0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x1800ba8ed
mov edx, dword [0x180148994]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x1800ba91f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x1800ba909
xor dl, dl
jmp 0x1800ba912
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1800ba900
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x1800ba8c2
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1800ba994
mov edx, dword [0x180148994]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1800ba9ae
mov rcx, rbx
call fcn.1800bafa0
test eax, eax
je 0x1800ba987
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x1800c47b0
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
mov eax, 0x5e6ea9af
mul r8d
mov ebx, r8d
xor r9d, r9d
shr edx, 0xb
mov esi, r8d
imul eax, edx, 0x15b0
mov ecx, 1
sub ebx, eax
test r8d, r8d
je 0x1800c48fc
mov qword [rsp + 0x20], rdi
xor r11d, r11d
cmp ebx, 7
jbe 0x1800c485e
lea edx, [r11 + 7]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
add r11d, 8
add ecx, eax
add edx, 8
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add ecx, eax
add r10, 8
add r9d, ecx
cmp edx, ebx
jb 0x1800c4800
xor edx, edx
xor r8d, r8d
cmp r11d, ebx
jae 0x1800c48c4
mov eax, ebx
sub eax, r11d
cmp eax, 2
jb 0x1800c48b1
mov eax, ebx
sub eax, r11d
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea r11d, [r11 + rax*2]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add edx, ecx
add r10, 2
add ecx, eax
add r8d, ecx
sub rdi, 1
jne 0x1800c4890
cmp r11d, ebx
jae 0x1800c48bd
movzx eax, byte [r10]
add ecx, eax
add r9d, ecx
inc r10
lea eax, [r8 + rdx]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
sub esi, ebx
mov ebx, 0x15b0
jne 0x1800c47e8
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl r9d, 0x10
lea eax, [rcx + r9]
pop rsi
ret
Function at 0x140001250
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, edx
mov ecx, 0x2710
call qword [sym.imp.libapr_1.dll_apr_sleep]
mov rax, qword [sym.imp.libhttpd.dll_ap_main_state]
mov dword [rax], 6
mov rcx, qword [rbx]
call qword [sym.imp.libapr_1.dll_apr_pool_destroy]
call qword [sym.imp.libapr_1.dll_apr_terminate]
mov rax, qword [sym.imp.libhttpd.dll_ap_real_exit_code]
xor ecx, ecx
cmp dword [rax], 2
cmove ecx, edi
mov dword [rax], ecx
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400012f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400070c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rbp, str.apr_app_initialize__
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.libapr_1.dll_apr_app_initialize]
mov edi, eax
test eax, eax
jne 0x1400013ed
xor r9d, r9d
lea rcx, [rsp + 0x30]
xor r8d, r8d
lea rbp, str.apr_pool_create__
xor edx, edx
call qword [sym.imp.libapr_1.dll_apr_pool_create_ex]
mov edi, eax
test eax, eax
jne 0x1400013ed
mov rdx, qword [rsp + 0x30]
lea rcx, [0x140001170]
call qword [sym.imp.libapr_1.dll_apr_pool_abort_set]
mov rcx, qword [rsp + 0x30]
lea rdx, str.process
call qword [sym.imp.libapr_1.dll_apr_pool_tag]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.libhttpd.dll_ap_open_stderr_log]
mov rcx, qword [rsp + 0x30]
lea edx, [rdi + 0x28]
call qword [sym.imp.libapr_1.dll_apr_palloc]
mov rcx, qword [rsp + 0x30]
mov rbx, rax
mov qword [rax], rcx
xor ecx, ecx
mov qword [rax + 8], rcx
mov rcx, rax
call fcn.1400021b0
mov ecx, dword [r14]
mov dword [rbx + 0x20], ecx
mov rcx, qword [rsi]
mov qword [rbx + 0x18], rcx
mov rcx, qword [rsi]
mov rcx, qword [rcx]
call qword [sym.imp.libapr_1.dll_apr_filepath_name_get]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002e50
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.libapr_1.dll_apr_time_now]
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.libapr_1.dll_apr_ctime]
mov rbx, qword [rsi]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov qword [rsp + 0x28], rbp
lea r8, [rsp + 0x38]
mov rcx, rax
lea rdx, str.__s___crit____d___s:__s_failed_to_initial_context__exiting_n
mov rax, qword [rbx]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.1400012a0
call qword [sym.imp.libapr_1.dll_apr_terminate]
mov rax, qword [sym.imp.libhttpd.dll_ap_real_exit_code]
xor ecx, ecx
cmp dword [rax], 2
sete cl
mov dword [rax], ecx
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400019a4
Capabilities:
Parse pe header

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

Function at 0x140005718
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 0x140005583
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005583
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005583
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005583
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005583
cmp dword [rcx + 0x84], 0xe
jbe 0x140005583
cmp dword [rcx + 0xf8], 0
je 0x140005583
mov ecx, ebx
call fcn.140005634
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.140005410
nop
cmp dword [rbp + 0x20], 0
je 0x1400055d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400055dc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005514
Function at 0x14000cf28
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000cfaf
mov rsi, rbx
cmp word [rax], bp
je 0x14000cf6e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000cf58
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000cf54
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009cc0
mov rdi, rax
test rax, rax
je 0x14000cf9c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140013ed0
mov rbp, rdi
xor ecx, ecx
call fcn.140009178
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140010d9c
Capabilities:
Get file size

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

Function at 0x140013740
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140015380
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011375
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400166d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400166f0
xor al, al
jmp 0x140016771
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016703
xor al, al
jmp 0x140016771
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001672d
xor al, al
jmp 0x140016771
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016741
xor al, al
jmp 0x140016771
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016753
xor al, al
jmp 0x140016771
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001676f
xor al, al
jmp 0x140016771
mov al, 1
add rsp, 0x38
ret