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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 0x1c], str.SPLASH
mov dword [eax + 0xc], edx
mov ecx, 0xc2
xor eax, eax
push ebx
lea ebx, [ebx]
mov bl, byte [eax + 0x100204a8]
xor bl, cl
inc ecx
mov byte [ebp + eax - 0x20], bl
inc eax
and ecx, 0xff
cmp eax, 0x1a
jb 0x10012760
lea eax, [ebp - 0x20]
push eax
mov ecx, str.lin
sub ecx, 0x702b1031
lea eax, [ebp - 0x2c]
mov byte [ebp - 6], dl
call fcn.10012b60
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x11182aa4], eax
pop ebx
call fcn.10018a26
mov esp, ebp
pop ebp
ret 4
Function at 0x10012d80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019928
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x11182df0], 0
je 0x10012e22
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x11182df4]
cmp eax, 0x1388
jbe 0x10012e22
push 0x11182e28
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10012e22
call esi
mov dword [0x11182df4], eax
test eax, eax
je 0x10012e17
call fcn.10012cc0
test al, al
jne 0x10012e17
mov edi, 0x1001fba8
sub edi, 0x79ddc0fb
lea esi, [ebp - 0x30]
call fcn.10009520
push eax
push 2
mov eax, 0x1012f628
mov dword [ebp - 4], 0
call fcn.10013bd0
add esp, 8
jmp 0x10012e22
push 0x11182e28
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018a26
mov esp, ebp
pop ebp
ret

Function at 0x10013850
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push esi
call edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
mov ecx, 0x10004150
sub ecx, esi
push 5
sub ecx, 5
push esi
mov byte [esi], 0xe8
mov dword [esi + 1], ecx
call edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10013890
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019bf6
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dx, word [0x100204f4]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x100204f0]
push eax
push 0x3ff
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x14], dx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10013ab8
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x10013910
mov cx, word [ebx]
push 0x104
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100139c6
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x628], 7
mov dword [ebp - 0x62c], edi
mov word [ebp - 0x63c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10013953
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.100166c0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10013980
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.10015a90
mov esi, eax
cmp esi, 0xffffffff
jne 0x100139e5
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x100139c6
mov ecx, dword [ebp - 0x63c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dx, word [ebx]
add ebx, 2
test dx, dx
jne 0x100139c6
cmp word [ebx], di
je 0x10013ab8
mov esi, dword [ebp - 0x660]
jmp 0x10013910
xor eax, eax
mov word [ebp - 0x658], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x644], 7
mov dword [ebp - 0x648], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10013a07
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.100166c0
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10013a31
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x648]
push ebx
inc eax
push esi
lea ecx, [ebp - 0x63c]
call fcn.10015900
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x10013a72
mov ecx, dword [ebp - 0x658]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x63c]
cmp dword [ebp - 0x628], esi
jae 0x10013a86
lea eax, [ebp - 0x63c]
mov edx, dword [ebp - 0x65c]
push eax
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
cmp dword [ebp - 0x628], esi
jb 0x10013ab4
mov eax, dword [ebp - 0x63c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
jmp 0x10013aba
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018a26
mov esp, ebp
pop ebp
ret
Function at 0x10013bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x100
push 0
push 0x11183058
mov ebx, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + 0x1001f060]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x11183058], cl
inc eax
cmp eax, 0x100
jb 0x10013bf0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x11183058
push 0
mov ecx, 0x10125528
call fcn.1000acc0
mov eax, dword [0x1012f3dc]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
test eax, eax
je 0x10013c62
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x111829e4]
mov edx, dword [0x1012f3f4]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push ecx
push edx
mov dword [0x1012f3dc], 0
call edi
jmp 0x10013c68
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x1012f504]
test eax, eax
je 0x10013c93
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x111829e4]
mov ecx, dword [0x1012f51c]
push eax
push ecx
mov dword [0x1012f504], 0
call edi
mov eax, dword [0x1012f62c]
test eax, eax
je 0x10013cbe
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x111829e4]
mov eax, dword [0x1012f644]
push edx
push eax
mov dword [0x1012f62c], 0
call edi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x10013ce2
dec eax
je 0x10013cd6
dec eax
jne 0x10013cee
lea ecx, [eax + 0x6a]
mov eax, 0x2b2bb9
jmp 0x10013cf4
mov ecx, 0x69
mov eax, 0x116896
jmp 0x10013cf4
mov ecx, 0x67
mov eax, 0x9ca476
jmp 0x10013cf4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.10012800
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
mov ecx, ebx
mov edi, 0x10013b30
mov dword [ebx + 8], eax
call fcn.10015770
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10013d66
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x111829e4]
mov eax, dword [ebx + 0x1c]
push edx
push eax
mov dword [ebx + 4], 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
call fcn.10015730
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x100154d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x11183058
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
shl esi, 8
lea ecx, [esi + 0x1001c660]
pop esi
mov dl, byte [ecx + eax]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x11183058], dl
inc eax
cmp eax, 0x100
jb 0x100154f3
mov eax, 0x11183058
ret

Function at 0x10015770
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x2f4], eax
push esi
mov ecx, 0xd6
xor eax, eax
mov dl, byte [eax + 0x10020708]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10015797
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f668baf
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.100160a0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f8]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push 0x100
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x2f4]
push edx
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
push eax
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea ecx, [ebp - 0x2f0]
push ecx
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018a26
mov esp, ebp
pop ebp
ret 4
Function at 0x10016800
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x101254fc]
push edi
cmp esi, dword [0x10125500]
je 0x100168ce
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x1001683e
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 1]
push ecx
xor ebx, ebx
push closesocket
mov dword [ebp - 4], ebx
call edi
cmp dword [ebp - 4], ebx
jne 0x10016853
add esi, 0x105
cmp esi, dword [0x10125500]
jne 0x10016820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10125500]
mov esi, dword [0x101254fc]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100168b6
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10016892
lea ecx, [edi + esi + 1]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x101254fc]
mov ecx, dword [0x10125500]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add edi, 0x105
cmp ebx, eax
jb 0x10016876
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 6
xor ecx, ecx
call fcn.10002c70
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10016b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10016ca0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10016bc4
cmp dword [ebp - 4], 0x50000000
jb 0x10016b41
cmp dword [ebp - 4], 0x80000000
ja 0x10016b41
mov dword [ebp - 4], 0x4fff0000
jmp 0x10016b1a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10016b67
jmp 0x10016bc4
cmp dword [ebp - 0x14], 0x10000
jne 0x10016baa
cmp dword [ebp - 0x18], 0x10000
jb 0x10016baa
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10016b9d
mov eax, dword [ebp - 8]
jmp 0x10016bc6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10016bbf
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10016ca0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10016b1a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10016bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10016cd0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10016c8c
cmp dword [ebp - 4], 0x50000000
jb 0x10016c0c
cmp dword [ebp - 4], 0x80000000
ja 0x10016c0c
mov dword [ebp - 4], 0x80010000
jmp 0x10016be5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10016c32
jmp 0x10016c8c
cmp dword [ebp - 0x14], 0x10000
jne 0x10016c75
cmp dword [ebp - 0x18], 0x10000
jb 0x10016c75
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10016c68
mov eax, dword [ebp - 8]
jmp 0x10016c8e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10016c87
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10016cd0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10016be5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10017400
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10017415
xor eax, eax
jmp 0x1001748a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10017442
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10017485
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10017483
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1001747f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10017483
xor eax, eax
jmp 0x1001748a
jmp 0x10017439
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10017650
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1012fa78]
mov dword [ebp - 4], eax
jmp 0x10017669
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10017686
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10017660
mov esp, ebp
pop ebp
ret
Function at 0x10017ad0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1012fa88], eax
je 0x10017aee
mov eax, 0x10dd
jmp 0x10017bcf
mov eax, dword [0x1012fa98]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10017b6c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10017b4a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10017b4a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10017170
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10017af6
mov dword [0x1012fa98], 0
call fcn.10017490
mov ecx, dword [0x1012fa94]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10017bb9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10017b84
mov dword [0x1012fa94], 0
mov dword [0x1012fa88], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100180c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1012fa8c], 0
je 0x100180d9
mov eax, dword [0x1012fa8c]
jmp 0x10018179
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x100180eb
xor eax, eax
jmp 0x10018179
push 8
call fcn.10018b3a
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10018141
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1001812a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1012fa8c], eax
mov dword [0x1012fa90], 0
mov eax, dword [ebp - 8]
jmp 0x10018179
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1001815b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1001810b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1012fa94]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1012fa94], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10018a26
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10025018]
jne 0x10018a30
repz ret
jmp fcn.10018f69
Function at 0x4063a8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4063d6
mov eax, ebx
call fcn.00406e5c
cmp dword [ebx + 0x40], 0
je 0x4063cf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x406447
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x406439
cmp dword [ebx + 8], 0
je 0x4063f8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x40640a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x406439
cmp dword [ebx + 8], 0
je 0x4063eb
cmp eax, 3
je 0x40641d
dec eax
jne 0x4063eb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4063eb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4063eb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x406465
cmp dword [ebx + 0x14], 0xcc
je 0x406465
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00406470
pop ebx
ret
Function at 0x44c680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c7ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__Classes_TCollection_Clear_qqrv
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x44c6fc
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x44c6fc
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call sub.rtl70.bpl__Sysutils_UpperCase_qqrx17System_AnsiString
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x47cb7c]
mov ebx, dword [ebx]
mov eax, 0x44c7d0
call ebx
dec eax
jne 0x44c6fc
mov ebx, 1
jmp 0x44c6fe
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x44c79f
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0044c190
test al, al
jne 0x44c793
mov eax, dword [ebp - 4]
call fcn.0044c674
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call sub.rtl70.bpl__System__LStrAsg_qqrpvpxv
xor edx, edx
push ebp
push 0x44c781
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x44c777
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0044ca94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44c793
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x44c716
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c7c1
lea eax, [ebp - 0x20]
mov edx, 4
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret

Function at 0x44ea94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.0044ea5c
mov eax, dword [ebx]
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x44eada
mov eax, ebx
mov edx, 0x44eae8
call sub.rtl70.bpl__System__LStrCat_qqrv
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44eaec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.0044ea5c
mov eax, dword [ebx]
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x44eb32
mov eax, ebx
mov edx, 0x44eb40
call sub.rtl70.bpl__System__LStrCat_qqrv
pop ebx
mov esp, ebp
pop ebp
ret