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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
push ebx
sub esp, 0x5c
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x2c], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x4061e8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x3c], ecx
call ecx
mov edx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [ebp - 0x38], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
sub esp, 0x20
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
call ecx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call edx
mov ebx, dword [ebp - 0x2c]
sub esp, 0x20
mov dword [esp], 0xfffffff5
call ebx
mov edx, dword [ebp - 0x30]
sub esp, 4
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp + 8], edi
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dword [sym.imp.ucrtbase.dll_free]

Function at 0x406d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x406deb
cmp byte [esi + ebx - 1], 0xa
je 0x406dbf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40c144], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x407890
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x427420
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x427438
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x427488
call sym._IsDebuggerPresent_0
test eax, eax
je 0x42742f
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x427477

Function at 0x4274c0
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4e3824
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x427588
mov edx, dword [0x4e37e0]
mov eax, dword [edx + 4]
test eax, eax
je 0x427550
cmp edx, 0x4e37e0
jne 0x427535
mov dword [0x4e37e0], eax
cmp eax, 0x4e37e0
je 0x42753c
lea esi, [esi]
test eax, eax
je 0x427564
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4e37e0
jne 0x427528
mov eax, dword [0x4e37e4]
mov dword [edx + 4], eax
test eax, eax
je 0x427564
mov edx, eax
jmp 0x427532
mov dword [esp], 0x4e3860
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x4275a4
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, 0x4d65a8
call dbg.__eh_shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x427564
Function at 0x4275c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x4e3825], al
mov byte [edx + edx + 0x4e3824], cl
add edx, 1
cmp edx, 4
jne 0x4275d2
xor eax, eax
mov edx, 0x5f
jmp 0x42760f
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4e382c], dl
add eax, 1
cmp eax, 0x15
jne 0x427608
xor eax, eax
mov edx, 0x5f
jmp 0x427637
movzx edx, byte [eax + str.__eh_shmem3_gcc_tdm_]
mov byte [eax + 0x4e3860], dl
add eax, 1
cmp eax, 0x14
jne 0x427630
mov dword [esp + 8], 0x4e3824
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4e3874], 0x2d
mov dword [0x4e3875], 0x61616161
mov dword [0x4e3879], 0x61616161
mov dword [0x4e387d], 0x61616161
mov dword [0x4e3881], 0x61616161
mov dword [0x4e3885], 0x61616161
mov dword [0x4e3889], 0x61616161
mov dword [0x4e388d], 0x61616161
mov dword [0x4e3891], 0x61616161
mov byte [0x4e3895], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x42781a
mov dword [esp], 0x4e3860
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x427770
mov edx, 0x4e37e0
mov eax, 0x20
nop
bt edx, eax
jae 0x427710
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e3895], 0x41
sub eax, 1
jne 0x427700
mov dword [esp], 0x4e3860
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x427809
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
mov dword [0x4e37e0], 0x4e37e0
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x4e37e0]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x36
mov dword [esp + 4], 0x4e3860
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x427839
lea esi, [esi]
cmp byte [eax + 0x4e3875], 0x41
jne 0x4277bb
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x4277a8
mov eax, esi
mov dword [0x4e37e0], eax
jmp 0x4277dc
cmp edx, 0x4e37e0
je 0x427743
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x4277d0
cmp edx, 0x4e37e0
je 0x427743
mov dword [edx + 4], 0x4e37e0
mov dword [esp], dbg.__eh_shmem3_gcc_tdm_cleanup_local_region
call sym.__onexit
jmp 0x427743
mov eax, 0x4d6604
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x42775e
mov eax, 0x4d65e0
call dbg.__eh_shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x4d6628
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x4277c5
Function at 0x43bbe0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x43bcb4
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00427190
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4d6ee4
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x43bcc0
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x43bcb0
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x43bcb0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x43bd00
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x43bc72
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x43bc72
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x43bc72
mov eax, esi
jmp 0x43bc72
mov esp, ebx
jmp 0x43bcb4
Function at 0x4043f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40440f
cmp dword [esi], 2
jae 0x40440f
push 0x7a
pop eax
jmp 0x40446d
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40446d
cmp dword [ebp + 0x10], 7
je 0x40443d
push 0xd
jmp 0x40440c
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x404467
test cl, 1
jne 0x404439
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x404439
cmp word [edi + eax*2 - 2], 0
jne 0x404439
cmp eax, 1
jbe 0x404467
cmp word [edi + eax*2 - 4], 0
jne 0x404439
shr ecx, 1
mov dword [esi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x408989
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x4089da
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x4089eb
push 0xd
pop eax
jmp 0x408a18
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4089ee
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x40938a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x200
lea ebp, [esp - 4]
mov eax, dword [0x477930]
xor eax, ebp
mov dword [ebp + 0x200], eax
push 0x18
mov eax, 0x452eec
call fcn.0043e0fd
mov eax, dword [ebp + 0x20c]
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
lea ecx, [ebp - 0x14]
call fcn.004043b5
mov ebx, eax
cmp ebx, esi
je 0x409412
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040439a
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.0043e0ee
add ebp, 0x204
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40942a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040938a
cmp eax, esi
jne 0x40945c
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0x100
call ebx
test eax, eax
je 0x40941a
lea ecx, [ebp - 0x14]
call fcn.0040439a
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004088d4
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040439a
mov eax, esi
jmp 0x4093ed
Function at 0x40c38f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x477930]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x20
mov eax, 0x453500
call fcn.0043e130
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
mov edi, dword [ebp + 0x418]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x40c3f7
call fcn.00407ec0
mov esi, eax
jmp 0x40c4fc
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40c410
call fcn.00407ec0
jmp 0x40c4f1
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x40c406
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x20], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40c482
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40c44a
lea ecx, [ebp]
call fcn.0040903e
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040592f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0043e0ee
add ebp, 0x408
leave
ret 0x10
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp]
call fcn.0040a6bf
mov dword [ebp - 4], 1
jmp 0x40c4b2
cmp dword [ebp], ebx
jne 0x40c4be
mov esi, 0x8007000e
jmp 0x40c4f3
push esi
push dword [ebp]
push esi
push dword [ebp - 0x18]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40c406
xor ecx, ecx
mov edx, dword [ebp]
mov word [edx + eax*2], cx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x28]
call fcn.0040bdd8
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x40c44f
lea ecx, [ebp]
call fcn.0040903e
jmp 0x40c44f
Function at 0x40cb45
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x477930]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x5c
mov eax, 0x453634
call fcn.0043e0fd
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x38
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], 0x45913c
call fcn.0043e580
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.0043e580
add esp, 0x18
call fcn.00417a00
mov eax, dword [eax + 4]
push 0x104
lea ecx, [ebp]
push ecx
push dword [eax + 0x44]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x214]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c098
add esp, 0xc
mov byte [ebp - 4], 1
push 0xb
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00408347
test eax, eax
jne 0x40cc06
push 0xb
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040c94d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
call fcn.004016db
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40cc40
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x10]
call esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004018f8
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x214]
call fcn.004024c1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043e0ee
add ebp, 0x20c
leave
ret 4

Function at 0x40e1a8
Capabilities:
Create process on windows

Disassembly:
push 1
xor eax, eax
push eax
push eax
push dword [0x479118]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x41310b
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [ecx]
xor ecx, ecx
cmp dword [eax - 0xc], ecx
jne 0x413117
xor eax, eax
ret
push 1
push ecx
push ecx
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
ret

Function at 0x41359d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x477930]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.0043e580
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x41360a
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
jne 0x41360a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__CSUComUtil::IsWindowsVistaOrLater__GetVersionEx_failed_with_error__d._n
call fcn.0043e311
pop ecx
pop ecx
xor eax, eax
jmp 0x413615
cmp dword [ebp - 0x7c], 6
jb 0x413613
xor edi, edi
inc edi
mov eax, edi
mov ecx, dword [ebp + 0x9c]
pop edi
xor ecx, ebp
pop esi
call fcn.0043e0ee
add ebp, 0xa0
leave
ret

Function at 0x41376f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4137d8
cmp dword [ebp + 0x10], 1
je 0x4137b0
cmp dword [ebp + 0x10], 2
je 0x4137b0
push 0xd
pop eax
jmp 0x4137d8
mov eax, dword [ebp - 4]
test edi, edi
je 0x4137d2
test eax, eax
je 0x4137cd
test al, 1
jne 0x4137ab
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4137d2
jmp 0x4137ab
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x414123
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x477930]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004140c0
test eax, eax
je 0x414141
xor eax, eax
inc eax
jmp 0x4141a3
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x414188
push 0x45cd38
call fcn.0043e311
pop ecx
jmp 0x41419f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e0ee
leave
ret
Function at 0x415521
Capabilities:
Get system information on windows

Disassembly:
push 4
mov eax, 0x4546f5
call fcn.0043e0fd
mov esi, ecx
push 0x24
lea eax, [esi + 4]
push 0
push eax
call fcn.0043e580
mov ebx, 0x11c
push ebx
lea edi, [esi + 0x28]
push 0
push edi
call fcn.0043e580
add esp, 0x18
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [edi], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
call ebx
mov dword [esi + 0x144], eax
test eax, eax
jne 0x41558f
push edi
mov dword [edi], 0x114
call ebx
test eax, eax
jne 0x41558f
push 0x45ae02
lea ecx, [ebp - 0x10]
call fcn.004071ea
and dword [ebp - 4], 0
jmp 0x4155a1
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.00414ea8
mov dword [ebp - 4], 1
push eax
lea ecx, [esi + 0x148]
call fcn.00402efc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004024c1
xor eax, eax
call fcn.0043e1d5
ret
Function at 0x41635e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x477930]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x45487d
call fcn.0043e0fd
xor ebx, ebx
mov dword [ebp - 4], ebx
push 5
pop ecx
push 0x1f4
lea eax, [ebp + 0x14]
push ebx
mov esi, 0x45e750
lea edi, [ebp]
push eax
mov byte [ebp - 0xd], bl
rep movsd dword es:[edi], dword [esi]
call fcn.0043e580
add esp, 0xc
push dword [ebp + 0x214]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4163e7
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4163e7
push 0x104
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.004034b4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040b96f
push dword [ebp - 0x14]
lea ecx, [ebp + 0x218]
call fcn.00406735
test eax, eax
jne 0x416415
mov byte [ebp - 0xd], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024c1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x218]
call fcn.004024c1
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0043e0ee
add ebp, 0x20c
leave
ret 8

Function at 0x41645e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4548b5
mov eax, dword fs:[0]
push eax
mov eax, 0x1008
call fcn.00441000
push ebx
push esi
push edi
mov eax, dword [0x477930]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4164d0
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004024c1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov edi, dword [ebp - 0x10]
shr edi, 2
test edi, edi
jbe 0x4164ad
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402607
mov byte [ebp - 4], 1
push dword [ebp + esi*4 - 0x1014]
mov byte [ebp - 4], 0
mov ecx, ebx
call fcn.0041635e
test al, al
jne 0x41650a
inc esi
cmp esi, edi
jb 0x4164da
jmp 0x4164ad
mov esi, dword [ebp + esi*4 - 0x1014]
jmp 0x4164b0