joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b7a1
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x10041024]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.1000de50
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.10013dd9
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.10013dd9
push 0x10038198
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.10013dd9
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.1000de50
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b846
sub ecx, edx
cmp ecx, 6
jbe 0x1000b86d
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.10013dd9
pop ecx
pop ecx
test eax, eax
jne 0x1000b86d
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000b874
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10036ae3
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.10013dd9
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.1000d8d0
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000b8ee
mov ax, word [0x100381c4]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000be90
add esp, 0x824
ret

Function at 0x10013dd9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10013de8
pop dword [ebp - 0x34]
mov eax, 0x10013de8
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x439d2
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0xda969552
sub ecx, 0xda96440a
xor edx, edx
add edx, eax
mov ebx, 0x10046000
add ebx, dword [ebp - 0x34]
mov esi, 0xfd4e17e1
mov dword [ebp - 0x18], 0xafa0b6ed
mov edi, dword [ebx]
xor dword [ebp - 0x2c], eax
sub edi, esi
xor dword [ebp - 0x10], edx
mov dword [edx], edi
add edx, 4
add ebx, 0xc7a5434a
sub ebx, 0xc7a54346
loop 0x10013e33
add eax, 0xd572203c
sub eax, 0xd570e849
mov ebx, eax
add eax, 5
mov ecx, 0x9c4d6e23
sub ecx, 0x8c4d6e23
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x401080
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x4010b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401191
push 0xf01ff
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x4010df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x401191
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4010f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x401183
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4010ab
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
jmp 0x40116e
mov eax, dword [ebp - 8]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jb 0x401137
mov ecx, 0x2710
cmp eax, ecx
jbe 0x401139
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4011a9
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xc], eax
jbe 0x401164
call edi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
jmp 0x40116e
call edi
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 8]
ja 0x4011a2
cmp dword [ebp - 0x1c], 2
je 0x40111b
or eax, 0xffffffff
mov edi, dword [ebp - 0x1c]
sub edi, 4
neg edi
sbb edi, edi
and edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret
mov eax, 0x41d
jmp 0x401177
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401177
Function at 0x402305
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4373c8
call fcn.00412eb2
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x4023ff
cmp byte [esi + 0x3d], bl
je 0x4023ff
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x40233f
xor al, al
jmp 0x402401
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00402c1e
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x40236c
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x402397
sub eax, 1
je 0x40239b
dec eax
sub eax, 1
je 0x4023ed
xor bl, bl
jmp 0x4023ef
mov byte [esi + 0x3d], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x4023ab
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x4023d3
cmp eax, 0x10
jae 0x4023ba
lea edi, [ebp - 0x28]
push dword [esi + 0x4c]
push ebx
push 1
push edi
call fcn.0041b740
add esp, 0x10
cmp ebx, eax
jne 0x402393
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x3d], 0
je 0x4023ed
test ebx, ebx
jne 0x402360
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00402a84
jmp 0x40235a
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402955
mov al, bl
jmp 0x402401
mov al, 1
call fcn.00412e6d
ret
Function at 0x405250
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4052fb
push esi
push edi
push 0x105
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.00414350
mov edi, ebx
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40528d
sub edi, ecx
mov eax, esi
test edi, edi
jle 0x4052f9
cmp byte [ebx + eax], 0x2f
jne 0x4052a6
mov byte [ebx + eax], 0x5c
inc eax
cmp eax, edi
jl 0x40529c
test edi, edi
jle 0x4052f9
lea eax, [ebx + esi]
push 0x5c
push eax
call fcn.00415f90
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4052f3
sub esi, ebx
lea eax, [ebp - 0x10c]
push esi
push ebx
push eax
call fcn.004158d0
add esp, 0xc
test esi, esi
jle 0x4052f0
cmp byte [ebp + esi - 0x10d], 0x3a
je 0x4052f0
lea eax, [ebp - 0x10c]
push eax
call fcn.0041a831
pop ecx
inc esi
jmp 0x4052f5
mov esi, edi
cmp esi, edi
jl 0x4052af
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret

Function at 0x405bfb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
or esi, 0xffffffff
cmp dword [ebp + 8], 0
je 0x405d11
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x405d10
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x405d0f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.004188c5
mov dword [ebp + 8], eax
pop ecx
test eax, eax
je 0x405d06
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405cfd
mov eax, dword [ebp + 8]
push edi
push eax
mov byte [eax + ebx], 0
call fcn.004160c0
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x405cfd
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x405c92
sub edi, edx
add ecx, edi
jmp 0x405ca8
cmp al, 0x20
je 0x405ca7
cmp al, 9
jne 0x405cae
inc ecx
mov al, byte [ecx]
test al, al
jne 0x405c9f
mov edx, ecx
jmp 0x405cc1
mov al, byte [ecx]
cmp al, 0xd
je 0x405cc8
cmp al, 0xa
je 0x405cc8
test al, al
je 0x405cc8
inc ecx
cmp byte [ecx], 0
jne 0x405cb2
jmp 0x405ccb
mov byte [ecx], 0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405cd0
mov edi, dword [ebp + 0x10]
sub ecx, esi
test edi, edi
je 0x405cfb
mov esi, dword [ebp + 0x14]
dec esi
cmp ecx, esi
jg 0x405cea
mov esi, ecx
push esi
push edx
push edi
call fcn.0041bc30
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x405cfd
mov esi, ecx
push dword [ebp + 8]
call fcn.004188c0
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4063eb
Capabilities:
Get system information on windows

Disassembly:
push 0x10c
mov eax, 0x4377e0
call fcn.00412eb2
mov esi, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebp + 8]
mov ebx, 0x9c
push ebx
push eax
mov byte [esi], al
mov byte [edi], al
lea eax, [ebp - 0xf4]
push eax
call fcn.00414350
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xf4], ebx
push eax
call fcn.004077f1
add esp, 0x10
test eax, eax
jne 0x406454
lea eax, [ebp - 0xf4]
mov dword [ebp - 0xf4], 0x94
push eax
call fcn.004077f1
pop ecx
test eax, eax
jne 0x406454
xor eax, eax
jmp 0x4065a1
push 0x43917c
push 0x438344
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40647a
lea ecx, [ebp - 0x118]
push ecx
call eax
jmp 0x406487
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0xe4], 2
jne 0x40644d
push 0xf
xor ebx, ebx
pop eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x58], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
cmp byte [ebp - 0x5a], 1
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
jne 0x406503
call fcn.00407092
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00407eb9
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402955
cmp dword [ebp - 0xf0], 6
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x28]
push eax
jb 0x4064fc
call fcn.00406cb2
jmp 0x406545
call fcn.0040677c
jmp 0x406545
call fcn.00406c35
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00407eb9
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402955
cmp dword [ebp - 0xf0], 6
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x28]
push eax
jb 0x406540
call fcn.004068bb
jmp 0x406545
call fcn.004065a7
add esp, 0xc
lea ecx, [ebp - 0x40]
push eax
call fcn.00407eb9
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00402955
cmp dword [ebp - 0x44], 0x10
mov ecx, dword [ebp - 0x58]
jae 0x406568
lea ecx, [ebp - 0x58]
mov al, byte [ecx]
inc ecx
mov byte [edi], al
inc edi
test al, al
jne 0x406568
cmp dword [ebp - 0x2c], 0x10
mov ecx, dword [ebp - 0x40]
jae 0x40657e
lea ecx, [ebp - 0x40]
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x40657e
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.00402955
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00402955
xor eax, eax
inc eax
call fcn.00412e6d
ret
Function at 0x407270
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x9c
lea eax, [ebp - 0xa0]
push edi
xor esi, esi
push esi
push eax
call fcn.00414350
add esp, 0xc
mov dword [ebp - 0xa0], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xa0]
push eax
call edi
test eax, eax
jne 0x4072cd
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x94
push eax
call edi
test eax, eax
je 0x407304
cmp dword [ebp - 0x9c], 6
jae 0x4072e8
cmp dword [ebp - 0x9c], 5
jne 0x407302
cmp dword [ebp - 0x98], 2
jne 0x407302
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0xc4], 9
jne 0x407302
xor esi, esi
inc esi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00412e47
mov esp, ebp
pop ebp
ret

Function at 0x4077f1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test esi, esi
je 0x40782d
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, eax
test edi, edi
je 0x40782d
lea ecx, [esi + 4]
cmp dword [ecx], 6
ja 0x40781c
jne 0x40782d
cmp dword [esi + 8], 2
jb 0x40782d
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
push ecx
call fcn.00407314
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x408562
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x1c]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x1c]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
mov dword [edi], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4085dd
push dword [edi]
push esi
push dword [ebp + 0x18]
call fcn.00414350
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4085cc
push 0xfffffffffffffffe
pop eax
jmp 0x4085e0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
xor eax, eax
jmp 0x4085e0
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40aaa2
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x40ab40
push ebx
push 0x43d288
push 0x7d0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40ab3d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ab3d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40ab3d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ab3d
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push ebx
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ab36
cmp dword [ebp - 4], ebx
jne 0x40ab36
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b247
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x94
lea eax, [ebp - 0xa8]
push esi
xor edi, edi
push edi
push eax
call fcn.00414350
add esp, 0xc
mov dword [ebp - 0xa8], esi
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b2ec
cmp dword [ebp - 0x98], 2
jne 0x40b2ec
lea eax, [ebp - 0xac]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b2fd
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeShutdownPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push edi
push edi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push edi
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call esi
test eax, eax
jne 0x40b307
push edi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x40b305
call esi
jmp 0x40b307
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b307
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00412e47
mov esp, ebp
pop ebp
ret

Function at 0x40b383
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x108]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 0x104
push edi
push 0
push eax
call fcn.00414350
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x40b43c
cmp eax, 0x103
jae 0x40b43c
cmp byte [ebp - 0x108], 0
je 0x40b43c
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b3ed
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x5c
jne 0x40b40c
dec ecx
cmp ecx, edi
jae 0x40b46f
mov byte [ebp + ecx - 0x108], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b43c
test al, 0x10
je 0x40b43c
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b429
mov ax, word [0x438354]
mov word [edi], ax
jmp 0x40b44e
push edi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00414350
add esp, 0xc
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
call fcn.0040159d
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret
call fcn.00412d6b
int3
Function at 0x40b475
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40b57a
cmp byte [esi], 0
je 0x40b57a
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40b57a
push dword [ebp + 0x10]
push 0
push ebx
call fcn.00414350
add esp, 0xc
lea eax, [ebp - 8]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp + 8], eax
test eax, eax
jne 0x40b4c1
inc eax
jmp 0x40b57d
push eax
call fcn.004188c5
mov edi, eax
pop ecx
test edi, edi
jne 0x40b4d6
push 2
pop eax
jmp 0x40b57d
push dword [ebp + 8]
push 0
push edi
call fcn.00414350
add esp, 0xc
push edi
push dword [ebp + 8]
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40b4f8
push 3
jmp 0x40b56e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp dword [ebp + 8], 0
jbe 0x40b56c
test eax, eax
je 0x40b56c
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push ebx
push 0x43b5b8
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push edi
call fcn.0040b584
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40b559
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push ebx
push 0x43b5c8
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push edi
call fcn.0040b584
add esp, 0x18
mov esi, eax
push edi
call fcn.004188c0
neg esi
pop ecx
sbb esi, esi
and esi, 2
lea eax, [esi - 2]
jmp 0x40b57d
push 4
pop esi
push edi
call fcn.004188c0
pop ecx
mov eax, esi
jmp 0x40b57d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40baad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov dword [esi], ecx
cmp dword [ebp + 0xc], ecx
je 0x40bb3a
cmp dword [ebp + 0x10], ecx
je 0x40bb3a
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40bb3a
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x40bb3a
lea eax, [ebp + 0x1c]
push eax
push 0x20019
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bb3d
push dword [esi]
push eax
push ebx
call fcn.00414350
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x1c]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40bb2c
mov eax, ebx
jmp 0x40bb3d
mov eax, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
xor eax, eax
jmp 0x40bb3d
push 6
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb6e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x28]
xor esi, esi
mov dword [ebp - 0x2c], esi
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
pop edi
push edi
push esi
push eax
call fcn.00414350
add esp, 0xc
mov dword [ebp - 0x70], edi
mov eax, 0xfffff830
mov dword [ebp - 0x44], 5
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
push 7
pop eax
push 0xc
mov word [ebp - 0x40], ax
pop eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x18], esi
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40bbf2
or esi, 0xffffffff
jmp 0x40bc58
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], esi
je 0x40bc4f
mov edi, esi
mov dword [ebp - 4], 0x103
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40bc4c
cmp dword [ebp - 4], 0x103
jne 0x40bc4f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x14]
inc edi
test eax, eax
jle 0x40bc3c
add eax, eax
cmp eax, edi
jl 0x40bc47
cmp dword [ebp - 4], 0x103
je 0x40bc09
jmp 0x40bc4f
push 2
pop esi
jmp 0x40bc4f
xor esi, esi
inc esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret