joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe1c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00e1c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e1c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e1c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e1c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xe1cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xe1cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe2e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe1cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe1cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x101b439
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2000000
push 0
push 0x1003694
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101b499
push edi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101b499
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x101b499
xor eax, eax
inc eax
jmp 0x101b49b
xor eax, eax
leave
ret 0x10

Function at 0x101b5bd
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x2000000
xor edi, edi
push edi
push 0x1003694
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101b633
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10036b0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101b62a
cmp dword [ebp - 0xc], 4
jne 0x101b62a
cmp dword [ebp - 0x10], edi
je 0x101b62a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x10222a0], edi
xor eax, eax
jmp 0x101b672
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x10222a0], edi
jge 0x101b66d
lea eax, [ebp - 0x34]
push eax
mov dword [0x10222a0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x101b66d
cmp word [ebp - 0x14], 5
jb 0x101b66d
call fcn.0101b4a4
test eax, eax
je 0x101b66d
emms
mov dword [0x10222a0], 1
mov eax, dword [0x10222a0]
pop edi
leave
ret

Function at 0x101b67a
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1022030]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x101b6c3
inc eax
jmp 0x101b700
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x101b6f4
cmp dword [ebp - 0x94], 4
ja 0x101b6f0
jne 0x101b700
cmp dword [ebp - 0x90], 0xa
jb 0x101b700
mov ecx, 0x55d
cmp word [ebp - 0x8c], cx
jb 0x101b700
xor eax, eax
jmp 0x101b700
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01015589
leave
ret
Function at 0x101b711
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1022030]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x101b76e
cmp dword [ebp - 0x88], 2
jne 0x101b76e
cmp dword [ebp - 0x94], 5
jb 0x101b76e
xor eax, eax
inc eax
jmp 0x101b770
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01015589
leave
ret

Function at 0x101bdb7
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [0x102aa38], eax
jne 0x101be51
push ebx
push esi
push edi
mov esi, 0x1003868
xor edi, edi
push esi
inc edi
push eax
mov dword [0x102aa38], edi
mov dword [ebp - 4], eax
call fcn.0101beaa
push esi
push 0
mov ebx, eax
call fcn.0101beaa
add esp, 0x10
mov esi, eax
test ebx, ebx
je 0x101be01
test esi, esi
je 0x101be01
cmp ebx, esi
jne 0x101be04
mov dword [ebp - 4], edi
test ebx, ebx
je 0x101be0f
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test esi, esi
je 0x101be1e
cmp esi, ebx
je 0x101be1e
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 4], 0
pop ecx
je 0x101be4e
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1003810
call esi
push 0x10037b0
call esi
push 0x1003758
call esi
push 0x1003728
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101bf34
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
mov dword [ebp - 0x14], eax
cmp edx, eax
jae 0x101c057
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, dword [ebp + 0x14]
jae 0x101c03b
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x101bf8d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
mov dword [ebp + 0xc], edx
cmp edx, dword [ebp - 0x14]
jb 0x101bf6b
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x101e50d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1022030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xdc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0xec]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ebx, ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebx + 8]
push eax
xor esi, esi
push esi
push esi
push 0x1011898
push ecx
mov dword [ebp - 0x100], ecx
mov dword [ebp - 0xf0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xf4], esi
cmp dword [ebx + 0x171c], esi
jbe 0x101e6d5
lea eax, [ebx + 0x55c]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x101e6b3
mov edi, dword [ebx + eax*4 + 0x2318]
mov eax, dword [ebp - 0xf4]
inc eax
push eax
push 0x1011884
lea eax, [ebp - 0xcc]
push 0x64
push eax
mov dword [ebp - 0x104], edi
call fcn.0101cbb2
add esp, 0x10
push esi
lea eax, [ebp - 0xf8]
push eax
push esi
push 0x20019
push esi
push esi
push esi
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x100]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101e6b3
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xdc]
push eax
push esi
push esi
push 0x101186c
push dword [ebp - 0xf8]
mov dword [ebp - 0x108], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xf0]
push eax
lea eax, [edi + 0x2b74]
push eax
push esi
push esi
push 0x1011854
push dword [ebp - 0xf8]
mov dword [ebp - 0xf0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
add edi, 0x43c
pop ecx
lea esi, [ebp - 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x101e673
push 4
pop ecx
lea edi, [ebp - 0xec]
lea esi, [ebp - 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x101e6a5
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0x104]
add eax, 0x2b78
push eax
push 0
push 0
push 0x1011830
push dword [ebp - 0xf8]
mov dword [ebp - 0xf0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf4]
add dword [ebp - 0xfc], 0x234
cmp eax, dword [ebx + 0x171c]
jb 0x101e58b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01015589
leave
ret 4
Function at 0x101e6eb
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push 2
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jl 0x101e81b
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call fcn.0101c6ea
mov dword [esi + 4], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x54]
mov ecx, esi
call fcn.0101cd4f
mov eax, dword [esi + 4]
cmp eax, 1
je 0x101e748
cmp eax, 3
je 0x101e748
cmp eax, 2
jne 0x101e75a
mov ecx, esi
call fcn.0101cedb
cmp eax, ebx
jge 0x101e75a
mov byte [esi + 0x21], 1
mov dword [esi + 0x24], eax
cmp dword [esi + 4], 1
jne 0x101e7ab
push ebx
push ebx
push 0x400
push dword [esi + 0xc]
mov byte [esi + 0x18], 1
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x101e79d
push ebx
push ebx
push dword [esi + 0xc]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x101e7a4
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0x18], bl
jne 0x101e776
jmp 0x101e7ab
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0x20
call sub.d3d9.dll_Direct3DCreate9
mov dword [esi + 0x2340], eax
cmp eax, ebx
jne 0x101e7c5
mov dword [esi + 0x24], 0x82000001
jmp 0x101e815
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
cmp eax, ebx
jge 0x101e7d5
mov dword [esi + 0x24], eax
jmp 0x101e815
mov ecx, esi
call fcn.0101d2d8
cmp eax, ebx
jl 0x101e7d0
xor edx, edx
cmp dword [esi + 0x233c], ebx
jbe 0x101e80e
lea ecx, [esi + 0x2318]
mov eax, dword [ecx]
cmp byte [eax + 0x2b71], bl
jne 0x101e819
cmp byte [eax + 0x2b73], bl
jne 0x101e819
inc edx
add ecx, 4
cmp edx, dword [esi + 0x233c]
jb 0x101e7f0
mov dword [esi + 0x24], 0x82000003
mov byte [esi + 0x21], 1
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x40697c
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.00406968
add esp, 0x208
pop ebx
ret

Function at 0x408e94
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 0x408ecd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404dd4
jmp 0x408ed6
mov eax, ebx
mov edx, esi
call fcn.00404c98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408ee0
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 0x408f02
movzx eax, word [esp]
jmp 0x408f04
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40968c
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 0x4097b1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004094a0
mov esi, eax
mov eax, dword [0x412c5c]
cmp byte [eax], 0
je 0x409759
mov eax, dword [0x412b98]
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_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409668]
call fcn.00405ad8
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_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4097cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409795
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x412b78]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415b48]
call fcn.00405b90
push eax
call sub.user32.dll_LoadStringW_1
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 0x4097b8
lea eax, [ebp - 4]
mov edx, dword [0x409668]
call fcn.00405ae4
ret
Function at 0x40a9e3
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.00404914
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 0x40aa06
mov eax, edi
add eax, eax
call fcn.00402e04
mov esi, eax
jmp 0x40aa08
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 0x40aa41
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 0x40aa2b
mov eax, esp
cmp esi, eax
je 0x40aa4e
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 0x40aa88
cmp bl, 0
je 0x40aa84
cmp bl, 0x41
jl 0x40aa7f
cmp bl, 0x5a
jg 0x40aa7f
or bl, 0x20
xor al, bl
inc esi
jmp 0x40aa63
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40a9c8

Function at 0x40b678
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b6be
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b60c
mov eax, dword [ebp - 4]
call fcn.00404d24
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 0x40b6c5
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40b8dc
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 0x40b973
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40b927
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.00404dd4
jmp 0x40b95d
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40b940
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404cec
jmp 0x40b953
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040b79c
mov ebx, eax
test esi, esi
je 0x40b953
dec esi
jmp 0x40b92e
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b97a
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40b984
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.004081f8
add esp, 0x208
pop ebx
ret

Function at 0x40b9b0
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.004081f8
add esp, 0x208
pop ebx
ret
Function at 0x40bb14
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 0x40bc4c
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 0x40bc36
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40bb71
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bc36
cmp dword [ebp - 0x14], 0
jne 0x40bb88
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404c98
mov bl, 1
jmp 0x40bc36
cmp dword [ebp - 0x14], 0x70000000
jb 0x40bb96
call fcn.004097f8
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00404dd4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004054ac
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 0x40bb3a
test eax, eax
jne 0x40bc36
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40bbe4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40bc36
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40bbec
dec esi
test esi, esi
je 0x40bbfb
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x40bbeb
cmp dword [ebp - 0x10], 7
jne 0x40bc06
test esi, esi
je 0x40bc06
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404f00
cmp dword [ebp - 0x10], 7
jne 0x40bc29
test esi, esi
je 0x40bc29
lea eax, [ebp - 4]
call fcn.004054ac
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c98
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc53
lea eax, [ebp - 4]
call fcn.00404c88
ret

Function at 0x40c690
Capabilities:
Hash data with crc32

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

Function at 0x40c6c4
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 0x40c6e7
call fcn.0040c690
push 1
push 0x417d98
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40c712
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 0x40c6ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40e224
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.0040e1d8
test al, al
jne 0x40e245
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40e291
xor eax, eax
push ebp
push 0x40e281
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d24
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 0x40e288
lea eax, [ebp - 0xc]
call fcn.0040e214
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e4d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40e4d8
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40e5c5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040b9dc
mov edx, dword [ebp - 8]
mov ecx, 0x40e5e0
xor eax, eax
call fcn.0040e3b4
push 0
mov eax, dword [ebp - 4]
call fcn.00404d24
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x40e593
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40e4f2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0040dfdc
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.00407ec8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040bf64
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0040dfac
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406d3c]
call fcn.00409804
call fcn.00403f88
jmp 0x40e4f2
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e5cc
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404c90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404c90
ret

Function at 0x40e5f4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x412cac]
cmp dword [eax], 2
jne 0x40e65c
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40e617
xor eax, eax
jmp 0x40e66b
lea eax, [esp + 8]
push eax
push 0x40e670
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 0x40e65c
xor eax, eax
jmp 0x40e66b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret