joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400115f0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x38], rcx
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x68], r9
cmp qword [rsp + 0x78], 0
je 0x140011654
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
je 0x140011654
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
jmp 0x140011660
xor eax, eax
mov qword [rsp + 0x30], rax
jmp 0x140011660
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x70], 0
je 0x140011693
mov rax, qword [rsp + 0x70]
cmp byte [rax], 0
je 0x140011693
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
jmp 0x14001169f
xor eax, eax
mov qword [rsp + 0x28], rax
jmp 0x14001169f
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
call fcn.140011cf0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov r9, qword [rsp + 0xb0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
lea rcx, [rsp + 0x48]
call fcn.140011d10
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0x48]
mov qword [rdx], r8
mov r8, qword [rsp + 0x50]
mov qword [rdx + 8], r8
mov r8, qword [rsp + 0x58]
mov qword [rdx + 0x10], r8
mov r8, qword [rdx]
mov qword [rcx], r8
mov r8, qword [rdx + 8]
mov qword [rcx + 8], r8
mov rdx, qword [rdx + 0x10]
mov qword [rcx + 0x10], rdx
add rsp, 0x88
ret

Function at 0x140011730
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r9
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
nop
add rsp, 0x48
ret
Function at 0x1400117b0
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x488
mov qword [rsp + 0x478], rcx
mov dword [rsp + 0x474], edx
mov qword [rsp + 0x468], r8
cmp qword [rsp + 0x478], 0xffffffffffffffff
jne 0x1400117ff
mov rcx, qword [rsp + 0x468]
mov edx, 0x2719
call fcn.14004a3d0
mov dword [rsp + 0x484], 0xffffffff
jmp 0x1400119ee
mov dword [rsp + 0x260], 0
mov dword [rsp + 0x25c], 0
mov eax, dword [rsp + 0x25c]
cmp eax, dword [rsp + 0x260]
jae 0x140011866
mov eax, dword [rsp + 0x25c]
mov rax, qword [rsp + rax*8 + 0x268]
cmp rax, qword [rsp + 0x478]
jne 0x14001184b
jmp 0x140011866
jmp 0x140011850
mov eax, dword [rsp + 0x25c]
add eax, 1
mov dword [rsp + 0x25c], eax
jmp 0x140011815
mov eax, dword [rsp + 0x25c]
cmp eax, dword [rsp + 0x260]
jne 0x1400118b5
cmp dword [rsp + 0x260], 0x40
jae 0x1400118b0
mov rcx, qword [rsp + 0x478]
mov eax, dword [rsp + 0x25c]
mov qword [rsp + rax*8 + 0x268], rcx
mov eax, dword [rsp + 0x260]
add eax, 1
mov dword [rsp + 0x260], eax
jmp 0x1400118b5
jmp 0x1400118ba
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x50]
jae 0x140011909
mov eax, dword [rsp + 0x4c]
mov rax, qword [rsp + rax*8 + 0x58]
cmp rax, qword [rsp + 0x478]
jne 0x1400118f4
jmp 0x140011909
jmp 0x1400118f9
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
jmp 0x1400118ca
mov eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x50]
jne 0x140011943
cmp dword [rsp + 0x50], 0x40
jae 0x14001193e
mov rcx, qword [rsp + 0x478]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
jmp 0x140011943
jmp 0x140011948
cmp dword [rsp + 0x474], 0
jl 0x140011991
mov eax, dword [rsp + 0x474]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x474]
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
jmp 0x14001199a
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x478]
add rax, 1
mov ecx, eax
mov rax, qword [rsp + 0x38]
xor edx, edx
lea r8, [rsp + 0x260]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x468]
cmp dword [rsp + 0x34], 0
setl dl
and dl, 1
call fcn.140011bc0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x484], eax
mov eax, dword [rsp + 0x484]
add rsp, 0x488
ret

Function at 0x140011ca0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x48
mov rax, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x34], r8d
mov dword [rsp + 0x30], r9d
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov r8d, dword [rsp + 0x30]
mov r9, qword [rsp + 0x70]
mov rax, qword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
add rsp, 0x48
ret
Function at 0x140011f00
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x78
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x54], r9d
mov rax, qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x4c]
lea rax, [rsp + 0x48]
xor r10d, r10d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.WS2_32.dll_WSARecv]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xa0]
mov edx, 1
call fcn.140011bc0
mov rcx, qword [rsp + 0xa0]
call fcn.14005f6a0
cmp eax, 0x40
jne 0x140011fb5
mov rcx, qword [rsp + 0xa0]
mov edx, 0x2746
call fcn.14004a3d0
jmp 0x140012026
mov rcx, qword [rsp + 0xa0]
call fcn.14005f6a0
cmp eax, 0x4d2
jne 0x140011fe4
mov rcx, qword [rsp + 0xa0]
mov edx, 0x274d
call fcn.14004a3d0
jmp 0x140012021
mov rcx, qword [rsp + 0xa0]
call fcn.14005f6a0
cmp eax, 0x2738
je 0x140012014
mov rcx, qword [rsp + 0xa0]
call fcn.14005f6a0
cmp eax, 0xea
jne 0x14001201c
mov dword [rsp + 0x44], 0
jmp 0x140012021
jmp 0x140012026
cmp dword [rsp + 0x44], 0
je 0x14001203e
mov dword [rsp + 0x74], 0xffffffff
jmp 0x140012053
mov rcx, qword [rsp + 0xa0]
call fcn.1400109a0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
add rsp, 0x78
ret

Function at 0x140012060
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x78
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], r8
mov dword [rsp + 0x54], r9d
mov rax, qword [rsp + 0x58]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x50]
mov eax, dword [rsp + 0x48]
lea r9, [rsp + 0x4c]
xor r10d, r10d
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.WS2_32.dll_WSASend]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xa0]
mov edx, 1
call fcn.140011bc0
mov rcx, qword [rsp + 0xa0]
call fcn.14005f6a0
cmp eax, 0x40
jne 0x140012113
mov rcx, qword [rsp + 0xa0]
mov edx, 0x2746
call fcn.14004a3d0
jmp 0x140012142
mov rcx, qword [rsp + 0xa0]
call fcn.14005f6a0
cmp eax, 0x4d2
jne 0x14001213d
mov rcx, qword [rsp + 0xa0]
mov edx, 0x274d
call fcn.14004a3d0
jmp 0x140012142
cmp dword [rsp + 0x44], 0
je 0x14001215a
mov dword [rsp + 0x74], 0xffffffff
jmp 0x14001216f
mov rcx, qword [rsp + 0xa0]
call fcn.1400109a0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
add rsp, 0x78
ret
Function at 0x140012180
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rdx
and r8b, 1
mov byte [rsp + 0xb7], r8b
mov qword [rsp + 0xa8], r9
mov dword [rsp + 0xa4], 0
cmp qword [rsp + 0xc0], 0xffffffffffffffff
je 0x140012386
test byte [rsp + 0xb7], 1
je 0x14001224f
mov rax, qword [rsp + 0xb8]
movzx eax, byte [rax]
and eax, 8
cmp eax, 0
je 0x14001224f
mov word [rsp + 0xa0], 0
mov word [rsp + 0xa2], 0
lea rcx, [rsp + 0x88]
call fcn.14004a100
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov r8d, 0xffff
mov r9d, pe_nt_image_headers64
lea r10, [rsp + 0xa0]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], 4
mov qword [rsp + 0x30], rax
call fcn.140011430
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0xa4], eax
mov rcx, qword [rsp + 0xa8]
cmp dword [rsp + 0xa4], 0
setne dl
and dl, 1
call fcn.140011bc0
xor eax, eax
cmp dword [rsp + 0xa4], 0
mov byte [rsp + 0x53], al
je 0x140012310
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x70]
mov edx, 0x2733
xor eax, eax
mov r8d, eax
call fcn.14004a1b0
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
call fcn.14004c330
mov cl, al
mov al, 1
test cl, 1
mov byte [rsp + 0x52], al
jne 0x140012308
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
mov edx, 0x4d5
xor eax, eax
mov r8d, eax
call fcn.14004a1b0
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14004c330
mov byte [rsp + 0x52], al
mov al, byte [rsp + 0x52]
mov byte [rsp + 0x53], al
mov al, byte [rsp + 0x53]
test al, 1
jne 0x140012321
jmp 0x140012381
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0xc0]
mov edx, 0x8004667e
lea r8, [rsp + 0x54]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsp + 0xb8]
movzx ecx, byte [rax]
and ecx, 0xfffffffc
mov byte [rax], cl
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_closesocket]
mov dword [rsp + 0xa4], eax
mov rcx, qword [rsp + 0xa8]
cmp dword [rsp + 0xa4], 0
setne dl
and dl, 1
call fcn.140011bc0
jmp 0x140012386
mov eax, dword [rsp + 0xa4]
add rsp, 0xc8
ret

Function at 0x1400123a0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x5c], ecx
mov dword [rsp + 0x58], edx
mov dword [rsp + 0x54], r8d
mov qword [rsp + 0x48], r9
mov ecx, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x54]
xor eax, eax
mov r9d, eax
xor eax, eax
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 1
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x48]
cmp qword [rsp + 0x40], 0xffffffffffffffff
sete dl
and dl, 1
call fcn.140011bc0
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x140012416
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
jmp 0x140012456
cmp dword [rsp + 0x5c], 0x17
jne 0x14001244c
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x40]
mov edx, 0x29
mov r8d, 0x1b
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x1400125b0
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x278
mov qword [rsp + 0x268], rcx
mov byte [rsp + 0x267], dl
mov dword [rsp + 0x260], r8d
mov qword [rsp + 0x258], r9
cmp qword [rsp + 0x268], 0xffffffffffffffff
jne 0x140012607
mov rcx, qword [rsp + 0x258]
mov edx, 0x2719
call fcn.14004a3d0
mov dword [rsp + 0x274], 0xffffffff
jmp 0x1400127a8
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x50]
jae 0x140012656
mov eax, dword [rsp + 0x4c]
mov rax, qword [rsp + rax*8 + 0x58]
cmp rax, qword [rsp + 0x268]
jne 0x140012641
jmp 0x140012656
jmp 0x140012646
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
jmp 0x140012617
mov eax, dword [rsp + 0x4c]
cmp eax, dword [rsp + 0x50]
jne 0x140012690
cmp dword [rsp + 0x50], 0x40
jae 0x14001268b
mov rcx, qword [rsp + 0x268]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + rax*8 + 0x58], rcx
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
jmp 0x140012690
jmp 0x140012695
movzx eax, byte [rsp + 0x267]
and eax, 1
cmp eax, 0
je 0x1400126c8
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
jmp 0x14001271f
cmp dword [rsp + 0x260], 0
jl 0x140012711
mov eax, dword [rsp + 0x260]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x260]
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [rsp + 0x48], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
jmp 0x14001271a
mov qword [rsp + 0x38], 0
jmp 0x14001271f
mov rax, qword [rsp + 0x268]
add rax, 1
mov ecx, eax
mov rax, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov r9d, r8d
mov r8, r9
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x258]
cmp dword [rsp + 0x34], 0
setl dl
and dl, 1
call fcn.140011bc0
cmp dword [rsp + 0x34], 0
jne 0x14001279d
movzx eax, byte [rsp + 0x267]
and eax, 1
cmp eax, 0
je 0x140012798
mov rcx, qword [rsp + 0x258]
mov edx, 0x2733
call fcn.14004a3d0
jmp 0x14001279d
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x274], eax
mov eax, dword [rsp + 0x274]
add rsp, 0x278
ret

Function at 0x140017120
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov qword [rsp + 0x1c8], rcx
mov byte [rsp + 0x1c7], dl
mov byte [rsp + 0x1c6], r8b
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x1d0], rax
mov rcx, qword [rsp + 0x1d0]
mov eax, 1
lock xadd dword [rcx], eax
add eax, 1
cmp eax, 1
jne 0x1400171c5
movzx eax, byte [rsp + 0x1c7]
movzx ecx, byte [rsp + 0x1c6]
shl ecx, 8
or eax, ecx
mov cx, ax
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
lea rdx, [rsp + 0x28]
call rax
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x1c8]
add rcx, 4
mov eax, dword [rsp + 0x24]
mov qword [rsp + 0x1e0], rcx
mov dword [rsp + 0x1dc], eax
mov rcx, qword [rsp + 0x1e0]
mov eax, dword [rsp + 0x1dc]
xchg dword [rcx], eax
add rsp, 0x1e8
ret
Function at 0x2fc4ca700
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cb102
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cb19a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb17e
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 0x2fc4cb172
cmp qword [rbp - 0x10], 0
je 0x2fc4cb172
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 0x2fc4cb138
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb19b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb2a0
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 0x2fc4cb2c8
mov eax, 0
jmp 0x2fc4cb316
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 0x2fc4cb2f1
mov eax, 0
jmp 0x2fc4cb316
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 0x2fc4cb311
mov eax, 0
jmp 0x2fc4cb316
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb31c
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 0x2fc4cb39a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb391
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 0x2fc4cb391
mov rax, qword [rbp - 8]
jmp 0x2fc4cb3af
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 0x2fc4cb364
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180620058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806201df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180620089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18062006f
add dl, dl
jne 0x180620096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806200f6
xor eax, eax
add dl, dl
jne 0x1806200a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806201ad
add dl, dl
jne 0x1806200b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806200c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806200d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806200dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806200ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18062007e
mov eax, 1
add dl, dl
jne 0x180620106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180620113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806200fb
sub eax, ebx
mov ebx, 1
jne 0x18062014c
mov ecx, 1
add dl, dl
jne 0x18062012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18062013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180620123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180620168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180620175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18062015d
cmp eax, 0x7d00
jae 0x18062019b
cmp eax, 0x500
jb 0x180620196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062007e
cmp eax, 0x7f
ja 0x18062019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806201d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18062007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003380
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 0x1400033dd
lea rbx, [0x1400cf3b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400033c4
cmp r10, 2
jb 0x1400033c4
cmp byte [r9], r8b
jne 0x1400033c4
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 0x1400033a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000341f
lea rbx, [0x1400cf3b0]
cmp r8b, 0x23
jne 0x140003403
cmp byte [r9], r8b
jne 0x140003403
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 0x1400033f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400035e0
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 0x14000360f
mov r8d, 0x7d7
lea rdx, str.C:UsersKHANPicturesimguiimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000361b
mov qword [rdi], 0
lea rdx, [0x1400cebd8]
mov rcx, rbx
call fcn.140003430
mov rbx, rax
test rax, rax
jne 0x14000363d
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 0x140003716
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003716
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003716
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 0x140003716
cmp rsi, 0xffffffffffffffff
je 0x140003716
mov rax, qword [0x140161638]
test rax, rax
je 0x1400036b3
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140003716
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 0x140003703
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140161638]
test rax, rax
je 0x1400036f8
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000371f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140003711
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140003721
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 0x140006720
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xf0], 0
mov rsi, rcx
movsxd rdi, edx
jg 0x14000675c
mov r8d, 0x718
lea rdx, str.C:UsersKHANPicturesimguiimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rsi + 0xf8]
lea rdx, [0x1400cf3b0]
movsxd r8, dword [rsi + 0xf0]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [rsi]
not ebx
cmp dword [rcx + 0x3f40], ebx
jne 0x1400067d7
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001ee00
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret