joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2a84a76f
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x2a851e75
call fcn.2a8015aa
mov edi, ecx
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x10
mov dword [ebp - 0x54], esi
call fcn.2a81ad60
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x2a84a7b4
push 0x10
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x2a84a7b6
mov esi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x24], esi
call fcn.2a849b77
push dword [edi + 0x24]
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
call fcn.2a80187a
ret

Function at 0x32001866
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3205cfc4]
jne 0x32001870
repz ret
jmp fcn.32043968

Function at 0x320264db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x320264ea
pop dword [ebp - 8]
mov eax, 0xe7220b68
add eax, 0x4ae05982
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x7ab80e89
sub dword [ebp - 0x18], 0x2c65c93e
mov dword [ebp - 0x14], 0x9af3a4d8
add dword [ebp - 0x14], 0x973fa76d
mov dword [ebp - 0x10], 0xc8a611e
sub dword [ebp - 0x10], 0xc03e1cf0
mov dword [ebp - 0xc], 0x2f1de5ba
sub dword [ebp - 0xc], 0x2f1de5ba
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xffbad8c1
add dword [ebp - 0x18], 0x74b79095
mov dword [ebp - 0x14], 0x71492994
sub dword [ebp - 0x14], 0x2fdcc81f
mov dword [ebp - 0x10], 0x9ffd86cb
sub dword [ebp - 0x10], 0x3c8e1a5f
mov dword [ebp - 0xc], 0xd169a29f
add dword [ebp - 0xc], 0x2e965d61
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xfcb7199a
sub eax, 0xcab288fa
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x46a61
push 0
call eax
mov ecx, 0x83c2b324
sub ecx, 0x83c26a90
xor edi, edi
add edi, eax
mov esi, 0x3206fe00
add esi, dword [ebp - 8]
mov ebx, 0x746e931b
add ebx, 0x2f6a1fc7
sub dword [ebp - 4], 0xed5f60bd
mov edx, dword [esi]
add dword [ebp - 4], 0x273a73dd
xor edx, ebx
mov dword [edi], edx
add dword [ebp - 4], 0x89d6616a
add edi, 4
add esi, 4
loop 0x32026603
add eax, 0x11523
xor ebx, ebx
add ebx, eax
add eax, 0xf4f40538
sub eax, 0xf4f40533
mov ecx, 0x774b7d83
sub ecx, 0x454b7d83
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4016c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, dword fs:[0x18]
sub esp, 0x14
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x40170b
mov dword [eax], 0x417d30
mov dword [eax + 4], 1
mov dword [ebx], eax
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
mov eax, 0x8007000e
jmp 0x401706

Function at 0x40e2c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test eax, eax
je 0x40e370
mov esi, eax
mov dword [esp + 0x14], 0
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov edx, eax
sub esp, 0x18
lea ecx, [edx + edx]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x40e366
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x18
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e380
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
call fcn.0040e2c0
mov esi, eax
mov eax, ebx
call fcn.0040e2c0
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.0040e2c0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
call fcn.0040e2c0
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [edi]
mov dword [esp + 8], ebx
mov dword [ebp - 0x24], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [eax + 0x34]
sub esp, 0x14
mov dword [ebp - 0x20], eax
mov edi, dword fs:[0x18]
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x24]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x20]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40e460
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
call fcn.0040e2c0
mov esi, eax
mov eax, ebx
call fcn.0040e2c0
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.0040e2c0
mov ecx, eax
mov eax, dword [edi]
mov dword [esp + 8], ebx
mov dword [ebp - 0x20], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [eax + 0x6c]
sub esp, 0x10
mov dword [ebp - 0x1c], eax
mov edi, dword fs:[0x18]
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40f3f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
call fcn.0040e2c0
mov esi, eax
mov eax, ebx
call fcn.0040e2c0
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.0040e2c0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
call fcn.0040e2c0
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [edi]
mov dword [esp + 8], ebx
mov dword [ebp - 0x24], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [eax + 0x1c]
sub esp, 0x14
mov dword [ebp - 0x20], eax
mov edi, dword fs:[0x18]
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x24]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x20]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f4d0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, edx
push ebx
sub esp, 0x10
call fcn.0040e2c0
mov ebx, eax
mov eax, dword [esi]
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [eax + 0x70]
sub esp, 8
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x410140
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, edx
push esi
push ebx
mov ebx, ecx
sub esp, 0x3c
call fcn.0040e2c0
mov esi, eax
mov eax, ebx
call fcn.0040e2c0
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.0040e2c0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
call fcn.0040e2c0
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [edi]
mov dword [esp + 8], ebx
mov dword [ebp - 0x24], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [eax + 0x30]
sub esp, 0x14
mov dword [ebp - 0x20], eax
mov edi, dword fs:[0x18]
mov dword [esp + 8], esi
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x24]
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x20]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x413060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 1
call dword [0x415654]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4139c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00414350
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4bc47b]
shl eax, 2
mov dword [0x4bc47f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004ae4c0
pop edx
call fcn.004ae424
call fcn.004ae500
push 0
call fcn.004b0788
pop ecx
push 0x4bc424
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4bc483], eax
push 0
jmp fcn.004b5950

Function at 0x401348
Capabilities:
Check mutex on windows

Disassembly:
call fcn.00442b3c
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
call fcn.00401790
mov edx, eax
inc dword [ebp - 0x50]
pop eax
call fcn.004ba014
dec dword [ebp - 0x50]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0x5c], 0x14
lea eax, [ebp - 0x94]
call fcn.0040184c
mov dl, 0x2d
call fcn.00401880
push eax
mov word [ebp - 0x5c], 0x2c
mov edx, 0x4bc4b0
lea eax, [ebp - 0x10]
call fcn.004b9ba0
inc dword [ebp - 0x50]
mov eax, dword [eax]
mov cl, 1
pop edx
call fcn.0047a818
test al, al
jne 0x4013ea
mov edx, str.INSTALL.EXE
lea eax, [ebp - 0x14]
call fcn.004b9ba0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.004ba258
test eax, eax
sete cl
and ecx, 1
push ecx
dec dword [ebp - 0x50]
Function at 0x4013d8
Capabilities:
Check mutex on windows

Disassembly:
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004b9d00
pop ecx
test ecx, ecx
jne 0x4013ee
xor eax, eax
jmp 0x4013f3
mov eax, 1
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004b9d00
pop ecx
test cl, cl
je 0x40145b
mov word [ebp - 0x5c], 0x38
mov edx, 0x4bc4c4
lea eax, [ebp - 0x18]
call fcn.004b9ba0
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, dword [0x4db5ac]
mov eax, dword [eax]
call fcn.004421e0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004b9d00
mov ecx, dword [0x4db5ac]
mov eax, dword [ecx]
mov ecx, dword [sym.InstAll.exe__SetupForm]
mov edx, dword [0x4c81dc]
call fcn.004425f4
jmp 0x401734
push str.Mutex_InstAll
push 0
push 0
call sub.KERNEL32.DLL_CreateMutexA
test eax, eax
jne 0x4014a3
push 0x10
push 0x4bc4f8
push str.Failed_to_create_a_Mutex...
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
pop eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x401785
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
jne 0x4014e5
push 0x10
push 0x4bc518
push str.InstAll.exe_is_running.
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
push eax
dec dword [ebp - 0x50]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
pop eax
mov edx, dword [ebp - 0x6c]
mov dword fs:[0], edx
jmp 0x401785
mov word [ebp - 0x5c], 0x44
mov edx, 0x4bc520
lea eax, [ebp - 0x1c]
call fcn.004b9ba0
inc dword [ebp - 0x50]
mov edx, dword [eax]
mov eax, dword [0x4db5ac]
mov eax, dword [eax]
call fcn.004421e0
dec dword [ebp - 0x50]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004b9d00
mov ecx, dword [0x4db5ac]
mov eax, dword [ecx]
mov edx, dword [eax + 0x88]
mov dword [ebp - 0x70], edx
mov word [ebp - 0x5c], 0x50
lea eax, [ebp - 0x20]
call fcn.00401790
mov edx, eax
inc dword [ebp - 0x50]
mov ecx, dword [0x4db5ac]
mov eax, dword [ecx]
call fcn.00442b3c
lea edx, [ebp - 0x20]
push dword [edx]
lea eax, [ebp - 0x24]
call fcn.00401790
mov edx, eax
inc dword [ebp - 0x50]
pop eax
call fcn.00476a04
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x2c]
call fcn.00401790
push eax
inc dword [ebp - 0x50]
mov edx, str.Imageinstall.ico
lea eax, [ebp - 0x28]
call fcn.004b9ba0
inc dword [ebp - 0x50]
lea edx, [ebp - 0x28]
pop ecx
pop eax
invalid

Function at 0x402480
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x406e80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x406ea1
mov eax, 0xff
call fcn.00402480
xor byte [esi], al
inc esi
dec ebx
jne 0x406e91
pop esi
pop ebx
ret
Function at 0x40ac9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
mov eax, 0x4bfa24
call fcn.004afb5c
mov word [ebp - 0x20], 8
lea eax, [ebp - 4]
call fcn.00401790
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x14
push 0xff
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea ecx, [ebp - 0x134]
push ecx
call fcn.004af828
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jne 0x40ad2f
mov word [ebp - 0x20], 0x20
lea edx, [ebp - 0x134]
lea eax, [ebp - 8]
call fcn.004b9ba0
inc dword [ebp - 0x14]
mov ecx, 1
mov edx, 3
call fcn.004b9f44
mov edx, eax
lea eax, [ebp - 4]
call fcn.004b9d30
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
jmp 0x40ad60
mov word [ebp - 0x20], 0x2c
lea edx, [ebp - 0x134]
lea eax, [ebp - 0xc]
call fcn.004b9ba0
mov edx, eax
inc dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004b9d30
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0x20], 0x38
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004b9d30
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x44
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
pop eax
mov word [ebp - 0x20], 0x38
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x40aebc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push 0x9c
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.004af6cc
add esp, 0xc
mov dword [ebp - 0x9c], 0x9c
lea edx, [ebp - 0x9c]
push edx
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x40aef9
xor eax, eax
jmp 0x40af08
cmp dword [ebp - 0x98], 6
jb 0x40af06
mov al, 1
jmp 0x40af08
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40af0c
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov eax, 0x4bfb40
call fcn.004afb5c
mov dword [ebp - 0xc], 1
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004b9bd8
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
xor edx, edx
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x18], 0x14
mov edx, 0x4bf819
lea eax, [ebp - 4]
call fcn.004b9ba0
inc dword [ebp - 0xc]
lea edx, [ebp - 4]
lea eax, [ebp + 8]
call fcn.004ba258
test eax, eax
sete cl
and ecx, 1
push ecx
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
pop ecx
test cl, cl
je 0x40af9a
push 0
push 6
call sub.USER32.DLL_ExitWindowsEx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40afd1
push 0x4bf81c
call fcn.0040b144
pop ecx
jmp 0x40afd1
push 0x4bf82a
call fcn.0040affc
pop ecx
test eax, eax
je 0x40afc6
push 0
push 6
call sub.USER32.DLL_ExitWindowsEx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40afc6
push str.Shutting_down
call fcn.0040b144
pop ecx
push str.SeShutdownPrivilege
call fcn.0040b0a0
pop ecx
cmp dword [ebp - 0x2c], 0
setne al
and eax, 1
push eax
dec dword [ebp - 0xc]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004b9d00
pop eax
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40b3b4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x10c]
push edx
push 0x104
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_SearchPathA
test eax, eax
je 0x40b480
lea ecx, [ebp - 0x10c]
push ecx
call sub.KERNEL32.DLL_lstrlenA
mov byte [ebp + eax - 0x10b], 0
xor eax, eax
mov dword [ebp - 0x230], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x22c], edx
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x228], ecx
cmp dword [ebp + 0x14], 0
je 0x40b44a
push dword [ebp + 0x14]
lea eax, [ebp - 0x210]
push eax
call sub.KERNEL32.DLL_lstrcpyA
lea edx, [ebp - 0x210]
push edx
call sub.KERNEL32.DLL_lstrlenA
mov byte [ebp + eax - 0x20f], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x224], ecx
jmp 0x40b452
xor eax, eax
mov dword [ebp - 0x224], eax
mov word [ebp - 0x220], 0x14
lea edx, [ebp - 0x230]
push edx
call sub.SHELL32.DLL_SHFileOperationA
test eax, eax
je 0x40b46f
xor eax, eax
jmp 0x40b482
push 0x80
lea edx, [ebp - 0x210]
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40b488
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
mov eax, 0x4bfcbc
call fcn.004afb5c
push 0x104
lea edx, [ebp - 0x130]
push edx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [ebp - 0x1c], 0x14
lea eax, [ebp - 4]
call fcn.00401790
push eax
inc dword [ebp - 0x10]
lea edx, [ebp - 0x130]
lea eax, [ebp - 8]
call fcn.004b9ba0
inc dword [ebp - 0x10]
mov eax, dword [eax]
pop edx
call fcn.0047a1a4
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
mov word [ebp - 0x1c], 8
lea ecx, [ebp - 0x130]
push ecx
call fcn.004adc40
pop ecx
mov word [ebp - 0x1c], 0x20
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004b9d30
mov eax, dword [ebp + 8]
mov word [ebp - 0x1c], 0x2c
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
pop eax
mov word [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40b994
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
mov eax, 0x4bff20
call fcn.004afb5c
mov dword [ebp - 0x30], 0x105
lea edx, [ebp - 0x138]
push edx
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
je 0x40ba12
mov word [ebp - 0x1c], 8
lea edx, [ebp - 0x138]
lea eax, [ebp - 4]
call fcn.004b9ba0
mov edx, eax
inc dword [ebp - 0x10]
mov eax, dword [ebp + 8]
call fcn.004b9d30
mov eax, dword [ebp + 8]
mov word [ebp - 0x1c], 0x14
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004b9d00
pop eax
mov word [ebp - 0x1c], 8
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x40ba61
mov word [ebp - 0x1c], 0x20
mov edx, 0x4bf8ee
lea eax, [ebp - 8]
call fcn.004b9ba0
inc dword [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004b9d30
mov eax, dword [ebp + 8]
mov word [ebp - 0x1c], 0x2c
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004b9d00
pop eax
mov word [ebp - 0x1c], 0x20
inc dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret