joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411d9d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x411dac
pop dword [ebp - 0x20]
mov eax, 0x2d0017b0
add eax, 0xd34105fc
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3c78a
push 0
mov eax, 0xe917ee6c
sub eax, 0xe8d59c54
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x6ccb5c9e
sub ecx, 0x6ccb1c3b
xor esi, esi
add esi, eax
mov edx, 0xfe6938a5
sub edx, 0xfe25e4a5
add edx, dword [ebp - 0x20]
mov ebx, 0xc8f93956
sub ebx, 0x835b81db
add dword [ebp - 8], esi
mov edi, dword [edx]
xor dword [ebp - 0x18], 0x7fe339f
sub edi, ebx
mov dword [ebp - 4], 0xd38451c
mov dword [esi], edi
xor dword [ebp - 0x18], 0x667e07d0
add esi, 0xfd999b51
sub esi, 0xfd999b4d
add edx, 4
loop 0x411e0d
add eax, 0xf45f
mov ebx, eax
add eax, 0x4d0c8691
sub eax, 0x4d0c868c
mov ecx, 0x41519fe6
sub ecx, 0x41119fe6
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x41251c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x210], esi
call fcn.00443420
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
push 0x408aa8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4125d3
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x408924
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
lea eax, [ebp - 0x20c]
jne 0x4125d9
push 0x408bb4
push 0x104
push eax
call fcn.0043f01f
add esp, 0xc
jmp 0x4125e0
lea eax, [ebp - 0x20c]
push eax
call fcn.00414dbd
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043e052
leave
ret
Function at 0x4125ff
Capabilities:
Check os version

Disassembly:
push 0x138
mov eax, 0x46eda5
call fcn.0045f4d4
mov ecx, dword [0x481200]
push 0x408bd8
call fcn.0042d50a
mov esi, 0x114
push esi
lea eax, [ebp - 0x124]
push 0
push eax
mov byte [ebp - 0x125], 0
call fcn.00443420
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41267e
cmp dword [ebp - 0x114], 2
jne 0x41267e
cmp dword [ebp - 0x120], 5
jne 0x412675
cmp dword [ebp - 0x11c], 1
jae 0x412677
cmp dword [ebp - 0x120], 5
jbe 0x41267e
mov byte [ebp - 0x125], 1
call fcn.0041251c
mov ecx, dword [0x481200]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x41279c
push 0x408c24
call fcn.0042d50a
push 0x409388
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x41278b
xor eax, eax
lea edi, [ebp - 0x140]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x140], 0x14
call ecx
mov edi, dword [ebp + 8]
mov esi, dword [0x481200]
push ebx
push dword [ebp + 0xc]
push edi
push 0x408c48
call fcn.0042d7ea
push dword [ebp - 0x134]
mov esi, dword [0x481200]
push dword [ebp - 0x138]
push dword [ebp - 0x13c]
push 0x408c74
call fcn.0042d7ea
mov eax, dword [ebp - 0x138]
add esp, 0x20
cmp dword [ebp - 0x13c], edi
setb dl
cmp dword [ebp - 0x13c], edi
jne 0x412739
cmp eax, dword [ebp + 0xc]
jae 0x412739
mov cl, 1
jmp 0x41273b
xor cl, cl
cmp dword [ebp - 0x13c], edi
jne 0x412754
cmp eax, dword [ebp + 0xc]
jne 0x412754
cmp dword [ebp - 0x134], ebx
jae 0x412754
mov al, 1
jmp 0x412756
xor al, al
test dl, dl
jne 0x412776
test cl, cl
jne 0x412776
test al, al
jne 0x412776
mov ecx, dword [0x481200]
push 0x408cd4
call fcn.0042d50a
xor edi, edi
jmp 0x41278e
mov ecx, dword [0x481200]
push 0x408c94
call fcn.0042d50a
xor edi, edi
inc edi
jmp 0x41278e
push 2
pop edi
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4127a9
push 0x408d10
call fcn.0042d50a
push 2
pop edi
cmp byte [ebp - 0x125], 0
je 0x41280e
test edi, edi
je 0x41280e
cmp dword [ebp + 8], 2
jne 0x41280e
push 0x828
call fcn.0043e592
pop ecx
mov dword [ebp - 0x12c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4127f1
push 0x408d50
mov eax, 0x1003
push eax
push eax
push dword [ebp - 0x12c]
call fcn.00411c0e
add esp, 0x10
jmp 0x4127f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x144], eax
push 0x473bd4
lea eax, [ebp - 0x144]
push eax
call fcn.00443a5e
mov esi, dword [0x481200]
push edi
push 0x408e68
call fcn.0042d7ea
pop ecx
pop ecx
mov eax, edi
call fcn.0045f566
ret 8
Function at 0x412a23
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x46bd08
call fcn.0045f461
push 0x44
xor esi, esi
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00443420
add esp, 0xc
push 0xc
pop eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push 8
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x84], 0x44
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, esi
je 0x412abf
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x40]
call esi
mov eax, dword [ebp - 0x10]
call fcn.0045f54d
ret 4
push 0x828
call fcn.0043e592
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x412af0
push dword [ebp + 8]
mov eax, 0x1fff
push 0x408f60
push eax
push eax
push dword [ebp - 0x14]
call fcn.00411c0e
add esp, 0x14
jmp 0x412af2
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], eax
push 0x473bd4
lea eax, [ebp - 0x18]
push eax
call fcn.00443a5e
int3
Function at 0x4154a8
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
add edi, 0x3a98
jmp 0x41553f
cmp dword [esi + 4], 1
je 0x415562
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, eax
jb 0x41554e
mov eax, dword [esi + 4]
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
je 0x415500
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], ecx
jmp 0x415515
cmp dword [ebp - 0xc], eax
je 0x41550d
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x14]
jmp 0x415515
mov eax, dword [esi + 0x14]
cmp eax, dword [ebp - 4]
jb 0x41555f
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x18]
push 0xa
xor edx, edx
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x41552d
mov eax, ecx
mov ecx, 0x2710
cmp eax, ecx
jbe 0x415538
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp + 8]
call ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x4154d7
jmp 0x415562
and dword [ebp - 8], 0
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x415562
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 4
Function at 0x415570
Capabilities:
Query service status
Stop service

Disassembly:
push 0x15c
mov eax, 0x46c891
call fcn.0045f4d4
mov edi, dword [0x481200]
xor ebx, ebx
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a278
call fcn.004132cd
mov dword [ebp - 4], ebx
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
mov esi, 0x114
push esi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.00443420
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41560f
cmp dword [ebp - 0x114], 2
je 0x41560f
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a2d0
call fcn.004132cd
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
mov eax, esi
jmp 0x4157a3
push 1
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x128], esi
cmp esi, ebx
jne 0x415654
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a368
call fcn.004132cd
mov dword [ebp - 4], 2
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
xor eax, eax
jmp 0x4157a3
push 0x24
push 0x40a3e0
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x130], eax
cmp eax, ebx
jne 0x415692
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x128], esp
push 0x40a3f8
call fcn.004132cd
mov dword [ebp - 4], 3
jmp 0x415642
lea ecx, [ebp - 0x168]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
jne 0x4156d1
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a478
call fcn.004132cd
mov dword [ebp - 4], 4
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
jmp 0x41578b
cmp dword [ebp - 0x164], 1
je 0x415760
lea eax, [ebp - 0x14c]
push eax
push 1
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebx
jne 0x415716
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a4f8
call fcn.004132cd
mov dword [ebp - 4], 5
jmp 0x4156c1
push dword [ebp - 0x130]
lea esi, [ebp - 0x14c]
call fcn.004154a8
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
test eax, eax
jne 0x41574d
push 0x40a570
call fcn.004132cd
mov dword [ebp - 4], 6
jmp 0x4156c1
push 0x40a5f0
call fcn.004132cd
mov dword [ebp - 4], 7
jmp 0x41577d
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x40a660
call fcn.004132cd
mov dword [ebp - 4], 8
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
xor ebx, ebx
inc ebx
push dword [ebp - 0x130]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x128]
call esi
mov eax, ebx
call fcn.0045f566
ret
Function at 0x415ed2
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [0x481200]
push 0x40a928
call fcn.0042d50a
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x418763
push 0
push 0
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x6c], eax
test eax, eax
jne 0x415f20
push esi
mov esi, dword [0x481200]
push 0x40a970
call fcn.0042d74e
mov byte [ebp - 1], 0
pop esi
mov eax, dword [ebp - 8]
mov ecx, dword [0x481200]
push 0x40a9b0
mov dword [edi + 0x70], eax
call fcn.0042d50a
mov al, byte [ebp - 1]
leave
ret

Function at 0x41756f
Capabilities:
Reference sql statements

