joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100104d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1001b018]
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 0x10010507
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013454
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 0x100104f7
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.10013454
mov esp, ebp
pop ebp
ret

Function at 0x10010570
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
test eax, eax
je 0x10010626
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10010640
push 0x104
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x10010610
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x41c]
call fcn.1000fca0
add esp, 4
test al, al
je 0x10010610
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x484]
call fcn.100072a0
cmp al, 1
jne 0x10010610
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x484]
call fcn.10007420
cmp al, 1
jne 0x10010610
push 1
lea ecx, [ebp - 0x214]
call fcn.10009010
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013454
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x484]
call fcn.100072a0
cmp al, 1
jne 0x10010640
push 1
xor ecx, ecx
call fcn.10009010
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.10013454
mov esp, ebp
pop ebp
ret
Function at 0x10011090
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x1012c044]
push edi
cmp esi, dword [0x1012c048]
je 0x10011141
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea edi, [esi + 1]
mov al, byte [esi]
cmp al, 2
je 0x100110bc
cmp al, 3
jne 0x100110e9
mov dword [ebp - 4], 0
cmp al, 2
jne 0x100110d3
lea eax, [ebp - 4]
push eax
push edi
push closesocket
jmp 0x100110e1
cmp al, 3
jne 0x100110e9
lea ecx, [ebp - 4]
push ecx
push edi
push closesocket
call ebx
cmp dword [ebp - 4], 0
jne 0x10011104
add esi, 0x105
add edi, 0x105
cmp esi, dword [0x1012c048]
jne 0x100110b2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 2
jne 0x10011115
lea edx, [esi + 1]
push edx
push closesocket
jmp 0x10011122
cmp al, 3
jne 0x10011128
lea eax, [esi + 1]
push eax
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea ecx, [esi + 1]
push 6
call fcn.10004170
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011190
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x1001b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x10011180
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x1012c054]
mov dword [ebp - 0x134], esi
cmp esi, dword [0x1012c058]
je 0x100113b6
mov edi, dword [ebp - 0x134]
lea ebx, [esi + 1]
movzx eax, byte [esi]
cmp eax, 3
ja case.default.0x100111e0
jmp dword [eax*4 + 0x100113c8]
push ebx
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je case.default.0x100111e0
lea eax, [ebp - 0x134]
push eax
push edi
mov dword [ebp - 0x134], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [0x1012be9c]
shr ecx, 1
test cl, 1
je 0x1001122e
mov edx, dword [ebp - 0x134]
push edx
call fcn.10010570
add esp, 4
mov eax, dword [ebp - 0x134]
push eax
jmp 0x100113a9
push 0
push ebx
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov edi, eax
test edi, edi
je case.default.0x100111e0
lea ecx, [ebp - 0x134]
push ecx
push edi
mov dword [ebp - 0x134], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [0x1012be9c]
shr edx, 1
test dl, 1
je 0x10011285
mov eax, dword [ebp - 0x134]
push eax
call fcn.10010570
add esp, 4
mov ecx, dword [ebp - 0x134]
push ecx
jmp 0x100113a9
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1001134a
lea ecx, [ecx]
mov ecx, ebx
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100112e8
test dl, dl
je 0x100112e4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100112e8
add eax, 2
add ecx, 2
test dl, dl
jne 0x100112c8
xor eax, eax
jmp 0x100112ed
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10011334
lea ecx, [ebp - 0x138]
push ecx
push edi
mov dword [ebp - 0x138], eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [0x1012be9c]
shr edx, 1
test dl, 1
je 0x10011321
mov eax, dword [ebp - 0x138]
push eax
call fcn.10010570
add esp, 4
mov ecx, dword [ebp - 0x138]
push ecx
push 8
mov ecx, ebx
call fcn.10004170
add esp, 8
lea edx, [ebp - 0x130]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x100112c0
cmp esi, 0xffffffff
je 0x10011356
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x134]
add esi, 0x41
add ebx, 0x41
mov dword [ebp - 0x134], esi
cmp esi, dword [0x1012c058]
jne 0x100111d4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10013454
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je case.default.0x100111e0
mov edx, dword [0x1012be9c]
shr edx, 1
test dl, 1
je 0x100113a7
push 0
call fcn.10010570
add esp, 4
push 0
push 8
lea ecx, [esi + 1]
call fcn.10004170
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013454
mov esp, ebp
pop ebp
ret
Function at 0x10011480
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.10011620
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10011544
cmp dword [ebp - 4], 0x50000000
jb 0x100114c1
cmp dword [ebp - 4], 0x80000000
ja 0x100114c1
mov dword [ebp - 4], 0x4fff0000
jmp 0x1001149a
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 0x100114e7
jmp 0x10011544
cmp dword [ebp - 0x14], 0x10000
jne 0x1001152a
cmp dword [ebp - 0x18], 0x10000
jb 0x1001152a
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 0x1001151d
mov eax, dword [ebp - 8]
jmp 0x10011546
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1001153f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10011620
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001149a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10011550
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10011650
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1001160c
cmp dword [ebp - 4], 0x50000000
jb 0x1001158c
cmp dword [ebp - 4], 0x80000000
ja 0x1001158c
mov dword [ebp - 4], 0x80010000
jmp 0x10011565
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 0x100115b2
jmp 0x1001160c
cmp dword [ebp - 0x14], 0x10000
jne 0x100115f5
cmp dword [ebp - 0x18], 0x10000
jb 0x100115f5
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 0x100115e8
mov eax, dword [ebp - 8]
jmp 0x1001160e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10011607
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10011650
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10011565
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10011d80
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 0x10011d95
xor eax, eax
jmp 0x10011e0a
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 0x10011dc2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10011e05
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10011e03
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 0x10011dff
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 0x10011e03
xor eax, eax
jmp 0x10011e0a
jmp 0x10011db9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10011fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1012b840]
mov dword [ebp - 4], eax
jmp 0x10011fe9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10012006
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 0x10011fe0
mov esp, ebp
pop ebp
ret
Function at 0x10012450
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1012b850], eax
je 0x1001246e
mov eax, 0x10dd
jmp 0x1001254f
mov eax, dword [0x1012b860]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100124ec
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 0x100124ca
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100124ca
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10011af0
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 0x10012476
mov dword [0x1012b860], 0
call fcn.10011e10
mov ecx, dword [0x1012b85c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10012539
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 0x10012504
mov dword [0x1012b85c], 0
mov dword [0x1012b850], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10012a40
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1012b854], 0
je 0x10012a59
mov eax, dword [0x1012b854]
jmp 0x10012af9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x10012a6b
xor eax, eax
jmp 0x10012af9
push 8
call fcn.10013574
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10012ac1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10012aaa
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 [0x1012b854], eax
mov dword [0x1012b858], 0
mov eax, dword [ebp - 8]
jmp 0x10012af9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10012adb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10012a8b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1012b85c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1012b85c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x10013454
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b018]
jne 0x1001345e
repz ret
jmp fcn.10013997
Function at 0x4014b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x54]
push ebx
push esi
mov ebx, eax
mov esi, edx
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040a840
push 0x10
lea eax, [ebp - 0x54]
push eax
call fcn.0040a840
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
test esi, esi
jne 0x4014f0
mov esi, 0x4122f0
push esi
mov eax, ebx
test ebx, ebx
jne 0x4014fc
mov eax, 0x4122f0
push eax
call sub.kernel32.dll_CreateProcessA
push dword [ebp - 0x50]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x54]
call sub.kernel32.dll_CloseHandle
pop esi
pop ebx
leave
ret
Function at 0x401630
Capabilities:
Copy file
Move file
Terminate process

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x3c]
push ebx
push esi
push edi
mov edi, eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.00404a80
call fcn.00405cd0
push eax
test eax, eax
jne 0x4017e4
lea eax, [ebp - 0x34]
call fcn.004027d0
mov edx, dword [edi + 4]
lea eax, [ebp - 0x34]
call fcn.00402f10
lea eax, [ebp - 0x38]
call fcn.004027d0
mov edx, dword [edi]
lea eax, [ebp - 0x38]
call fcn.00402f10
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4016ae
mov eax, 0x4122f0
push eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x4016bb
mov eax, 0x4122f0
push eax
call sub.kernel32.dll_MoveFileA
or eax, eax
setne dl
mov al, dl
lea eax, [ebp - 0x38]
call fcn.004027d0
mov eax, dword [edi]
test eax, eax
jne 0x4016db
mov eax, 0x4122f0
lea ecx, [ebp - 0x34]
mov dx, 0
call fcn.00403800
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
call fcn.00402f10
lea eax, [ebp - 0x34]
call fcn.004027d0
mov eax, dword [edi + 4]
test eax, eax
jne 0x401706
mov eax, 0x4122f0
lea ecx, [ebp - 0x3c]
mov dx, 0
call fcn.00403800
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
call fcn.00402f10
push 0xffffffffffffffff
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x40172b
mov eax, 0x4122f0
push eax
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x401738
mov eax, 0x4122f0
push eax
call sub.kernel32.dll_CopyFileA
or eax, eax
setne dl
mov al, dl
mov eax, dword [edi]
lea edx, [ebp - 0x3c]
call fcn.0040b000
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 4]
call fcn.00402f10
lea eax, [ebp - 4]
call fcn.0040e9e0
mov edx, dword [edi]
lea eax, [ebp - 8]
call fcn.00402f10
call fcn.00408e10
test eax, eax
jle 0x4017c3
call fcn.00408e10
mov ebx, eax
mov esi, 1
cmp ebx, esi
jb 0x4017c3
sub esi, 1
add esi, 1
push 0
lea eax, [ebp - 0x3c]
call fcn.004027d0
push 0
lea edx, [ebp - 0x38]
mov eax, esi
call fcn.00409ba0
mov ecx, dword [ebp - 0x38]
mov edx, 0x410020
lea eax, [ebp - 0x3c]
call fcn.00403010
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 8]
lea eax, [ebp - 8]
call fcn.00403010
cmp ebx, esi
ja 0x401788
mov eax, dword [edi]
mov edx, dword [ebp - 4]
call fcn.0040b0f0
mov eax, dword [edi]
mov edx, dword [ebp - 8]
call fcn.004014b0
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
call fcn.00404d00
lea eax, [ebp - 0x3c]
call fcn.004027d0
lea eax, [ebp - 0x38]
call fcn.004027d0
lea eax, [ebp - 0x34]
call fcn.004027d0
lea eax, [ebp - 4]
call fcn.004027d0
lea eax, [ebp - 8]
call fcn.004027d0
pop eax
test eax, eax
je 0x40181b
call fcn.00404dc0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405430
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x412350], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x41234c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x412350], eax
cmp ecx, 0x26f
jl 0x405440
mov dword [0x40f410], 0x270
ret
Function at 0x405480
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x411010]
cmp eax, dword [0x40f3c0]
je 0x405498
mov dword [0x40f410], 0x271
cmp dword [0x40f410], 0x270
jl 0x4055b7
cmp dword [0x40f410], 0x271
jne 0x4054cf
mov eax, dword [0x411010]
call fcn.00405430
mov eax, dword [0x411010]
not eax
mov dword [0x411010], eax
mov dword [0x40f3c0], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x412354]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x412350]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x412984]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x40f420]
xor edx, eax
mov dword [ebx*4 + 0x412350], edx
cmp ebx, 0xe2
jl 0x4054d8
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x412354]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x412350]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x411fc4]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x40f420]
xor edx, eax
mov dword [ebx*4 + 0x412350], edx
cmp ebx, 0x26e
jl 0x40552c
mov eax, dword [0x412d0c]
and eax, 0x80000000
mov edx, dword [0x412350]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x412980]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x40f420]
xor eax, edx
mov dword [0x412d0c], eax
mov dword [0x40f410], 0
mov eax, dword [0x40f410]
mov eax, dword [eax*4 + 0x412350]
add dword [0x40f410], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret

Function at 0x406e20
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x40f170]
cmp ax, 0xcb
je 0x406f1c
cmp ax, 0xcc
je 0x406f1c
mov edx, dword [0x412f60]
test edx, edx
je 0x406e52
mov eax, dword [0x412e00]
call edx
mov ebx, eax
jmp 0x406e57
mov ebx, 0x412e04
cmp word [0x412df0], 0
jle 0x406e7a
mov eax, 0x412dd0
call fcn.00407090
mov eax, ebx
call fcn.00406a00
mov eax, ebx
call fcn.00406a70
mov edi, dword [ebx]
jmp 0x406e9a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x406e95
mov edx, edi
mov eax, ebx
call fcn.00405ed0
jmp 0x406e98
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x406e80
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x412df0], 0
jle 0x406f1c
mov edx, 0x412d10
mov eax, ebx
call fcn.00406000
mov edi, eax
test edi, edi
je 0x406eef
mov eax, dword [0x412da4]
mov dword [edi + 0xc], eax
cmp dword [0x412da4], 0
je 0x406ee4
mov eax, dword [0x412da4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x412da4], eax
sub word [0x412df0], 1
cmp word [0x412df0], 0
sete bl
mov eax, 0x412dd0
call fcn.004070a0
test bl, bl
je 0x406f1c
mov eax, 0x412dd0
call fcn.00407080
pop edi
pop esi
pop ebx
ret
Function at 0x408bb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x412250], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.00408d90
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x412250]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.004022c0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40f1e0], eax
mov esi, dword [0x40f1e0]
jmp 0x408d50
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x408c40
cmp byte [esi], 0
je 0x408d59
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x408cb5
mov al, byte [esi]
cmp al, 1
jb 0x408cab
sub al, 0x20
jbe 0x408c7c
sub al, 2
je 0x408c8f
jmp 0x408cab
mov al, byte [ebp - 0x10c]
test al, al
je 0x408cba
add dword [ebp - 0x110], 1
jmp 0x408cb2
cmp byte [esi + 1], 0x22
je 0x408ca6
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x408cb2
add esi, 1
jmp 0x408cb2
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x408c6c
test dword [ebp - 0x114], 0xffffffff
je 0x408d49
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.00408d90
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x412250]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x408d41
mov al, byte [esi]
cmp al, 1
jb 0x408d37
sub al, 0x20
jbe 0x408d08
sub al, 2
je 0x408d1b
jmp 0x408d37
mov al, byte [ebp - 0x10c]
test al, al
je 0x408d46
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x408d3e
cmp byte [esi + 1], 0x22
je 0x408d32
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x408d3e
add esi, 1
jmp 0x408d3e
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x408cf8
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x408c43
mov ebx, dword [ebp - 0x114]
mov dword [0x412240], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x412250
call fcn.00406c80
mov eax, dword [0x412250]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 8], eax
mov esi, esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409f80
test al, al
jne 0x409ff7
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x409fd8
mov eax, dword [ebp - 4]
leave
ret