joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cc0b0
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Get disk information
Get disk size
Get hostname
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
sub esp, 0x380
mov eax, dword [0x520b38]
xor eax, esp
mov dword [esp + 0x37c], eax
push ebx
push esi
lea eax, [esp + 0x18]
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 0x10], eax
call esi
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0xc], 0x10
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x154]
mov dword [esp + 0x154], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x174], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0xc], 0x100
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x178]
mov dword [esp + 0x178], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x20c]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea eax, [esp + 0x30c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x1cff
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [esp + 0x314], eax
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x318], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x32c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x330], eax
lea eax, [esp + 0x10]
push 0x328
push eax
call fcn.004cba40
push 1
lea esi, [esp + 0x210]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp byte [esp + 0x20c], 0
mov dword [esp + 0xc], eax
je 0x4cc28f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
nop word [eax + eax]
push esi
call edi
cmp eax, 3
jne 0x4cc270
push 0x14
lea eax, [esp + 0x364]
push eax
lea eax, [esp + 0x364]
push eax
lea eax, [esp + 0x364]
push eax
lea eax, [esp + 0x364]
push eax
push 0x14
lea eax, [esp + 0x358]
push eax
push esi
call ebp
lea eax, [esp + 0x388]
push eax
lea eax, [esp + 0x388]
push eax
lea eax, [esp + 0x388]
push eax
lea eax, [esp + 0x388]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [ebx + 0x14]
lea eax, [esp + 0x340]
push 0x4c
push eax
call fcn.004cba40
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cc275
sub eax, edx
inc esi
add esi, eax
cmp byte [esi], cl
jne 0x4cc200
mov eax, dword [esp + 0x14]
pop edi
pop ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebx + 0x14]
lea eax, [esp + 0x18]
push 8
push eax
call fcn.004cba40
mov ecx, dword [esp + 0x384]
mov al, 1
pop esi
pop ebx
xor ecx, esp
call fcn.004c35dc
add esp, 0x380
ret
Function at 0x1000b6d5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
mov ebp, 0x104
xor esi, esi
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b738
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1000b772
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b772
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10014785
add esp, 0x108
ret

Function at 0x1000ebd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1000ebdf
pop dword [ebp - 0x1c]
mov eax, 0xf53d7e3b
add eax, 0x1ac36da4
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x93a2afa3
sub dword [ebp - 0x2c], 0x45506a58
mov dword [ebp - 0x28], 0x37cca768
sub dword [ebp - 0x28], 0x5995b23
mov dword [ebp - 0x24], 0x8aec4053
sub dword [ebp - 0x24], 0x3e9ffc25
mov dword [ebp - 0x20], 0x2260cb6c
add dword [ebp - 0x20], 0xdd9f3494
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x29119e34
sub eax, 0x19103dd4
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xfd47c457
add dword [ebp - 0x2c], 0x772aa4ff
mov dword [ebp - 0x28], 0x8e1a2dc4
add dword [ebp - 0x28], 0xb35233b1
mov dword [ebp - 0x24], 0x2b9a6423
add dword [ebp - 0x24], 0x37d50849
mov dword [ebp - 0x20], 0x7d976637
add dword [ebp - 0x20], 0x826899c9
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x34f9a
push 0
call eax
mov ecx, 0x88dd3749
sub ecx, 0x88dcfa89
xor edx, edx
add edx, eax
mov ebx, 0xf5c2cdb8
sub ebx, 0xe5c097b8
add ebx, dword [ebp - 0x1c]
mov edi, 0x9fbcff68
xor dword [ebp - 0xc], eax
mov esi, dword [ebx]
add dword [ebp - 0xc], ecx
add esi, edi
add dword [ebp - 0xc], ecx
mov dword [edx], esi
add dword [ebp - 0xc], edx
add edx, 0xb60fc0fc
sub edx, 0xb60fc0f8
add ebx, 4
loop 0x1000ecf8
add eax, 0xc14fdab7
add eax, 0x3eb10b1c
mov ebx, eax
add eax, 5
mov ecx, 0xa5ebcb16
add ecx, 0x6a1434ea
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x402ec0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x402f0c
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x402eef
cmp edi, 2
jb 0x402eef
cmp byte [esi], cl
jne 0x402eef
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x434800]
test edi, edi
jne 0x402ed5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x402f3b
cmp cl, 0x23
jne 0x402f22
cmp byte [esi], cl
jne 0x402f22
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x434800]
test cl, cl
jne 0x402f13
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x403050
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x403064
mov dword [edi], 0
mov edx, 0x4345d8
call fcn.00402f50
mov esi, eax
test esi, esi
je 0x403160
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x403156
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403156
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x403156
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x403156
mov eax, dword [0x43d870]
test eax, eax
je 0x4030e0
inc dword [eax + 0x36c]
push dword [0x43d868]
push ebx
call fcn.004027f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403156
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40313b
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x43d870]
add esp, 4
test eax, eax
je 0x403123
dec dword [eax + 0x36c]
push dword [0x43d868]
push ebx
call fcn.00402810
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x40314d
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4049e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ebp - 8]
push ebx
mov ebx, dword [ecx + 0xcc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
mov dword [ebp - 8], edi
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x434800]
sub esi, 1
jne 0x404a13
mov eax, dword [0x43d870]
not ebx
cmp dword [eax + 0x1be0], ebx
jne 0x404a42
mov dword [eax + 0x1be4], ebx
cmp dword [eax + 0x1c1c], ebx
jne 0x404a51
mov byte [eax + 0x1c20], 1
cmp dword [eax + 0x1bc8], ebx
jne 0x404a6a
push ecx
push edi
mov edx, 4
mov ecx, ebx
call fcn.004140e0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432001
mov esp, ebp
pop ebp
ret 4
Function at 0x4092c0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x4092fd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x4092e3
cmp byte [esi], bl
jne 0x4092e3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x434800]
test bl, bl
jne 0x4092d4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00409250

Function at 0x413200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x2fa8], 0
lea esi, [edi + 0x2fac]
je 0x413282
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41323c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00414d40
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00403470
mov edx, dword [esi]
mov ecx, 0x43d86c
push dword [edi + 0x2fa8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x2fb4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00403470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ce70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41ceac
mov eax, dword [0x43d870]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x41ce96
dec dword [eax + 0x36c]
push dword [0x43d868]
push ecx
call fcn.00402810
add esp, 8
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x41cee6
mov eax, dword [0x43d870]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x41ced0
dec dword [eax + 0x36c]
push dword [0x43d868]
push ecx
call fcn.00402810
add esp, 8
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41cf20
mov eax, dword [0x43d870]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x41cf0a
dec dword [eax + 0x36c]
push dword [0x43d868]
push ecx
call fcn.00402810
add esp, 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x41cf76
mov eax, dword [0x43d870]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x41cf60
dec dword [eax + 0x36c]
push dword [0x43d868]
push ecx
call fcn.00402810
add esp, 8
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x41cfb0
mov eax, dword [0x43d870]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x41cf9a
dec dword [eax + 0x36c]
push dword [0x43d868]
push ecx
call fcn.00402810
add esp, 8
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x41cfea
mov eax, dword [0x43d870]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x41cfd4
dec dword [eax + 0x36c]
push dword [0x43d868]
push ecx
call fcn.00402810
add esp, 8
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0041f850
Function at 0x42d4e0
Capabilities:
Access peb ldr_data
Check for debugger via api
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.DetectDebug
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
mov eax, dword fs:[0x2c]
mov ebx, dword [eax]
mov eax, dword [0x4400f8]
mov dword [ebp - 0x18], ebx
cmp eax, dword [ebx + 4]
jle 0x42d58b
push 0x4400f8
call fcn.004322b5
add esp, 4
cmp dword [0x4400f8], 0xffffffff
jne 0x42d58b
push str.ntdll.dll
call dword [sym.imp.VMProtectSDK32.dll_VMProtectDecryptStringW]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x42d576
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov esi, dword [ebx]
cmp esi, ebx
je 0x42d573
mov edi, dword [esi + 0x18]
push ecx
push dword [esi + 0x30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x42d69b
mov esi, dword [esi]
mov ecx, dword [ebp - 0x14]
cmp esi, ebx
jne 0x42d552
mov ebx, dword [ebp - 0x18]
xor edi, edi
push 0x4400f8
mov dword [0x4400fc], edi
call fcn.0043226b
add esp, 4
mov eax, dword [0x4400f4]
cmp eax, dword [ebx + 4]
jle 0x42d5da
push 0x4400f4
call fcn.004322b5
add esp, 4
cmp dword [0x4400f4], 0xffffffff
jne 0x42d5da
push str.NtQueryInformationProcess
call dword [sym.imp.VMProtectSDK32.dll_VMProtectDecryptStringA]
mov ecx, dword [0x4400fc]
mov edx, eax
push 0
call fcn.0042e510
push 0x4400f4
mov dword [0x4400f0], eax
call fcn.0043226b
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp eax, 1
jne 0x42d5fb
cmp dword [ebp - 8], eax
je 0x42d6b0
mov esi, dword [0x4400f0]
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push 7
call edi
push eax
call esi
test eax, eax
js 0x42d620
cmp dword [ebp - 0xc], 0xffffffff
je 0x42d6b0
mov eax, dword fs:[0x30]
cmp byte [eax + 2], 0
jne 0x42d6b0
push str.vehdebug_i386.dll
call dword [sym.imp.VMProtectSDK32.dll_VMProtectDecryptStringW]
mov edi, eax
test edi, edi
je 0x42d670
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov esi, dword [ebx]
cmp esi, ebx
je 0x42d670
mov eax, dword [esi + 0x18]
push edi
push dword [esi + 0x30]
mov dword [ebp - 0x14], eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x42d6a3
mov esi, dword [esi]
cmp esi, ebx
jne 0x42d653
push edi
call dword [sym.imp.VMProtectSDK32.dll_VMProtectFreeString]
push 0
push 0
push 0
push 0x8906
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebx, dword [ebp - 0x18]
jmp 0x42d578
push edi
call dword [sym.imp.VMProtectSDK32.dll_VMProtectFreeString]
cmp dword [ebp - 0x14], 0
je 0x42d677
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432001
mov esp, ebp
pop ebp
ret
Function at 0x42e510
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
xor edx, edx
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
test edi, edi
je 0x42e6b7
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x42e6b7
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x42e6b7
mov esi, dword [eax + 0x78]
mov dword [ebp - 8], esi
test esi, esi
je 0x42e6b7
cmp dword [ebp + 8], edx
je 0x42e5e2
movzx ecx, word [eax + 0x14]
add ecx, eax
movzx eax, word [eax + 6]
test eax, eax
je 0x42e6b7
lea esi, [ecx + 0x24]
mov edi, eax
nop dword [eax]
lea edx, [esi - 0xc]
mov ecx, 0x438d40
mov eax, edx
nop word [eax + eax]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x42e5b0
test bl, bl
je 0x42e5ac
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x42e5b0
add eax, 2
add ecx, 2
test bl, bl
jne 0x42e590
xor eax, eax
jmp 0x42e5b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42e62e
mov edx, dword [esi]
sub edx, dword [esi + 8]
mov dword [ebp - 0xc], edx
mov ebx, dword [ebp - 0x10]
add esi, 0x28
sub edi, 1
jne 0x42e580
mov edi, dword [ebp - 4]
test edx, edx
je 0x42e6b7
test ebx, ebx
je 0x42e6b7
mov esi, dword [ebp - 8]
sub esi, edx
add esi, edi
mov dword [ebp - 8], esi
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42e6b7
mov edi, dword [esi + 0x1c]
mov eax, dword [ebp - 0x14]
sub edi, edx
add edi, dword [ebp - 4]
test eax, 0xffff0000
jne 0x42e66e
sub ax, word [esi + 0x10]
movzx eax, ax
test ax, ax
js 0x42e6b7
cwde
cmp eax, ecx
jae 0x42e6b7
mov eax, dword [edi + eax*4]
pop edi
sub eax, ebx
add eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x42e651
test cl, cl
je 0x42e64d
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x42e651
add edx, 2
add eax, 2
test cl, cl
jne 0x42e631
xor eax, eax
jmp 0x42e656
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0xc]
test eax, eax
jne 0x42e5c1
mov ebx, dword [esi]
sub ebx, dword [esi + 8]
mov dword [ebp - 0x10], ebx
jmp 0x42e5c4
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
sub eax, edx
mov ebx, dword [esi + 0x20]
add eax, ecx
mov dword [ebp - 0x18], eax
sub ebx, edx
mov eax, dword [ebp - 8]
xor esi, esi
add ebx, ecx
cmp dword [eax + 0x18], esi
jbe 0x42e6b7
nop dword [eax]
mov eax, dword [ebx + esi*4]
push dword [ebp - 0x14]
sub eax, edx
add eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x42e6c0
mov eax, dword [ebp - 8]
inc esi
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp esi, dword [eax + 0x18]
jb 0x42e690
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + esi*2]
mov eax, dword [edi + eax*4]
sub eax, dword [ebp - 0x10]
add eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43dc53
Capabilities:
Encode data using xor

Disassembly:
rcl byte [esi + 0x1c1e0eb]
or edx, dword [eax + 0x271e100]
test ecx, ecx
leave
leave
jne 0x43dc46
push es
and al, byte [edi + 0x572905d]
rol dword [ebp + 8], 1
add byte [ebp + 0x335703c0], dh
Function at 0x401d90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x422674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401dc6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407da6
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.0040cb10
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401e4d
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
mov ecx, str.shell_exam.exe
lea eax, [ebp - 0x20c]
jmp 0x401e10
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e36
test dx, dx
je 0x401e32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e36
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e10
xor eax, eax
jmp 0x401e3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401e66
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x401e00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407da6
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.00407da6
mov esp, ebp
pop ebp
ret
Function at 0x402200
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x422674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4023b8
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4022dd
push str.Cant_lookup_privilege_value._LookupPrivilegeValue__fail_
push ecx
push 0x41f0a4
push ecx
push 0x1df
push ecx
push 0x41f0a8
push 0x423608
call fcn.004067f0
add esp, 0xc
push eax
call fcn.00402970
add esp, 4
push eax
call fcn.004067f0
add esp, 0xc
push eax
call fcn.004067f0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402ef0
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x4022bd
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x4022bd
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x4022dd
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x4022d6
or eax, 4
push 0
call fcn.00401530
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402391
push str.Cant_adjust_privilege_value._LookupPrivilegeValue__fail_
push ecx
push 0x41f0a4
push ecx
push 0x1e4
push ecx
push 0x41f0a8
push 0x423608
call fcn.004067f0
add esp, 0xc
push eax
call fcn.00402970
add esp, 4
push eax
call fcn.004067f0
add esp, 0xc
push eax
call fcn.004067f0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.00402ef0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x402371
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x402371
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x402391
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x40238a
or eax, 4
push 0
call fcn.00401530
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x18]
neg eax
push edx
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407da6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00407da6
mov esp, ebp
pop ebp
ret