joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472a10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x472a43
push esi
call fcn.00480db0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x472a3c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x472ac9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x472ab2
mov eax, dword [esi + 8]
test eax, eax
je 0x472a67
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x472aae
cmp eax, 2
je 0x472ab2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x472a5a
cmp eax, 3
je 0x472a8d
cmp eax, 1
jne 0x472a5a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x472a5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x472a5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00472af0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x472ad8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00472af0
add esp, 4
pop esi
ret

Function at 0x473360
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x473381
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x473381
mov eax, dword [eax + 0x44]
test eax, eax
je 0x473381
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x490160
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x490203
test eax, eax
jbe 0x490203
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x490203
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4901ae
xor esi, esi
jmp 0x4901b4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4901df
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00493a70
add esi, eax
push esi
mov ebx, esi
call fcn.00493a70
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4901c0
pop ebp
test edi, edi
pop edi
jne 0x490203
test ebx, ebx
je 0x490203
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004a0b70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x490325
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49043d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49043d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b2cb3
mov esi, eax
test esi, esi
je 0x49043d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49043d
mov ecx, esi
call fcn.004902b0
cmp edi, eax
jge 0x49043d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4903c3
mov dword [esp + 0x34], 1
jmp 0x49041e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49043d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0048f860
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4b3656
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b368e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b1640
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b1618
jmp 0x4b369a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b4d48
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 0x4b4d8a
call fcn.004baa2a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b4d8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b4d81
xor eax, eax
jmp 0x4b4d92
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b4d98
pop edi
pop esi
pop ebx
ret 4
Function at 0x4baf5a
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 0x4baf88
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4bafa6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004baec0
jmp 0x4bafa6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4bafa6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004baec0
test edi, edi
mov eax, edi
jne 0x4baf90
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406468
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4069ac
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00406998
add esp, 0x208
pop ebx
ret

Function at 0x408ec4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x408efd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404de4
jmp 0x408f06
mov eax, ebx
mov edx, esi
call fcn.00404ca8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408f10
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x408f32
movzx eax, word [esp]
jmp 0x408f34
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4096bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4097e1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004094d0
mov esi, eax
mov eax, dword [0x412c2c]
cmp byte [eax], 0
je 0x409789
mov eax, dword [0x412b68]
call fcn.0040317c
call fcn.00402f6c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409698]
call fcn.00405ae8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4097fc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x4097c5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x412b48]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415b48]
call fcn.00405ba0
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097e8
lea eax, [ebp - 4]
mov edx, dword [0x409698]
call fcn.00405af4
ret
Function at 0x40aa8c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404924
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x40aa36
mov eax, edi
add eax, eax
call fcn.00402e04
mov esi, eax
jmp 0x40aa38
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40aa71
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40aa5b
mov eax, esp
cmp esi, eax
je 0x40aa7e
mov eax, esi
call fcn.00402e20
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40aab8
cmp bl, 0
je 0x40aab4
cmp bl, 0x41
jl 0x40aaaf
cmp bl, 0x5a
jg 0x40aaaf
or bl, 0x20
xor al, bl
inc esi
jmp 0x40aa93
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40a9f8

Function at 0x40b990
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b9d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b8a8
mov eax, dword [ebp - 4]
call fcn.00404d34
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9dd
lea eax, [ebp - 4]
call fcn.00404c98
ret

Function at 0x40bbf4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40bc8b
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40bc3f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00404de4
jmp 0x40bc75
call sub.kernel32.dll_GetCommandLineW
mov ebx, eax
cmp word [ebx], 0
jne 0x40bc58
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404cfc
jmp 0x40bc6b
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040bab4
mov ebx, eax
test esi, esi
je 0x40bc6b
dec esi
jmp 0x40bc46
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404ca8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc92
lea eax, [ebp - 4]
call fcn.00404c98
ret

Function at 0x40bc9c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408228
add esp, 0x208
pop ebx
ret

Function at 0x40bcc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408228
add esp, 0x208
pop ebx
ret
Function at 0x40be48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40bf85
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40bf6f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40bea5
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bf6f
cmp dword [ebp - 0x14], 0
jne 0x40bebc
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404ca8
mov bl, 1
jmp 0x40bf6f
cmp dword [ebp - 0x14], 0x70000000
jb 0x40beca
call fcn.00409828
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00404de4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004054bc
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
je 0x40be6e
test eax, eax
jne 0x40bf6f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40bf18
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bf6f
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40bf20
dec esi
test esi, esi
je 0x40bf34
lea eax, [ebp - 4]
call fcn.00404830
cmp word [eax + esi*2 - 2], 0
je 0x40bf1f
cmp dword [ebp - 0x10], 7
jne 0x40bf3f
test esi, esi
je 0x40bf3f
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404f10
cmp dword [ebp - 0x10], 7
jne 0x40bf62
test esi, esi
je 0x40bf62
lea eax, [ebp - 4]
call fcn.004054bc
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404ca8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf8c
lea eax, [ebp - 4]
call fcn.00404c98
ret

Function at 0x40c9c8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x417d9c
mov eax, esi
mov edx, 8
test al, 1
je 0x40c9e4
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c9e6
shr eax, 1
dec edx
jne 0x40c9d7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c9d0
pop esi
ret

Function at 0x40c9fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x417d98], 0
jne 0x40ca1f
call fcn.0040c9c8
push 1
push 0x417d98
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40ca4a
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x417d9c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40ca25
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40e4d8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 9]
mov eax, ebx
call fcn.0040e48c
test al, al
jne 0x40e4f9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e545
xor eax, eax
push ebp
push 0x40e535
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d34
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e53c
lea eax, [ebp - 9]
call fcn.0040e4c8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e784
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e78c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e879
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040bcf4
mov edx, dword [ebp - 8]
mov ecx, 0x40e894
xor eax, eax
call fcn.0040e668
push 0
mov eax, dword [ebp - 4]
call fcn.00404d34
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e847
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e7a6
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040e290
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00407ef8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040c29c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0040e260
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406d6c]
call fcn.00409834
call fcn.00403f88
jmp 0x40e7a6
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404ca8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e880
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ca0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ca0
ret

Function at 0x40e8a8
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x412c7c]
cmp dword [eax], 2
jne 0x40e910
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40e8cb
xor eax, eax
jmp 0x40e91f
lea eax, [esp + 8]
push eax
push 0x40e924
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40e910
xor eax, eax
jmp 0x40e91f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x40e94c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40e9a6
inc esi
xor edi, edi
cmp edi, 1
jne 0x40e972
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40e980
cmp edi, 1
jle 0x40e980
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040e4d8
test eax, eax
jne 0x40e9a6
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40e9a6
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40e9a6
inc edi
dec esi
jne 0x40e962
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40e9b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x40e9d4
mov eax, dword [ebp - 4]
jmp 0x40e9d7
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x40e9dc
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x40ea29
xor ebx, ebx
jmp 0x40ea1e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407bec
test eax, eax
jne 0x40ea1d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40ead3
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e9ff
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40ea35
je 0x40ea3e
jmp 0x40ea47
call fcn.0040bfcc
mov esi, eax
jmp 0x40ea49
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40ea49
xor esi, esi
test si, si
je 0x40ead3
xor ebx, ebx
jmp 0x40ea6f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40ea6e
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40ead3
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40ea56
xor ebx, ebx
jmp 0x40eac8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40eac7
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40eabc
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040e9b0
push eax
mov eax, esi
call fcn.0040e9b0
pop edx
cmp edx, eax
jne 0x40eac7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40ead3
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40ea7e
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40eec0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ef95
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40efb0
push ebx
push 0x40efc0
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040514c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403250
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d34
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40ef40
mov al, 0x6a
call fcn.0040eae0
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.0040ee94
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40ef49
call fcn.0040ee94
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef9c
lea eax, [ebp - 4]
call fcn.00404c98
ret

Function at 0x40f0b0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40f17b
jmp 0x40f16f
cmp dword [esi + 0x10], 0x1000
jne 0x40f15b
test byte [esi + 0x15], 1
jne 0x40f15b
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40f10c
cmp ebp, 2
je 0x40f10c
cmp ebp, 0x10
je 0x40f10c
cmp ebp, 0x20
jne 0x40f128
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40f128
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40f139
mov eax, dword [esi]
add eax, ebx
call fcn.0040f0a8
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40f12c
cmp byte [esp + 4], 0
je 0x40f15b
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40f17b
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40f0e1
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10068fa
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x10013b0
push 0x80000001
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100697b
push ebx
push 4
pop ebx
push ebx
lea eax, [edi + 4]
push eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x100139c
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1006971
push ebx
lea eax, [edi + 8]
push eax
push ebx
push 0
push 0x1001388
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1006971
push ebx
add edi, 0xc
push edi
push ebx
push eax
push 0x1001370
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
pop esi
leave
ret