joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140001080
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
jmp 0x14000112a
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
cmp qword [rsp + 0x50], rax
jae 0x14000119a
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
lea rdx, [0x140018568]
mov rcx, qword [rsp + 0x60]
call fcn.140002d90
test eax, eax
jne 0x140001198
mov rax, qword [rsp + 0x58]
jmp 0x14000119a
jmp 0x14000111d
add rsp, 0x78
ret
Function at 0x140001a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0xb8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
lea rdx, [0x140018630]
lea rcx, [rsp + 0x20]
call fcn.140001d00
nop
lea rdx, str.C:UsersPublicDesktopQQ.lnk
lea rcx, [rsp + 0x48]
call fcn.140001d00
nop
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rsp + 0x70]
call fcn.140001d00
nop
mov dword [rsp + 0xa0], 0
jmp 0x140001a86
mov eax, dword [rsp + 0xa0]
inc eax
mov dword [rsp + 0xa0], eax
movsxd rax, dword [rsp + 0xa0]
cmp rax, 3
jae 0x140001aeb
movsxd rax, dword [rsp + 0xa0]
imul rax, rax, 0x28
lea rax, [rsp + rax + 0x20]
mov rcx, rax
call fcn.140001db0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001ae9
mov byte [rsp + 0xa4], 1
lea r9, [fcn.140001d70]
mov r8d, 3
mov edx, 0x28
lea rcx, [rsp + 0x20]
call fcn.140003a00
movzx eax, byte [rsp + 0xa4]
jmp 0x140001b17
jmp 0x140001a76
mov byte [rsp + 0xa5], 0
lea r9, [fcn.140001d70]
mov r8d, 3
mov edx, 0x28
lea rcx, [rsp + 0x20]
call fcn.140003a00
movzx eax, byte [rsp + 0xa5]
add rsp, 0xb8
ret

Function at 0x1400072f4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140007164

Function at 0x1400096a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001f240]
jne 0x14000653a
rol rcx, 0x10
test cx, 0xffff
jne 0x140006536
repz ret
ror rcx, 0x10
jmp 0x140009600
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140020c40]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140020d38]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140009685
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140020c40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400096a7
mov rax, qword [rsp + 0x88]
mov qword [0x140020d38], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140020cd8], rax
mov rax, qword [0x140020d38]
mov qword [0x140020bb0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140020cc0], rax
mov dword [0x140020ba0], 0xc0000409
mov dword [0x140020ba4], 1
mov rax, qword [0x14001f240]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001f248]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140020c38], eax
mov ecx, 1
call fcn.140013b64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140019ad0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140020c38], 0
jne 0x14000972e
mov ecx, 1
call fcn.140013b64
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140011268
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14001f240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140004390
xor ebx, ebx
cmp qword [0x140021210], rbx
mov rdi, rax
jne 0x14001137b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140011452
lea rdx, [0x14001a8f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011452
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140021210], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140021218], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140021220], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140021230], rax
test rax, rax
je 0x140011372
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140021228], rax
jmp 0x140011382
mov rax, qword [0x140021228]
jmp 0x140011389
mov rax, qword [0x140021228]
mov r11, qword [0x140021230]
cmp rax, rdi
je 0x1400113f0
cmp r11, rdi
je 0x1400113f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140021230]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400113f0
test rax, rax
je 0x1400113f0
call rsi
test rax, rax
je 0x1400113ea
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400113ea
test byte [rsp + 0x40], 1
jne 0x1400113f0
bts ebp, 0x15
jmp 0x140011430
mov rcx, qword [0x140021218]
cmp rcx, rdi
je 0x140011430
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011430
call rax
mov rbx, rax
test rax, rax
je 0x140011430
mov rcx, qword [0x140021220]
cmp rcx, rdi
je 0x140011430
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011430
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140021210]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011452
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140011454
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140006520
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1406c1c78
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c1dff
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 0x1406c1ca9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c1c8f
add dl, dl
jne 0x1406c1cb6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c1d16
xor eax, eax
add dl, dl
jne 0x1406c1cc5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c1dcd
add dl, dl
jne 0x1406c1cd6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c1ce3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c1cf0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c1cfd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c1d0a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c1c9e
mov eax, 1
add dl, dl
jne 0x1406c1d26
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c1d33
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c1d1b
sub eax, ebx
mov ebx, 1
jne 0x1406c1d6c
mov ecx, 1
add dl, dl
jne 0x1406c1d4e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c1d5b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c1d43
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c1c9e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c1d88
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c1d95
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c1d7d
cmp eax, 0x7d00
jae 0x1406c1dbb
cmp eax, 0x500
jb 0x1406c1db6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c1c9e
cmp eax, 0x7f
ja 0x1406c1dbe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c1c9e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c1df2
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 0x1406c1c9e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
invalid
add bh, bh
invalid
invalid
invalid
invalid
add bh, bh
invalid
add bh, bh
invalid
Function at 0x2fc4da970
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 0x2fc4db372
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4db40a
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4db3ee
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 0x2fc4db3e2
cmp qword [rbp - 0x10], 0
je 0x2fc4db3e2
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 0x2fc4db3a8
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db40b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db510
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 0x2fc4db538
mov eax, 0
jmp 0x2fc4db586
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 0x2fc4db561
mov eax, 0
jmp 0x2fc4db586
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 0x2fc4db581
mov eax, 0
jmp 0x2fc4db586
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db58c
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 0x2fc4db60a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db601
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 0x2fc4db601
mov rax, qword [rbp - 8]
jmp 0x2fc4db61f
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 0x2fc4db5d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1094e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1094e1df
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 0x1094e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1094e06f
add dl, dl
jne 0x1094e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1094e0f6
xor eax, eax
add dl, dl
jne 0x1094e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1094e1ad
add dl, dl
jne 0x1094e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1094e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1094e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1094e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1094e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1094e07e
mov eax, 1
add dl, dl
jne 0x1094e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1094e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1094e0fb
sub eax, ebx
mov ebx, 1
jne 0x1094e14c
mov ecx, 1
add dl, dl
jne 0x1094e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1094e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1094e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1094e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1094e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1094e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1094e15d
cmp eax, 0x7d00
jae 0x1094e19b
cmp eax, 0x500
jb 0x1094e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1094e07e
cmp eax, 0x7f
ja 0x1094e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1094e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1094e1d2
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 0x1094e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000159e
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov ebx, dword [0x140012f58]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x1400015d3
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.1400091b0]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
Function at 0x1400030a5
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rax, [0x1400023ab]
xor edx, edx
mov qword [0x140012f28], 0x40
mov qword [0x140012f20], rax
xor eax, eax
lea rbx, [0x1400024bd]
mov qword [0x140012f40], rax
lea rax, section..data
mov qword [0x140012f50], rdx
mov dword [0x140012f30], 0x30008
mov qword [0x140012f38], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea rdx, [0x14000f040]
mov ecx, eax
mov dword [0x140012f58], eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.14000159e
lea rcx, [0x14000259e]
call fcn.140003220
mov rdx, rbx
mov ecx, 2
call sub.msvcrt.dll_signal
mov rdx, rbx
mov ecx, 0xb
call sub.msvcrt.dll_signal
mov rdx, rbx
mov ecx, 0x16
call sub.msvcrt.dll_signal
mov rdx, rbx
mov ecx, 8
call sub.msvcrt.dll_signal
mov rdx, rbx
mov ecx, 4
call sub.msvcrt.dll_signal
lea rcx, [0x140012ee0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x14000213e]
call fcn.140001440
mov rdi, qword [fcn.1400091b0]
xor ecx, ecx
call rdi
mov rsi, qword [sym.imp.msvcrt.dll__fileno]
mov rcx, rax
call rsi
mov rbx, qword [sym.imp.msvcrt.dll__setmode]
mov edx, 0x8000
mov ecx, eax
call rbx
mov ecx, 1
call rdi
mov rcx, rax
call rsi
mov edx, 0x8000
mov ecx, eax
call rbx
mov ecx, 2
call rdi
mov rcx, rax
call rsi
mov edx, 0x8000
mov ecx, eax
call rbx
call fcn.14000159e
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
xor esi, esi
call fcn.140003310
call fcn.1400090a0
mov rbx, qword [rax]
test rbx, rbx
jne 0x140009aa3
jmp 0x140009b17
test cl, cl
je 0x140009ad0
and esi, 1
je 0x140009ab8
mov esi, 1
call sub.msvcrt.dll__ismbblead
test eax, eax
je 0x140009a9f
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140009a80
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140009a8e
test cl, cl
je 0x140009ad0
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140009ad0
cmp al, 0x20
jle 0x140009ac0
lea rdx, [rbp - 0x70]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rbp - 0x34], 1
je 0x140009afb
movzx r9d, word [rbp - 0x30]
mov rcx, qword [0x14000bdb0]
mov r8, rbx
xor edx, edx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
jmp 0x1400030a5
lea rbx, [0x14000b660]
jmp 0x140009ad0

Function at 0x140003520
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call fcn.1400091b0
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 [rbp - 8]
mov ecx, 2
call fcn.1400091b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140003590
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x140012fd4]
mov rbx, rcx
test esi, esi
jle 0x1400036c0
mov rax, qword [0x140012fd8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400035db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003663
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400035c0
mov rcx, rbx
call fcn.140004040
mov rdi, rax
test rax, rax
je 0x1400036e2
mov rax, qword [0x140012fd8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140004180
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140012fd8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400036c7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000365c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003670
add dword [0x140012fd4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140012fd8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000365c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003520
nop word [rax + rax]
xor esi, esi
jmp 0x1400035e8
mov rax, qword [0x140012fd8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003520
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003520
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003c70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x140013040]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140013020]
test rbx, rbx
je 0x140003cd5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x140003ccc
test eax, eax
jne 0x140003ccc
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003cb0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]