joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b3ab0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x1400b3b8d
mov eax, dword [rbx]
test eax, eax
je 0x1400b3b8d
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400b3aef
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x1400b3b0d
lea rdx, [rbx + 0x189c]
mov r8d, 0x7fff
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400b3b0d
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x1400b3b26
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x1400b3b64
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400b3b64
movzx r8d, byte [rbx + 0x1850]
mov ecx, dword [rsp + 0x30]
lea rdx, [rbx + 0x11a9c]
call fcn.140079290
test eax, eax
jne 0x1400b3b64
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400b3b8d
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
call qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400b4440
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400d1bf0
sub rsp, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400b44fe
xor r9d, r9d
lea rcx, [0x1400e245c]
mov byte [rsp + 0x18a0], dl
mov qword [rsp + 0x1038], rcx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400b4d50]
mov dword [rsp + 0x20], r9d
mov byte [rsp + 0x1871], r9b
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
mov qword [rsp + 0x1880], r9
mov qword [rsp + 0x1888], r9
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x1400b44fe
mov rax, qword [0x140112488]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b44fe
mov edx, 1
call fcn.140001ac0
mov eax, 1
add rsp, 0x11cd8
ret
Function at 0x1400b4510
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push r12
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx r12d, dl
mov rbx, rcx
jne 0x1400b453a
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140112488]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.1400b4ab0
cmp byte [rbx], 0
mov rbp, rax
je 0x1400b4571
test rax, rax
jne 0x1400b457a
jmp 0x1400b4612
test rax, rax
jne 0x1400b460d
test rdi, rdi
je 0x1400b460d
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001ac0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400b45ef
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x1400b45ef
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001ac0
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400b45c0
mov rax, qword [0x140112488]
mov rsi, qword [rsp + 0x38]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b460d
mov edx, 1
call fcn.140001ac0
cmp byte [rbx], 0
je 0x1400b4626
xor r9d, r9d
mov r8, rbp
movzx edx, r12b
mov rcx, rbx
call fcn.1400b4650
jmp 0x1400b4632
movzx edx, r12b
mov rcx, rbx
call fcn.1400b4820
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x1400b4820
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x11ce0
call fcn.1400d1bf0
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx edi, dl
mov rbx, rcx
je 0x1400b49e5
xor edx, edx
call fcn.1400b4a00
test eax, eax
jne 0x1400b4860
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
mov qword [rsp + 0x11cf0], rbp
mov qword [rsp + 0x11cf8], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140112488]
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.1400b4ab0
mov ecx, dword [0x14011910c]
xor ebp, ebp
test rax, rax
lea rax, [0x1400e245c]
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x1884], ebp
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov dword [0x14011910c], ecx
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test dil, dil
je 0x1400b48ea
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x1400b48f2
mov byte [rsp + 0x1881], 1
mov rax, qword [0x140119118]
mov dword [rsp + 0x18a0], ecx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
mov rax, qword [rbx + 0x10]
lea rcx, [0x1400b4bd0]
mov qword [rsp + 0x18a8], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1888]
test rax, rax
je 0x1400b49a9
lea rdx, [rsp + 0x20]
lea rcx, [0x1400b3200]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1400b4970
mov rcx, qword [rsp + 0x1888]
call fcn.1400b4110
mov qword [rsp + 0x1888], rbx
jmp 0x1400b4978
mov rbx, qword [rsp + 0x1888]
mov rcx, rbx
call fcn.1400b16a0
mov rcx, qword [rsp + 0x1888]
call fcn.1400b4110
mov r11, qword [0x140112488]
mov ecx, dword [r11 + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b49d5
mov edx, 1
call fcn.140001ac0
jmp 0x1400b49d5
mov eax, dword [0x14011910c]
test eax, eax
je 0x1400b49d5
cmp eax, 1
mov dword [0x14011910c], ebp
setg al
test al, al
je 0x1400b49d5
mov rcx, rsi
call fcn.1400b4110
xor edx, edx
mov rcx, rbx
call fcn.1400b4820
mov rsi, qword [rsp + 0x11cf8]
mov rbp, qword [rsp + 0x11cf0]
mov eax, 1
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
Function at 0x1400c9f0c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400c9d7c

Function at 0x1400d3b78
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1401112b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400cd9a8
xor ebx, ebx
cmp qword [0x1401159c8], rbx
mov rdi, rax
jne 0x1400d3c8b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400d3d62
lea rdx, [0x1400e19e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d3d62
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1401159c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1401159d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1401159d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1401159e8], rax
test rax, rax
je 0x1400d3c82
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1401159e0], rax
jmp 0x1400d3c92
mov rax, qword [0x1401159e0]
jmp 0x1400d3c99
mov rax, qword [0x1401159e0]
mov r11, qword [0x1401159e8]
cmp rax, rdi
je 0x1400d3d00
cmp r11, rdi
je 0x1400d3d00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1401159e8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400d3d00
test rax, rax
je 0x1400d3d00
call rsi
test rax, rax
je 0x1400d3cfa
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400d3cfa
test byte [rsp + 0x40], 1
jne 0x1400d3d00
bts ebp, 0x15
jmp 0x1400d3d40
mov rcx, qword [0x1401159d0]
cmp rcx, rdi
je 0x1400d3d40
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d3d40
call rax
mov rbx, rax
test rax, rax
je 0x1400d3d40
mov rcx, qword [0x1401159d8]
cmp rcx, rdi
je 0x1400d3d40
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d3d40
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1401159c8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d3d62
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400d3d64
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d1160
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d5ecf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401112b0]
jne 0x1400d117a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400d1176
repz ret
ror rcx, 0x10
jmp 0x1400d5e28
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140115b10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140115c08]
mov qword [rsp + 0x58], rax
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 0x1400d5ead
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, [0x140115b10]
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 0x1400d5ecf
mov rax, qword [rsp + 0x88]
mov qword [0x140115c08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140115ba8], rax
mov rax, qword [0x140115c08]
mov qword [0x140115a80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140115b90], rax
mov dword [0x140115a70], 0xc0000409
mov dword [0x140115a74], 1
mov rax, qword [0x1401112b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401112b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140115b08], eax
mov ecx, 1
call fcn.1400d3898
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400e23b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140115b08], 0
jne 0x1400d5f56
mov ecx, 1
call fcn.1400d3898
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 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140137490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1401374a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140119680
jmp 0x14000123c
mov rax, qword [0x1401374a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1401374a0]
mov dword [rax], 1
mov rax, qword [0x1401374e0]
mov rdx, rax
mov rax, qword [0x1401374d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14013b024], 1
mov rax, qword [0x1401374a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1401374c0]
mov rdx, rax
mov rax, qword [0x1401374b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1401374a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140137490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1401373e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1401373e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140118908
mov rax, qword [0x140137520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140137480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140118100
mov eax, dword [0x14013b004]
lea rdx, [0x14013b008]
mov ecx, eax
call fcn.14000147c
call fcn.140117e97
mov rax, qword [0x140137410]
mov rax, qword [rax]
mov rdx, qword [0x14013b010]
mov qword [rax], rdx
mov rcx, qword [0x14013b010]
mov rdx, qword [0x14013b008]
mov eax, dword [0x14013b004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14013b01c], eax
mov eax, dword [0x14013b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14013b01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14013b024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14013b01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140137440]
mov dword [rax], 1
mov rax, qword [0x140137450]
mov dword [rax], 1
mov rax, qword [0x140137460]
mov dword [rax], 1
mov rax, qword [0x140137400]
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 0x140118110
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140119470
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140118de2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14013b168]
test eax, eax
je 0x140118e7a
lea rax, [0x14013b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14013b170]
mov qword [rbp - 8], rax
jmp 0x140118e5e
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 0x140118e52
cmp qword [rbp - 0x10], 0
je 0x140118e52
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 0x140118e18
lea rax, [0x14013b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140118e7b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140118f80
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 0x140118fa8
mov eax, 0
jmp 0x140118ff6
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 0x140118fd1
mov eax, 0
jmp 0x140118ff6
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 0x140118ff1
mov eax, 0
jmp 0x140118ff6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140118ffc
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 0x14011907a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140119071
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 0x140119071
mov rax, qword [rbp - 8]
jmp 0x14011908f
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 0x140119044
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Download url
Receive data

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x90], rax
pause
pause
pause
nop
nop
nop
mov qword [rsp + 0x38], 0
pause
pause
pause
mov rsi, r8
mov rdi, rdx
mov rdx, rcx
nop
nop
nop
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x38]
xor ecx, ecx
xor r9d, r9d
call sub.urlmon.dll_URLOpenBlockingStreamA
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001122
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov r8d, 1
call qword [rax + 0x60]
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001142
pause
pause
pause
nop
nop
nop
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
pause
pause
pause
nop
nop
nop
mov ecx, dword [rsi]
call fcn.140001a44
mov qword [rdi], rax
pause
pause
pause
nop
nop
nop
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rsi]
mov rdx, qword [rdi]
mov rax, qword [rcx]
lea r9, [rsp + 0x34]
call qword [rax + 0x18]
pause
pause
pause
nop
nop
nop
test eax, eax
js 0x140001132
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsi]
jne 0x140001132
pause
pause
pause
nop
nop
nop
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
pause
pause
pause
nop
nop
nop
mov sil, 1
jmp 0x140001180
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400034aa]
jmp 0x140001150
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x1400034e6]
jmp 0x140001150
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, [0x14000346e]
call fcn.1400011a0
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov rcx, rsi
mov edx, eax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::put_char____ptr64]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
xor esi, esi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140001a70
mov eax, esi
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x1400023f0
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18004e040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180001cff
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1805966b0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180001d3d
cmp rsi, r14
jb 0x180001d35
cmp rsi, r15
jae 0x180001d35
cmp qword [rsi + 8], 0
jne 0x180001f07
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001d20
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180001dd2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180001dc9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001dc9
cmp dword [rsp + 0x40], 0x10000
je 0x180001e4b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180001dc9
sub rbx, rbp
cmp rbx, r14
jae 0x180001d90
test rsi, rsi
jne 0x180001eb0
cmp rdi, r15
ja 0x180001eef
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180001eef
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001eef
cmp dword [rsp + 0x40], 0x10000
je 0x180001e81
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180001e02
jmp 0x180001eef
test rbx, rbx
je 0x180001dc9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001eb0
cmp rbx, r14
jae 0x180001d70
jmp 0x180001dd2
test rdi, rdi
je 0x180001eef
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001eb0
cmp rdi, r15
jbe 0x180001de0
jmp 0x180001eef
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180001ec0
mov rax, qword [0x1805966b0]
mov qword [rsi], rax
mov qword [0x1805966b0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180010e90
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret