joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d4df0
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 0x2fc4d57f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d588a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d586e
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 0x2fc4d5862
cmp qword [rbp - 0x10], 0
je 0x2fc4d5862
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 0x2fc4d5828
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d588b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5990
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 0x2fc4d59b8
mov eax, 0
jmp 0x2fc4d5a06
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 0x2fc4d59e1
mov eax, 0
jmp 0x2fc4d5a06
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 0x2fc4d5a01
mov eax, 0
jmp 0x2fc4d5a06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000ca48
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
push rbx
call fcn.140081301
test rax, rax
je 0x14000ca92
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ca92
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ca92
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ca92
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ca92
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ca94
xor al, al
add rsp, 0x28
ret

Function at 0x14001a920
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001a71c

Function at 0x1400203f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xdeac
cmp ecx, eax
ja 0x140020448
je 0x14002043f
mov eax, 0xc433
cmp ecx, eax
ja 0x140020423
je 0x14002043f
mov eax, ecx
sub eax, 0x2a
je 0x14002043f
sub eax, 0xc402
je 0x14002043f
sub eax, 1
je 0x14002043f
sub eax, 1
je 0x14002043f
cmp eax, 3
jmp 0x14002043d
mov eax, ecx
sub eax, 0xc435
je 0x14002043f
sub eax, 0x1263
je 0x14002047b
sub eax, 0x812
je 0x14002043f
cmp eax, 1
jne 0x140020441
xor edx, edx
call fcn.140087b3c
ret 0xc18b
mov eax, ecx
sub eax, 0xdead
je 0x14002043f
sub eax, 1
je 0x14002043f
sub eax, 1
je 0x14002043f
sub eax, 1
je 0x14002043f
sub eax, 1
je 0x14002043f
sub eax, 1
je 0x14002043f
sub eax, 1
je 0x14002043f
sub eax, 0x1f35
je 0x14002043f
cmp eax, 1
jne 0x140020441
and edx, 8
jmp 0x140020441

Function at 0x14002ac80
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov eax, 0x2240
call fcn.6d2c4550
sub rsp, rax
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x21d0], ecx
mov qword [rbp + 0x21d8], rdx
mov qword [rbp + 0x21e0], r8
mov r8d, dword [rbp + 0x21d0]
mov edx, 0
mov ecx, 0x410
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x21b0], rax
cmp qword [rbp + 0x21b0], 0
jne 0x6d2c2059
mov eax, 0
jmp 0x6d2c214b
lea rdx, [rbp + 0x1ac]
lea rax, [rbp + 0x1b0]
mov rcx, qword [rbp + 0x21b0]
mov r9, rdx
mov r8d, 0x2000
mov rdx, rax
call sym.EnumProcessModules
test eax, eax
je 0x6d2c2133
mov dword [rbp + 0x21bc], 0
jmp 0x6d2c211e
mov eax, dword [rbp + 0x21bc]
mov rdx, qword [rbp + rax*8 + 0x1b0]
lea rcx, [rbp - 0x60]
mov rax, qword [rbp + 0x21b0]
mov r9d, 0x104
mov r8, rcx
mov rcx, rax
call sym.GetModuleFileNameExW
test eax, eax
je 0x6d2c2117
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.GetFileName
mov rcx, rax
mov rax, qword [rbp + 0x21d8]
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__wcsicmp]
call rax
test eax, eax
jne 0x6d2c2117
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x21e0]
mov rdx, rax
call sym.wcscpy
mov rax, qword [rbp + 0x21b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x6d2c214b
add dword [rbp + 0x21bc], 1
mov eax, dword [rbp + 0x1ac]
shr eax, 3
cmp dword [rbp + 0x21bc], eax
jb 0x6d2c2096
mov rax, qword [rbp + 0x21b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x2240
pop rbp
ret

Function at 0x6d2c21d2
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x200], rcx
mov dword [rbp + 0x1ec], 0
mov eax, dword [rbp + 0x1ec]
mov edx, eax
lea rcx, str.pid:__d_n
call sym.printf
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x1e0], rax
cmp qword [rbp + 0x1e0], 0xffffffffffffffff
jne 0x6d2c2231
mov eax, 0
jmp 0x6d2c22cc
mov dword [rbp - 0x60], 0x238
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x1e0]
mov rdx, rax
call sym.Process32FirstW
mov dword [rbp + 0x1e8], eax
jmp 0x6d2c22aa
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
mov rcx, qword [rbp + 0x200]
mov rax, qword [sym.imp.msvcrt.dll__wcsicmp]
call rax
test eax, eax
jne 0x6d2c2291
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0x1ec], eax
mov eax, dword [rbp + 0x1ec]
mov edx, eax
lea rcx, str.pid:__d_n
call sym.printf
jmp 0x6d2c22b3
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x1e0]
mov rdx, rax
call sym.Process32NextW
mov dword [rbp + 0x1e8], eax
cmp dword [rbp + 0x1e8], 0
jne 0x6d2c2253
mov rax, qword [rbp + 0x1e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0x1ec]
add rsp, 0x270
pop rbp
ret
Function at 0x6d2c24fe
Capabilities:
Create directory

Disassembly:
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov rcx, qword [rbp + 0xd0]
call sym.strlen
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0xa0], 0xff
jbe 0x6d2c2540
mov eax, 0xffffffff
jmp 0x6d2c261d
lea rax, [rbp - 0x60]
mov rdx, qword [rbp + 0xd0]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp + 0xa0]
sub rax, 1
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x5c
je 0x6d2c2595
lea rax, [rbp - 0x60]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp - 0x60]
add rax, rdx
mov word [rax], 0x5c
lea rax, [rbp - 0x60]
mov qword [rbp + 0xa8], rax
jmp 0x6d2c260a
mov rax, qword [rbp + 0xa8]
movzx eax, byte [rax]
cmp al, 0x5c
jne 0x6d2c2602
mov rax, qword [rbp + 0xa8]
mov byte [rax], 0
lea rax, [rbp - 0x60]
mov edx, 0
mov rcx, rax
call sym.access
test eax, eax
je 0x6d2c25f8
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.mkdir
test eax, eax
je 0x6d2c25f8
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0x4000
je 0x6d2c25f8
mov eax, 0xffffffff
jmp 0x6d2c261d
mov rax, qword [rbp + 0xa8]
mov byte [rax], 0x5c
add qword [rbp + 0xa8], 1
mov rax, qword [rbp + 0xa8]
movzx eax, byte [rax]
test al, al
jne 0x6d2c25a2
mov eax, 0
add rsp, 0x138
pop rdi
pop rbp
ret

Function at 0x6d2c2627
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x440
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], rdx
lea rdx, [0x6d2c600b]
mov rcx, qword [rbp + 0x3d0]
call sym.fopen
mov qword [rbp + 0x3b8], rax
cmp qword [rbp + 0x3b8], 0
jne 0x6d2c267f
lea rcx, str.Error_opening_source_file
call sym.perror
mov eax, 0xffffffff
jmp 0x6d2c2742
mov rax, qword [rbp + 0x3d8]
lea rdx, [0x6d2c6028]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x3b0], rax
cmp qword [rbp + 0x3b0], 0
jne 0x6d2c26ed
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sym.fclose
lea rcx, str.Error_opening_destination_file
call sym.perror
mov eax, 0xffffffff
jmp 0x6d2c2742
mov rcx, qword [rbp + 0x3b0]
mov rdx, qword [rbp + 0x3a8]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, qword [rbp + 0x3b8]
lea rax, [rbp - 0x60]
mov r9, rdx
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sym.fread
mov qword [rbp + 0x3a8], rax
cmp qword [rbp + 0x3a8], 0
jne 0x6d2c26c8
mov rax, qword [rbp + 0x3b8]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0x3b0]
mov rcx, rax
call sym.fclose
mov eax, 0
add rsp, 0x440
pop rbp
ret
Function at 0x6d2c274b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request

