joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481070
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0096e400]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4810dd
mov rcx, r8
call fcn.00480f50
test eax, eax
je 0x4810dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4810dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4810d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4810df
add rax, 0x28
cmp rax, r9
jne 0x4810c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x481720
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004816b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004816b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push rbp
mov rbp, rsp
pop rbp
jmp fcn.00401530
Function at 0x1400019c0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0xa0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
mov rax, qword [0x140017de8]
xor rax, rsp
mov qword [rsp + 0x78], rax
movss xmm6, dword [0x14000999c]
xor esi, esi
movss xmm7, dword [0x140009998]
mov byte [0x140017dd8], 1
lea rcx, [rsp + 0x40]
call sub.SDL2.dll_SDL_PollEvent
test eax, eax
je 0x140001a2d
cmp dword [rsp + 0x40], 0x100
je 0x140001c1b
lea rcx, [rsp + 0x40]
call sub.SDL2.dll_SDL_PollEvent
test eax, eax
jne 0x140001a11
mov rcx, qword [0x140017e60]
call sub.SDL2.dll_SDL_RenderClear
cmp qword [0x140017e70], rsi
jne 0x140001a55
lea rcx, str.assets_back.bmp
call fcn.140002860
mov qword [0x140017e70], rax
cvttss2si eax, dword [0x140017e50]
and eax, 0x8000000f
jge 0x140001a6b
dec eax
or eax, 0xfffffff0
inc eax
imul eax, eax, 0x78
mov edi, 0xffffff88
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], 0x78
mov dword [rsp + 0x3c], 0x78
mov dword [rsp + 0x28], 0x78
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], 0x78
nop dword [rax + rax]
mov ebx, esi
cvttss2si ecx, dword [0x140017e54]
mov eax, 0x88888889
mov dword [rsp + 0x24], ebx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x78
mov rdx, qword [0x140017e70]
sub ecx, eax
mov eax, edi
sub eax, ecx
mov rcx, qword [0x140017e60]
mov dword [rsp + 0x20], eax
call sub.SDL2.dll_SDL_RenderCopy
add ebx, 0x78
cmp ebx, 0x2d0
jl 0x140001aa2
add edi, 0x78
cmp edi, 0x3c0
jl 0x140001aa0
movss xmm0, dword [0x140017e54]
movss xmm1, dword [0x140017e50]
addss xmm0, xmm6
mov rcx, qword [0x140018468]
addss xmm1, xmm7
mov byte [0x140017e39], sil
movss dword [0x140017e54], xmm0
movss dword [0x140017e50], xmm1
mov rcx, qword [rcx + 0x10]
call sub.SDL2.dll_SDL_LockMutex
mov rbx, qword [0x140017e68]
test rbx, rbx
je 0x140001b6c
nop dword [rax]
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x140001b64
cmp byte [rbx + 0x28], sil
jne 0x140001b64
mov rcx, rbx
call rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001b50
mov rcx, qword [0x140018468]
mov rcx, qword [rcx + 0x10]
call sub.SDL2.dll_SDL_UnlockMutex
movzx eax, byte [0x140017e39]
cmp al, byte [0x140017e38]
je 0x140001bb2
test al, al
je 0x140001b98
mov rcx, qword [0x140017e30]
jmp 0x140001ba0
call sub.SDL2.dll_SDL_GetDefaultCursor
mov rcx, rax
call sub.SDL2.dll_SDL_SetCursor
movzx eax, byte [0x140017e39]
mov byte [0x140017e38], al
mov rcx, qword [0x140017e60]
call sub.SDL2.dll_SDL_RenderPresent
mov ecx, recv
call sub.SDL2.dll_SDL_Delay
cmp byte [0x140017dd8], sil
jne 0x140001a03
mov rcx, qword [0x140017e68]
call fcn.140002830
mov rcx, qword [0x140018468]
call fcn.140003680
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007100
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140002580
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0xc48
mov rax, qword [0x140017de8]
xor rax, rsp
mov qword [rsp + 0xc30], rax
mov rbx, rdx
lea r9, [rsp + 0xc78]
mov rdi, rcx
mov r8, rcx
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140001e50
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, str.File:__s____________________________________________nLine:__d_n_n_s
mov eax, dword [rsp + 0xc70]
lea rcx, [rsp + 0x430]
mov edx, 0x800
mov dword [rsp + 0x20], eax
call fcn.140001df0
xor r9d, r9d
lea r8, [rsp + 0x430]
lea rdx, str.Runtime_Error___Please_contact_developers_
lea ecx, [r9 + 0x10]
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
test eax, eax
jns 0x140002677
lea rbx, str.C:UsershanderDocumentsdisaster_launcherlog.c
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14000263f
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
lea rbx, [rax + 1]
call sub.SDL2.dll_SDL_GetError
mov r9, rax
lea rcx, str.Failed_to_show_error:__s
mov r8d, 0x3b
mov rdx, rbx
call fcn.1400024a0
lea rdx, [rsp + 0xc78]
mov rcx, rdi
call fcn.1400026f0
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putchar]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400032f0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140003b40
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xe8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x74], xmm0
mov dword [r11 - 0x14], eax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x78]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rdx
mov rdx, rcx
mov qword [rsp + 0x30], rax
xor ecx, ecx
movups xmmword [r11 - 0x64], xmm0
mov dword [rsp + 0x28], 0x8000000
movups xmmword [r11 - 0x54], xmm0
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
movups xmmword [r11 - 0x24], xmm0
mov dword [rsp + 0x70], 0x68
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
add rsp, 0xe8
ret
Function at 0x140004c90
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140017de8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rdi, rcx
movzx esi, dx
mov ecx, gethostbyname
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140004daa
xorps xmm0, xmm0
mov qword [rsp + 0x200], rbp
movups xmmword [rax], xmm0
mov ecx, 0x202
lea rdx, [rsp + 0x20]
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x140004d97
mov ebp, 2
lea edx, [rax + 1]
mov ecx, ebp
xor r8d, r8d
call qword [sym.imp.WSOCK32.dll_socket]
mov dword [rbx + 0xc], eax
test eax, eax
js 0x140004d97
mov rcx, rdi
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov qword [rbx + 0x20], rax
xorps xmm0, xmm0
lea rcx, [rbx + 0x14]
movups xmmword [rbx + 0x10], xmm0
mov rax, qword [rbx + 0x20]
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
mov rdx, qword [rdx]
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, si
mov word [rbx + 0x10], bp
call qword [sym.imp.WSOCK32.dll_htons]
lea rdi, [0x14000a4d8]
mov word [rbx + 0x12], ax
mov rcx, rdi
lea edx, [rbp + 0x5a]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140004d7a
lea edx, [rbp + 0x5a]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strrchr
lea rdi, [rax + 1]
mov r9, rbx
lea rcx, str.Socket_0x_p_created
mov r8d, 0x4b
mov rdx, rdi
call fcn.1400024a0
mov rax, rbx
jmp 0x140004da2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbp, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140007100
add rsp, 0x1d0
pop rdi
pop rsi
pop rbx
ret

Function at 0x140007b8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007bd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140007bd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140007bd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140007bd6
cmp dword [rcx + 0x84], 0xe
jbe 0x140007bd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140007bd8
xor al, al
add rsp, 0x28
ret
Function at 0x140007f30
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140007f40
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r13, rax
test rax, rax
je 0x1400080b8
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rbx, ecx
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x1400080b8
xor edi, edi
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x140008051
sub rax, r13
mov rsi, r13
mov qword [rsp + 0x68], rax
nop
mov rcx, qword [rsi]
call sub.SDL2.dll_SDL_wcslen
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea rcx, str.UTF_8
lea r9, [rax*2 + 2]
call sub.SDL2.dll_SDL_iconv_string
mov rbp, rax
test rax, rax
je 0x1400080b8
mov rcx, rax
call sub.SDL2.dll_SDL_strlen
mov r12, rax
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x1400080b8
mov r8d, r12d
mov rdx, rbp
mov rcx, rax
call sub.SDL2.dll_SDL_memcpy
mov rcx, rbp
call sub.SDL2.dll_SDL_free
inc r14d
add rsi, 8
cmp r14d, dword [rsp + 0x60]
jl 0x140007fc0
movsxd rax, r14d
mov rcx, r13
mov qword [r15 + rax*8], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call sub.SDL2.dll_SDL_SetMainReady
mov ecx, dword [rsp + 0x60]
mov rdx, r15
call section..text
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x1400080a0
mov rbx, r15
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsp + 0x60]
jl 0x140008080
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x1400080d4
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [r9 + 0x10]
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007f40
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x140007f40
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r13, rax
test rax, rax
je 0x1400080b8
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rbx, ecx
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x1400080b8
xor edi, edi
mov r14d, edi
cmp dword [rsp + 0x60], edi
jle 0x140008051
sub rax, r13
mov rsi, r13
mov qword [rsp + 0x68], rax
nop
mov rcx, qword [rsi]
call sub.SDL2.dll_SDL_wcslen
mov r8, qword [rsi]
lea rdx, str.UTF_16LE
lea rcx, str.UTF_8
lea r9, [rax*2 + 2]
call sub.SDL2.dll_SDL_iconv_string
mov rbp, rax
test rax, rax
je 0x1400080b8
mov rcx, rax
call sub.SDL2.dll_SDL_strlen
mov r12, rax
lea ebx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx + rsi], rax
test rax, rax
je 0x1400080b8
mov r8d, r12d
mov rdx, rbp
mov rcx, rax
call sub.SDL2.dll_SDL_memcpy
mov rcx, rbp
call sub.SDL2.dll_SDL_free
inc r14d
add rsi, 8
cmp r14d, dword [rsp + 0x60]
jl 0x140007fc0
movsxd rax, r14d
mov rcx, r13
mov qword [r15 + rax*8], rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
call sub.SDL2.dll_SDL_SetMainReady
mov ecx, dword [rsp + 0x60]
mov rdx, r15
call section..text
mov esi, eax
cmp dword [rsp + 0x60], edi
jle 0x1400080a0
mov rbx, r15
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
inc edi
lea rbx, [rbx + 8]
cmp edi, dword [rsp + 0x60]
jl 0x140008080
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x1400080d4
xor r9d, r9d
lea r8, str.Out_of_memory___aborting
lea rdx, str.Fatal_Error
lea ecx, [r9 + 0x10]
call sub.SDL2.dll_SDL_ShowSimpleMessageBox
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x2fc4cda60
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.2fc4ceb40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ce462
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4ce4fa
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4ce4de
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 0x2fc4ce4d2
cmp qword [rbp - 0x10], 0
je 0x2fc4ce4d2
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 0x2fc4ce498
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ce4fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ce600
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 0x2fc4ce628
mov eax, 0
jmp 0x2fc4ce676
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 0x2fc4ce651
mov eax, 0
jmp 0x2fc4ce676
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 0x2fc4ce671
mov eax, 0
jmp 0x2fc4ce676
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ce67c
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 0x2fc4ce6fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4ce6f1
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 0x2fc4ce6f1
mov rax, qword [rbp - 8]
jmp 0x2fc4ce70f
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 0x2fc4ce6c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001fd0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx], 0xffffffffffffffff
jne 0x14000216c
mov byte [rcx + 0xa0], 0
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
mov eax, 0xffffffff
imul rcx, rax
movabs rax, 0x2000400080011
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 0xe
mov dword [rbx + 0x9c], ecx
movdqa xmm0, xmmword [0x140099260]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x30], 0xe
xor esi, esi
mov ecx, esi
nop word [rax + rax]
movzx eax, byte [rbp - 0x40]
xor byte [rbp + rcx - 0x3f], al
inc rcx
cmp rcx, 0x10
jb 0x140002050
mov byte [rbp - 0x2f], sil
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp - 0x3f]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14000217f
mov byte [rbx + 0xa0], 1
mov rcx, rbx
call fcn.140002d40
test eax, eax
js 0x140002170
mov cl, 5
mov dword [rbp - 0x40], 0x6a716b05
mov dword [rbp - 0x3c], 0x6b776e76
mov dword [rbp - 0x38], 0x7d602b69
mov word [rbp - 0x34], 0x60
mov rax, rsi
nop
xor byte [rbp + rax - 0x3f], cl
inc rax
cmp rax, 0xc
jae 0x1400020e3
movzx ecx, byte [rbp - 0x40]
jmp 0x1400020d0
mov byte [rbp - 0x33], sil
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], 0xf
mov byte [rbp - 0x28], 0
lea rax, [rbp - 0x3f]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140002106
lea rdx, [rbp - 0x3f]
lea rcx, [rbp - 0x28]
call fcn.1400086e0
nop
lea rcx, [rbp - 0x28]
call fcn.140014db0
mov qword [rbx + 0x20], rax
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140002162
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000215d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400021a9
call fcn.140016950
cmp qword [rbx + 0x20], 0
je 0x140002170
mov dword [rbx + 8], esi
xor eax, eax
jmp 0x140002196
mov rcx, rbx
call fcn.1400028f0
mov eax, 0xc0000001
jmp 0x140002196
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140007a90
mov rdx, rax
mov rcx, rbx
call fcn.1400021b0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
call fcn.140028100
int3
Function at 0x140004a00
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x1040
call fcn.1400174e0
sub rsp, rax
mov rax, qword [0x1400a0060]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbx, r8
mov rdi, rcx
test r8, r8
je 0x140004ab7
mov rdx, rbx
call fcn.140002e30
test rax, rax
je 0x140004ab7
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rax
mov rcx, rdi
call fcn.140002fc0
test eax, eax
je 0x140004ab7
movsxd rax, dword [rsp + 0x6c]
lea rcx, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
movzx eax, word [rcx + 0x14]
lea r10, [rcx + 0x18]
movzx r9d, word [rcx + 6]
add r10, rax
test r9d, r9d
je 0x140004ab7
lea rcx, [r8 + r8*4]
cmp dword [r10 + rcx*8], 0x45474150
lea rdx, [r10 + rcx*8]
jne 0x140004aaf
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140004aa0
cmp rax, 4
je 0x140004ada
inc r8d
cmp r8d, r9d
jb 0x140004a80
xor eax, eax
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140016930
mov rbx, qword [rsp + 0x1058]
add rsp, 0x1040
pop rdi
ret
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x140004ab7
mov r8d, dword [rdx + 8]
mov edx, eax
lea rax, [rsp + 0x30]
add rax, rdx
je 0x140004ab7
test r8d, r8d
je 0x140004ab7
add rdx, rbx
je 0x140004ab7
lea rax, str.xxx____x_xxxxxxx
mov rcx, rdi
lea r9, [0x140098a00]
mov qword [rsp + 0x20], rax
call fcn.140003e40
jmp 0x140004ab9
Function at 0x140006ca0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140006cc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140006d3c
mov rdi, r14
mov rcx, rbx
call fcn.140008540
test rax, rax
jle 0x140006d14
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14001ce90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140006d2c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006d34
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140006cd6
sub r14, rdi
jmp 0x140006e29
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140006d53
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006d55
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006d8a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14001ce90
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140006e26
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140006dc5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140006e01
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400278f0
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140006e3f
cmp rbp, rax
ja 0x140006dd1
mov r8, rdi
test rdi, rdi
je 0x140006e26
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400278f0
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140006e29