joyce8/EMBER2024-capa huggingface dataset:
Function at 0x576570
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d24
mov eax, dword [ebp - 8]
call fcn.00404d24
xor eax, eax
push ebp
push 0x5766f7
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0xc]
mov eax, 8
call fcn.00409da8
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x30
jne 0x576608
mov eax, dword [ebp - 8]
mov edx, 0x57670c
call fcn.00404c80
jne 0x5765ea
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00404d34
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5766cf
push 5
mov eax, dword [ebp - 8]
call fcn.00404d34
push eax
mov eax, dword [ebp - 4]
call fcn.00404d34
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5766cf
mov dl, 1
mov eax, dword [0x41fec0]
call fcn.00403944
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5766c8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov ecx, 0x576718
mov edx, dword [0x59b290]
call fcn.00404b88
mov eax, dword [ebp - 0x14]
call fcn.0040a31c
test al, al
jne 0x576653
mov edx, 0x576730
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x576671
lea eax, [ebp - 0x18]
mov ecx, 0x576718
mov edx, dword [0x59b290]
call fcn.00404b88
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push dword [ebp - 8]
push 0x576748
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404bfc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0042435c
lea eax, [ebp - 0x20]
mov ecx, 0x576718
mov edx, dword [0x59b290]
call fcn.00404b88
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5766cf
mov eax, dword [ebp - 0x10]
call fcn.00403974
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5766fe
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040488c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040488c
ret
Function at 0x578c6c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x578ed0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov dl, 1
call fcn.0046b4fc
lea eax, [ebp - 0x120]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetLogicalDriveStringsA
lea ebx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x218]
mov edx, dword [eax]
call dword [edx + 0x44]
jmp 0x578e77
push ebx
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x578e5c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [0x598148]
mov eax, dword [eax]
call eax
push ebp
lea eax, [ebp - 0x124]
mov edx, ebx
call fcn.00404a58
mov eax, dword [ebp - 0x124]
call fcn.005789d0
pop ecx
mov esi, eax
lea eax, [ebp - 0x22c]
mov edx, ebx
call fcn.00403454
lea edx, [ebp - 0x22c]
lea eax, [ebp - 0x12c]
call fcn.00404ac4
push dword [ebp - 0x12c]
push 0x578ee8
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0x230]
call fcn.00578ae4
push dword [ebp - 0x230]
push 0x578ee8
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x234]
call fcn.00578ae4
push dword [ebp - 0x234]
push 0x578ee8
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x238]
call fcn.00578ae4
push dword [ebp - 0x238]
push 0x578ee8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
lea eax, [ebp - 0x23c]
call fcn.00578ae4
push dword [ebp - 0x23c]
lea eax, [ebp - 0x128]
mov edx, 9
call fcn.00404bfc
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x218]
call fcn.0042435c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x578e34
cmp eax, 0
jae 0x578e5c
jmp 0x578e36
jge 0x578e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.0046b4fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x35c]
mov eax, dword [eax + 0x68]
mov edx, 0xff
call fcn.004307c4
lea eax, [ebp - 0x240]
mov edx, ebx
call fcn.00404a58
mov eax, dword [ebp - 0x240]
call fcn.00404b3c
add ebx, eax
inc ebx
lea eax, [ebp - 0x248]
mov edx, ebx
call fcn.00404a58
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.00409808
cmp dword [ebp - 0x244], 0
jne 0x578d06
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578ed7
lea eax, [ebp - 0x248]
mov edx, 7
call fcn.0040488c
lea eax, [ebp - 0x12c]
mov edx, 3
call fcn.0040488c
ret
Function at 0x10036ca
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003bd0
call fcn.01003884
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1005390
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10034df
cmp eax, esi
jne 0x10034d2
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10034e2
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10034b9
xor esi, esi
inc esi
mov eax, dword [0x100538c]
cmp eax, esi
jne 0x10034f5
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003530
mov eax, dword [0x100538c]
test eax, eax
jne 0x100352a
mov dword [0x100538c], esi
push 0x10011e0
push 0x10011d4
call fcn.01003436
pop ecx
pop ecx
test eax, eax
je 0x1003530
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10035fa
mov dword [0x1005050], esi
mov eax, dword [0x100538c]
cmp eax, esi
jne 0x1003554
push 0x10011d0
push 0x10011c8
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100538c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1003561
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1005394], ebx
je 0x1003582
push 0x1005394
call fcn.010037f9
pop ecx
test eax, eax
je 0x1003582
push ebx
push 2
push ebx
call dword [0x1005394]
push dword [0x1005038]
push dword [0x100503c]
push dword [0x1005034]
call fcn.0100339f
add esp, 0xc
mov dword [0x100504c], eax
cmp dword [0x1005040], ebx
jne 0x10035e0
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1005050], ebx
jne 0x10035ee
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100504c]
call fcn.010038c9
ret
call fcn.010039d1
jmp 0x1003497
Function at 0x4047c3
Capabilities:
Get graphical window text

Disassembly:
push 0x444
mov eax, 0x470620
call fcn.0045710a
push 0x1000
call fcn.0045221e
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
mov eax, dword [esi + 0x8ac]
xor ecx, ecx
mov word [ebx], cx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [esp], 0x800
push ebx
push eax
call edi
mov ecx, dword [esi + 0x8b4]
mov eax, dword [ecx]
push ebx
call dword [eax + 0x3c]
mov ecx, eax
call fcn.00420090
mov eax, dword [esi + 0x8c0]
xor ecx, ecx
mov word [ebx], cx
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
push 0x800
push ebx
push eax
call edi
push ebx
lea eax, [ebp - 0x3c]
call fcn.004025cc
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x8b4]
push eax
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, eax
call fcn.0042b030
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004025fd
push ebx
call fcn.004531bb
pop ecx
mov ecx, dword [esi + 0x8b4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ebx, eax
call fcn.0041ffb0
mov edx, eax
lea eax, [ebp - 0x450]
call fcn.00404320
mov ecx, ebx
call fcn.00429940
test al, al
jne 0x404890
xor al, al
jmp 0x404914
mov ecx, dword [ebx + 0x8c30]
mov eax, dword [ecx]
push 8
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x450]
push edx
call dword [eax]
mov ecx, 0x479190
lea eax, [ebp - 0x20]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4048d5
cmp dx, di
je 0x4048d1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4048d5
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4048af
xor eax, eax
jmp 0x4048da
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x404912
mov eax, dword [esi + 0x8b4]
call fcn.00404085
mov ebx, dword [eax + 0x10]
push 0x10
push edi
push 0x479194
push 0x4791c0
call fcn.004089f0
pop ecx
pop ecx
call fcn.00416a20
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x404889
mov al, 1
call fcn.00457154
ret

Function at 0x405181
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x46e8e5
call fcn.0045710a
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x405241
lea edi, [esi + 8]
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
cmp eax, 0xb7
jne 0x405202
push str.cant_create_mutex
lea eax, [ebp - 0x2c]
call fcn.004025cc
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040260b
lea eax, [ebp - 0x2c]
call fcn.00402637
mov ecx, dword [esi + 0x208]
push eax
push str.ERROR
call fcn.00417780
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov dword [esi + 4], ebx
call fcn.004025fd
xor eax, eax
inc eax
jmp 0x405243
push str.Mutex_is_created
lea eax, [ebp - 0x48]
call fcn.004025cc
push edi
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 1
call fcn.0040260b
lea eax, [ebp - 0x48]
call fcn.00402637
mov ecx, dword [esi + 0x208]
push eax
push str.INFO
call fcn.00417780
lea ecx, [ebp - 0x48]
call fcn.004025fd
xor eax, eax
call fcn.00457154
ret
Function at 0x4066f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.004674c0
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x140c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x1408]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x140c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40678c
mov eax, dword [ebp - 0x1408]
cmp eax, 1
je 0x406754
cmp eax, 2
je 0x406759
cmp eax, 7
je 0x406754
cmp eax, 3
jne 0x40678c
cmp eax, 2
jne 0x40677b
push 0x1000
lea edx, [ebp - 0x1404]
push edx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x1404]
push ecx
jmp 0x406782
lea edx, [ebp - 0x404]
push edx
push ebx
push edi
call fcn.004532c1
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00452c94
mov esp, ebp
pop ebp
ret

Function at 0x4067b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x410]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406828
cmp dword [ebp - 0x410], 4
jne 0x406828
mov eax, dword [ebp - 0x40c]
push 4
lea edx, [ebp - 0x404]
push edx
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00453df4
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
pop esi
call fcn.00452c94
mov esp, ebp
pop ebp
ret

Function at 0x406850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
or esi, 0xffffffff
test edi, edi
je 0x4068b3
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4068b3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406880
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4068c0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x490654]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
push 0x400
mov dword [esp + 0x14], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x32], 0
lea esi, [esp + 0x30]
mov dword [esp + 8], 0
je 0x40699e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x406980
mov ax, word [esi]
mov word [esp + 0x28], ax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3a], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406980
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shrd edi, edx, 0x14
shr edx, 0x14
cmp edi, dword [esp + 8]
jbe 0x406980
push esi
push 8
push ebx
mov dword [esp + 0x14], edi
call fcn.004532c1
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], edi
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x406980
cmp word [esi + 2], 0
je 0x40699e
add esi, 2
cmp word [esi + 2], 0
jne 0x406910
mov ecx, dword [esp + 0x834]
pop edi
pop esi
xor ecx, esp
call fcn.00452c94
mov esp, ebp
pop ebp
ret

Function at 0x4069c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp word [edi], 0
je 0x406a44
test ebx, ebx
je 0x406a1b
push esi
push 0x800
call fcn.0045221e
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push edi
push 0x479998
push 0x4799f8
call fcn.004089f0
add esp, 8
push eax
push 0x400
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push esi
push str.INFO
mov ecx, ebx
call fcn.00417780
push esi
call fcn.004531bb
add esp, 4
pop esi
mov ecx, dword [ebp + 8]
push 1
push 0
push ecx
push edi
push 0x4799fc
push 0x479a04
call fcn.004089f0
add esp, 8
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x406a50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x490654]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x44
push 0x40
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
neg edi
sbb edi, edi
mov dword [esp + 8], 0xfffffffb
and edi, 0xfffffff6
push 0x479a08
add edi, 0xa
push 0x4799f8
mov dword [esi], 0x44
mov dword [esi + 0x2c], 0x101
mov word [esi + 0x30], di
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], ecx
call fcn.004089f0
add esp, 8
push eax
push str.INFO
mov ecx, ebx
call fcn.00417780
mov edi, dword [esp + 0xc]
push edi
push str.INFO
mov ecx, ebx
call fcn.00417780
lea edx, [esp + 0x10]
push edx
push esi
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406b92
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.nd_waiting_process_:
push 0x4799f8
call fcn.004089f0
add esp, 8
push eax
push str.INFO
mov ecx, ebx
call fcn.00417780
push edi
push str.INFO
mov ecx, ebx
call fcn.00417780
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x406b7f
cmp dword [esp + 8], 0x103
jne 0x406b87
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 8], 0xfffffffc
jmp 0x406b87
mov dword [esp + 8], 0xfffffffe
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x406bd7
push eax
push ecx
push str.xit_code_is__d
push 0x4799f8
call fcn.004089f0
add esp, 0xc
push eax
lea edx, [esp + 0x28]
push 0x100
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push str.INFO
mov ecx, ebx
call fcn.00417780
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x406bf0
Capabilities:
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, eax
xor eax, eax
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, 1
call fcn.00406a50
push 0x100
push 0
push edi
mov esi, eax
call fcn.0045e840
add esp, 0x18
test esi, esi
jne 0x406c67
mov ecx, dword [ebp - 4]
push esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 4]
push eax
call edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406c90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor eax, eax
push eax
push 1
push 3
push eax
push 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406ccf
lea ecx, [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret

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

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

Function at 0x406f20
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004674c0
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1004]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0x1008], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1004]
push ecx
mov eax, esi
call fcn.004025cc
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x407030
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [edi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4070af
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4070a8
mov edx, dword [ebp - 0x10]
inc edx
push edx
call fcn.0045221e
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407140
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x110
lea eax, [ebp - 0x124]
push ebx
push eax
mov byte [ebp - 0x129], bl
mov dword [ebp - 0x128], 0x114
call fcn.0045e840
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 2
mov dword [ebp - 0x130], ebx
je 0x4071aa
mov byte [ebp - 0x129], 1
jmp 0x407279
lea edx, [ebp - 0x130]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407279
mov ecx, dword [ebp - 0x130]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [ebp - 0x14], 0x201
mov dword [ebp - 0x10], 0x5000000
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x220
call edi
test eax, eax
jne 0x407278
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x407278
mov edx, dword [ebp - 0x134]
push esi
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x407277
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x407270
xor edi, edi
cmp dword [esi], ebx
jbe 0x407270
lea ebx, [esi + 4]
jmp 0x407250
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x407268
mov byte [ebp - 0x129], 1
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x407250
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x129]
xor ecx, ebp
pop ebx
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x4072a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004674c0
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x479b74
push eax
mov edi, ecx
call fcn.00453a0b
mov esi, eax
add esp, 8
test esi, esi
je 0x4072ef
push 0x479b7c
push edi
call fcn.00453a0b
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x407301
call fcn.00454210
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00453dd7
add esp, 0x10
test eax, eax
je 0x40734b
jmp 0x407320
push edi
push eax
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.00453fc0
push esi
push 0x1000
lea edx, [ebp - 0x1004]
push 1
push edx
call fcn.00453dd7
add esp, 0x20
test eax, eax
jne 0x407320
push esi
call fcn.00454210
push edi
call fcn.00454210
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.00452c94
mov esp, ebp
pop ebp
ret