joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a660
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14006a69f
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400419e0
lea eax, [rdi + 0x11]
jmp 0x14006a805
cmp edx, 0xc8
je 0x14006a6b6
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140041b50
cmp esi, 0x13
jne 0x14006a6cb
mov rdx, rbp
mov rcx, rbx
call fcn.14006a560
jmp 0x14006a801
cmp esi, 0x14
jne 0x14006a7e3
cmp dword [rbx + 0x720], 2
mov rbp, qword [rbx + 0x18]
jne 0x14006a748
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006a748
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.140073160
test eax, eax
jne 0x14006a801
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14006a73d
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x14006a748
mov rcx, qword [rsp + 0x40]
call qword [fcn.140087f82]
mov rdx, qword [rbx + 0x790]
test rdx, rdx
jne 0x14006a76d
cmp byte [rbx + 0x12f0], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400b042b]
test rdi, rdi
mov r9, r8
lea rax, [0x1400959a4]
cmovne r9, rdi
lea rcx, [0x1400a3494]
cmovne r8, rax
call fcn.140054ff0
mov rcx, rdi
mov rsi, rax
call qword [fcn.140087f82]
test rsi, rsi
jne 0x14006a7ab
lea edi, [rsi + 0x1b]
jmp 0x14006a803
lea rdx, [rbp + 0x6f8]
mov r9, rsi
lea r8, [0x1400a2020]
mov rcx, rbx
call fcn.14007fc50
mov rcx, rsi
mov edi, eax
call qword [fcn.140087f82]
test edi, edi
jne 0x14006a803
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7c8], 0x1f
jmp 0x14006a803
cmp esi, 0x15
jne 0x14006a7ee
lea r8d, [rsi - 8]
jmp 0x14006a7f7
cmp esi, 0x16
jne 0x14006a803
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.14006a070
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140071580
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x88
mov rax, qword [0x1400d6038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
mov rbx, rsi
mov rdi, rdx
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x1400715b0
mov qword [rsp + 0xc0], rbp
xor r12d, r12d
cmp byte [rdx], 0x5b
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
jne 0x1400717ab
cmp rbx, 4
jb 0x1400717a4
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
lea r15, [rdi + rbx]
jne 0x1400717a4
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strspn
cmp rbx, rax
je 0x1400716d9
cmp byte [rdi + rax], 0x25
lea r15, [rdi + rax]
mov rbx, rax
jne 0x1400717a4
lea r8d, [r12 + 2]
mov ebp, r12d
lea rdx, [0x1400ad9a4]
lea rcx, [r15 + 1]
lea r14, [r15 + 1]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x14007165a
movzx eax, byte [r15 + 3]
lea rcx, [r15 + 3]
test al, al
je 0x14007165a
cmp al, 0x5d
cmovne r14, rcx
movzx eax, byte [r14]
test al, al
je 0x14007179d
mov rcx, r12
nop dword [rax]
cmp al, 0x5d
je 0x14007168e
cmp rcx, 0xf
jge 0x14007168e
inc r14
mov byte [rsp + rcx + 0x28], al
inc ebp
inc rcx
movzx eax, byte [r14]
test al, al
jne 0x140071670
test ebp, ebp
je 0x14007179d
cmp byte [r14], 0x5d
jne 0x14007179d
movsxd rax, ebp
cmp rax, 0x10
jae 0x1400717c6
lea rcx, [rsp + 0x28]
mov byte [rsp + rax + 0x28], r12b
call qword [case.0x140035099.0]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x28], rax
test rax, rax
jne 0x1400716d5
mov eax, 7
jmp 0x140071769
mov byte [r15 + 1], r12b
lea r8, [rsp + 0x28]
mov byte [r15], r12b
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1400717a4
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea ecx, [rax + 0x16]
call fcn.140074840
test rax, rax
je 0x140071756
lea rax, [rsp + 0x38]
nop dword [rax + rax]
inc rsi
cmp byte [rax + rsi], r12b
jne 0x140071720
cmp rsi, rbx
jae 0x140071756
lea rax, [rsp + 0x38]
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x38]
nop
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140071740
lea r15, [rdi + rsi]
mov byte [r15 + 1], r12b
mov byte [r15], 0x5d
cmp byte [rdi], r12b
mov eax, InitCommonControls
cmove r12d, eax
mov eax, r12d
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140086700
add rsp, 0x88
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, 3
jmp 0x140071769
mov eax, reloc.WLDAP32.dll_Ordinal_22
jmp 0x140071769
lea rdx, str.__r_n_t_:___
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcspn
cmp rbx, rax
je 0x14007175a
mov eax, reloc.WS2_32.dll_setsockopt
jmp 0x140071769
call fcn.140087328
int3
Function at 0x140082ea0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140082ee2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140082f29
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140082f82
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140082f40
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140082fc3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400affcc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400affcd]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140082f90
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140016700
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001670d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001671d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140016705
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140016735
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140016722
sub eax, 3
jb 0x14001674f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140016786
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140016776
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140016774
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140016763
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400166c2
jmp 0x14001670d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2400
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400167d2
cmp rsi, rcx
jae 0x1400167da
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400167b9
cmp al, 0x8f
ja 0x1400167b9
cmp byte [rsi - 2], 0xf
je 0x1400167bf
sub al, 0xe8
cmp al, 1
ja 0x1400167a3
cmp rsi, rcx
jae 0x1400167da
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400167a9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400167da
lodsb al, byte [rsi]
jmp 0x1400167b9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x14000]
mov eax, dword [rdi]
or eax, eax
je 0x140016837
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x164ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400167e7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140016831
mov qword [rbx], rax
add rbx, 8
jmp 0x140016807
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140016871
cmp al, 0xef
ja 0x140016863
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140016843
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140016852
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.1400168f0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1400168f0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400168e0
sub rsp, 0xffffffffffffff80
jmp 0x140001125
Function at 0x39c55c4e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x39c55c550
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x39c569074]
mov rbx, rcx
test esi, esi
jle 0x39c55c680
mov rax, qword [0x39c569078]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x39c55c59b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x39c55c625
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x39c55c580
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x39c55c6a2
mov rax, qword [0x39c569078]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x39c569078]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x39c55c687
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x39c55c61e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x39c55c630
add dword [0x39c569074], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x39c569078]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x39c55c61e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x39c55c5a8
mov rax, qword [0x39c569078]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x39c55ca20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x39c5690a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x39c569080]
test rbx, rbx
je 0x39c55ca7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x39c55ca73
test rsi, rsi
je 0x39c55ca73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x39c55ca58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x39c55cc90
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x39c55cca8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x39c55ccb0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x39c55ccc0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x39c55cd0d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x39c55cd04
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x39c55cd0f
add rax, 0x28
cmp rax, r9
jne 0x39c55ccf0
xor eax, eax
ret

Function at 0x39c55cd10
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x39c55cda0
mov rdx, qword [0x39c565a50]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x39c55cd8e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x39c55cd8e
cmp word [rax + 0x18], 0x20b
jne 0x39c55cd8e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x39c55cda0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x39c55cd79
add rbx, 0x28
cmp rbx, rdi
je 0x39c55cda0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x39c55cd70
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x39c565a50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x39c55cdd0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x39c55cdd8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x39c55cdd0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x39c55ce2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x39c55ce24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x39c55cdd0
add rax, 0x28
cmp rax, r9
jne 0x39c55ce10
xor eax, eax
ret

Function at 0x39c55ce30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x39c565a50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x39c55ce4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x39c55ce58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x39c55ce4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x39c55ce70
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x39c565a50]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x39c55ce90
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x39c55ce98
ret
cmp word [rdx + 0x18], 0x20b
jne 0x39c55ce90
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x39c55cee0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x39c55ced7
test rcx, rcx
je 0x39c55ce90
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x39c55cec8
xor eax, eax
ret

Function at 0x39c55cef0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x39c565a50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x39c55cf0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x39c55cf18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x39c565a50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x39c55cf50
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x39c55cf58
ret
cmp word [r8 + 0x18], 0x20b
jne 0x39c55cf50
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x39c55cf50
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x39c55cfa4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x39c55cfb0
add rdx, 0x28
cmp r9, rdx
jne 0x39c55cf90
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x39c565a50]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x39c55cfe2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x39c55cff0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x39c55cfe2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x39c55cfe2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x39c55cfe2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x39c55d045
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x39c55d058
add rdx, 0x28
cmp rdx, r10
jne 0x39c55d030
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x39c55d067
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x39c55d077
mov edx, dword [rax + 0xc]
test edx, edx
je 0x39c55d04e
test ecx, ecx
jg 0x39c55d060
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword gs:[0x30]
mov r10, rdx
mov rdi, qword [rsp + 0xd0]
mov rbx, r9
mov rsi, qword [rsp + 0xd8]
mov r9, rcx
mov rbp, qword [rsp + 0xe0]
mov r11, r8
mov rdx, qword [rax + 0x60]
mov r14, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xf0]
mov rax, qword [rdx + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov r8, qword [rcx + 0x20]
mov rcx, r8
cmp byte [rcx], 0xff
jne 0x14000107f
cmp byte [rcx + 1], 0x23
je 0x140001086
inc rcx
inc edx
jmp 0x140001074
mov qword [rsp + 0x48], r15
mov rcx, r10
mov qword [rsp + 0x40], r14
movsxd rax, edx
mov rdx, r11
add rax, r8
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x50], rax
mov r8, rbx
xor eax, eax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], r9
mov r9, rdi
mov qword [rsp + 0x20], rax
call fcn.140002090
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400020e0
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400010f0
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov ebx, edx
mov r10, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov edi, dword [r8 + 0x20]
add rsi, rcx
mov ebp, dword [r8 + 0x24]
add rdi, rcx
mov r11d, dword [r8 + 0x18]
add rbp, rcx
test r11d, r11d
je 0x140001181
nop dword [rax]
movzx r8d, r9w
mov eax, 0x1505
mov ecx, dword [rdi + r8*4]
add rcx, r10
movsx edx, byte [rcx]
test edx, edx
je 0x140001170
nop word [rax + rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140001160
cmp eax, ebx
je 0x140001198
inc r9w
movzx eax, r9w
cmp eax, r11d
jb 0x140001140
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx eax, word [rbp + r8*2]
mov eax, dword [rsi + rax*4]
add rax, r10
jmp 0x140001183
Function at 0x140003100
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 0x14000315d
lea rbx, [0x140054e40]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140003144
cmp r10, 2
jb 0x140003144
cmp byte [r9], r8b
jne 0x140003144
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 0x140003120
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000319f
lea rbx, [0x140054e40]
cmp r8b, 0x23
jne 0x140003183
cmp byte [r9], r8b
jne 0x140003183
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 0x140003170
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400032e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400032fa
mov qword [r8], 0
lea rdx, [0x14005480c]
call fcn.1400031b0
mov rbx, rax
test rax, rax
jne 0x14000331a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400033f1
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 0x1400033f1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400033f1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400033f1
cmp rdi, 0xffffffffffffffff
je 0x1400033f1
mov rax, qword [0x14008b7c0]
test rax, rax
je 0x14000338e
inc dword [rax + 0x3ac]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400033f1
mov r9, rbx
mov r8, rdi
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, rdi
je 0x1400033de
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14008b7c0]
test rax, rax
je 0x1400033d3
dec dword [rax + 0x3ac]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400033fa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400033ec
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400033fc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140005e10
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
mov rax, qword [rcx + 0x108]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140054e40]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x14008b7c0]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x1d7c], ebx
jne 0x140005e9d
mov dword [rax + 0x1d80], ebx
cmp dword [rax + 0x1db8], ebx
jne 0x140005eac
mov byte [rax + 0x1dbc], 1
cmp dword [rax + 0x1d64], ebx
jne 0x140005ec3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140023fe0
mov eax, ebx
add rsp, 0x20
pop rbx
ret