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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4020f2
push edi
lea eax, [ebp - 8]
push eax
push 0x400000
push dword [0x468718]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4020eb
cmp dword [ebp - 8], edi
jne 0x4020cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004187ab
leave
ret

Function at 0x40523b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x405243
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405256
test al, 0x10
jne 0x405256
mov al, 1
ret
xor al, al
ret

Function at 0x409ed6
Capabilities:
Create process on windows

Disassembly:
push 0x10c
mov eax, 0x449578
call fcn.004190dc
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], ebx
call fcn.00405329
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x409f03
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402f2a
lea ecx, [ebp - 0x100]
call fcn.00403064
push 0x45a980
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x118]
call fcn.0040380f
pop ecx
push 0x45a8e8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004039be
push eax
lea ecx, [ebp - 0xe8]
call fcn.00402b60
push 0x45a978
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 4
call fcn.004039be
push eax
lea ecx, [ebp - 0xd0]
call fcn.00402b60
push esi
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 5
call fcn.00404ae5
push eax
lea ecx, [ebp - 0xb8]
call fcn.00402b60
push 0x45a56c
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.004039be
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b60
lea ecx, [ebp - 0xb8]
call fcn.00404c78
lea ecx, [ebp - 0xd0]
call fcn.00404c78
lea ecx, [ebp - 0xe8]
call fcn.00404c78
lea ecx, [ebp - 0x118]
call fcn.00404c78
push 0x40
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x90], 0x44
push ebx
push eax
call fcn.00430b30
xor eax, eax
lea edi, [ebp - 0xa0]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jb 0x40a004
mov ecx, dword [ebp - 0x44]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
jb 0x40a010
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xa0]
push edx
lea edx, [ebp - 0x90]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a048
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x44]
call fcn.00404c78
lea ecx, [ebp - 0x2c]
call fcn.00404c78
call fcn.00419029
ret
Function at 0x40ac90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40acb3
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40accf
mov eax, 0x10000
mov dword [esi + 0xc], eax
mov eax, 1
mov dword [esi], 0x40
mov dword [0x466700], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x466700]
mov ebx, edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
mov esi, dword [edi + 4]
mov dword [ebp - 8], esi
test esi, esi
je 0x40adf9
mov eax, dword [esi + 0xc]
shl eax, 2
cmp eax, ebx
ja 0x40af07
mov dword [ebp - 8], esi
mov esi, dword [esi + 4]
test esi, esi
jne 0x40ade1
xor edx, edx
mov esi, dword [edi + 8]
lea eax, [ebx + 0x10]
xor ecx, ecx
div dword [edi + 8]
test edx, edx
setne cl
xor edx, edx
add ecx, eax
mov eax, dword [edi + 0xc]
div esi
cmp ecx, eax
jae 0x40ae1c
mov ecx, eax
jmp 0x40ae1d
inc ecx
mov ebx, ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov eax, 0x80000000
imul ebx, esi
lea edi, [ecx - 0x80000000]
sub eax, ebx
cmp edi, eax
jb 0x40ae40
mov edi, 0x80000000
sub edi, ebx
push ecx
mov edx, ebx
mov ecx, edi
call fcn.0040acf0
mov edi, eax
add esp, 4
test edi, edi
je 0x40af6e
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x40ae40
mov edi, dword [ebp - 0xc]
cmp dword [edi + 4], 0
jne 0x40ae80
mov dword [edi + 4], esi
jmp 0x40aeb8
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af6e
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0x20
mov dword [eax + 4], esi
push dword [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af6e
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
shr ecx, 8
xor ecx, eax
shr ecx, 8
xor ecx, eax
shl eax, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xff0
lea eax, [ecx + 0x10]
add eax, esi
mov dword [esi + 8], eax
mov eax, ebx
sub eax, ecx
sub eax, 0x10
shr eax, 2
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x20
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af6e
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af6e
mov edx, dword [esi + 8]
test bl, 3
mov ecx, 0
mov dword [ebp - 0x14], edx
setne cl
mov eax, ebx
shr eax, 2
add ecx, eax
sub dword [esi + 0xc], ecx
lea eax, [edx + ecx*4]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x20
push dword [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40af65
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40af6e
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b0d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x4666f0], 0
jne 0x40b18f
mov eax, dword [0x4666f8]
mov dword [ebp - 4], 0
test eax, eax
jne 0x40b110
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x4666f8], eax
test eax, eax
je 0x40b198
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x463a58], eax
cmp eax, 0xffffffff
je 0x40b198
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x463a5c], eax
cmp eax, 0xffffffff
je 0x40b198
push esi
push 0x468bb8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.0040ac90
push str.ntdll
mov dword [0x4666f0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40b18e
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40b18e
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
js 0x40b18e
mov eax, dword [ebp - 0x18]
mov dword [0x468724], eax
pop esi
mov eax, dword [0x4666f0]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40b210
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x468bb8
mov ebx, edx
mov esi, ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40b25f
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov dword [esi], ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x468bb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b2f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 0x468bb8
xor edi, edi
mov ebx, dword [esi + 0x60]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40b355
mov ecx, dword [esi + 0x5c]
test ebx, ebx
je 0x40b32e
mov eax, esi
sub eax, dword [esi + 0x60]
mov dword [ecx], eax
jmp 0x40b330
mov dword [ecx], esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x4666f4]
mov edi, 1
mov dword [esi + 0x50], eax
mov dword [0x4666f4], esi
push 0x468bb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b6a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], ecx
mov dword [ebp - 0x20], 0
push ebx
push edi
test ecx, ecx
je 0x40b87b
cmp ecx, dword [0x4666fc]
je 0x40b87b
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40b87b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [eax], 0x4550
jne 0x40b87b
mov edi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0xc], edi
lea ebx, [eax + edi]
mov dword [ebp - 0x2c], ebx
test edi, edi
je 0x40b87b
test eax, eax
je 0x40b87b
mov eax, dword [edi + ecx + 0x1c]
add eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [edi + ecx + 0x20]
add eax, ecx
push esi
mov esi, dword [edi + ecx + 0x24]
mov dword [ebp - 0x24], eax
add esi, ecx
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
cmp dword [edi + ecx + 0x18], eax
jbe 0x40b871
lea ebx, [edx + 8]
mov dword [ebp - 0x34], ebx
jmp 0x40b740
mov edx, dword [ebx]
mov dword [ebp - 0x10], edx
test edx, edx
je 0x40b852
mov eax, ebx
mov dword [ebp - 8], ebx
mov ecx, dword [eax - 8]
mov ebx, dword [eax + 4]
test ecx, ecx
je 0x40b79b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*4]
add eax, dword [ebp - 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b788
test dl, dl
je 0x40b784
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b788
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b768
xor eax, eax
jmp 0x40b78d
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 8]
jne 0x40b832
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor esi, esi
cmp dword [edi + ecx + 0x14], esi
jbe 0x40b835
mov edi, dword [ebp - 0x28]
lea ecx, [ecx]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
cmp eax, esi
jne 0x40b7fc
mov eax, dword [edi]
test eax, eax
je 0x40b82a
cmp eax, dword [ebp - 0xc]
jb 0x40b7ca
cmp eax, dword [ebp - 0x2c]
jb 0x40b82a
push ebx
push edx
mov edx, ecx
mov ecx, edi
call fcn.0040b370
add esp, 8
test eax, eax
je 0x40b7f9
or dword [eax + 0x68], 1
lea ecx, [ebp - 0x38]
push ecx
push 0x20
push 0x6c
push eax
mov dword [ebp - 0x20], 1
mov dword [eax + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x1c], 0
jne 0x40b81a
mov ecx, dword [ebp - 0x30]
add ecx, 8
mov edx, dword [ecx]
inc edx
call fcn.0040b210
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp - 0x10]
add edi, 4
cmp esi, dword [eax + ecx + 0x14]
jb 0x40b7b0
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
jmp 0x40b835
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0x10]
add eax, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], edx
test edx, edx
jne 0x40b752
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x34]
inc eax
add esi, 2
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
cmp eax, dword [edi + ecx + 0x18]
jb 0x40b740
cmp dword [ebp - 0x1c], 0
je 0x40b871
call fcn.0040b650
mov eax, dword [ebp - 0x20]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ba50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
mov dword [0x4664d8], 0
call fcn.0040ba20
mov edi, eax
test edi, edi
je 0x40bbb4
lea edx, [edi + 0x26]
push ebx
call fcn.0040adc0
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40bbb4
lea eax, [edi + 0x26]
mov ecx, esi
push eax
call fcn.0040ac30
mov eax, dword [ebp - 0x10]
lea ebx, [esi + 0x1c]
push edi
mov edx, eax
mov dword [esi], eax
mov ecx, ebx
mov dword [esi + 4], 0x40a690
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
call fcn.0040ac60
add esp, 8
xor ecx, ecx
test edi, edi
je 0x40baeb
lea esp, [esp]
cmp byte [ecx + ebx], 0x90
jne 0x40baeb
inc ecx
cmp ecx, edi
jb 0x40bae0
lea eax, [ecx + 5]
cmp eax, edi
ja 0x40bb27
mov al, byte [ecx + ebx]
cmp al, 0xe8
je 0x40bafd
cmp al, 0xe9
jne 0x40bb27
lea esi, [ecx + ebx]
push 4
lea edx, [esi + 1]
lea ecx, [ebp - 0x14]
call fcn.0040ac60
mov eax, dword [ebp - 0x10]
mov edx, ecx
sub eax, ebx
lea ecx, [esi + 1]
add dword [ebp - 0x14], eax
push 4
call fcn.0040ac60
mov esi, dword [ebp - 0xc]
add esp, 8
mov eax, 0x25ff
mov byte [ebp - 0xc], 0xe9
mov word [ebx + edi], ax
lea ecx, [edi + 6]
mov eax, dword [ebp - 0x10]
add ecx, ebx
add eax, edi
mov dword [ebx + edi + 2], ecx
mov ebx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, 0x40a690
sub eax, ebx
sub eax, 5
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0x24]
push eax
push 0x20
lea eax, [edi + 0x26]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x18]
push eax
push 0x40
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40bbb4
push 5
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.0040ac60
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
pop edi
mov dword [eax], 5
mov eax, 1
mov dword [0x4664d8], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004187ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004187ab
mov esp, ebp
pop ebp
ret
Function at 0x40bc20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4664d8]
mov eax, dword [ebx]
cmp byte [eax], 0xe9
jne 0x40bd14
lea ecx, [ebp - 0xa4]
push ecx
push 0x40
push dword [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40bd14
mov edx, dword [ebx + 8]
lea ecx, [ebp - 0x9c]
push edi
mov edi, dword [ebx + 0xc]
push edi
call fcn.0040ac60
add esp, 4
xor ecx, ecx
test edi, edi
je 0x40bc8f
lea esp, [esp]
cmp byte [ebp + ecx - 0x9c], 0x90
jne 0x40bc8f
inc ecx
cmp ecx, edi
jb 0x40bc80
lea eax, [ecx + 5]
cmp eax, edi
ja 0x40bcd6
mov al, byte [ebp + ecx - 0x9c]
cmp al, 0xe8
je 0x40bca5
cmp al, 0xe9
jne 0x40bcd6
push esi
lea esi, [ebp + ecx - 0x9b]
push 4
mov edx, esi
lea ecx, [ebp - 0xa0]
call fcn.0040ac60
mov eax, dword [ebx + 8]
mov edx, ecx
sub eax, dword [ebx]
mov ecx, esi
add dword [ebp - 0xa0], eax
push 4
call fcn.0040ac60
add esp, 8
pop esi
mov ecx, dword [ebx]
lea edx, [ebp - 0x9c]
push edi
call fcn.0040ac60
add esp, 4
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
push dword [ebx + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004187ab
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.004187ab
mov esp, ebp
pop ebp
ret

Function at 0x40edc5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [ecx]
mov esi, edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x40ede9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0040ee17
mov edi, eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x40f5c8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x468be8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x468bec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x468bf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x468bf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x468bf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x468bfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x468c00], eax
mov eax, 0x468be8
pop ebp
ret 4
Function at 0x411a59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x463070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x411ac2
and dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x411a8c
mov eax, esi
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push 0
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x411aba
test ecx, ecx
je 0x411ac2
test esi, esi
je 0x411ac2
mov ecx, dword [ebp - 0xc]
jmp 0x411a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411ac4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004187ab
leave
ret

Function at 0x4156ad
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x41571f
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x4156bc
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x4156bc
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4157ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x4157f0
xor eax, eax
jmp UuidCreateSequential
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x415810
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41580d
inc edi
cmp edi, edx
jb 0x415800
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x4158dc
cmp ecx, 2
jbe 0x41589b
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x4158cb
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41587b
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x415879
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x4158d1
shr esi, cl
test esi, esi
je 0x415829
cmp esi, 4
ja 0x4158c0
cmp esi, 3
je 0x4158c0
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x415829
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x4157f9
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x4157f9
push 2
shr esi, cl
pop eax
cmp eax, ecx
mov eax, dword [ebp + 0xc]
pop edi
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [eax], ecx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x41dd47
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
xchg ebp, eax
call 0x1041dd4b
mov bh, 0x45
aam 0x2b
ror byte [ecx - 0xb676b], 1
invalid

Function at 0x41ecac
Capabilities:
Get number of processors

Disassembly:
push edi
xor edi, 0x8b68
sub edi, 0x56df
pop edi
push edx
or edx, 0xe4fa
or edx, 0x550
xor edx, 0x166dd
call fcn.0041ecac
add byte [esi], bh
cmp cl, byte [eax + edx*2 + 0x46]
push eax
add esp, 4
pop edx
lea eax, [ebp - 0xc50]
mov dword [ebp - 0x6d8], eax
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x6d4], edx
xor eax, eax
mov word [ebp - 0x120], ax
xor ecx, ecx
mov word [ebp - 0x34], cx
push edi
and edi, 0xe948
sub edi, 0x7c8a
and edi, 0xb673
jmp 0x41ecf4
pop edi
push edi
push edi
add esp, 4
or edi, 0xa03e
sub edi, 0x10c12
jmp 0x41ed0b
pop edi
mov edx, dword [ebp - 0x6d4]
mov ax, word [edx]
mov word [ebp - 0x88e], ax
mov ecx, dword [ebp - 0x6d4]
add ecx, 2
mov dword [ebp - 0x6d4], ecx
mov dx, word [ebp - 0x88e]
mov word [ebp - 0x120], dx
mov eax, dword [ebp - 0x6d8]
mov cx, word [eax]
mov word [ebp - 0x890], cx
mov edx, dword [ebp - 0x6d8]
add edx, 2
mov dword [ebp - 0x6d8], edx
mov ax, word [ebp - 0x890]
mov word [ebp - 0x34], ax
push edi
push edx
add esp, 4
or edi, 0x104ea
pop edi
push ecx
push eax
add esp, 4
sub ecx, 0xbe6d
pop ecx
push edx
and edx, 0xa84f
sub edx, 0x213c
xor edx, 0xa583
add edx, 0x12526
pop edx
movzx ecx, word [ebp - 0x34]
test ecx, ecx
jne 0x41edb2
movzx edx, word [ebp - 0x120]
movzx eax, word [ebp - 0x34]
sub edx, eax
mov dword [ebp - 0xb98], edx
jmp 0x41ee0c
movzx ecx, word [ebp - 0x120]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
je 0x41ecda
movzx eax, word [ebp - 0x120]
xor eax, 0x20
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x41ecda
movzx edx, word [ebp - 0x120]
movzx eax, word [ebp - 0x34]
cmp edx, eax
jge 0x41edf6
mov dword [ebp - 0xb94], 0xffffffff
jmp 0x41ee00
mov dword [ebp - 0xb94], 1
mov ecx, dword [ebp - 0xb94]
mov dword [ebp - 0xb98], ecx
cmp dword [ebp - 0xb98], 0
jne 0x41ee55
push edx
or edx, 0x23dd
add edx, 0xe652
add edx, 0xdeea
xor edx, 0x181cf
pop edx
push eax
or eax, 0x11f09
add eax, 0xd80d
pop eax
push esi
jmp 0x41ee46
pop esi
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x18c], edx
jmp 0x41eebd
push ebx
push ebx
add esp, 4
call 0x41ee69
add byte [esi + 0x41], al
xor eax, 0x3c324845
cmp byte [esi - 0x7d], cl
les eax, [ebx + ebx*2]
push edx
push esi
add esp, 4
and edx, 0x8fce
and edx, 0x98c6
jmp 0x41ee86
pop edx
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax]
mov dword [ebp - 0x24c], ecx
mov edx, dword [ebp - 0x24c]
cmp edx, dword [ebp - 0x6dc]
je 0x41eeb3
mov eax, dword [ebp - 0x24c]
cmp dword [eax + 0x30], 0
jne 0x41ec7e
mov dword [ebp - 0x18c], 0