joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x4237ec
cmp byte [ebx + 0x49], 0
je 0x4237ec
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x42381b
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x4236a5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4236c2
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x423709
dec eax
je 0x42370d
sub eax, 2
je 0x4237da
cmp dword [ebp - 0x18], 0x10
jb 0x42381b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f77ab
add esp, 4
xor al, al
jmp 0x4237ee
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x42371d
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x42374a
cmp edi, 0x10
jae 0x42372c
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004f8c8f
add esp, 0x10
cmp esi, eax
jne 0x423809
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x42381f
test esi, esi
jne 0x4236b6
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x423827
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x423827
cmp edi, esi
jae 0x4237c3
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404f46
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4236b6
mov ecx, eax
cmp edi, 0x10
jae 0x42379f
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4237ba
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4236b0
test esi, esi
jne 0x423795
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4237d2
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4236b0
cmp dword [ebp - 0x18], 0x10
jb 0x4237ec
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f77ab
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0x10
jb 0x42381b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004f77ab
add esp, 4
xor al, al
jmp 0x4237ee
cmp edi, 0x10
jb 0x4237ec
push eax
jmp 0x4237e4
push str.string_too_long
call fcn.0051618f
int3
Function at 0x424ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x424ef7
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424ef7
test al, 0x10
je 0x424ef7
mov al, 1
ret
xor al, al
ret

Function at 0x424f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x424f17
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424f17
test al, 0x10
jne 0x424f17
mov al, 1
ret
xor al, al
ret
Function at 0x426010
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532d11
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
push ebx
push esi
mov eax, dword [0x56adc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test edi, edi
je 0x42619d
xor eax, eax
cmp ax, word [edi]
je 0x42619d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42605d
test al, 0x10
je 0x4260b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2f0
lea ecx, [ebp - 0x104]
push ecx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 1
call fcn.00405fba
mov ecx, str.there_is_no_file_specified:
mov esi, eax
call fcn.004289e0
test eax, eax
je 0x4261fc
lea edx, [eax + 0x10]
test edx, edx
je 0x4260ac
add eax, 0x20
push edi
jmp 0x4261f3
xor eax, eax
push edi
jmp 0x4261f3
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.004fbb00
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], str.open
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x38], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x42618a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2fe
lea eax, [ebp - 0x1bc]
push eax
mov ebx, str.env.cpp
call fcn.0041a6b0
mov ebx, eax
mov dword [ebp - 4], 2
test ebx, ebx
je 0x426182
lea esi, [ebx + 0x10]
test esi, esi
je 0x426131
lea eax, [ebx + 0x20]
jmp 0x426133
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test esi, esi
je 0x42614a
lea eax, [ebx + 0x20]
jmp 0x42614c
xor eax, eax
push 0x54a134
push eax
call fcn.00407c44
add esp, 8
test esi, esi
je 0x426176
lea eax, [ebx + 0x20]
push edi
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x1bc]
jmp 0x426202
xor eax, eax
push edi
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x1bc]
jmp 0x426202
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2eb
lea ecx, [ebp - 0x104]
push ecx
mov ebx, str.env.cpp
call fcn.0041a6b0
mov esi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x4261fc
lea ebx, [esi + 0x10]
test ebx, ebx
je 0x4261d3
lea eax, [esi + 0x20]
jmp 0x4261d5
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test ebx, ebx
je 0x4261ec
lea eax, [esi + 0x20]
jmp 0x4261ee
xor eax, eax
push str.application_is_not_specified
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x104]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426640
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532c4b
mov eax, dword fs:[0]
push eax
mov eax, 0x1120
call fcn.005101d0
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x40
lea eax, [ebp - 0x106c]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x1018], esi
call fcn.004fbb00
add esp, 0xc
xor ecx, ecx
push 0xffe
xor eax, eax
push ecx
lea edx, [ebp - 0x100e]
push edx
mov dword [ebp - 0x1070], 0x44
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], eax
mov word [ebp - 0x1010], cx
call fcn.004fbb00
add esp, 0xc
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1070]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1010]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov dword [ebp - 0x1014], esi
test esi, esi
jne 0x426798
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x36c
lea eax, [ebp - 0x1128]
push eax
mov ebx, str.env.cpp
call fcn.0041a6b0
mov ebx, eax
mov dword [ebp - 4], esi
test ebx, ebx
je 0x426786
lea esi, [ebx + 0x10]
test esi, esi
je 0x42673c
lea eax, [ebx + 0x20]
jmp 0x42673e
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test esi, esi
je 0x426755
lea eax, [ebx + 0x20]
jmp 0x426757
xor eax, eax
push str.failed_to_create_process
push eax
call fcn.00407c44
add esp, 8
test esi, esi
je 0x42676e
lea eax, [ebx + 0x20]
jmp 0x426770
xor eax, eax
mov ecx, dword [ebp - 0x1018]
push ecx
push eax
call fcn.00407c44
mov esi, dword [ebp - 0x1014]
add esp, 8
lea ecx, [ebp - 0x1128]
mov dword [ebp - 4], 0xffffffff
call fcn.0041a760
xor eax, eax
cmp esi, 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x4267c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp eax, str.kometastartvx86.exe
jne 0x4267ec
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x22c
lea ecx, [ebp - 0x230]
push 0
push ecx
call fcn.004fbb00
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea edx, [ebp - 0x230]
mov esi, eax
push edx
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x426886
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
je 0x426885
lea ecx, [ebp - 0x20c]
push str.kometastartvx86.exe
push ecx
call fcn.004f7ee7
add esp, 8
test eax, eax
je 0x426883
lea edx, [ebp - 0x20c]
push str.kometastartvx64.exe
push edx
call fcn.004f7ee7
add esp, 8
test eax, eax
je 0x426883
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x426843
jmp 0x426885
mov bl, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004f6bad
mov esp, ebp
pop ebp
ret

