joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511ff7
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x5f2cb4]
push esi
test eax, eax
push edi
jne 0x512061
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x51205f
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x512023
push 8
pop edi
jmp 0x51203e
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x51204f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.00512b1a
pop ecx
and dword [0x5f2cb8], 0
mov dword [0x5f2cb4], edi
mov eax, edi
jmp 0x512061
mov dword [esi + 4], edi
mov eax, dword [0x5f2cbc]
mov dword [esi], eax
mov dword [0x5f2cbc], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x51231e
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x512342
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x512345
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x512358
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x51235f
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x5f2ca8]
mov ecx, dword [0x5f2ca4]
test eax, eax
jne 0x512379
test ecx, ecx
je 0x51238e
mov eax, ecx
mov dword [0x5f2ca8], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x51238e
cmp edx, dword [ebp + 8]
jb 0x51238e
cmp edx, dword [ebp - 4]
jbe 0x5124e7
mov eax, ecx
test ecx, ecx
mov dword [0x5f2ca8], eax
je 0x5123be
test eax, eax
je 0x5123b2
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x5123b2
cmp ecx, dword [ebp + 8]
jb 0x5123b2
cmp ecx, dword [ebp - 4]
jbe 0x5124e7
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x5f2ca8], eax
jne 0x51239d
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x512426
cmp edi, 0x70000000
jb 0x5123e3
cmp edi, 0x80000000
ja 0x5123e3
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x512426
cmp dword [ebp - 0x10], ebx
jne 0x5123fe
cmp dword [ebp - 0x14], ebx
jae 0x51240e
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x5123ce
jmp 0x512426
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5f2ca8], eax
jne 0x51249d
cmp esi, dword [ebp - 4]
jae 0x51250e
cmp esi, 0x70000000
jb 0x512444
cmp esi, 0x80000000
ja 0x512444
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51250e
cmp dword [ebp - 0x10], ebx
jne 0x512492
cmp dword [ebp - 0x14], ebx
jb 0x512492
mov ecx, esi
and ecx, 0xffff
je 0x51247a
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5f2ca8], eax
jne 0x51249d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x512426
mov dword [eax], 0x52727464
mov eax, dword [0x5f2ca8]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x5f2ca8]
mov edx, dword [0x5f2ca4]
mov dword [eax + 4], edx
mov eax, dword [0x5f2ca8]
mov dword [0x5f2ca4], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x5124cf
mov eax, dword [0x5f2ca8]
mov dword [eax + 8], ecx
mov eax, dword [0x5f2ca8]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x51250e
cmp esi, dword [ebp - 4]
ja 0x51250e
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x512510
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x512515
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51fe18
push 0x512bbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51258a
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x512586
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x512586
cmp word [eax + 0x14], 0
jne 0x51257b
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x51258c
mov eax, ecx
jmp 0x512575
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51259b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5f2cb0], eax
je 0x5125ba
mov eax, 0x10dd
jmp 0x512690
mov eax, dword [0x5f2cb4]
test eax, eax
jne 0x512690
mov edi, dword [ebp + 8]
test edi, edi
jne 0x5125d6
push 6
pop eax
jmp 0x512690
cmp dword [edi], 0
jne 0x5125e8
push 6
pop eax
mov dword [0x5f2cb4], eax
jmp 0x51268a
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x5125fb
push 8
pop edi
jmp 0x512674
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.00511b30
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x512669
cmp ecx, 0x17
ja 0x512669
cmp dword [edi + 0x1c], eax
jne 0x512669
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x51263f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x512674
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x5f2cc0]
mov dword [esi], eax
mov dword [0x5f2cc0], esi
xor eax, eax
jmp 0x512690
cmp dword [0x5f2cac], edx
push 9
pop edi
jne 0x51267a
mov dword [0x5f2cb4], edi
test esi, esi
je 0x512685
push esi
call fcn.00512b1a
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x5f2cb8], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401098
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push 0x3f0
push 0x3f0
push dword [section..data]
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 8], eax
push eax
push dword [section..data]
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push dword [section..data]
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push str.rand.txt
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x40111c
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
xor eax, eax
leave
ret

Function at 0x40197e
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0
push 0
push 0
push 0
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 4], eax
push 0
push 0x80000000
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 8], eax
push 0x40401c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 8]
call sub.wininet.dll_InternetReadFile
push dword [ebp - 8]
call sub.wininet.dll_InternetCloseHandle
push dword [ebp - 4]
call sub.wininet.dll_InternetCloseHandle
leave
ret 0xc

Function at 0x4020d8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [section..data], eax
push 0x30
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_RtlZeroMemory
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push dword [section..data]
pop dword [ebp - 0x1c]
push 0x3ec
push dword [section..data]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401d42
mov dword [ebp - 0x10], 6
mov dword [ebp - 8], str.MyClass
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [section..data]
push 0
push 0
push 0x190
push 0x24e
push 0x64
push 0xb4
push 0xcf0000
push 0x4030d4
push str.MyClass
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [0x404004], eax
push 1
push dword [0x404004]
call sub.user32.dll_ShowWindow
push dword [0x404004]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4021c9
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4021a2
leave
ret
Function at 0x40177c
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040192c
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40187a
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40181d
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401860
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401834
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40184f
test al, 0x40
je 0x401846
mov ecx, dword [edi + 0x20]
jmp 0x40184d
test al, 0x80
je 0x401860
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401860
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4017ec
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x420d20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x882a20]
xor edx, edx
cmp eax, edx
jne 0x420d46
xor eax, eax
mov byte [eax + 0x882920], al
inc eax
cmp eax, 0x100
jl 0x420d2e
mov dword [0x882a20], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x882920
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420dd7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x420daa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x420d78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x420ea3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x420e8a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f2b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x476668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0042fe30
lea edx, [esp + 0x18]
push eax
push edx
call dword [0x47964c]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [0x479458]
test eax, eax
je 0x42f359
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0042ef40
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x47948c]
push edi
lea ecx, [esp + 0x4c]
call fcn.0046e481
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.0043e730
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [0x4790e0]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [0x47941c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [0x479498]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.0046e4f3
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x42f890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x476690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0042d490
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x42f8e9
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.0042a8f0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.0042a8e0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.0042ef40
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x47941c]
push 0
lea ecx, [esp + 0x4c]
call fcn.0046e481
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0043e730
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.0042cef0
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x4790e4]
mov ecx, ebx
call fcn.0042a860
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x42f9b4
push edi
mov ecx, esi
call fcn.0042d000
push eax
push ebp
mov ecx, esi
call fcn.0042d1c0
cmp eax, dword [esp + 0x40]
jg 0x42f9b0
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x42f98e
mov eax, ebx
jmp 0x42f9ba
cmp edi, ebx
jl 0x42f9b8
mov eax, ebx
jmp 0x42f9ba
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x42f9cb
mov dword [esp + 0x30], eax
jmp 0x42f9d6
cmp edi, ebx
jl 0x42f9d1
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.0042a820
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x42fa1d
push edi
mov ecx, esi
call fcn.0042cf20
push eax
push ebx
mov ecx, esi
call fcn.0042d2f0
cmp eax, dword [esp + 0x44]
jg 0x42fa15
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x42f9ef
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x42fa27
cmp edi, ebp
jl 0x42fa21
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x42fa27
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x42fa30
mov ecx, eax
jmp 0x42fa39
cmp edi, ebp
jl 0x42fa36
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.0042cf10
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.0046e4f3
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x435a00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476b48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x435a39
inc eax
mov dword [esi + 0x10], eax
jmp 0x435b4c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x435a4d
mov eax, 0xffffffc7
jmp 0x435b4e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x435a5e
cmp dword [esi + 8], eax
jne 0x435a4d
cmp dword [esi + 8], eax
jne 0x435a77
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x435a77
mov eax, 0xffffffc7
jmp 0x435b4e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x435a8b
push eax
mov ecx, ebx
call fcn.00435230
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004090c0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x435abc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004090e0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004349a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x435aef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x854230
call fcn.004092c0
mov eax, dword [esp + 0x38]
jmp 0x435b4e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00435860
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x435b33
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00435880
mov esi, eax
test esi, esi
jne 0x435b63
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00435860
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x435b05
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x854230
call fcn.004092c0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x854230
call fcn.004092c0
mov eax, esi
jmp 0x435b4e
Function at 0x43ed90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x47941c]
push 0
lea ecx, [esp + 0x20]
call fcn.0046e481
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e730
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046e3af
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046ab9e
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046ab9e
push 1
push 0
push 0
mov ecx, esi
call fcn.0046ab46
push 1
push 0
push 1
mov ecx, esi
call fcn.0046ab46
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046e4f3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ef28
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046e481
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e730
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046e3af
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x47941c]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43efd4
cmp dword [esp + 0x40], 1
jne 0x43efd2
cmp ecx, eax
jge 0x43efd4
mov eax, ecx
cmp eax, 0xc8
jge 0x43efe0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ed90
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x479420]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046e4f3
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8