joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000f0c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100136a6
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x1001a018]
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 [0x10015fa0]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x620]
mov esi, ecx
mov ecx, dword [0x10015f9c]
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 0x1000f2e8
lea ebx, [ebp - 0x620]
xor edi, edi
jmp 0x1000f140
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 0x1000f1f6
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 0x1000f183
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [ebp - 0x63c]
call fcn.10010250
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 0x1000f1b0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x63c]
push eax
call fcn.1000fae0
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000f215
mov dword [ebp - 4], eax
cmp dword [ebp - 0x628], 8
jb 0x1000f1f6
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 0x1000f1f6
cmp word [ebx], di
je 0x1000f2e8
mov esi, dword [ebp - 0x660]
jmp 0x1000f140
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 0x1000f237
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x658]
call fcn.10010250
mov eax, ebx
mov byte [ebp - 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000f261
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.1000f950
mov esi, 8
cmp dword [ebp - 0x644], esi
jb 0x1000f2a2
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 0x1000f2b6
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 0x1000f2e4
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 0x1000f2ea
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.10012706
mov esp, ebp
pop ebp
ret
Function at 0x1000f450
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x100
push 0
push 0x1012b428
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov edi, edi
mov cl, byte [eax + 0x1001a060]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x1012b428], cl
inc eax
cmp eax, 0x100
jl 0x1000f470
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push 1
push eax
push 0x1012b428
push 0
mov ecx, 0x10120080
call fcn.10006f20
mov eax, dword [0x101251dc]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_UnregisterClassA]
add esp, 0x14
test eax, eax
je 0x1000f4e0
push 0
push 0
push 0x10
push eax
call edi
mov ecx, dword [0x10125e7c]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x101251dc], 0
call ebx
mov eax, dword [0x10125304]
test eax, eax
je 0x1000f50b
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x10125e7c]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x10125304], 0
call ebx
mov eax, dword [0x1012542c]
test eax, eax
je 0x1000f536
push 0
push 0
push 0x10
push eax
call edi
mov edx, dword [0x10125e7c]
mov eax, dword [str.SPLASH]
push edx
push eax
mov dword [0x1012542c], 0
call ebx
mov eax, dword [ebp + 8]
sub eax, 0
je 0x1000f55c
dec eax
je 0x1000f550
dec eax
jne 0x1000f568
mov eax, 0x6a
mov ecx, 0x2b39c0
jmp 0x1000f56e
mov eax, 0x69
mov ecx, 0x227ee6
jmp 0x1000f56e
mov eax, 0x67
mov ecx, 0xf1f0ec
jmp 0x1000f56e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
push ecx
push eax
mov eax, dword [ebp + 0xc]
call fcn.1000ebc0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push esi
push 0x1000f3b0
push 0
push 0
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x1000f5ef
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 8], 0
je 0x1000f5ef
mov eax, dword [esi + 4]
test eax, eax
je 0x1000f5ea
push 0
push 0
push 0x10
push eax
call edi
mov eax, dword [0x10125e7c]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
mov dword [esi + 4], 0
call ebx
call fcn.1000f020
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000f600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x100
push 0
push 0x1012b428
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
xor eax, eax
sub ecx, 0x1012b428
mov dl, byte [ecx + eax + 0x1012b428]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x1012b428], dl
inc eax
cmp eax, 0x100
jl 0x1000f622
mov eax, 0x1012b428
pop ebp
ret
Function at 0x1000f700
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.1000f650
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push 0xf003f
push 0
push 0x10120386
mov ecx, 9
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push closesocket
mov dword [ebp - 0x54], 0x24
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000f78b
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x4c]
push edx
push eax
push eax
mov eax, dword [ebp - 0x50]
push str.WindowID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x28]
test eax, eax
je 0x1000f79e
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
push ecx
push edx
push 1
push 0
push str.WindowID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x28]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x4c]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1000f7c1
test al, al
je 0x1000f7bd
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1000f7c1
add ecx, 2
add edx, 2
test al, al
jne 0x1000f7a1
xor eax, eax
jmp 0x1000f7c6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000f781
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
lea eax, [ebp - 0x4c]
pop esi
call fcn.10012706
mov esp, ebp
pop ebp
ret

Function at 0x1000f7e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.1000f650
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
push 0
push 0x10120386
mov ecx, 9
lea edi, [ebp - 0x28]
push closesocket
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000f844
mov edx, dword [ebp - 0x2c]
push 0x24
lea ecx, [ebp - 0x28]
push ecx
push 1
push eax
push str.WindowID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10012706
mov esp, ebp
pop ebp
ret
Function at 0x1000f860
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000f897
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000f887
mov edx, dword [ebp - 0x20]
push 0
push 0
xor eax, eax
push 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret

Function at 0x1000f900
Capabilities:
Hide thread from debugger

Disassembly:
push esi
push str.NtSetInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x1000f922
xor al, al
pop esi
ret
push 0
push 0
push 0x11
test edi, edi
jne 0x1000f93c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
test eax, eax
sete al
pop esi
ret
push edi
call esi
test eax, eax
sete al
pop esi
ret

Function at 0x10010390
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x10120044]
push edi
cmp esi, dword [0x10120048]
je 0x1001045e
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
nop
cmp byte [esi], 2
jne 0x100103ce
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 0x100103e3
add esi, 0x105
cmp esi, dword [0x10120048]
jne 0x100103b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10120048]
mov esi, dword [0x10120044]
sub ecx, esi
mov eax, 0x7d8c42b3
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10010446
xor edi, edi
cmp byte [edi + esi], 2
jne 0x10010422
lea ecx, [edi + esi + 1]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, dword [0x10120044]
mov ecx, dword [0x10120048]
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 0x10010406
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 6
call fcn.10004620
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100104a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x1001a018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10120054]
push ebx
push esi
push edi
mov dword [ebp - 0x138], eax
cmp eax, dword [0x10120058]
je 0x10010667
mov edi, dword [ebp - 0x134]
lea esi, [eax + 1]
xor ebx, ebx
jmp 0x100104e0
movzx eax, byte [eax]
cmp eax, 3
ja case.default.0x100104ec
jmp dword [eax*4 + 0x10010678]
push esi
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
cmp edi, ebx
je case.default.0x100104ec
lea ecx, [ebp - 0x134]
push ecx
push edi
mov dword [ebp - 0x134], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
push edx
inc eax
push eax
jmp 0x1001065d
push ebx
push esi
push ebx
push ebx
call dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, eax
cmp edi, ebx
jne 0x10010505
jmp case.default.0x100104ec
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x130]
push ecx
push eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10010606
mov ecx, esi
lea eax, [ebp - 0x10c]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100105a0
cmp dl, bl
je 0x1001059c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100105a0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x10010580
xor eax, eax
jmp 0x100105a5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100105ea
mov edx, dword [ebp - 0x128]
push edx
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x13c]
push eax
push edi
mov dword [ebp - 0x13c], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [ebp - 0x13c]
push ecx
push esi
push 8
call fcn.10004620
add esp, 0xc
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10010571
mov eax, dword [ebp - 0x134]
cmp eax, 0xffffffff
je case.default.0x100104ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.default.0x100104ec
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10010654
mov eax, dword [ebp - 0x138]
add eax, 0x41
add esi, 0x41
mov dword [ebp - 0x138], eax
cmp eax, dword [0x10120058]
jne 0x100104e0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012706
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x138]
push ebx
inc ecx
push ecx
push 8
call fcn.10004620
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012706
mov esp, ebp
pop ebp
ret
Function at 0x100107e0
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.10010980
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100108a4
cmp dword [ebp - 4], 0x50000000
jb 0x10010821
cmp dword [ebp - 4], 0x80000000
ja 0x10010821
mov dword [ebp - 4], 0x4fff0000
jmp 0x100107fa
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 0x10010847
jmp 0x100108a4
cmp dword [ebp - 0x14], 0x10000
jne 0x1001088a
cmp dword [ebp - 0x18], 0x10000
jb 0x1001088a
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 0x1001087d
mov eax, dword [ebp - 8]
jmp 0x100108a6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001089f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10010980
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100107fa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100108b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100109b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1001096c
cmp dword [ebp - 4], 0x50000000
jb 0x100108ec
cmp dword [ebp - 4], 0x80000000
ja 0x100108ec
mov dword [ebp - 4], 0x80010000
jmp 0x100108c5
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 0x10010912
jmp 0x1001096c
cmp dword [ebp - 0x14], 0x10000
jne 0x10010955
cmp dword [ebp - 0x18], 0x10000
jb 0x10010955
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 0x10010948
mov eax, dword [ebp - 8]
jmp 0x1001096e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10010967
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100109b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100108c5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100110e0
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 0x100110f5
xor eax, eax
jmp 0x1001116a
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 0x10011122
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10011165
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10011163
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 0x1001115f
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 0x10011163
xor eax, eax
jmp 0x1001116a
jmp 0x10011119
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10011330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10125aa8]
mov dword [ebp - 4], eax
jmp 0x10011349
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10011366
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 0x10011340
mov esp, ebp
pop ebp
ret
Function at 0x100117b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10125ab8], eax
je 0x100117ce
mov eax, 0x10dd
jmp 0x100118af
mov eax, dword [0x10125ac8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001184c
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 0x1001182a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1001182a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10010e50
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 0x100117d6
mov dword [0x10125ac8], 0
call fcn.10011170
mov ecx, dword [0x10125ac4]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10011899
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 0x10011864
mov dword [0x10125ac4], 0
mov dword [0x10125ab8], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10011da0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10125abc], 0
je 0x10011db9
mov eax, dword [0x10125abc]
jmp 0x10011e59
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10011dcb
xor eax, eax
jmp 0x10011e59
push 8
call fcn.10012826
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10011e21
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10011e0a
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 [0x10125abc], eax
mov dword [0x10125ac0], 0
mov eax, dword [ebp - 8]
jmp 0x10011e59
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10011e3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10011deb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10125ac4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10125ac4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10012706
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a018]
jne 0x10012710
repz ret
jmp fcn.10012c49
Function at 0x403475
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 4], 0xffffffff
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0x78
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jne 0x4034da
xor eax, eax
jmp 0x4036aa
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
je 0x403532
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x403539
xor eax, eax
jmp 0x4036aa
push 0x40bac0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0xc], ecx
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
and dword [ebp - 0x14], 0
jmp 0x4035b0
mov eax, dword [ebp - 8]
jmp 0x41c484
leave
ret

Function at 0x40388f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4038b8
cmp al, 0x22
je 0x4038b0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4038a4
cmp byte [esi], 0x22
jne 0x4038c2
inc esi
jmp 0x4038c2
cmp al, 0x20
jle 0x4038c2
inc esi
cmp byte [esi], 0x20
jg 0x4038bc
jmp 0x41b25e

Function at 0xf06000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xf0600a
jmp 0xf0800f
jmp fcn.00a941b8