joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4133b5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x413442
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x413402
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x413424
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x413501
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x41346a
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x413475
xor eax, eax
jmp 0x4134c2
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x413493
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.0041407e
pop ecx
jmp 0x4134a6
cmp ecx, 2
jne 0x4134ac
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00411b13
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4134ed
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x413501
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4133c0
pop edi
pop ebx
leave
ret
Function at 0x415b94
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4174d0
call fcn.00415da4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x415bcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x415bcf
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415be7
cmp eax, 0x20b
je 0x415bd4
mov dword [ebp - 0x1c], edi
jmp 0x415bfb
cmp dword [ecx + 0x84], 0xe
jbe 0x415bcf
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x415bf5
cmp dword [ecx + 0x74], 0xe
jbe 0x415bcf
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x420714], 0xffffffff
or dword [0x420718], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41c64c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41c648]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x420710], eax
call fcn.00402d83
cmp dword [section..data], edi
jne 0x415c58
push fcn.00402d83
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00415d90
push 0x4174a0
push 0x41749c
call sub.msvcrt.dll__initterm
mov eax, dword [0x41c644]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x41c640]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x417498
push 0x41744c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x415cbe
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x415d78
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x415d0c
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x415cda
cmp ax, 0x22
jne 0x415cc7
cmp word [esi], 0x22
jne 0x415ce5
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x415cf3
cmp ax, 0x20
jbe 0x415ce0
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x415d19
movzx eax, word [ebp - 0x48]
jmp 0x415d1c
cmp word [esi], 0x20
jbe 0x415ce5
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x415d0c
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x415d3d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x415d72
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00415ddd
ret
Function at 0x7ffe5456
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x30]
pushf
popf
push eax
pop eax
pushf
popf
and al, 0xff
push es
pop ds
call 0x7ffe546f
pop edx
cld
xor dx, dx
add edx, 0xd5e0
pushf
popf
xor ecx, ecx
and al, 0xff
and al, 0xff
mov cl, 0x1e
clc
inc esi
dec esi
xor byte [ecx + edx], 0x59
loop 0x7ffe5489
clc
push dword fs:[0x24]
push eax
pop eax
pop dword [edx + 0xa]
clc
mov cl, 0xff
push edx
loop 0x7ffe549f
xor eax, ecx
xor eax, ecx
mov dword [edx + 0x11], 0xffffacbb
inc esi
dec esi
add al, 0
mov ecx, dword [eax + 0x2c]
and al, 0xff
and al, 0xff
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
and al, 0xff
mov dword [eax + 0x2c], esp
pushf
popf
push 0
cld
push 0
lea esp, [esp]
push 0
push 0
push 0x30
push 0x20
clc
add al, 0
push 0
push 0
clc
push eax
pop eax
add edx, 0xffff7f35
pushal
inc eax
popal
push edx
push edx
push edx
cdq
pop edx
push 0
push eax
pop eax
push es
pop ds
call dword [edx + 0x820e]
pushal
inc eax
popal
add esp, 0x3f8
lea esp, [esp]
xor eax, eax
inc esi
dec esi
inc eax
ret 0xc

Function at 0x7ffe8354
Capabilities:
Encode data using xor

Disassembly:
push es
pop ds
xor eax, ecx
xor eax, ecx
cld
pop eax
xor eax, ecx
xor eax, ecx
add al, 0
add eax, 0x15
cld
mov byte [eax], 5
call 0x7ffe8354
add al, 0
nop
add eax, 5
add al, 0
mov ecx, eax
pushf
popf
nop
call 0x7ffe8315
not eax
not eax
pop eax
and al, 0xff
push bx
inc esp
inc esp
cld
add eax, 0x19
xor eax, ecx
xor eax, ecx
rcr byte [ecx], 0x33
sal dword [ebx], 0xc1
inc esi
dec esi
mov byte [eax], 5
cld
call fcn.7ffe84d6
add eax, 5
nop
push eax
pop eax
xchg ecx, eax
push eax
pop eax
sub ecx, eax
not eax
not eax
cld
xor byte [eax + ecx], 0xa
push bx
inc esp
inc esp
loop 0x7ffe8343
add al, 0
not eax
not eax
clc
pop ecx
loop 0x7ffe8361
or cl, byte [edx]
or dl, byte [edx - 0x77]
retf 0xcc0d
loop 0x7ffe8322
or cl, byte [edx]
or cl, byte [ecx + 0x4f830fca]
invalid
Function at 0x7571b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00757140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00757140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00757140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00757140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x757bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x757c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x76987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x757c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x757c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10034250
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1003428e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10034286
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10034290
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10034276
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10034370
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003439f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003439f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10036104
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x1004f2b7
call fcn.100341a1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10059a84
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.1005a858
call fcn.1005e174
mov edi, dword [ebp - 0x14]
test al, al
je 0x1003614a
mov ecx, dword [0x100c6694]
push edi
push dword [ebp + 8]
call fcn.1005d86c
lea ecx, [ebp - 0x18]
call fcn.10059a84
push edi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push 0x10007e9c
push eax
call fcn.1005a83c
mov esi, dword [ebp - 0x18]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esi - 0x10]
call fcn.1005bcd8
lea ecx, [edi - 0x10]
call fcn.1005bcd8
call fcn.100340e8
ret
Function at 0x10047cad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push 0x1001de38
push 0x80000002
mov dword [ebp - 8], ebx
mov esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10047d8c
cmp dword [ebp - 8], ebx
je 0x10047d8c
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x1001de20
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x10047d83
cmp dword [ebp - 4], 1
je 0x10047d21
cmp dword [ebp - 4], 2
je 0x10047d21
push 0xd
pop edi
jmp 0x10047d83
push dword [ebp - 0xc]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10047d7b
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push ebx
push 0x1001de20
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x10047d68
cmp dword [ebp - 4], 1
je 0x10047d83
cmp dword [ebp - 4], 2
je 0x10047d83
push 0xd
pop edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, ebx
jmp 0x10047d83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x10048d53
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0x208
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x10048d72
xor eax, eax
jmp 0x10048db9
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1001e1a8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10048db7
lea eax, [ebp - 8]
push eax
push esi
push ebx
push ebx
push 0x1001e1d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
test esi, esi
sete bl
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x10048dc3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100c5e00]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.10048d53
test eax, eax
jne 0x10048e20
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1001e1fc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x10048e2b
lea ecx, [ebp - 0x20c]
call fcn.10048e3d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10033c90
leave
ret
Function at 0x10048f32
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
lea ecx, [ebp - 0x20]
call fcn.100997d8
mov edi, eax
test edi, edi
je 0x10048f62
and dword [ebp - 4], esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], 0xc
lea esi, [ebp - 0xc]
mov dword [ebp - 8], eax
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x10048f7b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.10099ac4
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10049252
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov dword [esi], 0x100022fc
mov dword [esi + 4], 0x10002318
call fcn.100492ca
cmp dword [esi + 0xc], 0
je 0x10049287
push dword [esi + 0xc]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esi + 0xc], 0
mov eax, 0x10002310
mov dword [esi + 4], eax
mov dword [esi], eax
pop esi
ret

Function at 0x100494fd
Capabilities:
Access peb ldr_data
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100c5e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.100492ca
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 0x24
xor ecx, ecx
mov dword [ebp - 0x40], 0x18
push 5
mov dword [ebp - 0x3c], ecx
lea ebx, [edi + 0x18]
push ebx
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x38], eax
lea eax, [edi + 8]
push 0x100001
push eax
mov dword [ebp - 0x34], 0x40
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
test esi, esi
js 0x100495a4
push 5
push 0x18
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [edi + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov esi, eax
test esi, esi
js 0x100495a4
mov eax, dword [ebp - 0x20]
push eax
mov dword [edi + 0x10], eax
mov eax, dword fs:[0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
mov dword [edi + 0xc], eax
mov ecx, 0xc0000017
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10033c90
leave
ret 8
Function at 0x1004dc07
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1004dc2b
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x1004dc74
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
lea ecx, [ebx - 1]
mov eax, ecx
mov esi, ecx
and ecx, dword [ebp - 4]
and eax, edi
add eax, ebx
dec ecx
add eax, ecx
not esi
div ebx
xor edx, edx
and esi, edi
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x1004dc72
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x1004dc66
pop esi
pop ebx
pop edi
leave
ret
Function at 0x10058d70
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x100c5e00]
xor eax, esp
mov dword [esp + 0x128], eax
mov eax, dword [0x100c4010]
or eax, dword [0x100c4014]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0xc], edi
jne 0x10058ed3
xor edi, edi
cmp byte [0x100c65d0], al
jne 0x10058e6f
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10058df2
cmp dword [esp + 0x1c], 6
setb al
mov byte [0x100c65c4], al
ja 0x10058deb
jne 0x10058de7
cmp dword [esp + 0x20], 1
ja 0x10058deb
xor edi, edi
jmp 0x10058dee
xor edi, edi
inc edi
test al, al
jne 0x10058e68
push 0x10006abc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x10058e18
test edi, edi
je 0x10058e61
push 0x10006ad8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x10058e61
push 0x10006b28
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c65cc], eax
test eax, eax
je 0x10058e61
push 0x10006b34
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c400c], eax
test eax, eax
je 0x10058e57
push 0x10006b44
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100c65c0], eax
test eax, eax
jne 0x10058e68
mov dword [0x100c400c], 0x10034ae0
mov byte [0x100c65c4], 1
mov byte [0x100c65d0], 1
cmp byte [0x100c65c4], 0
mov ecx, 0x100c4010
push ecx
jne 0x10058e9b
mov esi, dword [0x100c400c]
push ecx
push 0x100580d0
push 0x10027040
mov ecx, esi
call dword [0x100c7310]
call esi
jmp 0x10058ecf
and dword [esp + 0x18], 0
mov eax, ecx
push 0
cdq
push 0
mov dword [0x100c4010], eax
lea eax, [esp + 0x1c]
push eax
push 1
mov dword [0x100c4014], edx
mov edx, 0x10027040
push edx
push ecx
push 0x10057f70
mov dword [esp + 0x30], edx
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov edi, dword [esp + 0xc]
test byte [0x100c69c0], 1
je 0x10058eeb
push 0x10026f20
mov edx, 0x10026c70
call fcn.100593eb
push edi
push ebx
push dword [ebp + 8]
call fcn.10069990
test byte [0x100c69c0], 1
mov esi, eax
je 0x10058f0f
push 0x10026f20
mov edx, 0x100270b0
call fcn.100593eb
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10033c90
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1005c5a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005c5fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1005c5fd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1005c5ed
cmp esi, ecx
jae 0x1005c5fd
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1005c5db
cmp esi, ecx
jae 0x1005c5fd
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x1005c5ff
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10090a57
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [ebp - 0x33243], 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.1009018c
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10090141
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
invalid
test dword [ecx], ebx
cld

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov dword [ebp - 4], edx
xor ebx, ebx
call fcn.10047270
mov edi, eax
test edi, edi
je 0x10092b97
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp esi, 0xffffffff
je 0x10092b6f
test esi, 0x400
je 0x10092b6f
xor eax, eax
inc eax
jmp 0x10092b71
mov eax, ebx
mov ecx, dword [ebp - 4]
push edi
push ebx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test esi, esi
pop esi
sete bl
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10092e46
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100c5e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10092eb8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x10092ea5
mov ebx, dword [ebp - 0x14]
jmp 0x10092ead
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x10092ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.10033c90
leave
ret