joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6bef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4ef968]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a6c32
cmp word [esi], dx
jne 0x4a6c32
or byte [edi + eax + 0x28], 4
jmp 0x4a6c37
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a6d8a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a6d6a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a6c79
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a6caf
cmp eax, edx
jae 0x4a6cbb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a6c51
jmp 0x4a6d8a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a6d66
cmp dword [ebp - 0x14], 0
je 0x4a6d66
mov eax, dword [ebx*4 + 0x4ef968]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a6d3e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a6d07
mov word [esi], cx
jmp 0x4a6d3a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ef968]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ef968]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ef968]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a6d8a
pop ebx
cmp word [ebp - 4], bx
jne 0x4a6d4f
cmp esi, dword [ebp + 0xc]
jne 0x4a6d4f
mov word [esi], bx
jmp 0x4a6d87
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401938
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a6d8a
push 0xd
jmp 0x4a6d83
mov ecx, dword [ebx*4 + 0x4ef968]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a6d81
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a6d8a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x53e0d0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4051c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x4c
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x402c58
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.0053e2f0
movsx eax, ax
test eax, eax
je 0x53e266
mov dword [ebp - 4], 4
call fcn.004172ec
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea ecx, [ebp - 0x3c]
push ecx
push 0x28
mov edx, dword [ebp - 0x50]
push edx
call fcn.004172a0
mov dword [ebp - 0x54], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor eax, eax
cmp dword [ebp - 0x54], 0
sete al
neg eax
movsx ecx, ax
test ecx, ecx
je 0x53e190
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0041737c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 7
lea eax, [ebp - 0x34]
push eax
push 0x41e510
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0x416e90
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.00417714
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor eax, eax
cmp dword [ebp - 0x50], 0
sete al
neg eax
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
movsx eax, word [ebp - 0x58]
test eax, eax
je 0x53e209
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0041737c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x2c], 2
mov dword [ebp - 4], 0xc
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
push 0
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004177b4
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
cmp dword [ebp - 0x50], 0
jne 0x53e266
mov dword [ebp - 4], 0xd
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0041737c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov dword [ebp - 4], 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0xffffffffffffffff
push 1
call fcn.00417148
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0x11
push 0
mov edx, dword [ebp - 0x44]
push edx
call fcn.00417338
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x40], ecx
push 0x53e2d5
jmp 0x53e2d4
ret
Function at 0x50b1fc
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x50b31b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50b2e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x513290]
mov byte [eax], 1
lea eax, [ebp - 8]
mov edx, 0x50b334
call fcn.0040496c
lea eax, [ebp - 4]
mov edx, dword [0x512c08]
mov edx, dword [edx]
call fcn.0040496c
push 0
push 0x50b340
push 0x50b360
push dword [ebp - 4]
push 0x50b36c
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00404c54
mov eax, dword [ebp - 0xc]
call fcn.00404d94
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x50b2c6
mov eax, dword [0x512bf8]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x50b37c
call fcn.004f5fdc
push 1
push 0
push 0
push 0x50b39c
push 0x50b3bc
mov eax, ebx
call fcn.004554d4
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x512bf8]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x50b3cc
call fcn.004f5fdc
jmp 0x50b2d9
mov eax, dword [0x512bf8]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x50b3e8
call fcn.004f5fdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50b300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b322
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048f8
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40d39b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408691
mov dword [ebp - 0x14], eax
cmp dword [0x81555c], esi
jne 0x40d48e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d41b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d56e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d56e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d56e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81555c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x815560], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x815564], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x81556c], eax
test eax, eax
je 0x40d48b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x815568], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d4b3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d4a6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d4c8
push 4
pop eax
jmp 0x40d570
cmp dword [ebp - 0x14], esi
je 0x40d4c8
push dword [0x81555c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d4ad
mov eax, dword [0x815568]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d526
cmp dword [0x81556c], edi
je 0x40d526
push eax
call ebx
push dword [0x81556c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d526
test eax, eax
je 0x40d526
call ecx
test eax, eax
je 0x40d51b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d51b
test byte [ebp - 8], 1
jne 0x40d526
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d556
mov eax, dword [0x815560]
cmp eax, edi
je 0x40d553
push eax
call ebx
test eax, eax
je 0x40d553
call eax
mov esi, eax
test esi, esi
je 0x40d553
mov eax, dword [0x815564]
cmp eax, edi
je 0x40d553
push eax
call ebx
test eax, eax
je 0x40d553
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81555c]
call ebx
test eax, eax
je 0x40d56e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d570
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040435c
mov esp, ebp
pop ebp
ret
Function at 0x10038bd0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10038d94
pushal
mov esi, section.sect_1
lea edi, [esi - 0x26000]
push edi
or ebp, 0xffffffff
jmp 0x10038bfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10038c01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10038bf0
mov eax, 1
add ebx, ebx
jne 0x10038c13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10038c08
jne 0x10038c24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10038c08
xor ecx, ecx
sub eax, 3
jb 0x10038c38
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10038caa
mov ebp, eax
add ebx, ebx
jne 0x10038c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10038c50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10038c74
inc ecx
add ebx, ebx
jne 0x10038c60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10038c55
jne 0x10038c71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10038c55
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10038c94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10038c85
jmp 0x10038bf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10038c94
add edi, ecx
jmp 0x10038bf6
pop esi
mov edi, esi
mov ecx, 0xe5f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10038cb2
cmp byte [edi], 0x11
jne 0x10038cb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10038cb7
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x10038d26
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x38400]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3843c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10038ce4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x38440]
or eax, eax
je 0x10038d20
mov dword [ebx], eax
add ebx, 4
jmp 0x10038d01
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10038d57
cmp al, 0xef
ja 0x10038d4a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10038d2c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10038d39
mov ebp, dword [esi + 0x38444]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10038d8b
sub esp, 0xffffff80
jmp 0x1000ca53
Function at 0x10009653
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10009692
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10009692
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10009692
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10009692
cmp dword [ecx + 0x74], 0xe
jbe 0x10009692
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000c30f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000c3ac
push ebx
push esi
call fcn.1000c2d8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000c26c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c359
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c3ab
push edi
push eax
call fcn.1000d2ca
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c379
call fcn.1000adb4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c3aa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000c26c
add esp, 0x20
test eax, eax
jne 0x1000c398
push edi
call fcn.1000adb4
jmp 0x1000c3a0
push ebx
call fcn.1000adb4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000c619
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014678
push 0x10014670
push str.FlsAlloc
push 0x1f
call fcn.1000c535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c64d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001314c]
call esi
jmp 0x1000c653
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000c697
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014688
push 0x10014680
push str.FlsGetValue
push 0x21
call fcn.1000c535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c6ce
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000c6d6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014690
push 0x10014688
push str.FlsSetValue
push 0x22
call fcn.1000c535
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000c710
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10011d90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10011dbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011dbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401500
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37d4
call fcn.0040a940
mov eax, dword [0x410018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
push eax
push str..PhysicalDrive_d
lea edx, [ebp - 0x10c]
xor esi, esi
call fcn.00401ea0
add esp, 8
push esi
push esi
push 3
push esi
push 3
push esi
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x37cc], edi
cmp edi, 0xffffffff
je 0x40173d
xor eax, eax
push 0x2710
push eax
lea edx, [ebp - 0x37bc]
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
push edx
mov dword [ebp - 0x37d0], esi
mov dword [ebp - 0x37c0], eax
mov dword [ebp - 0x37c8], eax
mov dword [ebp - 0x37c4], eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0xc
lea edx, [ebp - 0x37c8]
push edx
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401730
mov eax, dword [ebp - 0x37b0]
push esi
lea edi, [ebp - 0x8dc]
lea ecx, [ebp - 0x37bc]
call fcn.00401390
mov eax, dword [ebp - 0x37ac]
push esi
lea edi, [ebp - 0xcc4]
lea ecx, [ebp - 0x37bc]
call fcn.00401390
mov eax, dword [ebp - 0x37a8]
push esi
lea edi, [ebp - 0x10ac]
lea ecx, [ebp - 0x37bc]
call fcn.00401390
mov eax, dword [ebp - 0x37a4]
push 1
lea edi, [ebp - 0x4f4]
lea ecx, [ebp - 0x37bc]
call fcn.00401390
add esp, 0x10
cmp byte [0x411420], 0
jne 0x4016e7
movsx eax, byte [ebp - 0x4f4]
mov edi, dword [sym.imp.MSVCR100.dll_isalnum]
push eax
call edi
add esp, 4
test eax, eax
jne 0x401663
movsx ecx, byte [ebp - 0x4e1]
push ecx
call edi
add esp, 4
test eax, eax
je 0x4016e7
xor eax, eax
jmp 0x401670
mov cl, byte [ebp + eax - 0x8dc]
mov byte [eax + 0x411020], cl
inc eax
test cl, cl
jne 0x401670
xor eax, eax
jmp 0x401690
mov cl, byte [ebp + eax - 0xcc4]
mov byte [eax + 0x410c20], cl
inc eax
test cl, cl
jne 0x401690
xor eax, eax
jmp 0x4016b0
mov cl, byte [ebp + eax - 0x4f4]
mov byte [eax + 0x411420], cl
inc eax
test cl, cl
jne 0x4016b0
xor eax, eax
jmp 0x4016d0
mov cl, byte [ebp + eax - 0x10ac]
mov byte [eax + 0x410820], cl
inc eax
test cl, cl
jne 0x4016d0
mov esi, 1
push 0x2710
lea edx, [ebp - 0x37bc]
push 0
push edx
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x37cc]
add esp, 0xc
push 0
lea eax, [ebp - 0x37d0]
push eax
push 0x2710
lea ecx, [ebp - 0x37bc]
push ecx
push 0
push 0
push 0x700a0
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [ebp - 0x37cc]
jmp 0x401736
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409fb6
mov esp, ebp
pop ebp
ret 4
Function at 0x401df0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x410018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x94
xor edi, edi
lea eax, [ebp - 0xa0]
push edi
push eax
mov esi, ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x401e73
call fcn.004011e0
test eax, eax
jne 0x401e8a
push esi
call fcn.00401910
test eax, eax
jne 0x401e8a
push esi
call fcn.00401500
test eax, eax
jne 0x401e8a
push esi
call fcn.00401070
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409fb6
mov esp, ebp
pop ebp
ret
xor ebx, ebx
test edi, edi
jne 0x401e88
mov ecx, esi
call fcn.004017b0
inc ebx
mov edi, eax
cmp ebx, 0xa
jl 0x401e75
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409fb6
mov esp, ebp
pop ebp
ret
Function at 0x402860
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ad26
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x410018]
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
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x13c], eax
cmp eax, 0xffffffff
je 0x402a26
lea ecx, [ebp - 0x138]
push ecx
push eax
mov dword [ebp - 0x138], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x402a26
jmp 0x4028d0
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 7
mov eax, str.PointBl
mov dword [ebp - 0x140], esp
mov byte [esi], bl
call fcn.00408250
sub esp, 0x1c
mov dword [ebp - 4], ebx
mov esi, esp
lea eax, [ebp - 0x114]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x144], esp
mov byte [esi], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402920
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x114]
call fcn.00408250
mov dword [ebp - 4], 0xffffffff
call fcn.004027c0
add esp, 0x38
cmp al, bl
jne 0x402a2b
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 7
mov eax, str.pointbl
mov dword [ebp - 0x144], esp
mov byte [esi], bl
call fcn.00408250
sub esp, 0x1c
mov dword [ebp - 4], 1
mov esi, esp
lea eax, [ebp - 0x114]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x140], esp
mov byte [esi], bl
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4029a0
sub eax, ecx
mov edi, eax
lea eax, [ebp - 0x114]
call fcn.00408250
mov dword [ebp - 4], 0xffffffff
call fcn.004027c0
add esp, 0x38
cmp al, bl
jne 0x402a2b
mov ecx, str.PointBlank.exe
lea eax, [ebp - 0x114]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4029f4
cmp dl, bl
je 0x4029f0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4029f4
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4029d4
xor eax, eax
jmp 0x4029f9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x402a2b
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x4028d0
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x402a3b
mov edx, dword [ebp - 0x130]
push edx
push ebx
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenProcess]
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.00409fb6
mov esp, ebp
pop ebp
ret