joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64d880
Capabilities:
Clear file content

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
cmp esi, 0xffffffff
jne 0x64d894
xor al, al
pop esi
add esp, 0x10
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [esp + 0x10]
push 1
push eax
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
push dword [esp + 0x14]
push dword [esp + 0x14]
push esi
call edi
test eax, eax
je 0x64d8cd
push 0
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call edi
test eax, eax
jne 0x64d8d5
pop edi
xor al, al
pop esi
add esp, 0x10
ret
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x64d8fe
push 0
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call edi
test eax, eax
je 0x64d8fe
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
Function at 0x64dbc0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x40
mov eax, dword [0x7b088c]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], edi
test edi, edi
jne 0x64dbeb
mov dword [esp + 0x10], edi
jmp 0x64dbfd
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x64dbf0
sub ecx, edx
mov dword [esp + 0x10], ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00633440
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x64dc17
mov eax, dword [eax]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [esp + 0x2c]
mov ebx, eax
cmp ecx, 8
jb 0x64dc3c
inc ecx
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x20]
call fcn.0042298e
test ebx, ebx
jne 0x64dc56
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00682c16
add esp, 0x40
ret 8
test esi, esi
je 0x64dd4c
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00682d64
add esp, 4
mov dword [esp + 0xc], edi
mov esi, eax
test edi, edi
jne 0x64dc89
mov dword [esp + 0x10], edi
jmp 0x64dc9d
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x64dc90
sub edi, ecx
mov dword [esp + 0x10], edi
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00633440
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x64dcb7
mov eax, dword [eax]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esp + 0x2c]
cmp eax, 8
jb 0x64dcd8
inc eax
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.0042298e
push esi
lea ecx, [esp + 0x1c]
call fcn.00473e20
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.006334f0
mov ecx, dword [esp + 0x1c]
add esp, 8
push eax
call fcn.004190ea
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x64dd16
inc eax
lea ecx, [esp + 0x30]
push eax
push dword [esp + 0x34]
call fcn.0041946e
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
cmp eax, 8
jb 0x64dd43
inc eax
lea ecx, [esp + 0x18]
push eax
push dword [esp + 0x1c]
call fcn.0042298e
push esi
call fcn.00682d6d
add esp, 4
mov ecx, dword [esp + 0x48]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00682c16
add esp, 0x40
ret 8
Function at 0x663134
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x148
mov eax, dword [0x7b088c]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x66318c
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push edi
call eax
test eax, eax
jne 0x663183
mov eax, 2
jmp 0x66318c
xor eax, eax
cmp dword [esp + 8], eax
setne al
push 0x118
mov dword [esi + 0x24], eax
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x3c], 0x11c
call fcn.00689b00
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 5
jne 0x6631e1
test ecx, ecx
jle 0x663212
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x663212
cmp edx, 6
jne 0x66320a
cmp byte [esp + 0x14a], 1
jne 0x663202
xor eax, eax
test ecx, ecx
setne al
lea eax, [eax*2 + 3]
mov dword [esi], eax
jmp 0x663212
mov dword [esi], 4
jmp 0x663212
jle 0x663212
mov dword [esi], 5
movzx eax, word [esp + 0x144]
xorps xmm0, xmm0
mov dword [esi + 0x10], eax
movzx eax, word [esp + 0x146]
mov dword [esi + 0x14], eax
lea eax, [esp + 0xc]
push eax
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x30], 0
movups xmmword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0xc]
test eax, eax
je 0x66326d
cmp eax, 6
je 0x663264
cmp eax, 9
jne 0x663274
mov dword [esi + 0x18], 1
jmp 0x663274
mov dword [esi + 0x18], 2
jmp 0x663274
mov dword [esi + 0x18], 0
mov ecx, dword [esp + 0x20]
mov eax, esi
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.00682c16
add esp, 0x148
ret
Function at 0x666ec0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xb4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [esp + 0xb8]
mov dword [esp], 0xffffffff
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x666f12
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [esp + 4]
push eax
push ecx
call fcn.00664dd0
add esp, 0xc
test eax, eax
je 0x666f12
push eax
push 0x12
push str.threading_thread_local_win.cc
lea ecx, [esp + 0x10]
call fcn.006337b0
lea ecx, [esp + 4]
call fcn.00633930
add esp, 0xb4
ret

Function at 0x666fb0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0xb4
mov eax, dword [esp + 0xb8]
push ebx
push dword [esp + 0xc0]
xor ebx, ebx
push dword [eax]
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x667017
call fcn.006345a0
cmp eax, 4
jg 0x667009
push 4
push 0x24
push str.threading_thread_local_win.cc
lea ecx, [esp + 0x14]
call fcn.00633660
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004d4587
add esp, 8
mov ebx, 1
test bl, 1
je 0x667017
lea ecx, [esp + 8]
call fcn.00633930
pop ebx
add esp, 0xb4
ret

Function at 0x6d0e88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006d0a8d

Function at 0x6d0e93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006d0c0e

Function at 0x6d76ce
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006d6ebd

Function at 0x6d76d9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006d70f8

Function at 0x6d7ad8
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006d78cc

Function at 0x6e0280
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov ecx, dword [ecx + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, dword [ecx + 0x3c]
push esi
push edi
xor esi, esi
mov dword [esp + 0x10], ecx
add ebx, ecx
xor edi, edi
movzx eax, word [ebx + 6]
cmp esi, eax
jae 0x6e02da
movzx eax, word [ebx + 0x14]
lea edx, [ebx + 0x18]
add eax, edi
add edx, eax
je 0x6e02da
mov eax, dword [edx + 0xc]
add ecx, eax
neg eax
sbb eax, eax
and eax, ecx
cmp eax, ebp
ja 0x6e02c6
mov ecx, dword [edx + 8]
add ecx, eax
cmp ecx, ebp
ja 0x6e02d0
mov ecx, dword [esp + 0x10]
inc esi
add edi, 0x28
jmp 0x6e0299
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x6e0430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, ecx
test ebx, ebx
jne 0x6e0449
pop ebp
xor al, al
pop ebx
add esp, 8
ret 8
mov eax, dword [ebp + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebp]
push dword [ecx + 0x78]
mov ecx, ebp
call dword [eax]
mov esi, eax
mov dword [esp + 0xc], esi
test esi, esi
jne 0x6e0471
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x18]
push edi
cmp eax, 0xffff
ja 0x6e048c
pop edi
pop esi
mov word [ebx], ax
mov al, 1
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [ebp]
mov ecx, ebp
push dword [esi + 0x20]
call dword [eax]
mov ecx, dword [esi + 0x18]
mov edi, eax
mov dword [esp + 0x14], eax
lea ebx, [eax + ecx*4]
cmp eax, ebx
je 0x6e04f7
mov eax, ebx
sub eax, edi
sar eax, 2
mov eax, eax
test eax, eax
jns 0x6e04b6
add eax, 1
sar eax, 1
push dword [edi + eax*4]
lea esi, [edi + eax*4]
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov cl, byte [ecx]
test cl, cl
je 0x6e04de
cmp cl, byte [eax]
jne 0x6e04de
mov cl, byte [edx + 1]
inc edx
inc eax
test cl, cl
jne 0x6e04d1
movzx eax, byte [eax]
movzx ecx, byte [edx]
sub ecx, eax
je 0x6e0503
test ecx, ecx
jle 0x6e04f1
lea edi, [esi + 4]
jmp 0x6e04f3
mov ebx, esi
cmp edi, ebx
jne 0x6e04a6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 8
mov edi, dword [esp + 0x10]
mov ecx, ebp
mov eax, dword [ebp]
push dword [edi + 0x24]
call dword [eax]
sub esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop edi
pop esi
pop ebp
mov word [ecx], ax
mov al, 1
pop ebx
add esp, 8
ret 8
Function at 0x40187c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
xor esi, esi
cmp ebx, esi
push edi
mov edi, ecx
jne 0x40189c
push esi
push esi
push 2
xor ecx, ecx
pop eax
call fcn.004037e4
xor al, al
jmp 0x40191f
push ebp
call fcn.00401203
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push esi
push ebx
call fcn.0048c2f5
push ebx
call fcn.0048c512
push esi
push esi
push ebx
mov ebp, eax
call fcn.0048c2f5
add esp, 0x1c
cmp ebp, esi
jne 0x4018d0
push esi
push esi
push 0xd
jmp 0x4018fd
lea eax, [ebp + 1]
push eax
call fcn.004894f5
push ebx
push 1
mov esi, eax
push ebp
push esi
mov byte [esi], 0
call fcn.0048c8aa
add esp, 0x14
cmp eax, 1
je 0x401909
push esi
call fcn.0048c8c5
pop ecx
push 0
push 0
push 2
xor ecx, ecx
pop eax
call fcn.004037e4
xor al, al
jmp 0x40191e
push edi
mov ecx, ebp
mov edx, esi
call fcn.00401923
push esi
mov bl, al
call fcn.0048c8c5
pop ecx
mov al, bl
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x405f2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405f42
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405f77
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405f73
cmp edi, eax
jae 0x405f77
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405f65
cmp edi, eax
jb 0x405f7b
xor eax, eax
jmp 0x405f85
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40617c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x40620a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4061b3
cmp dword [ebp - 8], 2
jne 0x406209
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405df5
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405cf6
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x4061f1
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x406201
push eax
call fcn.0048d175
pop ecx
mov edx, esi
call fcn.00405cbd
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x4063cb
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4aa9a4
call fcn.004a9438
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405e35
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406416
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bc5
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4063f7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4063f7
lea ecx, [ebp - 0x10]
call fcn.004286ff
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x40644d
xor esi, esi
jmp 0x4063fa
push eax
call fcn.004063cb
test eax, eax
pop ecx
je 0x406449
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4063f7
call edi
cmp eax, ebx
jne 0x406449
jmp 0x4063f7

Function at 0x4086b8
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4ac2b3
call fcn.004a9438
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.0048c8d0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x408703
xor eax, eax
jmp 0x4087c7
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.0048c8d0
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00408da0
test edi, edi
jle 0x4087c4
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4087bc
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405e35
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.00408d45
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405bc5
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405e35
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00408d45
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bc5
add ebx, 8
dec dword [ebp - 0x10]
jne 0x408749
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4087fe
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x40887f
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x40887f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x40887a
cmp dword [esi + 4], ebx
je 0x40887a
cmp dword [esi + 8], ebx
je 0x40887a
cmp dword [esi + 0xc], ebx
je 0x40887a
cmp eax, ebx
je 0x40887a
xor eax, eax
inc eax
jmp 0x40887c
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x4089ae
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4aaffc
call fcn.004a9438
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.0048c8d0
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00406620
push 0x4bacec
push eax
mov dword [ebp - 4], esi
call fcn.00405767
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.00405bc5
test bl, bl
je 0x408b84
mov ebx, str.___
push ebx
call fcn.0048d175
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.0048d175
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406620
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.00405767
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405bc5
test bl, bl
je 0x408a9d
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.004065d0
mov dword [ebp - 4], 2
call fcn.00405107
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x408b53
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406620
push esi
push eax
mov dword [ebp - 4], 3
call fcn.00405767
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405bc5
test bl, bl
je 0x408b5b
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.004065d0
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405e35
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040665c
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00405107
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405bc5
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405bc5
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405bc5
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x408b6e
mov esi, edi
call fcn.00405df5
jmp 0x408b8b
cmp ecx, 1
jge 0x408b7d
push 0x80070057
call fcn.00405cde
cmp word [eax + 2], 0x3a
jne 0x408b65
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x408b9d
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408bc7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x409544
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x409572
push dword [esp + 0xc]
call fcn.0048d175
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409572
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x40958c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x409615
push ebx
call fcn.004894f5
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x409606
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4bacec
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409606
cmp dword [ebp - 0xc], ebx
je 0x409606
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x409615
push dword [ebp - 4]
call fcn.0048c8c5
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x409651
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4aa84d
call fcn.004a9438
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4dc00c
mov dword [ebp - 0x10], edi
call fcn.00405e78
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0048c8d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00406050
push esi
call fcn.0040a4cf
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4097ac
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0048c8d0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x409805
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x4098bb
mov eax, dword [ebp - 0x94]
dec eax
je 0x4098a7
dec eax
jne 0x4098bb
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x409854
cmp dword [ebp - 0x9c], edx
jne 0x40983e
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x4098a3
cmp dword [ebp - 0x9c], edi
jne 0x40988c
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x4098a3
cmp eax, 5
jne 0x40987e
cmp dword [ebp - 0x9c], 2
jne 0x409865
push eax
jmp 0x409885
cmp dword [ebp - 0x9c], 1
jne 0x409872
mov edi, ecx
jmp 0x4098bb
cmp dword [ebp - 0x9c], edi
jne 0x4098bb
push 3
jmp 0x409885
cmp eax, 4
ja 0x409888
push 4
pop edi
jmp 0x4098bb
cmp eax, ecx
jb 0x4098bb
cmp dword [ebp - 0x9c], 2
jae 0x409899
cmp eax, ecx
jbe 0x4098bb
cmp byte [ebp + 0x76], dl
jne 0x4098bb
call fcn.004096d4
mov edi, eax
jmp 0x4098bb
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x40a5e2
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a607
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a6c8
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.0048c8d0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a677
lea eax, [ebp - 0x20c]
push 0x4baec8
push eax
call fcn.0048dda6
test eax, eax
pop ecx
pop ecx
je 0x40a66b
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a641
jmp 0x40a680
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x40a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40a6a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a6c7
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a6c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret