joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020b50
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140038800
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140031ee0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140020ba9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x1400374e0
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.140048c60
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.140048c60
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 0x1400381b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14005e428]
test eax, eax
je 0x14003824a
lea rax, [0x14005e400]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14005e430]
mov qword [rbp - 8], rax
jmp 0x14003822e
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 0x140038222
cmp qword [rbp - 0x10], 0
je 0x140038222
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 0x1400381e8
lea rax, [0x14005e400]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14003824b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140038350
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 0x140038378
mov eax, 0
jmp 0x1400383c6
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 0x1400383a1
mov eax, 0
jmp 0x1400383c6
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 0x1400383c1
mov eax, 0
jmp 0x1400383c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400383cc
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 0x14003844a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140038441
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 0x140038441
mov rax, qword [rbp - 8]
jmp 0x14003845f
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 0x140038414
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x141457a6c
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141457a95
pop rbp
sub rbp, 0x29
sub rbp, 0x1457a6c
jmp 0x141457af5
sub rsp, 0x20
jmp 0x141457b05
mov rax, 0x1457a6c
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0xffffffffcb6db6a4
xor byte [rax], dl
inc rax
dec rcx
jne 0x141457b24
jmp 0x141457b3b
in al, dx
sub eax, 0x982d2f4d
movsb byte [rdi], byte [rsi]
movsb byte [rdi], byte [rsi]
movsb byte [rdi], byte [rsi]
in al, dx
and eax, 0xa4a5ac65
movsb byte [rdi], byte [rsi]
in al, dx
movsd dword [rdi], dword [rsi]
in al, dx
invalid
Function at 0x40eae0
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
mov ecx, 0x70
mov edx, 1
mov rbp, rsp
push rdi
push rsi
push rbx
lea rsi, str.7eff141e576f58846c92843c10845dfff58c9d20ab149f9884ad98840f98949c13d47c98943c98845dff5e354a85ab149c13842f988485140000010086951404a66f98e5024c38845dfff58c9d20ab149f9884851440a69c13d42e988401ce38845dff652a5b0f865e57ecff94c0470c585dff16475a99ab149f98842e98c4851401a67c98845dff0efdf0aeab141c98840cff842c98840cff840c13d49c13d40505e514a0a65dff00b60892ab14950000101086ae98c45dff706277c4ab141f98c44e989445149c108a0c153c0020cb945e98940000100ace18846e9894651400002333f5233777eb94d5ffffffb49e21b884a59514850eff251402ce3884a51495148514a595e5851485140d10848840b8140d1094c104b84484c0b814660d10944204b844858d571d93548042c430c41f570e831c1014d09c1c14ca0c13846d10849c13d48843b8149cff84653e8184b80d10940204b844050d108476470c58840000008808b80000002758f020b0818718660d1084c324b80225b884151425de2e1c1014d09c1c1402c220c716c3ca0c13849c13d40527b884a4a47bf0840225b8848125b8840625b88456652d1384152505141514000000cc8e0f4e3884cf
and rsp, 0xfffffffffffffff0
sub rsp, 0x3b0
lea rbx, [rsp + 0x20]
mov rdi, rbx
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x1c1
movzx eax, word [rsi]
mov word [rdi], ax
movzx eax, byte [0x004103aa]
mov byte [rdi + 2], al
call sub.msvcrt.dll_calloc
test rax, rax
je 0x40eba5
mov rdx, rax
mov rcx, rbx
mov rsi, rax
call fcn.0040ea20
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor edx, edx
mov r8d, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x40eb90
mov rdx, rsi
mov r8d, 0x1c1
mov rcx, rax
call sub.msvcrt.dll_memmove
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumWindows]
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.HeapAlloc_error
call fcn.0040ea80
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.malloc_error
call fcn.0040ea80
lea rsp, [rbp - 0x18]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14000a918
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14000a93f
and qword [r8], 0
call fcn.14000aa24
mov rbx, rax
test rax, rax
je 0x14000aa07
mov rcx, rax
call fcn.14000a8a0
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a9fe
mov rax, qword [0x1400821b0]
test rax, rax
je 0x14000a977
inc dword [rax + 0xf4]
mov rdx, qword [0x1400821c0]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14000a9fe
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x14000a9d6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400821b0]
test rax, rax
je 0x14000a9c4
dec dword [rax + 0xf4]
mov rdx, qword [0x1400821c0]
mov rcx, rsi
call qword [0x14006a008]
jmp 0x14000aa07
test ebp, ebp
jle 0x14000a9e8
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000a9f9
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000aa09
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14000ad7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x14000adaa
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x14005ba30]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x14000ad87
not r8d
mov eax, r8d
ret

Function at 0x14000adb4
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x14000ae0e
mov r11b, 0x23
lea rdi, [0x14005ba30]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x14000adf8
cmp rdx, 2
jb 0x14000adf8
cmp byte [r10], r11b
jne 0x14000adf8
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x14000add6
jmp 0x14000ae4f
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x14000ae4f
mov r11b, 0x23
lea rdi, [0x14005ba30]
cmp dl, r11b
jne 0x14000ae33
cmp byte [r10], r11b
jne 0x14000ae33
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x14000ae21
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x14000cc88
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c78], 0
lea rbx, [rcx + 0x5c80]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14000cd21
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x14000ccd9
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400190c8
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.1400187c4
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c78]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1400821b8]
movsxd r8, eax
mov rax, qword [rdi + 0x5c88]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14000cd29
mov rcx, rbx
call fcn.1400187c4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140013e50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400821b0]
mov rbx, rcx
and dword [rax + 0x5bdc], 0
test rcx, rcx
je 0x140013eb9
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140013ec4
lea rdx, [0x14005d12c]
mov rcx, rbx
mov rdi, rax
call fcn.14000aa24
mov rbx, rax
test rax, rax
je 0x140013eb9
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140028df0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140082080]
xor rax, rsp
mov qword [rbp - 8], rax
call fcn.140009db0
mov rcx, qword [0x140082218]
lea rdx, [rbp - 0x18]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rbp - 0x10]
sub ecx, dword [rbp - 0x18]
movd xmm1, ecx
mov ecx, dword [rbp - 0xc]
sub ecx, dword [rbp - 0x14]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rbp - 0x20]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x20]
xorps xmm1, xmm1
sub rax, qword [0x140082220]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140082228]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rbp - 0x20]
mov qword [0x140082220], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0xe1c], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0xe1d], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
mov byte [rdi + 0xe1f], 0
mov byte [rdi + 0xe1e], al
call fcn.140009db0
cmp byte [rax + 0xd3], 0
lea rbx, [rax + 0xe00]
je 0x140028f19
cvttss2si ecx, dword [rbx]
lea rdx, [rbp - 0x30]
cvttss2si eax, dword [rax + 0xe04]
mov dword [rbp - 0x30], ecx
mov rcx, qword [0x140082218]
mov dword [rbp - 0x2c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x2c]
mov ecx, dword [rbp - 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 0xff7fffff
mov dword [rbx], eax
mov dword [rbx + 4], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x140082218]
jne 0x140028f6e
lea rcx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140028f6e
mov rcx, qword [0x140082218]
lea rdx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140028f6e
movd xmm0, dword [rbp - 0x28]
movd xmm1, dword [rbp - 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0x70], 0
je 0x140028f79
or eax, 0xffffffff
jmp 0x140028f7e
call fcn.14000a084
cmp dword [0x14006a010], eax
je 0x140028f91
mov dword [0x14006a010], eax
call fcn.140028fbc
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140058db0
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x1400353f4
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140035417
xor ecx, ecx
call fcn.14000bb34
test al, al
jne 0x140035419
xor bl, bl
mov al, bl
add rsp, 0x20
pop rbx
ret
Function at 0x140049b58
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
movss dword [rsp + 0x18], xmm2
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x140082080]
xor rax, rsp
mov qword [rsp + 0x78], rax
movss xmm1, dword [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.140056820
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14004d03c
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20
lea r9, [rsp + 0x58]
mov r8, rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x38]
call fcn.1400305f8
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
cvtsd2ss xmm0, xmm0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140058db0
add rsp, 0x88
ret

Function at 0x140049c08
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [0x140082080]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x90], 0
jl 0x140049c61
cmp dword [rsp + 0x90], 0x7c
jge 0x140049c61
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x90]
lea rcx, [0x140080cf0]
call fcn.140049f18
lea rcx, [rsp + 0x50]
call fcn.140043ebc
nop
cmp qword [rsp + 0x30], 0
jne 0x140049c87
lea rdx, [0x1400636d0]
lea rcx, [rsp + 0x50]
call fcn.140044774
jmp 0x140049c96
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140044774
cmp dword [rsp + 0xa0], 1
jne 0x140049cb1
lea rdx, [0x1400636e0]
lea rcx, [rsp + 0x50]
call fcn.140044774
movss xmm2, dword [0x14005d374]
movss xmm1, dword [0x140064b40]
lea rcx, [rsp + 0x48]
call fcn.1400442a4
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.14004d03c
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140030ca0
movzx eax, al
test eax, eax
je 0x140049d26
cmp dword [rsp + 0xa0], 0
jne 0x140049d26
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x50]
call fcn.1400305f8
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140058db0
add rsp, 0x88
ret
Function at 0x140049d48
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
lea rcx, [0x140061aa0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140061a90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140049dd1
lea rcx, [0x140061ab8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserSendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140049dd1
lea rcx, [0x140061acc]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.SendInput
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140049dd1
xor al, al
jmp 0x140049e83
lea rcx, str.win32u
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140061ad8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140049e53
lea rcx, [0x140061b10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtUserGetAsyncKeyState
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140049e53
lea rcx, str.user32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140061b18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140049e53
xor al, al
jmp 0x140049e83
mov r8d, 0x1e
mov rdx, qword [rsp + 0x20]
lea rcx, [0x1400837d0]
call fcn.140059bf4
mov r8d, 0x1e
mov rdx, qword [rsp + 0x28]
lea rcx, [0x1400837f0]
call fcn.140059bf4
mov al, 1
add rsp, 0x38
ret

Function at 0x14004dbfc
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x140082080]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x130
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14004dc98
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14004dc85
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14004dca5
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14004dc5d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140058db0
add rsp, 0x170
pop rdi
ret
Function at 0x140056c8c
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14004bee0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x14004c4a8]
mov qword [rsp + 0x78], rax
lea rax, [0x140061a20]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x140056d44
lea rdx, str._n_n_FireFox
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14003f564
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, str.FireFox_29.1.5
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x140083830], rax
mov edx, 5
mov rcx, qword [0x140083830]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x140061a10]
mov rcx, qword [0x140083830]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x140083830]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x140083830]
call qword [sym.imp.USER32.dll_UpdateWindow]
add rsp, 0xc0
pop rdi
ret
Function at 0x14005995c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400599a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400599a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400599a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400599a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400599a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400599a8
xor al, al
add rsp, 0x28
ret
Function at 0x140006040
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x150
mov rax, qword [0x140040650]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, r9
mov rsi, rcx
test dl, dl
jne 0x1400060a6
lea r8, str._failed:_LateBindingNotFound
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140008a70
cmp qword [rsp + 0x38], 0x10
lea r8, [rsp + 0x20]
cmovae r8, qword [rsp + 0x20]
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
mov ebx, 5
jmp 0x14000615a
test r8d, r8d
jne 0x14000616e
mov qword [rsp + 0x168], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str._failed__lu
lea rcx, [rsp + 0x40]
mov edx, 0x100
mov r9d, eax
mov edi, eax
call fcn.140018f18
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140008a70
cmp qword [rsp + 0x38], 0x10
lea r8, [rsp + 0x20]
cmovae r8, qword [rsp + 0x20]
lea rcx, [rsi + 0x18]
mov edx, 0xc8
call fcn.14000a820
cmp edi, 2
je 0x14000614d
cmp edi, 5
je 0x140006146
cmp edi, 0xbb9
je 0x14000613f
cmp edi, 0x800b0110
je 0x140006138
mov ebx, 3
mov eax, 7
cmp edi, 0xe000020b
cmovne ebx, eax
jmp 0x140006152
mov ebx, 6
jmp 0x140006152
mov ebx, 8
jmp 0x140006152
mov ebx, 2
jmp 0x140006152
mov ebx, 4
mov rdi, qword [rsp + 0x168]
cmp qword [rsp + 0x38], 0x10
jb 0x140006173
mov rcx, qword [rsp + 0x20]
call fcn.140018ca8
jmp 0x140006173
mov ebx, 1
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140006197
cmp ebx, 1
jne 0x14000618b
mov rcx, qword [rcx]
call qword [rcx + 0x48]
test eax, eax
jne 0x140006197
mov rax, qword [rsi + 8]
mov ecx, ebx
mov rdx, qword [rax]
call qword [rdx + 0x40]
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400184d0
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rsi
ret