Disassembly:
push 0x4c
mov eax, 0x46d372
call fcn.0045f50f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
xor ebx, ebx
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ebx
lea esi, [eax + 0xcc]
push dword [eax + 0xbc]
mov eax, esi
call fcn.004130fc
mov dword [ebp - 0x3c], eax
push 0x40b618
lea ecx, [ebp - 0x30]
call fcn.004132cd
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4175c8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x3c]
mov eax, esi
call fcn.00413115
mov edi, eax
cmp edi, ebx
je 0x41763b
push 0x828
call fcn.0043e592
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x417624
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4175ff
lea eax, [ebp - 0x2c]
push edi
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x3c]
push 0x40aa48
push 0x654
push 0x19dc
push dword [ebp - 0x40]
call fcn.00411c0e
add esp, 0x20
jmp 0x417626
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], eax
push 0x473bd4
lea eax, [ebp - 0x50]
push eax
call fcn.00443a5e
push ebx
push dword [ebp - 0x38]
mov eax, esi
call fcn.00413131
mov edi, eax
cmp edi, ebx
je 0x417694
push 0x828
call fcn.0043e592
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x417681
push edi
push ebx
push dword [ebp - 0x38]
push 0x40aaf8
push 0x654
push 0x19dc
push eax
call fcn.00411c0e
add esp, 0x1c
jmp 0x417683
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], eax
push 0x473bd4
lea eax, [ebp - 0x54]
jmp 0x417635
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
mov eax, esi
call fcn.00413174
test eax, eax
jne 0x4176dc
push 1
push dword [ebp - 0x44]
mov eax, esi
call fcn.00413190
cmp eax, ebx
je 0x4176d0
mov byte [ebp - 0x31], 1
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00413343
push 0x409d00
mov ecx, dword [ebp - 0x40]
call fcn.00413343
push dword [ebp - 0x44]
mov eax, esi
call fcn.00413052
jmp 0x417694
cmp dword [ebp - 0x38], ebx
je 0x4176eb
push dword [ebp - 0x38]
mov eax, esi
call fcn.00413052
cmp dword [ebp - 0x3c], ebx
je 0x4176fa
push dword [ebp - 0x3c]
mov eax, esi
call fcn.00413052
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00411dad
mov al, byte [ebp - 0x31]
call fcn.0045f57a
ret 4
Function at 0x418dec
Capabilities:
Get common file path

Disassembly:
push 0x294
mov eax, 0x46ec8e
call fcn.0045f4d4
mov ecx, dword [0x481200]
push 0x40c168
call fcn.0042d50a
xor eax, eax
push 0x62
mov word [ebp - 0x74], ax
xor edi, edi
lea eax, [ebp - 0x72]
push edi
push eax
call fcn.00443420
xor eax, eax
push 0x208
mov word [ebp - 0x280], ax
lea eax, [ebp - 0x27e]
push edi
push eax
call fcn.00443420
add esp, 0x18
mov esi, 0x105
push esi
lea eax, [ebp - 0x280]
push eax
mov dword [ebp - 0x2a0], 0x32
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x418ef5
cmp eax, esi
ja 0x418ef5
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x29c]
call fcn.004132cd
mov dword [ebp - 4], edi
push 0x40c1d0
lea ecx, [ebp - 0x29c]
call fcn.00413343
cmp dword [ebp - 0x284], 8
mov eax, dword [ebp - 0x298]
jae 0x418ea4
lea eax, [ebp - 0x298]
push edi
push edi
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push eax
call sub.msi.dll_MsiMessageBoxW
test eax, eax
mov eax, dword [ebp - 0x298]
je 0x418efd
cmp dword [ebp - 0x284], 8
jae 0x418ed0
lea eax, [ebp - 0x298]
mov esi, dword [0x481200]
push eax
push 0x40c1f0
call fcn.0042d7ea
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x29c]
call fcn.00411dad
xor al, al
call fcn.0045f566
ret
cmp dword [ebp - 0x284], 8
jae 0x418f0c
lea eax, [ebp - 0x298]
mov esi, dword [0x481200]
lea ecx, [ebp - 0x74]
push ecx
push eax
push 0x40c260
call fcn.0042d7ea
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.00413ccf
mov ecx, dword [0x481200]
push 0x40c288
call fcn.0042d50a
or dword [ebp - 4], 0xffffffff
push edi
push 1
lea ecx, [ebp - 0x29c]
call fcn.00411dad
mov al, 1
jmp 0x418ef7
Function at 0x41a052
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, eax
call fcn.00419f7b
movzx eax, word [esi + 4]
push 2
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [esi + 0x234], eax
test eax, eax
jne 0x41a083
xor eax, eax
jmp 0x41a1cd
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi + 0x238], eax
test eax, eax
je 0x41a07c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + 0x23c], eax
test eax, eax
je 0x41a07c
push dword [esi + 0x234]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + 0x240]
and dword [ecx], 0
push eax
push ecx
push dword [esi + 0x23c]
mov dword [esi + 0x244], eax
call fcn.004115b0
mov dword [esi + 0x220], eax
test eax, eax
je 0x41a07c
push eax
lea ebx, [ebp - 0x28]
call fcn.004113f9
mov eax, dword [ebp - 0x24]
push dword [esi + 0x220]
mov dword [esi + 0x254], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x258], eax
call fcn.00411579
mov dword [esi + 0x214], eax
test eax, eax
je 0x41a07c
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ebx, ebx
inc ebx
cmp word [eax + 0xe], 0x18
je 0x41a141
mov dword [esi + 0x228], ebx
mov ecx, dword [eax]
xor edx, edx
add ecx, eax
cmp dword [eax + 0x20], edx
jle 0x41a141
mov word [ecx], dx
inc ecx
inc ecx
inc edx
cmp edx, dword [eax + 0x20]
jl 0x41a136
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x244]
mov eax, dword [esi + 0x23c]
mov dword [esi + 0x22c], ebx
call fcn.00411341
cmp dword [ebp - 0x18], 0
mov dword [esi + 0x218], eax
je 0x41a17e
test eax, eax
jne 0x41a182
call fcn.00419f7b
jmp 0x41a07c
test eax, eax
je 0x41a1cb
cmp dword [esi + 0x230], 0
jne 0x41a1cb
push dword [esi + 0x214]
push eax
call fcn.00411891
mov dword [esi + 0x21c], eax
test eax, eax
je 0x41a174
lea eax, [esi + 0x248]
push eax
push dword [esi + 0x250]
push dword [esi + 0x24c]
push dword [esi + 0x214]
push dword [esi + 0x218]
call fcn.004117d4
mov dword [esi + 0x224], eax
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x41a564
Capabilities:
Check os version
Shutdown system

Disassembly:
push 0x13c
mov eax, 0x46a1a2
call fcn.0045f50f
xor esi, esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], 0x114
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a65e
push 2
pop ebx
cmp dword [ebp - 0x118], ebx
jne 0x41a67b
lea eax, [ebp - 0x130]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41a616
lea eax, [ebp - 0x138]
push eax
push 0x40c448
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x140], eax
xor edi, edi
inc edi
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x13c], ebx
push esi
push esi
push esi
lea eax, [ebp - 0x148]
push eax
push esi
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
jmp 0x41a619
xor edi, edi
inc edi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x124], 5
ja 0x41a640
jne 0x41a62f
cmp dword [ebp - 0x120], esi
ja 0x41a640
push edi
push edi
push esi
push 0x409384
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
jmp 0x41a654
push SysReAllocString
push edi
push edi
push esi
push 0x409384
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov dword [ebp - 0x12c], eax
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x12c], esi
setne al
call fcn.0045f57a
ret
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jmp 0x41a664
Function at 0x41a876
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x42c], eax
call fcn.0043f64a
push eax
call fcn.0043f6a0
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00443420
xor eax, eax
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push edi
push eax
call fcn.00443420
call fcn.0043f6b7
push 2
push ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], edi
call fcn.0043f6de
add esp, 0x28
test eax, eax
je 0x41a91c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push ebx
call fcn.0043f6de
pop ecx
pop ecx
test eax, eax
je 0x41a91c
xor eax, eax
jmp 0x41a9fe
push ebx
mov esi, 0x105
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0043e66e
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [ebp - 0x42c]
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0043f01f
add esp, 0xc
mov eax, dword [ebp - 0x420]
and eax, 0x8000ffff
jns 0x41a969
dec eax
or eax, 0xffff0000
inc eax
push 0x40cbd4
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x41c]
push eax
push 0x40c470
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0043f0c4
inc dword [ebp - 0x420]
inc dword [ebp - 0x424]
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0043f6de
add esp, 0x24
test eax, eax
jne 0x41a9bc
cmp dword [ebp - 0x424], 0x10000
jl 0x41a955
push 0x104
push edi
push dword [ebp - 0x428]
call fcn.00443420
lea eax, [ebp - 0x210]
push eax
push 0x103
push dword [ebp - 0x428]
call fcn.0043e66e
lea eax, [ebp - 0x210]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x41a9f0
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043e052
leave
ret 8

Function at 0x41aa13
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47c144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call fcn.0043f6de
pop ecx
pop ecx
test eax, eax
jne 0x41aa3f
xor eax, eax
inc eax
jmp 0x41aab1
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00443420
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0043e66e
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.0043efa9
add esp, 0x20
test eax, eax
je 0x41aaaf
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x210]
push eax
call fcn.0041aa13
test eax, eax
je 0x41aaaf
push 0
push esi
call fcn.0043f6de
pop ecx
pop ecx
test eax, eax
je 0x41aa3a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41aab1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0043e052
leave
ret 4