Disassembly:
push rbp
mov eax, 0x2a00
call fcn.6d2c4550
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x27c0]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x6d2c2787
mov eax, 0
jmp 0x6d2c28f9
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp + 0x2978], rax
mov word [rbp + 0x27b0], 2
mov ecx, 0x4d2
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x27b2], ax
lea rcx, str.127.0.0.1
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [rbp + 0x27b4], eax
lea rax, [rbp + 0x27b0]
mov rcx, qword [rbp + 0x2978]
mov r8d, 0x10
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x6d2c2809
mov eax, 0
jmp 0x6d2c28f9
lea rax, str.GET__Lekura_oned_HTTP_1.1_n
mov qword [rbp + 0x2970], rax
mov rax, qword [rbp + 0x2970]
mov rcx, rax
call sym.strlen
mov ecx, eax
mov rdx, qword [rbp + 0x2970]
mov rax, qword [rbp + 0x2978]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
lea rax, [rbp - 0x60]
mov edx, 0x2801
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov edx, 1
mov ecx, 0x100000
call sym.calloc
mov qword [rbp + 0x2968], rax
jmp 0x6d2c28a0
lea rax, [rbp - 0x60]
mov rdx, qword [rbp + 0x2960]
add rax, rdx
mov byte [rax], 0
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x2968]
mov rdx, rax
call sym.strcat
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0x2978]
mov r9d, 0
mov r8d, 0x2800
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
cdqe
mov qword [rbp + 0x2960], rax
cmp qword [rbp + 0x2960], 0
jne 0x6d2c287c
mov rax, qword [rbp + 0x2978]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov rax, qword [rbp + 0x2968]
add rsp, 0x2a00
pop rbp
ret

Function at 0x6d2c2902
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
lea rdx, [0x6d2c6028]
mov rcx, qword [rbp + 0x10]
call sym.fopen
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x6d2c293d
lea rcx, str.Error_opening_file
call sym.perror
mov eax, dword [rbp + 0x20]
movsxd rdx, eax
mov rcx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x30
pop rbp
ret
Function at 0x6d2c2b59
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x6a0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x640], ecx
mov rax, qword [str.LoggingPlatform.dll]
mov qword [rbp + 0x5f0], rax
mov rax, qword [0x6d2c6108]
mov qword [rbp + 0x5f8], rax
mov rax, qword [0x6d2c6110]
mov qword [rbp + 0x600], rax
mov rax, qword [0x6d2c6118]
mov qword [rbp + 0x608], rax
mov rax, qword [0x6d2c6120]
mov qword [rbp + 0x610], rax
lea rdx, [rbp + 0x3e0]
lea rax, [rbp + 0x5f0]
mov r8, rdx
mov rdx, rax
mov ecx, dword [rbp + 0x640]
call sym.GetDllFullPathByProcess
test eax, eax
je 0x6d2c2dfd
lea rax, [rbp + 0x3e0]
mov rcx, rax
call sym.TCHARToChar
mov qword [rbp + 0x618], rax
mov rax, qword [rbp + 0x618]
mov rcx, rax
call sym.remove_filename
mov rdx, qword [rbp + 0x618]
lea rax, [rbp + 0xb0]
mov rcx, rax
call sym.strcpy
mov rax, qword [rbp + 0x618]
lea r8, str.LocalRow
lea rdx, str.Local
mov rcx, rax
call sym.replace
mov rax, qword [rbp + 0x618]
mov rcx, rax
call sym.mkdir_recursive
test eax, eax
jne 0x6d2c2c61
mov rax, qword [rbp + 0x618]
mov rdx, rax
lea rcx, str.mkdir_success_:__s_n
call sym.printf
jmp 0x6d2c2c77
mov rax, qword [rbp + 0x618]
mov rdx, rax
lea rcx, str.mkdir_error_:__s_n
call sym.printf
mov rdx, qword [rbp + 0x618]
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strcat
lea rax, [rbp - 0x60]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp - 0x60]
add rax, rdx
movabs rdi, 0x6952657461647055
mov qword [rax], rdi
movabs rbx, 0x6e6974746553676e
mov qword [rax + 8], rbx
mov dword [rax + 0x10], 0x642e7367
mov word [rax + 0x14], 0x6c6c
mov byte [rax + 0x16], 0
lea rdx, [rbp + 0xb0]
lea rax, [rbp + 0x1c0]
mov rcx, rax
call sym.strcpy
lea rax, [rbp + 0x1c0]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp + 0x1c0]
add rax, rdx
movabs rbx, 0x50676e6967676f4c
mov qword [rax], rbx
movabs rdi, 0x2e6d726f6674616c
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 0x6c6c64
lea rdx, [rbp + 0xb0]
lea rax, [rbp + 0x2d0]
mov rcx, rax
call sym.strcpy
lea rax, [rbp + 0x2d0]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
lea rax, [rbp + 0x2d0]
add rax, rdx
mov qword [rax], rbx
movabs rbx, 0x5f6d726f6674616c
mov qword [rax + 8], rbx
movabs rdi, 0x6c6c642e6b6162
mov qword [rax + 0x10], rdi
lea rax, [rbp + 0x1c0]
mov rdx, rax
lea rcx, str.old__s_n
call sym.printf
lea rdx, [rbp + 0x2d0]
lea rax, [rbp + 0x1c0]
mov rcx, rax
call sym.rename
test eax, eax
jne 0x6d2c2def
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x1c0]
mov rcx, rax
call sym.writeDll
jmp 0x6d2c2e09
lea rcx, str.reset_error
call sym.puts
jmp 0x6d2c2e09
lea rcx, str.DLL_not_found._n
call sym.wprintf
nop
add rsp, 0x6a0
pop rbx
pop rdi
pop rbp
ret
Function at 0x6d2c35e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d2c95e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d2c3768
mov rax, qword [0x6d2c95e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d2c362c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d2c36b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d2c3610
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d2c379d
mov rax, qword [0x6d2c95e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d2c95e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d2c3780
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d2c36ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d2c3710
add dword [0x6d2c95e4], 1
cmp edi, 8
jae 0x6d2c36e3
test dil, 4
jne 0x6d2c3754
test edi, edi
je 0x6d2c36d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d2c376f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d2c36d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d2c36fc
jmp 0x6d2c36d8
add rsi, qword [0x6d2c95e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d2c36ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d2c36d8
xor esi, esi
jmp 0x6d2c3637
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d2c36d8
mov rax, qword [0x6d2c95e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d2c3ef0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d2c98c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d2c98a0]
test rbx, rbx
je 0x6d2c3f44
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d2c3f3b
test rsi, rsi
je 0x6d2c3f3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d2c3f20
lea rcx, [0x6d2c98c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d2c4180
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d2c4190
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d2c41a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d2c41e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d2c41d8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d2c41e3
add rax, 0x28
cmp rax, r9
jne 0x6d2c41c4
xor eax, eax
ret

Function at 0x6d2c4280
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d2c6390]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d2c42ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d2c42ed
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 0x6d2c42ed
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 0x6d2c42e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d2c42ef
add rax, 0x28
cmp rax, r9
jne 0x6d2c42d0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d2c43f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d2c6390]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d2c4410
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d2c4408
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 0x6d2c446d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d2c4464
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d2c4474
add rax, 0x28
cmp rax, r9
jne 0x6d2c4450
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d2c4490
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d2c6390]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d2c44fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d2c44fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d2c44fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d2c44fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d2c44f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d2c4505
add rcx, 0x28
cmp rcx, rax
jne 0x6d2c44e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d2c4518
jmp 0x6d2c44fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d2c4526
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d2c44fe
test r9d, r9d
jg 0x6d2c4510
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d2c4950
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1688f8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1688f81df
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 0x1688f8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1688f806f
add dl, dl
jne 0x1688f8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1688f80f6
xor eax, eax
add dl, dl
jne 0x1688f80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1688f81ad
add dl, dl
jne 0x1688f80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1688f80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1688f80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1688f80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1688f80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1688f807e
mov eax, 1
add dl, dl
jne 0x1688f8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1688f8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1688f80fb
sub eax, ebx
mov ebx, 1
jne 0x1688f814c
mov ecx, 1
add dl, dl
jne 0x1688f812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1688f813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1688f8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1688f807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1688f8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1688f8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1688f815d
cmp eax, 0x7d00
jae 0x1688f819b
cmp eax, 0x500
jb 0x1688f8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1688f807e
cmp eax, 0x7f
ja 0x1688f819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1688f807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1688f81d2
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 0x1688f807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20