joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ba58d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23d8
cmp edx, dword [eax]
je 0x4ba5af
add eax, 8
inc ecx
cmp eax, 0x4c2468
jl 0x4ba5a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23d8]
jne 0x4ba6dd
mov eax, dword [0x4c6d70]
cmp eax, 1
je 0x4ba6b7
test eax, eax
jne 0x4ba5e0
cmp dword [0x4c2304], 1
je 0x4ba6b7
cmp edx, 0xfc
je 0x4ba6dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba617
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004baf70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba65a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf99c
push edi
call fcn.004bd2d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004baf70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004baf80
lea eax, [ebp - 0xa0]
push 0x4bf97c
push eax
call fcn.004baf80
push dword [esi + 0x4c23dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004baf80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bd244
add esp, 0x2c
pop edi
jmp 0x4ba6dd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23dc]
Function at 0x4027b5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, 0x9f60fc3
jg 0x4027db
inc esi
cmp esi, 0x1e70dee2
jl 0x4027c1
cmp dword [0x42d104], 0x400
jne 0x40280e
push edi
call fcn.00402948
push edi
push edi
call fcn.00402a93
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.00402870
push edi
fstp st(0)
call fcn.00402b80
add esp, 0x14
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x58bc6e
jg 0x40282d
inc esi
cmp esi, 0xe52f
jl 0x402810
mov eax, dword [0x4250c4]
mov dword [0x42d104], eax
call fcn.0040252b
mov esi, 0x3078f
cmp dword [0x42d104], 0x51f
jne 0x402859
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec esi
jne 0x402841
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4059a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424328]
jne 0x4059b2
repz ret
jmp fcn.00407cbc
Function at 0x406493
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424328]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403c2c
and dword [ebp - 0x14], 0
cmp dword [0x426d14], 0
mov dword [ebp - 0x18], eax
jne 0x406546
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4065ee
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4065ee
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x426d14], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x426d18], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x426d1c], eax
call edi
push eax
call esi
mov dword [0x426d24], eax
test eax, eax
je 0x406546
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x426d20], eax
mov eax, dword [0x426d20]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40659f
cmp dword [0x426d24], ecx
je 0x40659f
push eax
call esi
push dword [0x426d24]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40659f
test ebx, ebx
je 0x40659f
call edi
test eax, eax
je 0x406596
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406596
test byte [ebp - 8], 1
jne 0x40659f
or dword [ebp + 0x10], 0x200000
jmp 0x4065d2
mov eax, dword [0x426d18]
cmp eax, dword [ebp - 0x18]
je 0x4065d2
push eax
call esi
test eax, eax
je 0x4065d2
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4065d2
mov eax, dword [0x426d1c]
cmp eax, dword [ebp - 0x18]
je 0x4065d2
push eax
call esi
test eax, eax
je 0x4065d2
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x426d14]
call esi
test eax, eax
je 0x4065ee
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4065f0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004059a8
leave
ret
Function at 0x4030c4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x411008], 0x8088405
inc edx
mov dword [ebx + 0x411008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x411018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40376c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40374c
xor eax, eax
push ebp
push 0x403745
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4037a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40374c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x411018]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x411018], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41204c], 0
je 0x40450d
cmp word [0x412328], 0xd7b2
jne 0x4044d5
cmp dword [0x412330], 0
jbe 0x4044d5
mov eax, 0x412324
call dword [0x412340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404538
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x411024], 0
jne 0x404529
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4063d0
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.004063bc
add esp, 0x208
pop ebx
ret

Function at 0x408918
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_1
test eax, eax
jle 0x408951
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404d28
jmp 0x40895a
mov eax, ebx
mov edx, esi
call fcn.00404bec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408964
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_1
test eax, eax
jle 0x408986
movzx eax, word [esp]
jmp 0x408988
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4090ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.00408f24
mov eax, dword [0x411c0c]
cmp byte [eax], 0
je 0x40917e
mov eax, dword [0x411b48]
call fcn.0040315c
call fcn.00402f4c
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.00407b10
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4091cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4091b7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x411b28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x414b18]
call fcn.004055f0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x40a3df
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.00404890
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40a402
mov eax, edi
add eax, eax
call fcn.00402de4
mov esi, eax
jmp 0x40a404
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40a43d
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 0x40a427
mov eax, esp
cmp esi, eax
je 0x40a44a
mov eax, esi
call fcn.00402e00
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 0x40a484
cmp bl, 0
je 0x40a480
cmp bl, 0x41
jl 0x40a47b
cmp bl, 0x5a
jg 0x40a47b
or bl, 0x20
xor al, bl
inc esi
jmp 0x40a45f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40a3c4

Function at 0x40b06c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b0b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b000
mov eax, dword [ebp - 4]
call fcn.00404c78
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 0x40b0b9
lea eax, [ebp - 4]
call fcn.00404bdc
ret

Function at 0x40b270
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 0x40b307
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40b2bb
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00404d28
jmp 0x40b2f1
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40b2d4
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404c40
jmp 0x40b2e7
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b190
mov ebx, eax
test esi, esi
je 0x40b2e7
dec esi
jmp 0x40b2c2
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b30e
lea eax, [ebp - 4]
call fcn.00404bdc
ret

Function at 0x40b318
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.00407c7c
add esp, 0x208
pop ebx
ret

Function at 0x40b344
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.00407c7c
add esp, 0x208
pop ebx
ret
Function at 0x40b4a8
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 0x40b5e0
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_1
test eax, eax
jne 0x40b5ca
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40b505
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40b5ca
cmp dword [ebp - 0x14], 0
jne 0x40b51c
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404bec
mov bl, 1
jmp 0x40b5ca
cmp dword [ebp - 0x14], 0x70000000
jb 0x40b52a
call fcn.004091f4
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00404d28
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00405368
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40b4ce
test eax, eax
jne 0x40b5ca
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40b578
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40b5ca
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40b580
dec esi
test esi, esi
je 0x40b58f
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40b57f
cmp dword [ebp - 0x10], 7
jne 0x40b59a
test esi, esi
je 0x40b59a
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404e54
cmp dword [ebp - 0x10], 7
jne 0x40b5bd
test esi, esi
je 0x40b5bd
lea eax, [ebp - 4]
call fcn.00405368
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404bec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b5e7
lea eax, [ebp - 4]
call fcn.00404bdc
ret

Function at 0x40c024
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x416d6c
mov eax, esi
mov edx, 8
test al, 1
je 0x40c040
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c042
shr eax, 1
dec edx
jne 0x40c033
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c02c
pop esi
ret

Function at 0x40c058
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x416d68], 0
jne 0x40c07b
call fcn.0040c024
push 1
push 0x416d68
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40c0a6
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x416d6c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40c081
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40db04
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 - 0xc]
mov eax, ebx
call fcn.0040dab8
test al, al
jne 0x40db25
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40db71
xor eax, eax
push ebp
push 0x40db61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404c78
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 0x40db68
lea eax, [ebp - 0xc]
call fcn.0040daf4
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ddb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40ddb8
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40dea5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040b370
mov edx, dword [ebp - 8]
mov ecx, 0x40dec0
xor eax, eax
call fcn.0040dc94
push 0
mov eax, dword [ebp - 4]
call fcn.00404c78
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40de73
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40ddd2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040d8bc
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.0040791c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040b8f8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x69
call fcn.0040d88c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406790]
call fcn.00409200
call fcn.00403f48
jmp 0x40ddd2
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404bec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40deac
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404be4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404be4
ret

Function at 0x40ded4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x411c5c]
cmp dword [eax], 2
jne 0x40df3c
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40def7
xor eax, eax
jmp 0x40df4b
lea eax, [esp + 8]
push eax
push 0x40df50
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 0x40df3c
xor eax, eax
jmp 0x40df4b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x40df78
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 0x40dfd2
inc esi
xor edi, edi
cmp edi, 1
jne 0x40df9e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x40dfac
cmp edi, 1
jle 0x40dfac
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040db04
test eax, eax
jne 0x40dfd2
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40dfd2
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40dfd2
inc edi
dec esi
jne 0x40df8e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40dfdc
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_1
test eax, eax
jle 0x40e000
mov eax, dword [ebp - 4]
jmp 0x40e003
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x40e008
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 0x40e055
xor ebx, ebx
jmp 0x40e04a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407610
test eax, eax
jne 0x40e049
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40e0ff
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e02b
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x40e061
je 0x40e06a
jmp 0x40e073
call fcn.0040b628
mov esi, eax
jmp 0x40e075
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x40e075
xor esi, esi
test si, si
je 0x40e0ff
xor ebx, ebx
jmp 0x40e09b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x40e09a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e0ff
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e082
xor ebx, ebx
jmp 0x40e0f4
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 0x40e0f3
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x40e0e8
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0040dfdc
push eax
mov eax, esi
call fcn.0040dfdc
pop edx
cmp edx, eax
jne 0x40e0f3
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40e0ff
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x40e0aa
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x40e354
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 0x40e429
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40e444
push ebx
push 0x40e454
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040503c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403230
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.00404c78
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40e3d4
mov al, 0x6b
call fcn.0040e10c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040e328
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40e3dd
call fcn.0040e328
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_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e430
lea eax, [ebp - 4]
call fcn.00404bdc
ret

Function at 0x40e544
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_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x40e60f
jmp 0x40e603
cmp dword [esi + 0x10], 0x1000
jne 0x40e5ef
test byte [esi + 0x15], 1
jne 0x40e5ef
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x40e5a0
cmp ebp, 2
je 0x40e5a0
cmp ebp, 0x10
je 0x40e5a0
cmp ebp, 0x20
jne 0x40e5bc
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 0x40e5bc
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x40e5cd
mov eax, dword [esi]
add eax, ebx
call fcn.0040e53c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x40e5c0
cmp byte [esp + 4], 0
je 0x40e5ef
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_1
test eax, eax
je 0x40e60f
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x40e575
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret