joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140108cac
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140108ce3
call fcn.1400fb41c
mov dword [rax], socket
call fcn.1400fb238
xor eax, eax
jmp 0x140108d71
mov rdx, r9
mov rcx, r8
call fcn.140108c48
mov rbx, rax
test rax, rax
je 0x140108d6e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140108b74]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140108d5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fb390
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140108d42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140108d51
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401156ac
jmp 0x140108d6e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140108d6b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14010a0f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14018d800]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1401604f8]
mov rbp, rcx
call fcn.14010aa68
xor edi, edi
test rax, rax
je 0x14010a1d6
mov ebx, edi
call fcn.1400fb41c
mov r14d, dword [rax]
call fcn.1400fb41c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140119a10
mov rsi, rax
test rax, rax
je 0x14010a167
call fcn.1400fb41c
mov dword [rax], r14d
jmp 0x14010a191
call fcn.1400fb41c
cmp dword [rax], 0x22
jne 0x14010a1ce
call fcn.1400fb41c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140119a10
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14010a1ce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14010a195
cmp rax, 3
je 0x14010a1b0
mov rcx, rsi
call fcn.14010a04c
test al, al
je 0x14010a1c1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14010a1c1
mov dil, 1
mov rcx, rbx
call fcn.1400fc6a0
mov al, dil
jmp 0x14010a1d8
mov rcx, rbx
call fcn.1400fc6a0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400f3d30
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14010f174
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14010ef70
Function at 0x140111c10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140191c50]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140111c67
cmp word [rdx], r13w
jne 0x140111c67
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140111c6c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140111d91
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140111db2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140111ca5
mov rdx, r9
mov word [rbx], cx
jmp 0x140111ccc
cmp r9, r8
jae 0x140111cdc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140111c86
jmp 0x140111d91
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140111d86
cmp dword [rsp + 0x80], esi
je 0x140111d86
lea r8, [0x140191c50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140111d5e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140111d2e
mov word [rbx], r13w
jmp 0x140111d8e
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140111d3b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140111d8e
cmp word [rsp + 0x70], r13w
jne 0x140111d6b
cmp rbx, r14
je 0x140111d28
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14010b8b8
cmp word [rsp + 0x70], r13w
je 0x140111d91
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140191c50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140111d8b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140111d91
Function at 0x140115840
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140115856
mov al, 1
jmp 0x1401158b6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140115867
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401158b4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140119444
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401158b4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401158b4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401158b4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401158b6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140119554
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14010b8b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14010b8b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401196a4
cmp rax, 0xffffffffffffffff
je 0x1401196a4
xor edi, edi
test rbp, rbp
jle 0x14011964f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401152b4
mov rbx, rax
test rax, rax
jne 0x1401195dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140119645
mov edx, 0x8000
mov ecx, r14d
call fcn.14011018c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140112fc8
cmp eax, 0xffffffff
je 0x140119625
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401195ec
mov edx, r15d
mov ecx, r14d
call fcn.14011018c
jmp 0x140119645
cmp byte [rsi + 0x38], dil
je 0x14011963c
cmp dword [rsi + 0x34], 5
jne 0x14011963c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140119645
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401156ac
jmp 0x1401196b8
jns 0x1401196b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14010b8b8
cmp rax, 0xffffffffffffffff
jne 0x140119670
cmp byte [rsi + 0x30], dil
je 0x1401196b8
mov edi, dword [rsi + 0x2c]
jmp 0x1401196b8
mov ecx, r14d
call fcn.140119444
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401196b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1401196b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401196b1
mov eax, dword [rsi + 0x2c]
jmp 0x1401196b6
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14010b8b8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14011cb8c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14011cbbc
xor eax, eax
jmp 0x14011cc7f
mov rbp, rbx
cmp word [rax], si
je 0x14011cbe1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14011cbc8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14011cbc4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140118e48
movsxd r14, eax
test eax, eax
jne 0x14011cc1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14011cbb5
mov rcx, r14
call fcn.1401156e8
mov rdi, rax
test rax, rax
jne 0x14011cc38
xor ecx, ecx
call fcn.1401156ac
jmp 0x14011cc14
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140118e48
test eax, eax
jne 0x14011cc69
mov rcx, rdi
call fcn.1401156ac
jmp 0x14011cc73
xor ecx, ecx
call fcn.1401156ac
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14011cc9c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14011cd23
mov rsi, rbx
cmp word [rax], bp
je 0x14011cce2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14011cccc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14011ccc8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401156e8
mov rdi, rax
test rax, rax
je 0x14011cd10
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140124d70
mov rbp, rdi
xor ecx, ecx
call fcn.1401156ac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14011f83c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140114254
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14011f8dd
cmp ebx, dword [rsp + 0x30]
je 0x14011f8d6
test esi, esi
je 0x14011f8d6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14011f8b1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14011f8be
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14011f89b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14011f8c2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14011f8df
mov eax, 1
jmp 0x14011f8df
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14011fe74
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14011fe94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fb390
or eax, 0xffffffff
jmp 0x14011fe96
xor eax, eax
add rsp, 0x28
ret

Function at 0x140121ebc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14018d800]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140121f06
call fcn.1400fb3fc
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400fb41c
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400fb238
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400f3d30
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140121f11
lea eax, [rbx + 1]
jmp 0x140121ef3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140121ef1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140121ef3

Function at 0x1401233d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401233f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401233f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002b94
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002bde
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002bde
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002bde
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002bde
cmp dword [rcx + 0x84], 0xe
jbe 0x140002bde
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002be0
xor al, al
add rsp, 0x28
ret
Function at 0x140002b60
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400a4580]
mov rax, qword [rsi]
test rax, rax
je 0x140002bf0
cmp qword [rax + 0x30], 0
jne 0x140002c10
lea rbx, [0x140087938]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140002bc0
cmp qword [rax + 0x30], 0
jne 0x140002be0
lea rdx, [0x140087938]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400128e0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140007a60
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140002ba2
test rax, rax
jne 0x140002be0
call fcn.140007a60
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140002bb0
call fcn.140007a60
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140002b80
test rax, rax
jne 0x140002c10
call fcn.140007a60
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140002b8b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2

Function at 0x140002c20
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140002d32
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140002d0a
add rax, 1
cmp rax, 0x6b
je 0x140002d27
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140002d00
cmp edx, 0x6a
je 0x140002d27
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140002d1b
Function at 0x140003740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1400a4580]
mov rax, qword [rsi]
test rax, rax
je 0x140003930
cmp qword [rax + 0x28], 0
jne 0x140003918
lea rcx, [0x1400a7088]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140003925
call fcn.140002d50
mov rax, qword [rsi]
test rax, rax
je 0x1400037c0
cmp qword [rax + 0x30], 0
jne 0x1400037e0
lea rdx, [0x140087938]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400037f4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140007a60
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003790
test rax, rax
jne 0x1400037e0
call fcn.140007a60
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1400037ae
call fcn.140002890
cmp qword [0x1400aa050], 0
mov rbx, rax
je 0x1400037ae
test rax, rax
je 0x1400037ae
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140009900
cmp eax, 1
je 0x14000399d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400128e6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140003978
cmp qword [rax + 0x30], 0
je 0x140003960
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400128e6
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000377c
mov rax, qword [rsi]
jmp 0x140003789
call fcn.140007a60
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140003768
test rax, rax
jne 0x140003918
call fcn.140007a60
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000377c
jmp 0x140003781
lea rdx, [0x140087938]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400038ee
call fcn.140007a60
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003960
test rax, rax
jne 0x1400038ea
call fcn.140007a60
jmp 0x1400038ea
call fcn.140002c20
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1400a4580]
mov rdx, qword [rax]
lea rax, [0x1400a7098]
mov qword [rdx + 0x10], rax
ret
Function at 0x14000bdc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400a4500]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bde0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bde8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bde0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000be35
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000be2c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bde0
add rax, 0x28
cmp rax, r9
jne 0x14000be18
xor eax, eax
ret

Function at 0x14000be40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a4500]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000be60
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000be68
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000be60
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000bef0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400a4500]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bf10
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000bf18
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140012340
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push r15
mov eax, 0x11d78
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000c080
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rcx, rax
call sub.msvcrt.dll_srand
mov ecx, 0x3e8
call sub.msvcrt.dll_malloc
mov rcx, rax
mov r12, rax
call qword [sym.imp.msvcrt.dll__msize]
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_strlen
cmp eax, esi
jle 0x1400123a2
add eax, 0x64
mov rcx, r12
movsxd rdx, eax
call sub.msvcrt.dll_realloc
mov r12, rax
call sub.msvcrt.dll_rand
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x1400123d1
add rsp, 0x11d78
mov rcx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_free
mov eax, ebp
mov edi, 0x65
xor ebp, ebp
cdq
lea r13, str._sBocchi_find_you_i.jpg
lea r14, [0x140091e18]
idiv edi
lea r15, [rsp + 0x11d70]
mov dword [rsp + 0x24], edx
cmp ebp, dword [rsp + 0x24]
jge 0x1400123b6
mov r9d, ebp
mov r8, rbx
mov rdx, r13
mov rcx, r12
call fcn.140012470
mov rdx, r14
mov rcx, r12
call sub.msvcrt.dll_fopen
mov r9, rax
test rax, rax
je 0x140012466
lea rdi, [rsp + 0x3e]
lea rsi, [0x140091e1b]
mov ecx, 0x11d32
rep movsb byte [rdi], byte [rsi]
lea rsi, [rsp + 0x3e]
mov rcx, rsi
mov r8d, 1
mov edx, 1
inc rsi
mov qword [rsp + 0x28], r9
call sub.msvcrt.dll_fwrite
cmp rsi, r15
mov r9, qword [rsp + 0x28]
jne 0x140012439
mov rcx, r9
call sub.msvcrt.dll_fclose
inc ebp
jmp 0x1400123f7