joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56133c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5613ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x5613e9
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.004084c8
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x5613e9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x561410
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5613e9
cmp dword [ebp - 0x14], 0x34
jne 0x5613e9
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x561406
lea eax, [ebp - 0x1c]
call fcn.004076f8
ret

Function at 0x561480
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x561492
add esp, 0xfffffff0
call fcn.00406060
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00560c44
test al, al
jne 0x5614ce
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x5c1e0c]
mov dl, 1
mov eax, dword [0x55f6ac]
call fcn.004278d0
call fcn.00406dd4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00408344
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x561505
mov ecx, dword [0x5c1fc0]
mov dl, 1
mov eax, dword [0x55f6ac]
call fcn.00427800
call fcn.00406dd4
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00408060
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00408048
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00408344
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.00429a2c
mov eax, dword [ebp - 4]
call fcn.00561eb8
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x56155c
call fcn.004060b8
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x56340c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5634b0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.004084c8
push 0
mov eax, dword [ebp - 0x10]
call fcn.00408344
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408344
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004084c8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00408344
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408344
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x56349a
lea eax, [ebp - 0x10]
call fcn.0056b904
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00407ad8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5634b7
lea eax, [ebp - 0x10]
call fcn.004076f8
ret

Function at 0x5634f8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x563512
xor edx, edx
mov dword [eax], edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004084c8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00408344
push eax
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 0xa]
cmp byte [ebp - 0xa], 0
jne 0x56356a
mov eax, dword [ebp - 8]
call fcn.004076f8
jmp 0x563583
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004084c8
cmp byte [ebp - 9], 0
je 0x563583
mov eax, dword [ebp - 8]
call fcn.0056340c
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x56358c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004076f8
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5635d6
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004084c8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408344
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, dword [ebp - 4]
call fcn.0056b904
pop ecx
pop ecx
pop ebp
ret
Function at 0x5635dc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x101
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004084c8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408344
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x563619
mov eax, dword [ebp - 4]
call fcn.0056b904
jmp 0x563621
mov eax, dword [ebp - 4]
call fcn.004076f8
pop ecx
pop ecx
pop ebp
ret

Function at 0x5640e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
push 0x564148
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x564137
push 0x564164
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040f838
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56412c
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x10]
mov byte [ebp - 5], 1
jmp 0x564140
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
jmp 0x564140
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x5672d8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5674d8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.0056de18
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x5c0b78], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5c0b7c], eax
mov eax, dword [ebp - 0x24]
mov dword [0x5c0b80], eax
mov eax, dword [0x5c26ac]
cmp dword [eax], 2
sete byte [0x5c031d]
push 0x5674e4
call sub.kernel32.dll_GetModuleHandleW_2
lea edx, [ebp - 4]
call fcn.00560c84
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x5c031d], 0
jne 0x567367
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0056133c
test al, al
je 0x567367
mov eax, dword [ebp - 0x4c]
mov dword [0x5c8a60], eax
jmp 0x56736e
xor eax, eax
mov dword [0x5c8a60], eax
call fcn.00563c1c
and eax, 0x7f
cmp eax, 0x14
ja case.0x56737f.0
jmp dword [eax*4 + 0x567386]
mov byte [0x5c0318], 1
jmp case.0x56737f.0
mov byte [0x5c0319], 1
jmp case.0x56737f.0
mov byte [0x5c031a], 1
jmp case.0x56737f.0
mov byte [0x5c031b], 1
jmp case.0x56737f.0
mov byte [0x5c031c], 1
jmp case.0x56737f.0
mov byte [0x5c031e], 1
mov byte [0x5c031f], 1
jmp case.0x56737f.0
mov byte [0x5c031e], 1
mov byte [0x5c0320], 1
jmp case.0x56737f.0
mov byte [0x5c031e], 1
mov byte [0x5c0320], 1
mov byte [0x5c0321], 1
jmp case.0x56737f.0
mov byte [0x5c0322], 1
jmp case.0x56737f.0
mov byte [0x5c0323], 1
jmp case.0x56737f.0
mov byte [0x5c0324], 1
jmp case.0x56737f.0
mov byte [0x5c0325], 1
jmp case.0x56737f.0
mov byte [0x5c0326], 1
jmp case.0x56737f.0
mov byte [0x5c0327], 1
jmp case.0x56737f.0
mov byte [0x5c0328], 1
jmp case.0x56737f.0
mov byte [0x5c0329], 1
jmp case.0x56737f.0
mov byte [0x5c032a], 1
jmp case.0x56737f.0
mov byte [0x5c032b], 1
jmp case.0x56737f.0
mov byte [0x5c032c], 1
jmp case.0x56737f.0
mov byte [0x5c032d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5674df
lea eax, [ebp - 4]
call fcn.004076f8
ret

Function at 0x56ad8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56adf7
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0x14]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, 7
call fcn.004083f0
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00420e1c
mov word [ebp - 6], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56adfe
lea eax, [ebp - 0x18]
call fcn.004076f8
ret
Function at 0x56d558
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x56d56a
add esp, 0xfffffff0
call fcn.00406060
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00405a24
mov eax, dword [ebp - 4]
add eax, 0xc
mov edx, dword [ebp + 8]
call fcn.00407ad8
mov eax, dword [ebp + 8]
call fcn.00408344
push eax
xor eax, eax
mov al, byte [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateMutexW_1
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x56d5c9
mov ecx, dword [0x5c244c]
mov dl, 1
mov eax, dword [0x56d040]
call fcn.00572104
call fcn.00406dd4
call sub.kernel32.dll_GetLastError_2
cmp eax, 0xb7
sete al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x56d5f4
call fcn.004060b8
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x581794
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5818bf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x5818cc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x581847
push 0x581738
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004296b4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x581822
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00560c84
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00560b80
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, 0x5818f0
call fcn.004085a0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1d], 0
je 0x581847
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0xa0]
push 0xa
push 0x5818fc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x5818a4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5818a4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LockResource
mov edx, dword [ebp - 4]
lea ecx, [edx + 0x18]
pop edx
call fcn.00409104
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.0056b904
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5818c6
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00407758
ret

Function at 0x582544
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x5825a2
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x5825a2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x5825a2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x58259d
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x5825a2
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x5825ac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x58260a
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x58260a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x58260a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x108
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x582605
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x58260a
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x58f8f8
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
sub dword [ebp - 8], 6
mov byte [ebp - 0xd], 0
jmp 0x58fa32
push 6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x58fa42
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc2
jne 0x58f96d
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x58f94e
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
jne 0x58f94e
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
je 0x58fa42
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x58f96d
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
jne 0x58f96d
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
je 0x58fa42
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc3
jne 0x58f9b3
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x90
jne 0x58f994
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x58f994
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
je 0x58fa42
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0xcc
jne 0x58f9b3
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x58f9b3
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
je 0x58fa42
mov eax, dword [ebp - 8]
cmp byte [eax], 0xe9
jne 0x58f9f1
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
jne 0x58f9d6
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0x90
jne 0x58f9d6
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0x90
je 0x58fa42
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
jne 0x58f9f1
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0xcc
jne 0x58f9f1
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0xcc
je 0x58fa42
mov eax, dword [ebp - 8]
cmp byte [eax], 0xeb
jne 0x58fa2f
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x58fa14
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x58fa14
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
je 0x58fa42
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x58fa2f
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x58fa2f
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
je 0x58fa42
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x58f914
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x594710
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004084c8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408344
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x594750
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004084c8
jmp 0x594758
mov eax, dword [ebp - 4]
call fcn.004076f8
pop ecx
pop ecx
pop ebp
ret
Function at 0x59475c
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
xor ebx, ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x594973
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004076f8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x594990
call fcn.00408738
je 0x594948
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x594948
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0xf8]
xor ecx, ecx
mov edx, 0xc8
call fcn.00405028
mov dword [ebp - 0x18], 0xc8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408344
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_LookupAccountNameW
mov eax, dword [ebp - 0x14]
call fcn.00404690
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408344
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_LookupAccountNameW
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x594872
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, dword [ebp + 8]
call fcn.004084c8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00408344
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.00454388
mov eax, dword [ebp - 0x10]
call fcn.004046c4
cmp byte [ebp - 5], 0
je 0x5948e6
lea eax, [ebp - 0x24]
call fcn.00594710
lea eax, [ebp - 0xfc]
lea edx, [ebp - 0xf8]
mov ecx, 0x64
call fcn.004083f0
cmp dword [ebp - 0xfc], 0
setne al
test al, al
je 0x5948c1
lea eax, [ebp - 0x28]
lea edx, [ebp - 0xf8]
mov ecx, 0x64
call fcn.004083f0
jmp 0x5948cc
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00407b20
push dword [ebp - 0x28]
push 0x594990
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00408628
mov eax, dword [ebp + 8]
cmp dword [eax], 0
sete al
and al, byte [ebp + 0xc]
je 0x594948
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00408344
push eax
call sub.kernel32.dll_lstrlenW_1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, dword [ebp + 8]
call fcn.004084c8
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00420284
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00408344
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.00454388
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59497a
lea eax, [ebp - 0x100]
mov edx, 2
call fcn.00407758
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00407758
ret
Function at 0x594fc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetVersionExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp dword [ebp - 0x108], 2
sete byte [0x649ae9]
cmp dword [ebp - 0x114], 6
setae byte [0x649ae8]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x5971f8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004077dc
xor eax, eax
push ebp
push 0x597280
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
cmp byte [ebp - 9], 0
je 0x597244
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
jmp 0x59726a
cmp dword [ebp - 8], 0
je 0x59726a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push 4
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
call sub.advapi32.dll_SetFileSecurityW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x597287
lea eax, [ebp - 4]
call fcn.004076f8
ret

Function at 0x597290
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004077dc
xor eax, eax
push ebp
push 0x5973e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 7], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x5c1b74]
cmp byte [eax], 0
je 0x59738a
push 1
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x5967d8]
call fcn.004096ec
add esp, 4
mov eax, dword [ebp - 0x10]
call fcn.004076f8
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0x1fffff
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 1
lea eax, [ebp - 0x10]
call fcn.00596818
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x597355
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0xc], eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 7], al
cmp dword [ebp - 0xc], 0
jne 0x597361
cmp byte [ebp - 7], 0
je 0x59739c
mov dword [ebp - 0x1c], 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
push ebp
lea edx, [ebp - 0x1c]
mov cl, byte [ebp - 6]
mov eax, dword [ebp - 4]
call fcn.005971f8
pop ecx
mov byte [ebp - 7], al
jmp 0x59739c
push ebp
mov cl, byte [ebp - 6]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005971f8
pop ecx
mov byte [ebp - 7], al
cmp byte [ebp - 5], 0
je 0x5973b2
push 6
mov eax, dword [ebp - 4]
call fcn.00408344
push eax
call sub.kernel32.dll_SetFileAttributesW
cmp dword [ebp - 0xc], 0
je 0x5973c1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5973ec
lea eax, [ebp - 0x10]
mov edx, dword [0x5967d8]
call fcn.00409810
lea eax, [ebp - 4]
call fcn.004076f8
ret