joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e43
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jle 0x407e78
push dword [ebp + 8]
call fcn.0040323a
mov dword [ebp - 0x10], eax
cmp word [ebp - 0x10], 0x5a4d
jne 0x407e78
xor eax, eax
jmp 0x407e7d
mov eax, 1
test eax, eax
je 0x407e8f
mov eax, 0
jmp 0x408058
fild dword [ebp + 8]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x4ad443]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.004027ee
push eax
call fcn.0040329a
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.004027ee
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.0040329a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x4550
jne 0x407f48
fild dword [ebp - 4]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fadd qword [0x4ad45b]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.004027ee
push eax
call fcn.0040323a
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push 0x2000
mov eax, dword [ebp - 0x24]
cwde
push 0x80000301
push 0
push eax
push 2
mov ebx, 0xc4
call fcn.00478110
add esp, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x407f48
xor eax, eax
jmp 0x407f4d
mov eax, 1
test eax, eax
je 0x407f5f
mov eax, 0
jmp 0x408058
fild dword [ebp - 4]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fadd qword [0x4ad46b]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
call fcn.004027ee
push eax
call fcn.0040329a
mov dword [ebp - 0x18], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x18]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x5c], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 0x60], 0
push 0
push dword [ebp - 0x60]
push 1
push 0
push 1
push 0
push 1
push 0
fld qword [ebp - 0x30]
call fcn.004027ee
push eax
call fcn.00403ce9
lea eax, [ebp + 8]
push eax
call fcn.00403519
jmp 0x408058
mov esp, ebp
pop ebp
ret 4
Function at 0x40cf96
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x40cfce
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40cfbc
mov al, 1
jmp 0x40d018
cmp dword [ebx + 0x54], ecx
jne 0x40cfc5
mov al, 2
jmp 0x40d018
cmp dword [ebx + 0x7c], ecx
jne 0x40d018
mov al, 3
jmp 0x40d018
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x40cfe3
mov al, 4
jmp 0x40d018
cmp ecx, 5
jne 0x40d003
cmp ebx, 0
jne 0x40cff1
mov al, 5
jmp 0x40d018
cmp ebx, 1
jne 0x40cffa
mov al, 6
jmp 0x40d018
cmp ebx, 2
jne 0x40d003
mov al, 7
jmp 0x40d018
cmp ecx, 6
jne 0x40d00f
cmp ebx, 0
jne 0x40d011
mov al, 8
jmp 0x40d018
cmp ebx, 1
jne 0x40d018
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ec7c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x20], 0
jne 0x40ec96
mov dword [ebp + 0x1c], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0x4ad358
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40ecdb
push 0x76
push 0x4050617
push 6
call fcn.00477862
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
mov eax, 0
setg al
jmp 0x40ecef
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4135e7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x8344ed
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004072b2
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x413635
push ebx
call fcn.00477856
add esp, 4
mov dword [ebp - 0x1c], esp
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x413642
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x413669
push 0x48
push 0x40503d7
push 6
call fcn.00477862
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41367c
push ebx
call fcn.00477856
add esp, 4
mov eax, str.GetNativeSystemInfo
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00403ccd
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4136a0
push ebx
call fcn.00477856
add esp, 4
mov dword [ebp - 0x2c], esp
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4136cf
push 0x6e
push 0x40503d7
push 6
call fcn.00477862
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4136e6
mov eax, 0
jmp 0x413784
push 0x80000301
push 0
push 0x2c
push 1
mov ebx, 0x1bc
call fcn.004785b0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41371b
push ebx
call fcn.00477856
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004027c7
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x413757
push 0x128
push 0x40503d7
push 6
call fcn.00477862
add esp, 0xc
push dword [ebp - 8]
call fcn.0040329a
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 6
je 0x41377a
cmp dword [ebp - 0xc], 9
je 0x41377a
xor eax, eax
jmp 0x41377f
mov eax, 1
jmp 0x413784
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x413795
push ebx
call fcn.00477856
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x417df7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x417e3c
push 0x59
push 0x40503dd
push 6
call fcn.00477862
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00478110
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x417e9f
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00478130
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x417ecd
push 0xfb
push 0x40503dd
push 6
call fcn.00477862
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00478110
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x417f30
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00478130
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x417f5e
push 0x19d
push 0x40503dd
push 6
call fcn.00477862
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00478110
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x417fc1
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00478130
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x417fc9
mov esp, ebp
pop ebp
ret

Function at 0x464a8d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.004785e0
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x464ad2
push ebx
call fcn.00477856
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x464b0a
push 0x36
push 0x404c8db
push 6
call fcn.00477862
add esp, 0xc
mov eax, dword [ebp - 4]
test eax, eax
je 0x464b26
push eax
mov ebx, eax
call fcn.004010d3
inc eax
push eax
call fcn.00477850
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x464b2b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x464b3c
push ebx
call fcn.00477856
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x478d40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0047cc40
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x478e90
test ecx, ecx
je 0x478e90
inc ecx
push ecx
call fcn.00489ada
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0047e2d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x478db9
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x478e7d
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.00489ada
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x478e41
cmp eax, 0xea
jne 0x478e69
push esi
call fcn.00489b03
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00489ada
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x478e0c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x478e4f
cmp eax, 2
jne 0x478e69
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.0047c6c0
add esp, 8
mov dword [esp + 0x10], eax
push esi
call fcn.00489b03
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00489b03
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x478ebe
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x478eca
mov edx, dword [esp + 0x40]
test edx, edx
je 0x478eca
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.0047c6c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x479130
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4791c2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4791b4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4791ac
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x479175
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4791d0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4791f8
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x47921a
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x47a910
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x47a979
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00477e40
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x48c4b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48c4f2
call fcn.0048f805
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48c4f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48c4e9
xor eax, eax
jmp 0x48c4fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048c500
pop edi
pop esi
pop ebx
ret 4
Function at 0x48d48b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4910d8
call fcn.0047f0bc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0048f805
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x48d4ca
call fcn.0048f805
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48d4d8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x48d4e6
or eax, 0xffffffff
jmp 0x48d5ce
mov ecx, esi
call fcn.0048d401
mov dword [ebp - 0x14], eax
call fcn.0048aaef
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x48d51d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x48d51d
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0048aaa3
push dword [ebp - 0x14]
call fcn.0048a5d5
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0048d199
cmp eax, edi
je 0x48d590
test byte [esi + 0x24], 0x10
je 0x48d55e
push 4
mov ecx, esi
pop ebx
call fcn.00489fd5
test ah, 1
je 0x48d556
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0048c602
cmp dword [esi + 0x1c], edi
je 0x48d590
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0048a009
jmp 0x48d590
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x48d5a4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x48d5bd
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x48d5bd
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0048d43b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x48f377
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48f3a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48f3c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048f2dd
jmp 0x48f3c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48f3c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048f2dd
test edi, edi
mov eax, edi
jne 0x48f3ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41c004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 1
mov edx, eax
mov dword [ebp - 0xc], edx
jle 0x401103
push edi
mov edi, 1
jbe 0x401102
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop word [eax + eax]
push str._path
push dword [edx + edi*4]
call esi
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x4010b6
mov eax, dword [eax + edi*4 + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax*2 + 2]
push esi
push 8
push dword [0x41d32c]
call ebx
test eax, eax
jne 0x40109f
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 8
push dword [0x41d32c]
call ebx
test eax, eax
je 0x401085
push dword [ebp - 0x10]
mov dword [0x41d2fc], eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x4010f3
push str._nomutex
push dword [eax + edi*4]
call esi
test eax, eax
jne 0x4010d0
mov dword [0x41d2f4], 1
jmp 0x4010f3
mov eax, dword [ebp - 0xc]
push str._nonetdrive
push dword [eax + edi*4]
call esi
mov ecx, dword [0x41d2f8]
test eax, eax
mov eax, 1
cmove ecx, eax
mov dword [0x41d2f8], ecx
mov edx, dword [ebp - 0xc]
inc edi
cmp edi, dword [ebp - 8]
jb 0x401050
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406224
mov esp, ebp
pop ebp
ret
Function at 0x401120
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebx], 0x61707865
mov dword [ebx + 4], 0x3320646e
mov dword [ebx + 8], 0x79622d32
mov dword [ebx + 0xc], 0x6b206574
movzx esi, byte [edi + 3]
movzx eax, byte [edi + 2]
shl esi, 8
or esi, eax
movzx eax, byte [edi + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edi]
shl esi, 8
or esi, eax
mov dword [ebx + 0x10], esi
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [edi + 0xf]
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], ecx
movzx ecx, byte [edi + 0x13]
movzx eax, byte [edi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x20], ecx
movzx ecx, byte [edi + 0x17]
movzx eax, byte [edi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x24], ecx
movzx ecx, byte [edi + 0x1b]
movzx eax, byte [edi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x18]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x28], ecx
movzx ecx, byte [edi + 0x1f]
movzx eax, byte [edi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x34], 0
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x38], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
pop edi
or ecx, eax
mov dword [ebx + 0x80], 0x40
pop esi
mov dword [ebx + 0x3c], ecx
pop ebx
pop ebp
ret
Function at 0x404b30
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
cmp dword [0x41d2f4], 0
jne 0x404b62
push str.GlobalSENATORMutex
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x41d318], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404b62
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret