joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003aba0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003abdf
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x1400286c0]
mov qword [rbp - 0x28], rax
lea rax, [0x1412cbe78]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1412cbeb0]
lea rcx, [rbp - 0x60]
call fcn.140050770
ud2

Function at 0x14003d3f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003d547
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003d428
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003d50a
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003d529
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d48b
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14003d4b4
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
xor eax, eax
jmp 0x14003d4f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x6d
je 0x14003d4bc
cmp eax, 0x3e5
jne 0x14003d4f0
lea rax, [rsp + 0x30]
jmp 0x14003d4ca
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14003d4f6
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400220b0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14003d500
cmp rax, 1
je 0x14003d472
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14003d47c
mov r8d, 0x10
mov rcx, rbx
call fcn.1400505e0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003d435
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400505e0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003d435
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140051a40
ud2

Function at 0x1400469bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400467b8
Function at 0x1800067f0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x20]
mov rbx, rcx
mov byte [rax + rcx + 0x24], 0x80
inc dword [rcx + 0x20]
mov ecx, dword [rcx + 0x20]
cmp ecx, 0x38
jbe 0x18000682d
mov eax, ecx
mov r8d, 0x40
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call fcn.1800490a0
mov rcx, rbx
call fcn.1800068b0
mov ecx, dword [rbx + 0x20]
cmp ecx, 0x38
jae 0x18000684e
mov eax, ecx
mov r8d, 0x38
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call fcn.1800490a0
movzx eax, byte [rbx + 0x1f]
mov rcx, rbx
mov byte [rbx + 0x5c], al
movzx eax, byte [rbx + 0x1e]
mov byte [rbx + 0x5d], al
mov rax, qword [rbx + 0x18]
shr rax, 0x28
mov byte [rbx + 0x5e], al
mov rax, qword [rbx + 0x18]
shr rax, 0x20
mov byte [rbx + 0x5f], al
mov eax, dword [rbx + 0x18]
shr rax, 0x18
mov byte [rbx + 0x60], al
mov eax, dword [rbx + 0x18]
shr rax, 0x10
mov byte [rbx + 0x61], al
mov eax, dword [rbx + 0x18]
shr rax, 8
mov byte [rbx + 0x62], al
movzx eax, byte [rbx + 0x18]
mov byte [rbx + 0x63], al
add rsp, 0x20
pop rbx
jmp fcn.1800068b0
Function at 0x180007d70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15d, dword [r8]
xor edi, edi
mov r12, qword [rsp + 0x90]
mov r14, r9
mov rbp, rdx
mov rsi, rcx
lea eax, [r15 + 1]
mov dword [r8], eax
test r9, r9
je 0x180007dd0
mov r8, qword [rdx + 0x38]
mov r9d, r15d
mov qword [rsp + 0x38], r12
lea edx, [rdi + 1]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call r14
test eax, eax
je 0x180007f0c
cmp rsi, 0xffffffffffffffff
je 0x180007f0c
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, 1
lea rdx, [0x180065084]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007f0c
cmp dword [rsp + 0x78], 1
jne 0x180007f0c
mov rdx, qword [rbp + 0x38]
mov ebx, edi
mov rax, rdx
test rdx, rdx
je 0x180007e2b
cmp byte [rdx], bl
je 0x180007e2b
nop
lea rax, [rax + 1]
inc ebx
cmp byte [rax], dil
jne 0x180007e20
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007f0c
cmp ebx, dword [rsp + 0x78]
jne 0x180007f0c
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r8d, 3
lea rdx, [0x180065088]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007f0c
cmp dword [rsp + 0x78], 3
jne 0x180007f0c
mov rax, qword [rbp + 0x40]
mov dword [rsp + 0x78], edi
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x180007ed6
nop word [rax + rax]
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], r14
mov r9, rbx
mov r8d, r15d
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rsi
call fcn.180007f30
test eax, eax
je 0x180007ee1
mov rax, qword [rbx + 0x18]
mov rbx, qword [rax + 0x10]
test rbx, rbx
jne 0x180007ea0
test r14, r14
jne 0x180007ee5
lea edi, [r14 + 1]
jmp 0x180007f0c
xor eax, eax
jmp 0x180007f0e
mov r8, qword [rbp + 0x38]
mov r9d, r15d
mov qword [rsp + 0x38], r12
mov edx, 4
mov qword [rsp + 0x30], rdi
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call r14
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180007f30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r13
sub rsp, 0x48
mov rdi, r9
xor ebx, ebx
mov r9, qword [r9 + 0x40]
mov r13, rdx
mov rsi, rcx
mov rax, r9
test r9, r9
je 0x180007f70
mov r10d, ebx
cmp byte [r9], bl
je 0x180007f70
nop dword [rax]
lea rax, [rax + 1]
inc r10d
cmp byte [rax], bl
jne 0x180007f60
test r10d, r10d
jne 0x180007f8d
mov rax, qword [rdi + 0x30]
mov rcx, qword [rax + 0x30]
test byte [rcx + 0xc], 0x20
je 0x180007f8d
mov eax, 1
add rsp, 0x48
pop r13
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rsp + 0x90]
test r9, r9
mov qword [rsp + 0x70], rbp
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x78], r12
mov r12, qword [rsp + 0xa0]
mov qword [rsp + 0x80], r14
lea r14, [0x18006508c]
mov qword [rsp + 0x40], r15
cmovne r14, r9
mov r15d, dword [rcx]
lea eax, [r15 + 1]
mov dword [rcx], eax
mov rax, qword [rdi + 0x38]
test rbp, rbp
je 0x180008009
mov qword [rsp + 0x38], r12
mov r9d, r8d
mov r8, qword [rdx + 0x38]
mov rcx, rsi
mov qword [rsp + 0x30], r14
mov edx, 2
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x180008103
mov rdx, qword [rdi + 0x38]
mov edi, ebx
mov rax, rdx
test rdx, rdx
je 0x18000802a
cmp byte [rdx], bl
je 0x18000802a
nop dword [rax + rax]
lea rax, [rax + 1]
inc edi
cmp byte [rax], bl
jne 0x180008020
cmp rsi, 0xffffffffffffffff
je 0x180008103
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180008103
cmp edi, dword [rsp + 0x88]
jne 0x180008103
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov r8d, 3
lea rdx, [0x180065090]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180008103
cmp dword [rsp + 0x88], 3
jne 0x180008103
mov rdx, r14
mov rcx, rsi
call fcn.180008130
test eax, eax
je 0x180008103
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov r8d, 2
lea rdx, [0x180065094]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180008103
cmp dword [rsp + 0x88], 2
jne 0x180008103
test rbp, rbp
jne 0x1800080dd
lea ebx, [rbp + 1]
jmp 0x180008103
mov r8, qword [r13 + 0x38]
mov r9d, r15d
mov qword [rsp + 0x38], r12
mov edx, 4
mov qword [rsp + 0x30], rbx
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call rbp
mov ebx, eax
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov r14, qword [rsp + 0x80]
mov r12, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x48
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x180008130
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rdx
mov ebp, 1
mov r14, rcx
mov ebx, r15d
mov r8d, ebp
mov r10d, r15d
mov edx, r15d
movzx eax, byte [rdi]
mov r9, rdi
test al, al
je 0x1800082f9
lea r11, [0x180064f00]
nop dword [rax + rax]
movzx eax, al
movzx ecx, byte [rax + r11]
cmp cl, 8
jne 0x180008186
test r8d, r8d
jne 0x1800081ab
mov edx, ebp
jmp 0x180008198
cmp cl, 5
je 0x1800081ab
cmp cl, bpl
jne 0x180008195
test r8d, r8d
jne 0x1800081ab
mov edx, r15d
movzx eax, byte [r9 + 1]
inc r9
inc ebx
mov r8d, r15d
test al, al
jne 0x180008170
jmp 0x1800081ae
mov r10d, ebp
test edx, edx
jne 0x1800081bb
test r10d, r10d
je 0x1800082f9
cmp r14, 0xffffffffffffffff
je 0x1800082eb
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r15
mov r8d, ebp
lea rdx, [0x180065098]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800082eb
cmp dword [rsp + 0x68], ebp
jne 0x1800082eb
movzx eax, byte [rdi]
mov rbx, rdi
mov qword [rsp + 0x60], rsi
test al, al
je 0x1800082ae
cmp al, 0x22
jne 0x180008266
cmp rdi, rbx
je 0x180008237
mov esi, ebx
mov qword [rsp + 0x20], r15
sub esi, edi
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000829b
cmp esi, dword [rsp + 0x68]
jne 0x18000829b
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov r8d, 2
lea rdx, [0x18006509c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000829b
cmp dword [rsp + 0x70], 2
jne 0x18000829b
lea rdi, [rbx + 1]
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x180008207
cmp rbx, rdi
jbe 0x1800082ae
sub ebx, edi
mov qword [rsp + 0x20], r15
mov r8d, ebx
lea r9, [rsp + 0x68]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000829b
cmp ebx, dword [rsp + 0x68]
je 0x1800082ae
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r15
mov r8d, ebp
lea rdx, [0x180065098]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800082d5
cmp dword [rsp + 0x68], ebp
je 0x1800082d8
mov ebp, r15d
mov eax, ebp
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
cmp r14, 0xffffffffffffffff
je 0x180008322
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180008322
cmp ebx, dword [rsp + 0x68]
je 0x180008325
mov ebp, r15d
mov eax, ebp
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x180008b40
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
mov r14, r9
mov rsi, r8
mov rax, rdx
mov rbp, rcx
mov edi, r15d
test rcx, rcx
je 0x180008c81
test rdx, rdx
je 0x180008c81
mov qword [rsp + 0x30], r15
lea r8d, [r15 + 1]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
je 0x180008c81
mov qword [rsp + 0x78], rbx
test rsi, rsi
je 0x180008be1
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], r15d
xor edx, edx
mov qword [rsp + 0x20], r15
call rsi
test eax, eax
je 0x180008c57
mov rcx, qword [rsp + 0x40]
mov rax, qword [rbp + 0x18]
mov dword [rsp + 0x70], r15d
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x180008c2b
nop dword [rax]
nop word [rax + rax]
mov r9, rsi
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x70]
mov rdx, rbx
call fcn.180007d70
test eax, eax
je 0x180008c57
mov rax, qword [rbx + 0x18]
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rax + 0x10]
test rbx, rbx
jne 0x180008c00
test rsi, rsi
jne 0x180008c35
lea edi, [rsi + 1]
jmp 0x180008c5c
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
lea edx, [r9 + 5]
call rsi
mov edi, eax
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x180008c6d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x180008c7d
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x180008c81
mov dword [rbp + 8], r15d
lea r11, [rsp + 0x50]
mov eax, edi
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1800146a0
Capabilities:
Check http status code

Disassembly:
jmp 0x180015880
jmp loc.1800f0c21

Function at 0x1800160e0
Capabilities:
Check for software breakpoints

Disassembly:
mov r10, rcx
cmp edx, 4
jb 0x180016144
mov r8, qword [rcx + 0x3f8]
mov r9, qword [rcx + 0x400]
cmp r8, r9
jae 0x18001613d
cmp byte [r8], 0xcc
jne 0x180016128
mov eax, 1
cmp eax, edx
jae 0x180016120
lea rcx, [r8 + 1]
nop
cmp byte [rcx], 0xcc
jne 0x18001611e
inc eax
inc rcx
cmp eax, edx
jb 0x180016110
cmp eax, edx
je 0x18001612d
lea ecx, [rax + 1]
add r8, rcx
inc r8
jmp 0x1800160f6
mov ecx, edx
mov rax, r8
add rcx, r8
mov qword [r10 + 0x3f8], rcx
ret
mov qword [r10 + 0x3f8], r9
xor eax, eax
ret
Function at 0x180016150
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov esi, r8d
mov rdi, rdx
mov rbx, r9
mov r14, rcx
xor r15d, r15d
lea r9, [rsp + 0x50]
mov edx, esi
mov rcx, rdi
lea r8d, [r15 + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800161da
mov rdx, rdi
mov rcx, r14
call fcn.180003860
mov edx, eax
xor r8d, r8d
mov rcx, rbx
call fcn.1800021a0
test eax, eax
je 0x1800161da
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call fcn.180001e70
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov edx, esi
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
cmove ebx, r15d
mov eax, ebx
jmp 0x1800161dd
mov eax, r15d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18001e880
Capabilities:
Check http status code

Disassembly:
jmp 0x180025520
jmp loc.1801ca805

Function at 0x180025520
Capabilities:
Check http status code

Disassembly:
jmp 0x180025520
jmp loc.1801ca805

Function at 0x180034af0
Capabilities:
Check http status code

Disassembly:
jmp 0x180034ee0
jmp loc.18014a2af

Function at 0x180034ee0
Capabilities:
Check http status code

Disassembly:
jmp 0x180034ee0
jmp loc.18014a2af
Function at 0x18003f000
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x590
mov rax, qword [0x18007b470]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov rdi, rdx
mov esi, r8d
mov rbx, rcx
lea rdx, [0x180064cd8]
mov rcx, rdi
xor r8d, r8d
call fcn.1800016f0
cmp eax, 0x208
jae 0x18003f1ca
lea r8, [rsp + 0x160]
mov qword [rsp + 0x5c8], rbp
lea rdx, [0x180064cd8]
mov rcx, rdi
call fcn.1800016f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18003f1c2
mov ecx, dword [rsp + 0x20]
test cl, 0x10
je 0x18003f106
lea rdx, [0x180064cd0]
lea rcx, [rsp + 0x4c]
call fcn.180005570
test eax, eax
je 0x18003f1a3
lea rdx, [0x180064cd4]
lea rcx, [rsp + 0x4c]
call fcn.180005570
test eax, eax
je 0x18003f1a3
xor r8d, r8d
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.1800016f0
cmp eax, 0x208
jae 0x18003f1a3
lea r8, [rsp + 0x370]
mov rcx, rdi
lea rdx, [rsp + 0x4c]
call fcn.1800016f0
lea r8d, [rsi + 1]
mov rcx, rbx
lea rdx, [rsp + 0x370]
call fcn.18003f000
jmp 0x18003f1a3
test cl, 0x40
jne 0x18003f1a3
mov eax, dword [rbx]
cmp eax, 0x3e7
jae 0x18003f1b9
cmp dword [rsp + 0x3c], 0
jne 0x18003f1a3
cmp dword [rsp + 0x40], 0
jl 0x18003f1a3
imul rcx, rax, 0x218
xor r8d, r8d
mov dword [rcx + rbx + 0x38], esi
mov eax, dword [rsp + 0x40]
mov edx, dword [rsp + 0x3c]
shl rdx, 0x20
add rdx, rax
mov eax, dword [rbx]
imul rcx, rax, 0x218
mov qword [rcx + rbx + 0x40], rdx
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call fcn.1800016f0
mov edx, dword [rbx + 0x82be0]
sub eax, edx
cmp eax, 0x208
jae 0x18003f1a1
mov eax, dword [rbx]
lea r8, [rbx + 0x48]
imul rcx, rax, 0x218
xor eax, eax
add r8, rcx
lea rcx, [rdi - 1]
cmp esi, 1
setne al
add rcx, rax
add rcx, rdx
lea rdx, [rsp + 0x4c]
call fcn.1800016f0
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18003f082
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbp, qword [rsp + 0x5c8]
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.180045e50
add rsp, 0x590
pop rdi
pop rsi
pop rbx
ret

Function at 0x180040bc0
Capabilities:
Check http status code

Disassembly:
jmp 0x1800434f0
jmp loc.1800f34a8

Function at 0x1800434f0
Capabilities:
Check http status code

Disassembly:
jmp 0x1800434f0
jmp loc.1800f34a8
Function at 0x2fc4d7b10
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d8bf0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d8512
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d85aa
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d858e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8582
cmp qword [rbp - 0x10], 0
je 0x2fc4d8582
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8548
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d85ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d86b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d86d8
mov eax, 0
jmp 0x2fc4d8726
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d8701
mov eax, 0
jmp 0x2fc4d8726
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d8721
mov eax, 0
jmp 0x2fc4d8726
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d872c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d87aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d87a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d87a1
mov rax, qword [rbp - 8]
jmp 0x2fc4d87bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d8774
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cf2f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d03d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cfcf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cfd8a
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cfd6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cfd62
cmp qword [rbp - 0x10], 0
je 0x2fc4cfd62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cfd28
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cfd8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cfe90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cfeb8
mov eax, 0
jmp 0x2fc4cff06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cfee1
mov eax, 0
jmp 0x2fc4cff06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cff01
mov eax, 0
jmp 0x2fc4cff06
mov eax, 1
add rsp, 0x20
pop rbp
ret