joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400060e0
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x140
mov rax, qword [0x140009110]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14, rcx
xor esi, esi
xor edi, edi
mov rbx, rdx
mov rbp, rcx
sub r14, rdx
lea r8, [0x1400012e0]
lea rcx, [rsp + 0x20]
mov r9d, esi
mov edx, 0x104
call fcn.1400014e4
inc esi
mov edx, 0x104
mov rcx, rbx
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140006158
mov al, byte [r14 + rcx]
test al, al
je 0x140006158
mov byte [rcx], al
inc rcx
dec rdx
jne 0x14000613a
test rdx, rdx
jne 0x140006160
dec rcx
mov byte [rcx], dil
lea r8, [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call fcn.1400078e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, reloc.msvcrt.dll___C_specific_handler
je 0x1400061f1
cmp esi, 0x190
jl 0x140006117
lea rdx, [0x1400012ec]
mov r9, rbx
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1400061c7
mov rcx, rbx
mov edi, 1
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, edi
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400080a0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x140006194
mov dword [0x140009de0], 1
mov edi, 1
jmp 0x1400061c7
Function at 0x140006218
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x140009110]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, r8d
mov r9, rcx
test edx, edx
je 0x14000630b
lea rdx, [rsp + 0x50]
call fcn.1400060e0
test eax, eax
je 0x140006397
lea rbx, [0x14000a810]
lea r8, [rsp + 0x50]
mov edi, 0x104
mov rcx, rbx
sub r8, rbx
mov edx, edi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140006293
mov al, byte [r8 + rcx]
test al, al
je 0x140006293
mov byte [rcx], al
inc rcx
dec rdx
jne 0x140006275
test rdx, rdx
jne 0x14000629b
dec rcx
mov byte [rcx], 0
test byte [0x14000b064], 0x20
je 0x1400062f8
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx r11d, word [rsp + 0x20]
test r11d, r11d
je 0x1400062e7
dec r11d
je 0x1400062de
dec r11d
je 0x1400062d5
dec r11d
jne 0x1400062f8
lea r8, [0x140001308]
jmp 0x1400062ee
lea r8, [0x140001300]
jmp 0x1400062ee
lea r8, [0x1400012f8]
jmp 0x1400062ee
lea r8, [0x1400012f0]
mov edx, edi
mov rcx, rbx
call fcn.1400078e4
lea r8, [0x140001070]
mov edx, edi
mov rcx, rbx
call fcn.1400078e4
jmp 0x140006346
lea rbx, [0x14000a810]
mov edi, 0x104
mov rcx, rbx
sub r9, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14000633b
mov al, byte [r9 + rcx]
test al, al
je 0x14000633b
mov byte [rcx], al
inc rcx
dec rdi
jne 0x14000631d
test rdi, rdi
jne 0x140006343
dec rcx
mov byte [rcx], 0
mov rcx, rbx
call fcn.1400068b8
test eax, eax
jne 0x14000636b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x14000639b
mov dword [0x140009de0], 1
test esi, esi
je 0x1400063a8
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140006a10
test eax, eax
jne 0x1400063a8
cmp dword [0x140009de0], eax
je 0x140006397
and dword [0x140009de0], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
jmp 0x1400063b4
call fcn.140007450
mov dword [0x14000b07c], eax
jmp 0x140006397
and dword [0x14000b07c], 0
mov eax, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400080a0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400068b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rdi + rcx], 0
jne 0x1400068d3
add edi, 0x14
mov ecx, 0x40
mov edx, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x140006936
and dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4b5
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
call fcn.140007450
mov dword [0x14000b07c], eax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test edi, edi
je 0x140006983
cmp rbx, 0x7fffffff
ja 0x14000697c
mov edx, 0x7ffffffe
mov r8, rbp
mov rcx, rax
sub rdx, rbx
sub r8, rax
lea rax, [rdx + rbx]
test rax, rax
je 0x14000696f
mov al, byte [r8 + rcx]
test al, al
je 0x14000696f
mov byte [rcx], al
inc rcx
dec rbx
jne 0x140006954
test rbx, rbx
jne 0x140006977
dec rcx
mov byte [rcx], 0
jmp 0x140006983
test edi, edi
je 0x140006983
mov byte [rax], 0
lea r8, [0x140001320]
mov edx, edi
mov rcx, rsi
call fcn.1400078e4
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rsi
mov dword [rsp + 0x28], reloc.msvcrt.dll___C_specific_handler
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp rbx, 0xffffffffffffffff
je 0x140006914
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, reloc.msvcrt.dll___C_specific_handler
je 0x140006914
test al, 0x10
je 0x140006914
and dword [0x14000b07c], 0
mov eax, 1
jmp 0x140006921
Function at 0x140007478
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140009110]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor esi, esi
mov rbp, rcx
mov edi, 1
xor r9d, r9d
jmp 0x1400074f8
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140007532
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x1400074ce
mov edx, dword [rbx + 4]
mov ecx, dword [rbx]
lea r9, [rax + 1]
add r9, r8
call rbp
mov rcx, rbx
test eax, eax
je 0x140007528
call qword [sym.imp.KERNEL32.dll_FreeResource]
add esi, edi
mov r9d, esi
lea r8, [0x140001340]
lea rcx, [rsp + 0x20]
mov edx, 0x14
call fcn.1400014e4
lea rdx, [rsp + 0x20]
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x1400074aa
jmp 0x14000753e
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x14000753e
mov dword [0x14000b07c], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400080a0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
sub rsp, 0x148
mov rax, qword [0x140009110]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea r9, [0x14000a810]
lea rax, [rsp + 0x20]
mov edx, 0x104
sub r9, rax
mov r8d, edx
lea rcx, [rsp + 0x20]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14000772f
mov al, byte [r9 + rcx]
test al, al
je 0x14000772f
mov byte [rcx], al
inc rcx
dec r8
jne 0x140007711
test r8, r8
jne 0x140007737
dec rcx
mov byte [rcx], 0
lea r8, [0x140001118]
lea rcx, [rsp + 0x20]
call fcn.1400078e4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, reloc.msvcrt.dll___C_specific_handler
je 0x140007772
test al, 0x10
jne 0x140007772
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x14000777f
lea rcx, [0x140001118]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400080a0
add rsp, 0x148
ret
Function at 0x1400077a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rbx, qword [0x14000a748]
mov r14, rdx
mov rbp, r8
mov rdx, rcx
mov r8d, 5
mov rcx, rbx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140007829
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140007829
mov r9, rbp
mov r8, r14
mov rdx, rax
mov rcx, rbx
test rsi, rsi
jne 0x14000780c
and qword [rsp + 0x20], rsi
jmp 0x140007811
mov qword [rsp + 0x20], rsi
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp rbx, 0xffffffffffffffff
jne 0x14000784d
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x4fb
xor ecx, ecx
mov dword [rsp + 0x20], 0x10
call fcn.140004e14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r14
ret
Function at 0x140007b78
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x140009110]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000929c]
mov dword [rsp + 0x30], 0xc
cmp esi, 0xfffffffe
jne 0x140007ce9
lea rcx, [rsp + 0x50]
xor edi, edi
mov dword [rsp + 0x50], 0x94
mov dword [0x14000929c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x140007ce3
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140007ce3
cmp dword [rsp + 0x54], 4
jne 0x140007ce3
cmp dword [rsp + 0x58], 0xa
jae 0x140007ce3
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x140007ce3
lea rax, [rsp + 0x38]
lea rdx, [0x140001350]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140007ce3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
lea rdx, [0x140001070]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140007c84
mov eax, dword [0x14000929c]
jmp 0x140007ceb
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
cmp al, 0x30
jl 0x140007c9f
cmp al, 0x39
jg 0x140007c9f
add edi, 0xfffffffd
movsx eax, al
shl edi, 4
add edi, eax
jmp 0x140007cb8
cmp al, 0x61
jl 0x140007ca5
add al, 0xe0
movsx edx, al
sub edx, 0x37
lea eax, [rdx - 0xa]
cmp eax, 5
ja 0x140007cc3
shl edi, 4
add edi, edx
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
jmp 0x140007c88
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x140007ce3
and edi, 0x3ff
cmp edi, esi
je 0x140007cdb
cmp edi, 0xd
jne 0x140007ce3
mov dword [0x14000929c], esi
jmp 0x140007ce9
mov esi, dword [0x14000929c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400080a0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140007e40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x140009d78], rbx
je 0x140007e99
cmp rax, rbx
jne 0x140007e8c
mov edi, 1
jmp 0x140007e99
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007e73
mov eax, dword [0x140009d80]
cmp eax, 1
jne 0x140007eae
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140007f13
mov eax, dword [0x140009d80]
test eax, eax
jne 0x140007f09
mov dword [0x140009d80], 1
lea r14, [0x140001030]
lea rbx, [0x140001018]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
cmp rbx, r14
jae 0x140007efb
test eax, eax
jne 0x140007eff
mov rcx, qword [rbx]
test rcx, rcx
je 0x140007ef0
call rcx
mov dword [rsp + 0x30], eax
add rbx, 8
mov qword [rsp + 0x38], rbx
jmp 0x140007ed9
test eax, eax
je 0x140007f13
mov eax, 0xff
jmp 0x140008060
mov dword [0x140009424], 1
mov eax, dword [0x140009d80]
cmp eax, 1
jne 0x140007f3b
lea rdx, [0x140001010]
lea rcx, [section..text]
call sub.msvcrt.dll__initterm
mov dword [0x140009d80], 2
test edi, edi
jne 0x140007f48
xor eax, eax
xchg qword [0x140009d78], rax
cmp qword [0x140009d88], 0
je 0x140007f74
lea rcx, [0x140009d88]
call fcn.140008410
test eax, eax
je 0x140007f74
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140009d88]
call rax
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
cmp byte [rbx], 0x20
ja 0x140007fff
cmp byte [rbx], 0
je 0x140007f95
test edi, edi
jne 0x140007fff
mov al, byte [rbx]
test al, al
je 0x140007fa9
cmp al, 0x20
ja 0x140007fa9
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140007f95
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002e44
mov dword [0x140009420], eax
cmp dword [0x140009440], 0
jne 0x140007fe8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140009424], 0
jne 0x140007ffd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140009420]
jmp 0x140008060
cmp byte [rbx], 0x22
jne 0x140008011
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rbx]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140008026
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140007f87
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
sub rsp, 0x28
call fcn.140008464
add rsp, 0x28
jmp 0x140007e40

Function at 0x140008208
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400082b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
test rcx, rcx
je 0x140008305
cmp rcx, 0xffffffffffffffff
je 0x140008305
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400082fd
cmp dword [rcx + 0x3c], edx
jl 0x1400082fd
cmp dword [rcx + 0x3c], reloc.msvcrt.dll___C_specific_handler
jae 0x1400082fd
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], reloc.msvcrt.dll___C_specific_handler
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008305
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140008464
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140009110]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x140008523
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11, qword [rbp + 0x18]
mov qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r11d, eax
xor qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r11d, eax
xor qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
shl r11, 0x18
xor qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x20]
mov r11d, eax
lea rax, [rbp + 0x10]
xor r11, qword [rbp + 0x10]
xor r11, rax
mov qword [rbp + 0x10], r11
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x140009110], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x140009118], rax
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edi, 2
mov ecx, edi
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov edx, dword [0x140002288]
lea rcx, [rsp + 0x1dc]
movsd xmm0, qword [str.192.168.0.4]
mov r8d, 0xf3
mov dword [rsp + 0x1d8], edx
mov rbx, rax
xor edx, edx
movsd qword [rsp + 0x1d0], xmm0
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x1b58
mov word [rsp + 0x20], di
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x24]
mov ecx, edi
lea rdx, [rsp + 0x1d0]
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
lea r8d, [rdi + 0xe]
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
xor r9d, r9d
lea rdx, str.NULL
mov r8d, 0xff
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140001110
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2e0
pop rdi
ret