Function at 0x4268a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
test eax, eax
jne 0x4268d0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x22c
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.004fbb00
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42695d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
je 0x42695c
jmp 0x426930
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004f7ee7
add esp, 8
test eax, eax
je 0x42695a
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x426930
jmp 0x42695c
mov bl, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x426d80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53235b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x426dcc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x426dce
xor eax, eax
test eax, eax
je 0x426e90
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test edi, edi
je 0x426e90
test esi, esi
je 0x426e90
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0xbc]
push eax
call fcn.00428150
mov dword [ebp - 4], 0
cmp dword [ebp - 0x64], 0
je 0x426e6e
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 4]
cmp dword [ebp + edx - 0xb0], 0
jne 0x426e39
push 0
push esi
push edi
lea ecx, [ebp - 0xbc]
call fcn.00427f00
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428520
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.005168a4
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428520
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], vtable.std::ios_base.0
call fcn.005168a4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42ace0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532c13
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 2
mov dword [ebp - 4], 0
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, esi
jne 0x42adb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x16
lea eax, [ebp - 0x2fc]
push eax
mov ebx, str.netboxprocess.cpp
call fcn.0041a6b0
mov esi, eax
mov byte [ebp - 4], 1
test esi, esi
je 0x42ad87
lea edi, [esi + 0x10]
test edi, edi
je 0x42ad5e
lea eax, [esi + 0x20]
jmp 0x42ad60
xor eax, eax
push str.ERROR:
push eax
call fcn.00407c44
add esp, 8
test edi, edi
je 0x42ad77
lea eax, [esi + 0x20]
jmp 0x42ad79
xor eax, eax
push str.failed_to_CreateToolhelp32Snapshot
push eax
call fcn.00407c44
add esp, 8
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 0
call fcn.0041a760
cmp dword [ebp + 0x1c], 8
jb 0x42ada8
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f77ab
add esp, 4
or eax, 0xffffffff
jmp 0x42ae44
push 0x228
lea edx, [ebp - 0x240]
push 0
push edx
call fcn.004fbb00
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
push edi
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x42ae29
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x42adee
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.004f7ee7
add esp, 8
test eax, eax
jne 0x42ae17
mov edx, dword [ebp - 0x23c]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x42ae29
lea eax, [ebp - 0x244]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42ade2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 8
jb 0x42ae42
mov ecx, dword [ebp + 8]
push ecx
call fcn.004f77ab
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x42bcd0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x42bd36
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42bd29
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor edx, edx
cmp eax, ebx
setne al
xor ecx, ebp
pop ebx
call fcn.004f6bad
mov esp, ebp
pop ebp
ret

Function at 0x42c710
Capabilities:
Check mutex on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov edi, edi
push 0
push 1
push 0x572220
call esi
sub eax, 0
je 0x42c760
dec eax
je 0x42c720
mov eax, dword [0x572224]
pop esi
mov dword [edi], eax
mov byte [edi + 4], 0
pop ebx
test eax, eax
je 0x42c77a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42c758
cmp eax, 0x80
jne 0x42c77a
mov al, 1
mov byte [edi + 4], al
mov eax, edi
ret
push 0
push 0
push 0
call ebx
push 1
push 2
push 0x572220
mov dword [0x572224], eax
call esi
jmp 0x42c720
xor al, al
mov byte [edi + 4], al
mov eax, edi
ret

Function at 0x42e650
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x57222c], 0
jne 0x42e6fb
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.004fbb00
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42e6b4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push 0x54ace4
push eax
call fcn.004f9175
add esp, 8
test eax, eax
je 0x42e6d2
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
push 0x572228
push 0
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x42e6a4
mov byte [0x57222c], 1
mov eax, dword [0x572228]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x42e720
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531760
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x56adc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x20
mov dword [ebp - 0x30], ebx
call fcn.004f7291
mov edi, eax
add esp, 4
mov dword [ebp - 0x34], edi
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x30], 0xf
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor edx, edx
test eax, eax
je 0x42e838
mov ecx, dword [ebp - 0x30]
lea eax, [edi + ecx*2]
mov ecx, dword [ebp - 0x34]
push ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0041e7c0
xor edx, edx
lea eax, [ebp - 0x2c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
cmp esi, eax
je 0x42e814
cmp dword [esi + 0x14], 8
jb 0x42e7c6
mov ecx, dword [esi]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
cmp dword [ebp - 0x18], 8
jae 0x42e7fe
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x2c]
push edx
push esi
call fcn.004f6f30
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x42e826
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [ebp - 0x2c], ebx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jmp 0x42e826
cmp dword [ebp - 0x18], 8
jb 0x42e826
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jmp 0x42e852
push ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x53ff0c
mov ecx, esi
mov word [esi], dx
call fcn.00404bd5
push edi
call fcn.004f7776
mov eax, esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f6bad
mov esp, ebp
pop ebp
ret
Function at 0x42e880
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530048
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x56adc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
lea ecx, [ebp - 0x1c]
xor eax, eax
push ecx
push eax
mov dword [ebp - 4], esi
mov eax, 0x400
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
call fcn.0042edf0
cmp ebx, esi
je 0x42e999
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
sub edx, edi
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
sar edx, 1
lea ecx, [ebp - 0x14]
push ecx
push edi
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
push ebx
push eax
push esi
mov dword [ebp - 0x18], 0x44
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x42e975
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42e973
cmp dword [ebp - 0x18], 0x44
jbe 0x42e937
lea ecx, [ebp - 0x30]
call fcn.00416420
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
cmp eax, 0x400
jbe 0x42e957
push eax
lea eax, [ebp - 0x1c]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
call fcn.0042eda0
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push edi
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
setne bl
test edi, edi
je 0x42e985
push edi
call fcn.004f77ab
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x42e9a9
push eax
call fcn.004f77ab
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42f040
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x42f095
cmp byte [eax], 0
je 0x42f095
cmp dword [esi + 0x14], 8
jb 0x42f056
mov esi, dword [esi]
test esi, esi
je 0x42f095
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42f095
test al, 0x10
jne 0x42f095
push 0
push 0x4000000
push 3
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42f08e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret