joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140063a34
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140180600]
test rax, rax
je 0x140063a4f
mov rbx, qword [rax + 0x90]
jmp 0x140063a51
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140063a7c
and dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret
Function at 0x140083174
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea r12, [r8 - 1]
mov qword [rsp + 0x50], rdx
sar r12, 1
mov r14, r9
mov r13, r8
mov rsi, rdx
mov rbp, rcx
mov r15, rdx
cmp rdx, r12
jge 0x140083213
lea rbx, [r15 + r15]
lea rax, [rbx + 2]
imul rdx, rax, 0x38
lea rcx, [rsp + 0x70]
add rdx, rbp
lea r8, [rdx - 0x38]
call fcn.1400773f0
movzx r8d, al
lea r15, [rbx + 1]
xor r8, 1
add r15, r8
imul rdi, r15, 0x38
imul rbx, rsi, 0x38
add rdi, rbp
mov eax, dword [rdi]
lea rdx, [rdi + 8]
add rbx, rbp
lea rcx, [rbx + 8]
mov dword [rbx], eax
call fcn.140010584
mov rax, qword [rdi + 0x28]
mov rsi, r15
mov qword [rbx + 0x28], rax
mov rax, qword [rdi + 0x30]
mov qword [rbx + 0x30], rax
cmp r15, r12
jl 0x1400831b0
cmp r15, r12
jne 0x140083255
test r13b, 1
jne 0x140083255
imul rdi, r13, 0x38
imul rbx, rsi, 0x38
mov eax, dword [rdi + rbp - 0x38]
lea rdx, [rbp - 0x30]
add rdx, rdi
add rbx, rbp
lea rcx, [rbx + 8]
mov dword [rbx], eax
call fcn.140010584
mov rax, qword [rdi + rbp - 0x10]
lea rsi, [r13 - 1]
mov qword [rbx + 0x28], rax
mov rax, qword [rdi + rbp - 8]
mov qword [rbx + 0x30], rax
mov r12, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
cmp r12, rsi
jge 0x1400832bc
lea rdi, [rsi - 1]
mov r8, r14
sar rdi, 1
lea rcx, [rsp + 0x70]
imul r15, rdi, 0x38
add r15, rbp
mov rdx, r15
call fcn.1400773f0
test al, al
je 0x1400832bc
mov eax, dword [r15]
lea rdx, [r15 + 8]
imul rbx, rsi, 0x38
add rbx, rbp
lea rcx, [rbx + 8]
mov dword [rbx], eax
call fcn.140010584
mov rax, qword [r15 + 0x28]
mov rsi, rdi
mov qword [rbx + 0x28], rax
mov rax, qword [r15 + 0x30]
mov qword [rbx + 0x30], rax
cmp r12, rdi
jl 0x140083269
mov eax, dword [r14]
lea rdx, [r14 + 8]
imul rbx, rsi, 0x38
add rbx, rbp
lea rcx, [rbx + 8]
mov dword [rbx], eax
call fcn.140010584
mov rax, qword [r14 + 0x28]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov qword [rbx + 0x28], rax
mov rax, qword [r14 + 0x30]
mov qword [rbx + 0x30], rax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140084120
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008416a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008416a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008416a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008416a
cmp dword [rcx + 0x84], 0xe
jbe 0x14008416a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008416c
xor al, al
add rsp, 0x28
ret
Function at 0x140084360
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14008439a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14008439f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400843e8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14008ae10]
cmp byte [rcx + rax], 0
je 0x1400843e8
dec r8
sub rdx, 1
jne 0x1400843ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140084bac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140084478
mov ebx, eax
test eax, eax
jne 0x140084bdc
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140084c3f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140084c36
test al, 0x10
je 0x140084c36
bt eax, 0xa
jae 0x140084c2f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140084c50
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140084c2b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140084c2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140084c36
and dword [rsp + 0x3c], 0
jmp 0x140084c3b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140027550]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140027560]
mov dword [rax], 1
mov rax, qword [0x140027570]
mov dword [rax], 1
mov rax, qword [0x140027480]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140027540]
mov dword [0x14002a00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140027620]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140027600]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140027450]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400016d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, rdx
mov rsi, rdx
call sym.strlen
mov rcx, rsi
mov r9, rbx
mov edx, 1
mov r8, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140021d40
Function at 0x14000f610
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rax, [0x1400249bc]
lea rsi, [0x1400241a8]
mov r15, rcx
mov rbx, rdx
xor edx, edx
mov qword [rsp + 0x38], rax
lea rcx, [0x140023260]
mov word [rsp + 0x50], dx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], 0
call sym.__emutls_get_address
mov rdx, qword [rax]
mov r13, rax
test rdx, rdx
je 0x14000f7a0
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x30]
mov qword [r13], rdx
add eax, 1
mov word [rsp + 0x52], ax
cmp ax, 0x7d0
je 0x14000f728
lea r14, [0x14002a060]
shl rbx, 4
mov qword [rsp + 0x40], 0xb4d
lea r12, [rsp + 0x20]
mov rcx, r14
add rbx, r15
lea rbp, [0x1400231e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [dbg.__acrt_iob_func]
jmp 0x14000f6d1
add r15, 0x10
cmp r15, rbx
je 0x14000f738
mov ecx, 1
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], 0xb65
call rdi
movdqu xmm0, xmmword [r15]
mov rdx, r12
mov rcx, rax
movups xmmword [rsp + 0x20], xmm0
call method.echoBinSafe.writeWindows_ptr_ansi_c::CFile___string__bool___clone_.constprop.0_
mov rcx, rbp
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x14000f6c8
mov rax, qword [r13]
mov rax, qword [rax]
mov qword [r13], rax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sym.system::callDepthLimitReached
jmp 0x14000f68d
mov qword [rsp + 0x40], 0xb69
mov ecx, 1
mov qword [rsp + 0x48], rsi
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x1400248f0]
mov r9, rax
call sym.fwrite
mov ecx, 1
mov qword [rsp + 0x40], 0xb6a
call rdi
mov rcx, rax
call fcn.140021d40
mov rcx, r14
mov qword [rsp + 0x40], 0xb6e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000f708
mov qword [rsp + 0x30], 0
xor eax, eax
mov word [rsp + 0x52], ax
lea rax, [rsp + 0x30]
mov qword [r13], rax
jmp 0x14000f68d
Function at 0x140014b80
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
xor edx, edx
lea rax, str.echoBinSafe
lea rdi, str._home_kali_.choosenim_toolchains_nim_2.2.0_lib_system.nim
mov rsi, rcx
mov rcx, qword [0x1400274e0]
mov word [rsp + 0x50], dx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0
call sym.__emutls_get_address
mov rdx, qword [rax]
mov rbx, rax
test rdx, rdx
je 0x140014cd0
movzx eax, word [rdx + 0x22]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x30]
mov qword [rbx], rdx
add eax, 1
mov word [rsp + 0x52], ax
cmp ax, 0x7d0
je 0x140014cc0
mov qword [rsp + 0x40], 0xb4d
mov r12, qword [0x140027660]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 1
mov qword [rsp + 0x48], rdi
mov rbp, qword [dbg.__acrt_iob_func]
mov qword [rsp + 0x40], 0xb65
call rbp
movdqu xmm0, xmmword [rsi]
lea rdx, [rsp + 0x20]
mov rcx, rax
movups xmmword [rsp + 0x20], xmm0
call method.echoBinSafe.writeWindows_ptr_ansi_c::CFile___string__bool___clone_.constprop.0_
mov rcx, qword [0x1400274f0]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x140014ca8
mov ecx, 1
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], 0xb69
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x140025b95]
mov r9, rax
call sym.fwrite
mov ecx, 1
mov qword [rsp + 0x40], 0xb6a
call rbp
mov rcx, rax
call fcn.140021d40
mov rcx, r12
mov qword [rsp + 0x40], 0xb6e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.system::callDepthLimitReached
jmp 0x140014bf3
mov qword [rsp + 0x30], 0
xor eax, eax
mov word [rsp + 0x52], ax
lea rax, [rsp + 0x30]
mov qword [rbx], rax
jmp 0x140014bf3
Function at 0x14001b940
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14001b9b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002a3d4]
mov rbx, rcx
test esi, esi
jle 0x14001bae0
mov rax, qword [0x14002a3d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001b9fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14001ba85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14001b9e0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14001bb02
mov rax, qword [0x14002a3d8]
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 [0x14002a3d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001bae7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14001ba7e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14001ba90
add dword [0x14002a3d4], 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 [0x14002a3d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001ba7e
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 0x14001ba08
mov rax, qword [0x14002a3d8]
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 0x14001c090
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002a440]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002a420]
test rbx, rbx
je 0x14001c0ec
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 rsi, rsi
je 0x14001c0e3
test eax, eax
jne 0x14001c0e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001c0c8
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 0x14001c300
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14001c318
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14001c320
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14001c330
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 0x14001c37d
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 0x14001c374
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14001c37f
add rax, 0x28
cmp rax, r9
jne 0x14001c360
xor eax, eax
ret

Function at 0x14001c380
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14001c410
mov rdx, qword [0x140027480]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14001c3fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14001c3fe
cmp word [rax + 0x18], 0x20b
jne 0x14001c3fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14001c410
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14001c3e9
add rbx, 0x28
cmp rbx, rdi
je 0x14001c410
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14001c3e0
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 0x14001c420
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140027480]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001c440
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001c448
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001c440
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001c49d
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 0x14001c494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14001c440
add rax, 0x28
cmp rax, r9
jne 0x14001c480
xor eax, eax
ret

Function at 0x14001c4a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140027480]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001c4bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14001c4c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001c4bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14001c4e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140027480]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14001c500
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14001c508
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14001c500
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14001c550
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14001c547
test rcx, rcx
je 0x14001c500
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14001c538
xor eax, eax
ret

Function at 0x14001c560
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140027480]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14001c5c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14001c5c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001c5c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14001c5c0
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 0x14001c614
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001c620
add rdx, 0x28
cmp rdx, r9
jne 0x14001c600
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140027480]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14001c652
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14001c660
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14001c652
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14001c652
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14001c652
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 0x14001c6b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14001c6c8
add rdx, 0x28
cmp r10, rdx
jne 0x14001c6a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14001c6d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14001c6e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14001c6be
test ecx, ecx
jg 0x14001c6d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140021f70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140027440]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140021fa8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140022010
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140022020
mov esi, dword [0x14002aec8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140022078
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x1400220c0
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140021f97
mov rcx, rbx
call fcn.140021ed0
mov qword [rsi + r12*8 + 8], rax
jmp 0x140021f97
call fcn.140021ed0
mov qword [rbx + 0x10], rax
jmp 0x140021f97
mov r10d, dword [rsi]
test r10d, r10d
je 0x140022151
mov r9d, dword [0x1400233f0]
test r9d, r9d
je 0x140022179
lea rcx, [0x14002aee0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14002215e
mov eax, dword [rsi]
test eax, eax
je 0x140021fb1
lea rcx, [0x14002aee0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140021fb1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x1400221b4
mov qword [rax], rdi
mov ecx, dword [0x14002aec8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140021feb
call r13
jmp 0x140021feb
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x1400221b4
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14002209b
lea rcx, [0x14002aee0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400221ac
lea rdx, [0x140021e80]
mov ecx, eax
mov dword [0x14002aec8], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x1400221b4
mov dword [0x1400233f0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14002203c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140021fb1
mov rax, qword [0x14002aec0]
lea r12, [rax + 1]
mov qword [0x14002aec0], r12
mov qword [rbx + 0x10], r12
jmp 0x140022056
lock add dword [0x1400233f4], 1
je 0x140022109
mov r8d, dword [0x1400233f0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400233f0]
test r8d, r8d
jne 0x140022147
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x1400221a0
jmp 0x140022147
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140022139
call sym.abort
nop
nop word [rax + rax]
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0048ccb0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0048ccc0]
mov dword [rax], 1
mov rax, qword [0x0048ccd0]
mov dword [rax], 1
mov rax, qword [0x0048cca0]
mov dword [rax], 1
mov rax, qword [0x0048cb20]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x0048cc90]
mov dword [0x004a7008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x0048cbd0]
mov qword [rdx], rax
mov rdx, qword [0x0048cbc0]
mov qword [rdx], rax
mov rax, qword [0x0048cc50]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x0048c220]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401530
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call dbg.__main
lea rcx, str.taskkill__f__t__im_svchost.exe
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret