joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4870a3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00480210
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x48713e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4adc00]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x48713e
cmp eax, 1
je 0x48715f
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x48713e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x48710b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x48713a
xor eax, eax
inc eax
jmp 0x48717e
cmp edi, eax
jae 0x487142
xor eax, eax
jmp 0x48717e
cmp eax, esi
jae 0x487149
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x4adc00]
jmp 0x487162
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48ccd8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4ac30c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4ac320]
je 0x48cd0d
inc eax
cmp eax, 0x13
jb 0x48ccfe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4ac320]
jne 0x48ce33
mov eax, dword [0x4adbf8]
cmp eax, 1
je 0x48ce0b
cmp eax, edx
jne 0x48cd3d
cmp dword [0x4abb5c], 1
je 0x48ce0b
cmp ecx, 0xfc
je 0x48ce33
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x48cd73
lea eax, [ebp - 0x80]
push 0x4a59ac
push eax
call fcn.0047ff80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004852d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48cda7
mov eax, edi
push eax
call fcn.004852d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a59a8
push edi
call fcn.0048f2d0
add esp, 0x10
push edi
call fcn.004852d0
push dword [esi + 0x4ac324]
mov ebx, eax
call fcn.004852d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00480210
mov ebx, esp
push 0x4a598c
push ebx
call fcn.0047ff80
push edi
push ebx
call fcn.0047ff90
push 0x4a5988
push ebx
call fcn.0047ff90
push dword [esi + 0x4ac324]
push ebx
call fcn.0047ff90
push 0x12010
push 0x4a5960
push ebx
call fcn.00490ae8
add esp, 0x2c
jmp 0x48ce33
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4ac324]
push dword [esi]
call fcn.004852d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0048d90b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x48d2fb
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4ae104]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x48d344
call ebp
mov esi, eax
cmp esi, ebx
je 0x48d32a
mov dword [0x4ae104], 1
jmp 0x48d349
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x48d33f
push 2
pop eax
mov dword [0x4ae104], eax
jmp 0x48d344
mov eax, dword [0x4ae104]
cmp eax, 1
jne 0x48d3a1
cmp esi, ebx
jne 0x48d35c
call ebp
mov esi, eax
cmp esi, ebx
jne 0x48d35c
xor eax, eax
jmp 0x48d448
cmp word [esi], bx
mov eax, esi
je 0x48d371
inc eax
inc eax
cmp word [eax], bx
jne 0x48d363
inc eax
inc eax
cmp word [eax], bx
jne 0x48d363
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00481644
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x48d394
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x48d448
push ebp
push esi
push edi
call fcn.00480710
add esp, 0xc
jmp 0x48d386
cmp eax, 2
je 0x48d3aa
cmp eax, ebx
jne 0x48d355
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x48d355
cmp byte [ebp], bl
mov esi, ebp
je 0x48d3e0
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
cmp eax, ebx
je 0x48d355
push esi
add edi, eax
call fcn.004852d0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x48d3bd
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00481644
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x48d459
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x48d43a
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x48d44f
push edi
call fcn.004852d0
push esi
lea edi, [edi + eax + 1]
call fcn.004811c1
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x48d400
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004811d7
pop ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsA]
jmp 0x48d355
Function at 0x48d465
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4ae108]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
jne 0x48d4a5
call esi
test eax, eax
je 0x48d48a
mov dword [0x4ae108], 1
jmp 0x48d4aa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x48d4a1
mov dword [0x4ae108], 2
jmp 0x48d4b3
xor eax, eax
jmp 0x48d501
cmp eax, 1
jne 0x48d4ae
call esi
jmp 0x48d501
cmp eax, 2
jne 0x48d4a1
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x48d4f9
lea eax, [esi + esi]
push eax
call fcn.00481644
mov ebp, eax
test ebp, ebp
pop ecx
je 0x48d4f9
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x48d4fd
push ebp
call fcn.004811d7
pop ecx
xor eax, eax
jmp 0x48d4ff
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x490ae8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4ae194], ebx
push esi
push edi
jne 0x490b68
push 0x494c54
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x490ba3
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4a7454
push edi
call esi
test eax, eax
mov dword [0x4ae194], eax
je 0x490ba3
push 0x4a7444
push edi
call esi
push 0x4a7430
push edi
mov dword [0x4ae198], eax
call esi
cmp dword [0x4adc00], 2
mov dword [0x4ae19c], eax
jne 0x490b68
push 0x4a7414
push edi
call esi
test eax, eax
mov dword [0x4ae1a4], eax
je 0x490b68
push 0x4a73fc
push edi
call esi
mov dword [0x4ae1a0], eax
mov eax, dword [0x4ae1a0]
test eax, eax
je 0x490bad
call eax
test eax, eax
je 0x490b94
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4ae1a4]
test eax, eax
je 0x490b94
test byte [ebp - 8], 1
jne 0x490bad
cmp dword [0x4adc0c], 4
jb 0x490ba7
or byte [ebp + 0x12], 0x20
jmp 0x490bcc
xor eax, eax
jmp 0x490bdc
or byte [ebp + 0x12], 4
jmp 0x490bcc
mov eax, dword [0x4ae198]
test eax, eax
je 0x490bcc
call eax
mov ebx, eax
test ebx, ebx
je 0x490bcc
mov eax, dword [0x4ae19c]
test eax, eax
je 0x490bcc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4ae194]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49206c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x492240
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4ae4a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x492240
test cl, 0x48
je 0x4920d7
cmp byte [eax + 5], 0xa
je 0x4920d7
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x492129
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x492111
call fcn.00484fc9
mov dword [eax], 9
call fcn.00484fd2
mov dword [eax], esi
jmp 0x492121
cmp eax, 0x6d
je 0x492240
push eax
call fcn.00484fdb
pop ecx
or eax, 0xffffffff
jmp 0x492242
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x49223b
test eax, eax
je 0x492150
cmp byte [ebx], 0xa
jne 0x492150
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x492159
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x492235
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x492225
cmp al, 0xd
je 0x49218b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x492217
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4921a5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4921a0
add dword [ebp + 0x10], 2
jmp 0x4921f9
mov dword [ebp + 0x10], eax
jmp 0x492213
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4921cd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x492213
cmp dword [ebp - 0xc], 0
je 0x492213
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4921ee
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4921f9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x492216
cmp ebx, dword [ebp + 0xc]
jne 0x4921fe
cmp byte [ebp - 1], 0xa
jne 0x4921fe
mov byte [ebx], 0xa
jmp 0x492216
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048d58c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x492217
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x49216f
jmp 0x492235
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x492235
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x492242
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x492a5f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x492a78
or eax, 0xffffffff
jmp 0x492ad9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x492ad5
push 0x3d
push esi
call fcn.00492c5f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x492ad5
cmp esi, eax
je 0x492ad5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4adc20]
sete cl
cmp eax, dword [0x4adc24]
mov dword [ebp - 8], ecx
jne 0x492abb
mov edi, eax
call fcn.004929fe
mov dword [0x4adc20], eax
cmp eax, ebx
jne 0x492b14
cmp dword [ebp + 0xc], ebx
je 0x492add
cmp dword [0x4adc28], ebx
je 0x492add
call fcn.00491fdc
test eax, eax
je 0x492b14
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x492ae6
xor eax, eax
jmp 0x492ad8
push 4
call fcn.00481644
cmp eax, ebx
pop ecx
mov dword [0x4adc20], eax
je 0x492ad5
mov dword [eax], ebx
cmp dword [0x4adc28], ebx
jne 0x492b14
push 4
call fcn.00481644
cmp eax, ebx
pop ecx
mov dword [0x4adc28], eax
je 0x492ad5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4adc20]
call fcn.004929b1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x492b75
cmp dword [esi], ebx
je 0x492b75
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004811d7
cmp dword [ebp - 8], ebx
pop ecx
jne 0x492b58
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x492bb6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x492b4f
mov eax, edi
shl eax, 2
push eax
push dword [0x4adc20]
call fcn.00483112
cmp eax, ebx
pop ecx
pop ecx
je 0x492bb6
jmp 0x492bb1
cmp dword [ebp - 8], ebx
jne 0x492c21
cmp edi, ebx
jge 0x492b84
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4adc20]
call fcn.00483112
cmp eax, ebx
pop ecx
pop ecx
je 0x492ad5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4adc20], eax
cmp dword [ebp + 0xc], ebx
je 0x492c0b
push dword [ebp - 4]
call fcn.004852d0
inc eax
inc eax
push eax
call fcn.00481644
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x492c0b
push dword [ebp - 4]
push esi
call fcn.0047ff80
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x492c04
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004811d7
pop ecx
cmp dword [ebp - 8], ebx
je 0x492c19
push dword [ebp - 4]
call fcn.004811d7
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x492ad8
push dword [ebp - 4]
call fcn.004811d7
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x492ae2
Function at 0x4b2389
Capabilities:
Unmount volume via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1004000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x218], eax
mov dword [eax], esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ecx
call dword [0x100103c]
test eax, eax
je 0x4b2559
push ebx
mov ebx, dword [0x1001024]
lea eax, [ebp - 0x214]
push eax
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x4b23fb
call dword [0x1001020]
cmp eax, 0xea
je 0x4b23fb
xor eax, eax
jmp 0x4b2558
mov eax, dword [ebp - 0x214]
push edi
add eax, eax
push eax
push esi
call dword [0x1001008]
mov edi, eax
cmp edi, esi
je 0x4b2555
push esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push edi
push eax
call ebx
test eax, eax
jne 0x4b2437
push edi
call dword [0x1001000]
jmp 0x4b2555
cmp word [edi], si
jne 0x4b2449
push 0x57
call dword [0x1001048]
jmp 0x4b2555
mov eax, edi
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4b244b
push edi
cmp word [eax], si
je 0x4b247c
call dword [0x1001000]
mov eax, dword [ebp - 0x218]
push 0x57
mov dword [eax], 1
call dword [0x1001048]
push 0xe
jmp 0x4b250e
call dword [0x1001000]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4b248b
push 0xffffffffffffffff
push 0x80
sub eax, edx
push 3
sar eax, 1
xor ecx, ecx
push esi
mov word [ebp + eax*2 - 0x20e], cx
dec eax
push 3
mov dword [ebp - 0x214], eax
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [0x100101c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b2555
mov edi, dword [0x1001018]
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push 0x560004
push ebx
call edi
test eax, eax
jne 0x4b2516
push ebx
call dword [0x1001014]
mov eax, dword [ebp - 0x218]
push 0x57
mov dword [eax], 1
call dword [0x1001048]
push 0xf
call fcn.004b1dc1
pop ecx
jmp 0x4b2555
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push 0x90018
push ebx
call edi
test eax, eax
jne 0x4b2536
push 0xb
call fcn.004b1dc1
pop ecx
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push 0x90020
push ebx
call edi
test eax, eax
jne 0x4b2568
push ebx
call dword [0x1001014]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b2ff5
leave
ret 8
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push 0x56c00c
push ebx
call edi
test eax, eax
jne 0x4b258b
push ebx
call dword [0x1001014]
mov eax, esi
jmp 0x4b2557
xor esi, esi
inc esi
jmp 0x4b2580
Function at 0x4c7fbc
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov ecx, ebx
mov dword [ebp - 4], ecx
push edi
test esi, esi
je 0x4c8041
test edx, edx
je 0x4c8041
add edx, esi
lea edi, [esi + 0x10040]
mov dword [ebp - 8], edx
cmp edi, edx
jbe 0x4c7fe8
mov edi, edx
lea eax, [esi + 0x40]
cmp eax, edi
jae 0x4c8041
mov ecx, dword [eax - 4]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4c8034
lea eax, [esi + 0xf8]
add eax, ecx
cmp eax, edx
jae 0x4c8034
cmp dword [ecx + esi], 0x4550
jne 0x4c8034
mov eax, 0x14c
cmp word [ecx + esi + 4], ax
jne 0x4c8034
mov ecx, esi
call fcn.004c8053
mov ebx, eax
mov eax, edx
mov ecx, ebx
mov dword [ebp - 4], eax
or ecx, eax
jne 0x4c803e
mov edx, dword [ebp - 8]
add esi, dword [ebp + 8]
lea eax, [esi + 0x40]
cmp eax, edi
jb 0x4c7fef
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
mov edx, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c83f8
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, edx
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
test esi, esi
je 0x4c8489
test eax, eax
je 0x4c8489
push ebx
lea edx, [esi + eax]
lea ebx, [esi + 0x10040]
mov dword [ebp - 0xc], edx
cmp ebx, edx
jbe 0x4c8428
mov ebx, edx
push edi
mov edi, esi
lea eax, [esi + 0x40]
jmp 0x4c8483
mov ecx, dword [eax - 4]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4c847a
lea eax, [edi + 0xf8]
add eax, ecx
cmp eax, edx
jae 0x4c847a
cmp dword [ecx + edi], 0x4550
jne 0x4c847a
mov eax, 0x14c
cmp word [ecx + edi + 4], ax
jne 0x4c847a
mov edx, esi
mov ecx, edi
sub edx, edi
add edx, dword [ebp - 8]
call fcn.004c8497
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4c8487
mov edx, dword [ebp - 0xc]
jmp 0x4c847d
mov ecx, dword [ebp - 4]
add edi, dword [ebp + 8]
lea eax, [edi + 0x40]
cmp eax, ebx
jb 0x4c8430
pop edi
pop ebx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4cc405
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [eax], edi
mov esi, edi
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
push eax
push edi
push ecx
mov dword [ebx], edi
mov dword [esp + 0x18], edi
call fcn.004cb00a
mov edi, eax
cmp edi, 0xc0000023
jne 0x4cc487
push dword [esp + 0xc]
mov eax, dword fs:[0x30]
push esi
push dword [eax + 0x18]
call dword [fcn.004212d8]
mov esi, eax
test esi, esi
jne 0x4cc462
add edi, 0x77
jmp 0x4cc4a1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004cb00a
mov edi, eax
test edi, edi
js 0x4cc48b
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ebx], esi
mov dword [ecx], eax
test edi, edi
jns 0x4cc4a1
test esi, esi
je 0x4cc4a1
mov eax, dword fs:[0x30]
push esi
push 0
push dword [eax + 0x18]
call dword [fcn.004212dc]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cc4b1
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x420004]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x24], ecx
xor esi, esi
mov dword [esp + 0x10], esi
mov ebx, esi
mov dword [esp + 0x14], esi
mov eax, dword [edi + 0x18]
add eax, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
cmp dword [eax], 2
jne 0x4cc633
cmp dword [edi + 0x14], ebx
jne 0x4cc56b
mov edx, dword [edi + 0x1c]
mov eax, edx
and eax, 0xf000000
cmp eax, 0x2000000
jne 0x4cc633
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
push esi
push esi
call fcn.004cb00a
mov esi, eax
cmp esi, 0xc0000023
jne 0x4cc638
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
xor esi, esi
push esi
push dword [eax + 0x18]
call dword [fcn.004212d8]
mov ebx, eax
test ebx, ebx
jne 0x4cc550
mov esi, 0xc000009a
jmp 0x4cc638
mov edx, dword [edi + 0x1c]
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push eax
push ebx
push esi
call fcn.004cb00a
mov eax, dword [esp + 0x18]
mov edi, ebx
jmp 0x4cc578
cmp dword [edi + 0x14], 1
jne 0x4cc633
add edi, 0x20
lea esi, [eax + 0x14]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x20]
jne 0x4cc580
sub ecx, edx
mov edx, edi
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x18], eax
mov ax, word [edx]
add edx, 2
cmp ax, word [esp + 0x20]
jne 0x4cc59a
sub edx, dword [esp + 0x18]
sar edx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
mov word [esp + 0x12], ax
movzx eax, ax
push eax
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [fcn.004212d8]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4cc5e1
mov esi, 0xc000009a
jmp 0x4cc655
push esi
lea eax, [esp + 0x14]
push eax
call dword [0x4212b4]
push edi
lea eax, [esp + 0x14]
push eax
call dword [0x4212b4]
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0x18
mov dword [esp + 0x30], eax
xor edi, edi
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], edi
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x38], pe_nt_image_headers32
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [0x4212b8]
mov esi, eax
jmp 0x4cc63a
mov esi, 0xc00000bb
xor edi, edi
cmp dword [esp + 0x14], 0
je 0x4cc655
push dword [esp + 0x14]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [fcn.004212dc]
test ebx, ebx
je 0x4cc66c
push ebx
xor eax, eax
push eax
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [fcn.004212dc]
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d6814
mov esp, ebp
pop ebp
ret