joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412510
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x804]
mov ebx, ecx
push 0
push eax
call fcn.00464a00
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x4c1228
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x808], esi
test esi, esi
je 0x412617
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4125e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x4125d3
push esi
call dword [sym.imp.USER32.dll_IsIconic]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x4125bc
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4125cc
push 5
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 8], eax
je 0x412603
mov dword [eax], esi
add dword [ecx + 4], 4
jmp 0x412610
lea edx, [ebp - 0x808]
push edx
push eax
call fcn.00412000
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462391
mov esp, ebp
pop ebp
ret
Function at 0x4126b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a3c
call fcn.00462a70
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0
push 2
mov dword [ebp - 0x1a34], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4128c9
push edi
push 0x228
lea eax, [ebp - 0x1a2c]
push 0
push eax
call fcn.00464a00
add esp, 0xc
mov dword [ebp - 0x1a30], 0x22c
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4128c5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1a3c], eax
cmp eax, dword [ebp - 0x1a28]
je 0x4128aa
push dword [ebp - 0x1a34]
lea eax, [ebp - 0x1a0c]
push eax
call fcn.00491f26
add esp, 8
test eax, eax
jne 0x4128aa
push 0x800
push eax
lea eax, [ebp - 0x1804]
push eax
call fcn.00464a00
add esp, 0xc
push dword [ebp - 0x1a28]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x412866
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00464a00
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x41285b
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00464a00
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.00464e6d
add esp, 0x14
test eax, eax
je 0x412823
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x412823
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412810
lea eax, [ebp - 0x1004]
jmp 0x412841
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412830
lea eax, [ebp - 0x804]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x1804]
push 0x400
push eax
call fcn.00491f1b
add esp, 0x10
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x41286c
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1804]
push eax
call fcn.0045f230
add esp, 4
test eax, eax
je 0x4128aa
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1a28]
mov dword [ebp - 0x1a38], ecx
cmp dword [esi + 8], eax
je 0x41289b
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x4128aa
lea ecx, [ebp - 0x1a38]
push ecx
push eax
mov ecx, esi
call fcn.00411ea0
lea eax, [ebp - 0x1a30]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov eax, dword [ebp - 0x1a3c]
jne 0x412731
push ebx
call edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00462391
mov esp, ebp
pop ebp
ret 8
Function at 0x415000
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x415016
mov eax, 1
pop edi
pop ebp
ret 4
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4150d4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4150d4
push esi
call fcn.0045f230
add esp, 4
test eax, eax
je 0x4150d4
cmp dword [edi + 0xc], 0
jne 0x4150a7
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0xc], eax
test eax, eax
je 0x4150cb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi + 0xc]
mov dword [edi + 0x10], eax
call esi
push str.zlib_uncompress
push dword [edi + 0xc]
mov dword [edi + 0x14], eax
call esi
push str.zlib_compress
push dword [edi + 0xc]
mov dword [edi + 0x1c], eax
call esi
push str.zlib_compressBound
push dword [edi + 0xc]
mov dword [edi + 0x20], eax
call esi
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4150a7
call eax
mov dword [edi + 0x18], eax
cmp dword [edi + 0x14], 0
je 0x4150cb
cmp dword [edi + 0x10], 0
je 0x4150cb
cmp dword [edi + 0x18], 0
je 0x4150cb
pop esi
mov dword [edi + 4], 1
mov eax, 1
pop edi
pop ebp
ret 4
mov eax, dword [edi + 4]
pop esi
pop edi
pop ebp
ret 4
pop esi
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x4154f0
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4e8fc4]
test ecx, ecx
js 0x415538
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x4e8fc4], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.00464a00
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4155a9
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x415600
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415600
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x4155e0
cmp ax, 6
jne 0x415600
mov dword [0x4e8fc4], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x418270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x418311
cmp byte [esi + 0x3d], 0
je 0x418311
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4182c7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4182d9
sub eax, 1
je 0x4182dd
sub eax, 2
je 0x418311
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4182fa
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00492d21
add esp, 0x10
cmp edi, eax
jne 0x4182c7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00462391
mov esp, ebp
pop ebp
ret

Function at 0x419080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9a20
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4e949c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00462566
mov edi, eax
add esp, 4
test edi, edi
je 0x419123
push 1
mov dword [ebp - 4], 0
call fcn.0043966d
add esp, 4
mov dword [edi + 4], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x419125
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, esi
push 0x20
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
call fcn.00419ce0
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x41915a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x41917c
cmp byte [ebp + 0xc], 0
je 0x419169
push esi
call fcn.0043a8d7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x419188
mov esi, str.ios_base::badbit_set
jmp 0x419198
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004191c0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00416d90
push 0x4df038
lea eax, [ebp - 0x28]
push eax
call fcn.00463a0d
int3
Function at 0x419390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4193c0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4193fc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4193fc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4194e1
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x419424
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x419457
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00491a42
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4194e1
cmp eax, 1
jle 0x4194b4
cmp eax, 3
jne 0x4194e1
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00416630
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4194d1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00492d21
add esp, 0x10
cmp edi, eax
jne 0x4194e1
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4193e7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
Function at 0x419f20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x419f44
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a010
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x419f65
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x419f67
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x419fef
jg 0x419f7a
test esi, esi
je 0x419fef
test ecx, ecx
jl 0x419fbc
jg 0x419f84
test eax, eax
je 0x419fbc
cmp ebx, ecx
jg 0x419f96
jl 0x419f8e
cmp esi, eax
jae 0x419f96
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00463f00
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x419fc2
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x419fef
jg 0x419fcc
test esi, esi
je 0x419fef
cmp dword [edi + 0x4c], 0
je 0x419fef
mov ecx, edi
call fcn.004187f0
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.004925f9
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41a104
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041a1c0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x41a125
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41a127
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x41a1a4
jg 0x41a13a
test esi, esi
je 0x41a1a4
test ecx, ecx
jl 0x41a17e
jg 0x41a144
test eax, eax
je 0x41a17e
cmp edi, ecx
jg 0x41a156
jl 0x41a14e
cmp esi, eax
jae 0x41a156
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00463f00
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41a181
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41a1a4
jg 0x41a18b
test esi, esi
je 0x41a1a4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41a1a4
push eax
push esi
push 1
push edx
call fcn.00492d21
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41a310
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41a38a
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x4c196c
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
Function at 0x41a910
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4df0b8
push 0x4655e0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.00462a70
mov eax, dword [0x4e949c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2a2c], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2a30], esi
test esi, esi
je 0x41aae2
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a970
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x41aae2
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov dword [ebp - 4], 0xfffffffe
jmp 0x41a9bd
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.00464a00
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.00464a00
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x41aae2
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.0049312c
lea eax, [ebp - 0x224]
push eax
call fcn.00484033
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x41aae2
nop
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
mov ecx, ebx
call fcn.0041a440
test eax, eax
je 0x41aad5
lea eax, [ebp - 0xa24]
push eax
call fcn.00484033
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41aaa6
test dx, dx
je 0x41aaa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41aaa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41aa80
xor eax, eax
jmp 0x41aaab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41aad5
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41aad5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x41aa40
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 8
Function at 0x41ab10
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4df0f8
push 0x4655e0
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x4e949c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
test esi, esi
je 0x41ac83
cmp word [esi], 0
je 0x41ac83
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ab70
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x41ac83
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41ac83
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.00464a00
push esi
push str.__s_
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.0041acb0
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.00464a00
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], str.open
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
cmp dword [ebp + 0x18], 0
je 0x41ac23
push esi
call fcn.0045f230
add esp, 4
test eax, eax
je 0x41ac83
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x41ac4a
cmp dword [ebp + 0x1c], 0
je 0x41ac4a
push 0xffffffffffffffff
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x41ac5f
test esi, esi
je 0x41ac6f
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x41ac6f
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41ac8c
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41ad30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x41ad4c
pop edi
pop ebp
ret 8
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 8
Function at 0x41c460
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4e949c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esi]
call edi
test eax, eax
jne 0x41c569
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c569
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41c4b7
push dword [esi]
call edi
test eax, eax
jne 0x41c569
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00464a00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41c54b
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
jne 0x41c569
push 4
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462391
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00462391
mov esp, ebp
pop ebp
ret 4