joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f98
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404154
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403ff9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404170
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40406b
xor eax, eax
push ebp
push 0x404064
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00403df0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40404d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404190
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40406b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40414c
cmp byte [ebp - 0xd], 0
jne 0x4040ad
cmp byte [ebp - 0x12], 0
je 0x40414c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4040c6
dec ebx
cmp byte [ebx], 0x2e
je 0x4040d5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4040c5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40414c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404102
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40414c
cmp byte [ebp - 0xd], 0
je 0x40414c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40414c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405e38
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004033a8
add esp, 0x104
pop ebx
ret
Function at 0x4064d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406509
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004033a8
jmp 0x406512
mov eax, ebx
mov edx, esi
call fcn.00403314
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40651c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40653d
mov al, byte [esp]
jmp 0x40653f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4087e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x408866
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
lea edx, [ebp - 4]
mov eax, 3
call fcn.00402760
mov eax, dword [ebp - 4]
call fcn.00403650
push eax
lea edx, [ebp - 8]
mov eax, 4
call fcn.00402760
mov eax, dword [ebp - 8]
call fcn.00403650
push eax
lea edx, [ebp - 0xc]
mov eax, 1
call fcn.00402760
mov eax, dword [ebp - 0xc]
call fcn.00403650
push eax
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40886d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004032e4
ret

Function at 0x408878
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x408920
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
lea edx, [ebp - 8]
mov eax, 2
call fcn.00402760
push dword [ebp - 8]
push 0x408938
lea edx, [ebp - 0xc]
mov eax, 3
call fcn.00402760
push dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040355c
mov eax, dword [ebp - 4]
call fcn.00403650
push eax
lea edx, [ebp - 0x10]
mov eax, 5
call fcn.00402760
mov eax, dword [ebp - 0x10]
call fcn.00403650
push eax
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402760
mov eax, dword [ebp - 0x14]
call fcn.00403650
push eax
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408927
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004032e4
ret
Function at 0x40893c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4089fa
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
lea edx, [ebp - 8]
mov eax, 2
call fcn.00402760
push dword [ebp - 8]
push 0x408a14
lea edx, [ebp - 0xc]
mov eax, 3
call fcn.00402760
push dword [ebp - 0xc]
push 0x408a14
lea edx, [ebp - 0x10]
mov eax, 4
call fcn.00402760
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040355c
mov eax, dword [ebp - 4]
call fcn.00403650
push eax
lea edx, [ebp - 0x14]
mov eax, 6
call fcn.00402760
mov eax, dword [ebp - 0x14]
call fcn.00403650
push eax
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.00402760
mov eax, dword [ebp - 0x18]
call fcn.00403650
push eax
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a01
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004032e4
ret

Function at 0x408a18
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x408aec
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0
lea edx, [ebp - 8]
mov eax, 2
call fcn.00402760
push dword [ebp - 8]
push 0x408b04
lea edx, [ebp - 0xc]
mov eax, 3
call fcn.00402760
push dword [ebp - 0xc]
push 0x408b04
lea edx, [ebp - 0x10]
mov eax, 4
call fcn.00402760
push dword [ebp - 0x10]
push 0x408b04
lea edx, [ebp - 0x14]
mov eax, 5
call fcn.00402760
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 7
call fcn.0040355c
mov eax, dword [ebp - 4]
call fcn.00403650
push eax
lea edx, [ebp - 0x18]
mov eax, 7
call fcn.00402760
mov eax, dword [ebp - 0x18]
call fcn.00403650
push eax
lea edx, [ebp - 0x1c]
mov eax, 1
call fcn.00402760
mov eax, dword [ebp - 0x1c]
call fcn.00403650
push eax
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408af3
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.004032e4
ret
Function at 0x513050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbe000]
push edi
jmp 0x51306a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x513071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x513060
mov eax, 1
add ebx, ebx
jne 0x513083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x513094
jne 0x5130b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5130b3
dec eax
add ebx, ebx
jne 0x5130a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x513078
add ebx, ebx
jne 0x5130af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x513105
xor ecx, ecx
sub eax, 3
jb 0x5130cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51313a
sar eax, 1
mov ebp, eax
jmp 0x5130d6
add ebx, ebx
jne 0x5130d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5130a4
inc ecx
add ebx, ebx
jne 0x5130e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5130a4
add ebx, ebx
jne 0x5130f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5130e6
jne 0x513102
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5130e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x513124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x513116
jmp 0x513066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x513124
add edi, ecx
jmp 0x513066
pop esi
mov edi, esi
mov ecx, 0x3eef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x513142
cmp byte [edi], 0x11
jne 0x513142
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x513147
lea edi, [esi + 0x10c000]
mov eax, dword [edi]
or eax, eax
je 0x5131bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14e0ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14e228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x513174
mov ecx, edi
jns 0x5131a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14e22c]
or eax, eax
je 0x5131b9
mov dword [ebx], eax
add ebx, 4
jmp 0x513191
call dword [esi + 0x14e23c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5131f0
cmp al, 0xef
ja 0x5131e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5131c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5131d2
mov ebp, dword [esi + 0x14e230]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x513224
sub esp, 0xffffff80
jmp 0x426bf7
Function at 0x10002eb2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x10009460
call fcn.10009100
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.10003a91
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x10002ede
push edi
call esi
cmp eax, 0xffffffff
jne 0x10002f20
test ebx, ebx
je 0x10002f1d
lea ecx, [ebp - 0x18]
call fcn.10001b87
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.10003b9a
test al, al
push dword [ebp - 0x18]
je 0x10002f17
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.100021dc
pop ecx
mov eax, esi
jmp 0x10002f20
call fcn.100021dc
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x100034d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100034f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100034f6
xor al, al
jmp 0x10003516
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.10009150
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x10004711
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov ebx, ecx
mov eax, dword [esi]
mov dword [esi + 4], edi
mov word [eax], di
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push edi
push eax
push edi
mov dword [ebp - 8], edi
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x1000474e
cmp eax, 0xea
jne 0x1000478e
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
mov dword [ebp - 4], eax
jbe 0x10004761
push eax
mov ecx, esi
call fcn.10001904
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x55]
push ebp
Function at 0x10008a61
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x10009d6c
call fcn.10009100
sub esp, 0x28
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp si, ax
jne 0x10008b3f
mov ecx, eax
xor edi, edi
shr ax, 0xa
and ecx, 0x3ff
mov esi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
movzx ecx, cx
lea edx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.10008b6d
lea ecx, [ebp - 0x34]
call fcn.100088ac
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], edi
movzx ebx, si
mov eax, dword [ebp - 0x10]
neg eax
sbb eax, eax
not eax
and eax, ebx
cmp eax, dword [ebp - 0x18]
jae 0x10008b21
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ecx + eax*4]
cmp dword [esi + 4], edi
je 0x10008b21
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.10001c5a
push dword [esi]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10001ed3
lea ecx, [ebp - 0x28]
push str..txt
call fcn.10001ed3
mov edx, dword [ebp - 0x28]
mov ecx, 0x1000d0e8
call fcn.100088a0
test al, al
jne 0x10008b4e
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100021dc
pop ecx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jb 0x10008ac1
push dword [ebp - 0x34]
call fcn.100021dc
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.10002827
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [esi]
mov ecx, 0x1000d108
call fcn.10001d82
push dword [ebp - 0x28]
call fcn.100021dc
push dword [ebp - 0x34]
call fcn.100021dc
pop ecx
jmp 0x10008b32
Function at 0x408020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x408033
xor al, al
pop esi
pop ebp
ret 4
push 0
push 0
push 0
push 0
mov byte [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4080e0
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
push 0
push 0
mov dword [esi], eax
call fcn.004d6023
add esp, 0x18
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x408070
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4080a9
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x408099
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x4080b9
mov eax, dword [ecx]
call dword [eax]
mov dword [esi], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x4080ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
pop esi
pop ebp
ret 4

Function at 0x408450
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x408460
mov eax, dword [edi]
jmp 0x408462
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x40846a
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x40847d
pop edi
mov al, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0x14], 8
jb 0x40848b
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x408493
mov esi, dword [esi]
push eax
push 3
push edi
push esi
push str.move_file_from____s___to____s___flag___d_failed__error___d.
push 0xbe
push str.utility::ufile::moveFile
call fcn.0040c770
add esp, 0x1c
xor al, al
pop edi
pop esi
ret

Function at 0x408610
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5634e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x214], 0
push 0x208
push eax
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x20e]
push eax
call fcn.004de630
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x210], ax
jne 0x408683
xor ecx, ecx
jmp 0x40869f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408690
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00407100
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d5413
mov esp, ebp
pop ebp
ret
Function at 0x4090e0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5634e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x409103
mov eax, dword [edi]
jmp 0x409105
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x40910d
mov ecx, dword [esi]
push 0
push 1
push eax
push ecx
push str.shell_filename____s___param____s___runas___d__show___d
push 0xb
push str.utility::process::shell
call fcn.0040c770
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004de630
add esp, 0x28
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40916c
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov eax, str.runas
mov ecx, str.open
cmovb eax, ecx
cmp dword [edi + 0x14], 8
jb 0x409188
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x409190
mov esi, dword [esi]
push 0
push 0
push edi
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
cmp eax, 0x20
jg 0x4091d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0x18
push str.utility::process::shell
call fcn.0040c770
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5413
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004d5413
mov esp, ebp
pop ebp
ret
Function at 0x4091f0
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5634e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x409214
mov eax, dword [esi]
jmp 0x409216
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x40921e
mov ecx, dword [edi]
push 0x5f5dd18
push 0
push 1
push eax
push ecx
push str.shellEx_filename____s___param____s___runas___d__show___d__timeout___d
push 0x21
push str.utility::process::shellEx
call fcn.0040c770
push 0x118
lea eax, [ebp - 0x120]
mov dword [ebp - 0x160], 0x3c
push 0
push eax
mov dword [ebp - 0x15c], 0x440
mov dword [ebp - 0x158], 0
call fcn.004de630
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x124]
add esp, 0x2c
mov dword [ebp - 0x124], 0x11c
push eax
call ebx
test eax, eax
jne 0x40929e
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0x114
push eax
call ebx
xor ecx, ecx
mov eax, str.runas
cmp dword [ebp - 0x120], 6
cmovb eax, ecx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x154], eax
jb 0x4092bd
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x150], edi
jb 0x4092cb
mov esi, dword [esi]
lea eax, [ebp - 0x160]
mov dword [ebp - 0x14c], esi
push eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x409322
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0x32
push str.utility::process::shellEx
call fcn.0040c770
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5413
mov esp, ebp
pop ebp
ret
push 0x5f5dd18
push dword [ebp - 0x128]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x409378
cmp eax, 0x102
je 0x409362
cmp eax, 0xffffffff
jne 0x4093bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
push 0x4e
push str.utility::process::shellEx
call fcn.0040c770
add esp, 0x10
jmp 0x4093bc
push str.shellEx_timeout___
push 0x49
push str.utility::process::shellEx
call fcn.0040c770
add esp, 0xc
jmp 0x4093bc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0xffffffff
push eax
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 8], 0
mov eax, 1
movzx ebx, bl
cmove ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 8]
push str.shellEx_exitcode___d_lastError___d
push 0x44
push str.utility::process::shellEx
call fcn.0040c770
add esp, 0x14
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5413
mov esp, ebp
pop ebp
ret