joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 8]
mov dword [0x100280c8], eax
mov edx, dword [esi + 8]
add edx, 0x646c6f47
movzx ecx, dx
and ecx, 0x8000ffff
push edi
jns 0x1000102b
dec ecx
or ecx, 0xffff0000
inc ecx
mov eax, dword [esp + 0x14]
movzx ebx, cx
mov ecx, 0x45
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor word [eax + 0xc], bx
xor word [eax + 0xe], bx
xor dword [eax + 0x110], edx
movzx ecx, dl
and ecx, 0x800000ff
jns 0x1000105d
dec ecx
or ecx, 0xffffff00
inc ecx
xor byte [eax + 0x114], cl
pop edi
pop esi
add eax, 0x10
mov ecx, 0x40
pop ebx
mov edi, edi
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x10001070
ret

Function at 0x10001080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [0x100280c8]
push esi
mov esi, dword [esp + 8]
push edi
mov edi, eax
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
add edx, 0x646c6f47
add eax, 7
mov ecx, 0x40
pop esi
lea esp, [esp]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x100010b0
ret

Function at 0x1000161a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10027240]
jne 0x10001624
repz ret
jmp fcn.10001d88
Function at 0x10006cd8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000206a
and dword [ebp - 4], 0
cmp dword [0x10028a58], 0
mov ebx, eax
jne 0x10006d89
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10006e3a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100253e0
push edi
call esi
test eax, eax
je 0x10006e3a
push eax
call fcn.10001ff8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10028a58], eax
call esi
push eax
call fcn.10001ff8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10028a5c], eax
call esi
push eax
call fcn.10001ff8
mov dword [esp], 0x100253a0
push edi
mov dword [0x10028a60], eax
call esi
push eax
call fcn.10001ff8
pop ecx
mov dword [0x10028a68], eax
test eax, eax
je 0x10006d89
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001ff8
pop ecx
mov dword [0x10028a64], eax
mov eax, dword [0x10028a64]
cmp eax, ebx
je 0x10006de1
cmp dword [0x10028a68], ebx
je 0x10006de1
push eax
call fcn.10002073
push dword [0x10028a68]
mov esi, eax
call fcn.10002073
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10006de1
test edi, edi
je 0x10006de1
call esi
test eax, eax
je 0x10006dd8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10006dd8
test byte [ebp - 0xc], 1
jne 0x10006de1
or dword [ebp + 0x10], 0x200000
jmp 0x10006e1a
mov eax, dword [0x10028a5c]
cmp eax, ebx
je 0x10006e1a
push eax
call fcn.10002073
pop ecx
test eax, eax
je 0x10006e1a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10006e1a
mov eax, dword [0x10028a60]
cmp eax, ebx
je 0x10006e1a
push eax
call fcn.10002073
pop ecx
test eax, eax
je 0x10006e1a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10028a58]
call fcn.10002073
pop ecx
test eax, eax
je 0x10006e3a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10006e3c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10009800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x10029014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10009898
push SysFreeString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x10009878
xor eax, eax
push ebp
push 0x10009871
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x100098b4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10009878
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x10029014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x10029014], ax
mov esp, ebp
pop ebp
ret
Function at 0x1000a36c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x1002a03c], 0
je 0x1000a3cd
cmp word [0x1002a210], 0xd7b2
jne 0x1000a395
cmp dword [0x1002a218], 0
jbe 0x1000a395
mov eax, 0x1002a20c
call dword [0x1002a228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x1002905c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x1000a3f4
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x10029020], 0
jne 0x1000a3e9
push 0
push 0x10029054
push 0x1002905c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x1000b378
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x1000b3de
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.1000a730
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.100096f4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x1000b3c8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000b3e5
lea eax, [ebp - 0x10]
call fcn.1000a4e8
ret

Function at 0x1000c5ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x1000c688
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.1000aa30
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.1000a9a0
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x1000c614
cmp byte [esp], 0
je 0x1000c659
mov eax, edi
call fcn.1000a9a0
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x1000c694
mov eax, edi
call fcn.1000a9a0
push eax
mov eax, edi
call fcn.1000a9a0
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.100095cc
mov edx, ebx
mov eax, edi
call fcn.1000aa30
jmp 0x1000c694
mov eax, edi
mov edx, 0x1000c6a4
call fcn.1000a53c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1000ccec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.1000a938
xor eax, eax
push ebp
push 0x1000cd4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.1000a53c
mov eax, ebx
call fcn.1000a998
mov eax, dword [ebx]
call fcn.1000a748
test eax, eax
jle 0x1000cd38
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x1000cd2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1000cd55
lea eax, [ebp - 4]
call fcn.1000a4e8
ret
Function at 0x1000d398
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x1000d3e0
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.KERNEL32.dll_IsBadReadPtr
test eax, eax
jne 0x1000d3d6
cmp word [edi], 0x5a4d
jne 0x1000d3d6
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x1000d3d6
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1000d3ec
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000d524
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1000d56a
push 0x20a
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileW
mov ebx, eax
jmp 0x1000d59b
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000d5d2
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x1000d5cc
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push esi
call sub.KERNEL32.dll_CloseHandle
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x100106ac
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x10010728
cmp dword [esp + 0x10], 0x1000
jne 0x10010728
cmp dword [esp + 4], 0
je 0x10010728
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x10010728
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x10010728
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x10010728
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1001316c
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x10029b88], 0xffffffff
jne 0x100131bb
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x100131b4
mov eax, esp
mov edx, 0x114
call fcn.1000bb68
mov dword [esp], 0x114
mov eax, esp
push eax
call sub.KERNEL32.dll_GetVersionExW
cmp dword [esp + 4], 6
setae al
and eax, 0x7f
mov dword [0x10029b88], eax
jmp 0x100131bb
xor eax, eax
mov dword [0x10029b88], eax
cmp dword [0x10029b88], 1
sete al
add esp, 0x114
ret

Function at 0x1001390c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x100139c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x100139dc
call fcn.1000ccec
push dword [ebp - 0xc]
push 0x100139f0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, 0x100139fc
call fcn.100137d0
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.1000a808
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.1000a948
push eax
call fcn.100134ec
mov esi, eax
test esi, esi
je 0x100139a8
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x100139a2
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100139ca
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.1000a50c
ret

Function at 0x10013c54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x10013cc5
mov ebx, 0x5f040000
jmp 0x10013cb3
cmp dword [esp + 0x10], 0x10000
jne 0x10013c91
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
jmp 0x10013cc5
cmp dword [esp + 0xc], 0x10000
jae 0x10013ca5
mov dword [esp + 0xc], 0x10000
jmp 0x10013cad
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
je 0x10013c71
push 0x40
push 0x1000
push edi
push esi
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x10013e2c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x10029b74]
cmp eax, 0x1c
jne 0x10013ea7
cmp dword [ebp - 0xc], 0x1000
jne 0x10013ea2
cmp dword [ebp - 0x18], 0
je 0x10013ea2
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x10013ea2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x10013e81
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x10013ea7
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x10029b44]
cmp eax, 0
je 0x10013ea2
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x10029b90]
add ebx, dword [ebp - 0x10]
jmp 0x10013e43
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x100177e4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x100179c9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 0x100179e4
call fcn.10010524
mov dword [0x1002a6dc], eax
xor edx, edx
mov eax, 0x10017a08
call fcn.10010524
mov dword [0x1002a6e0], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.1000aa30
lea eax, [ebp - 8]
call fcn.1000a9a0
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.1000a9a0
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.1000a9a0
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.1000a9a0
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.1000a9a0
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, 0x10017a30
call fcn.1000ccec
push dword [ebp - 0xc]
push 0x10017a40
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.1000c980
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.1000a808
mov eax, dword [ebp - 8]
call fcn.1000a948
push eax
push 0
push 0
call fcn.1000b808
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x100179ae
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x1002a6d0], esi
mov dword [0x1002a6d4], edi
cmp dword [0x1002a6dc], 0
je 0x10017900
cmp dword [0x1002a6e0], 0
jne 0x10017980
mov eax, 0x10017a4c
call fcn.10010620
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x10017992
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x10017992
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x10017992
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x10017992
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x10017992
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10017992
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x1002a6d8], edx
mov edx, 0x10017794
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x10017992
push 0x10017740
push 1
call dword [0x1002a6dc]
test eax, eax
setne bl
test bl, bl
jne 0x100179ae
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100179d0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.1000a50c
ret
Function at 0x10017a68
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x1002a6dc], 0
je 0x10017a80
cmp dword [0x1002a6e0], 0
jne 0x10017ad7
mov eax, 0x10017af0
call fcn.10010620
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x10017abd
mov eax, dword [0x1002a6d8]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x10017ae2
push 0x10017740
call dword [0x1002a6e0]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x1001a230
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.1000a938
xor eax, eax
push ebp
push 0x1001a2f0
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x1001a2da
cmp dword [ebp - 4], 0
jne 0x1001a27d
lea edx, [ebp - 8]
mov eax, esi
call fcn.10019efc
test al, al
je 0x1001a2da
call sub.KERNEL32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.10019efc
test al, al
je 0x1001a2cb
cmp dword [ebp - 4], 0
je 0x1001a2ab
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x1001a2c2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.ADVAPI32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_LocalFree
cmp dword [ebp - 8], 0
je 0x1001a2da
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001a2f7
lea eax, [ebp - 4]
call fcn.1000a4e8
ret

Function at 0x1001a3d8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x1001a481
push 0
push esi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
push ebx
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edi, eax
test edi, edi
je 0x1001a47b
push 0
lea eax, [esp + 4]
push eax
push ebx
push edi
push esi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1001a475
cmp ebx, dword [esp]
jne 0x1001a475
xor ebx, ebx
mov eax, dword [esp]
dec eax
shr eax, 1
test eax, eax
jl 0x1001a45f
inc eax
xor edx, edx
movzx ecx, word [edi + edx*2]
add ebx, ecx
test ebx, 0xffff0000
je 0x1001a45b
mov ecx, ebx
and ecx, 0xffff
shr ebx, 0x10
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x1001a43e
mov eax, ebx
and ax, 0xffff
shr ebx, 0x10
add ax, bx
movzx eax, ax
mov ebx, eax
mov ebp, dword [esp]
add ebp, ebx
push edi
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x1001a48c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x1001a56a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
push ebx
call sub.KERNEL32.dll_GetSystemDirectoryW
test eax, eax
jne 0x1001a4cb
mov word [ebx], 0x2e
mov word [ebx + 2], 0
push ebx
call sub.KERNEL32.dll_lstrlenW
cmp word [ebx + eax*2 - 2], 0x5c
je 0x1001a4e4
push 0x1001a578
push ebx
call sub.KERNEL32.dll_lstrcatW
lea edx, [ebp - 0x44]
mov eax, 0x1001a584
call fcn.1000ccec
push dword [ebp - 0x44]
push 0x1001a594
lea edx, [ebp - 0x48]
mov eax, 0x1001a5a0
call fcn.1000ccec
push dword [ebp - 0x48]
push 0x1001a5b4
lea edx, [ebp - 0x4c]
mov eax, 0x1001a5c0
call fcn.1000ccec
push dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.1000a808
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
call fcn.1000a948
push eax
call fcn.10012b30
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.KERNEL32.dll_lstrcatW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001a571
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.1000a50c
lea eax, [ebp - 4]
call fcn.1000a4e8
ret

Function at 0x1001a5c4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.1000a938
xor eax, eax
push ebp
push 0x1001a64a
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.1000aa30
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x1001a621
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x1001a61c
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x1001a611
add ebx, 2
jmp 0x1001a627
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.1000a748
add eax, dword [edi]
cmp eax, esi
ja 0x1001a5ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1001a651
lea eax, [ebp - 4]
call fcn.1000a4e8
ret