Function at 0x1400019d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a22
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a24
xor al, al
add rsp, 0x28
ret
Function at 0x140e630b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e63237
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 0x140e630e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e630c7
add dl, dl
jne 0x140e630ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e6314e
xor eax, eax
add dl, dl
jne 0x140e630fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e63205
add dl, dl
jne 0x140e6310e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e6311b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e63128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e63135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e63142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e630d6
mov eax, 1
add dl, dl
jne 0x140e6315e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e6316b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e63153
sub eax, ebx
mov ebx, 1
jne 0x140e631a4
mov ecx, 1
add dl, dl
jne 0x140e63186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e63193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e6317b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e630d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e631c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e631cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e631b5
cmp eax, 0x7d00
jae 0x140e631f3
cmp eax, 0x500
jb 0x140e631ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e630d6
cmp eax, 0x7f
ja 0x140e631f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e630d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e6322a
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 0x140e630d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140050670
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rdi, rdx
movsxd rbx, ecx
lea rdx, [rsp + 0x120]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x14005074e
lea rcx, [rsp + 0x20]
mov edx, 0x100
call qword [sym.imp.WSOCK32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
test rax, rax
je 0x14005074e
mov r9, qword [rax + 0x18]
xor ecx, ecx
cmp qword [r9], rcx
je 0x1400506dc
mov rax, r9
lea rax, [rax + 8]
inc ecx
cmp qword [rax], 0
jne 0x1400506d0
cmp ebx, ecx
jle 0x1400506f1
lea rdx, [0x1400c7000]
mov rcx, rdi
call fcn.140025c80
jmp 0x140050746
mov rdx, qword [r9 + rbx*8 - 8]
lea rcx, [rsp + 0x2e0]
mov r8d, 4
call fcn.140025590
mov ecx, dword [rsp + 0x2e0]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140027930
lea rcx, [rsp + 0x20]
or edx, 0xffffffff
call fcn.140051638
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call fcn.140025c80
mov rcx, rbx
call fcn.140025b50
call qword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x14005075d
lea rdx, [0x1400b0ad8]
mov rcx, rdi
call fcn.140025c80
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret

Function at 0x1400507c4
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
lea rax, [rsp + 0x30]
mov rbx, rdx
mov edx, ecx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140002ce0
add rsp, 0x240
pop rbx
ret

Function at 0x1400509f0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
xor ebx, ebx
lea rax, [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rbp + 0x18], ebx
mov word [rbp + 0x1c], 0x500
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x140050a6a
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp + 0x10]
mov rbx, qword [rsp + 0x88]
cmp eax, 1
sete al
add rsp, 0x60
pop rbp
ret

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140050b2f
test al, 0x10
je 0x140050b2f
mov al, 1
jmp 0x140050b31
xor al, al
add rsp, 0x28
ret