joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b220
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x60
mov eax, 0x514eb7
call fcn.00467a4d
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], esi
xor edx, edx
mov word [ebp - 0x30], dx
inc edx
mov dword [ebp - 4], edx
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x46b260
mov eax, dword [eax]
lea edi, [ebp - 0x5c]
push edi
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46b3bf
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x50], esi
cmp dword [ebx + 0x14], 8
jb 0x46b286
mov eax, dword [ebx]
jmp 0x46b288
mov eax, ebx
lea ecx, [ebp - 0x50]
push ecx
push esi
lea ecx, [ebp - 0x68]
push ecx
mov edi, 0xffff
push edi
push eax
push esi
push dword [ebp - 0x5c]
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
call esi
mov dword [ebp - 0x58], eax
test eax, eax
je 0x46b2ca
push 0x53dde8
mov ecx, dword [ebp - 0x54]
call fcn.00463eb0
xor eax, eax
inc eax
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0
push 0
push eax
jmp 0x46b3fb
mov eax, dword [ebp - 0x50]
inc eax
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f05c
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x60], eax
mov dword [esp], 0x53ddec
push dword [ebp - 0x50]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [ebx + 0x14], 8
jb 0x46b30a
mov eax, dword [ebx]
jmp 0x46b30c
mov eax, ebx
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x68]
push ecx
push edi
push eax
push 0
push dword [ebp - 0x5c]
call esi
mov dword [ebp - 0x58], eax
cmp eax, 0xea
jne 0x46b376
mov eax, dword [ebp - 0x50]
add eax, eax
mov dword [ebp - 0x50], eax
cmp eax, 0x1000
ja 0x46b376
push dword [ebp - 0x60]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
xor ecx, ecx
mov eax, dword [ebp - 0x50]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045f05c
pop ecx
pop ecx
mov dword [ebp - 0x60], eax
cmp dword [ebx + 0x14], 8
jb 0x46b367
mov ecx, dword [ebx]
jmp 0x46b369
mov ecx, ebx
lea edx, [ebp - 0x50]
push edx
push eax
lea eax, [ebp - 0x68]
push eax
push edi
push ecx
jmp 0x46b319
mov dword [ebp - 4], 2
cmp dword [ebp - 0x58], 0
jne 0x46b3ab
push dword [ebp - 0x60]
lea ecx, [ebp - 0x4c]
call fcn.00463eb0
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x30]
call fcn.00464110
mov byte [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.004625c0
push dword [ebp - 0x60]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 4], 1
jmp 0x46b3e4
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.004642e0
or dword [ebp - 0x64], 1
mov byte [ebp - 4], 0
push esi
push 1
lea ecx, [ebp - 0x30]
call fcn.004625c0
mov eax, dword [ebp - 0x54]
call fcn.00467aa9
ret
Function at 0x46c869
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x14
mov eax, 0x5152fa
call fcn.004679e1
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
call esi
test eax, eax
je 0x46c8f2
push dword [ebp - 0x18]
call fcn.0045f05c
pop ecx
mov edi, eax
mov dword [ebp - 0x20], edi
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x46c8f2
push dword [ebp - 0x18]
push edi
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x46c8f2
mov byte [ebp - 0x11], 1
push ebx
push 4
push eax
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
jne 0x46c8f2
mov byte [ebp - 0x11], bl
or dword [ebp - 4], 0xffffffff
jmp 0x46c908
cmp dword [ebp - 0x1c], ebx
je 0x46c916
push dword [ebp - 0x1c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x20], ebx
je 0x46c924
push dword [ebp - 0x20]
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
mov al, byte [ebp - 0x11]
call fcn.00467a86
ret 0xc

Function at 0x47d888
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5750c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
inc esi
cmp dword [0x57c89c], 0
mov dword [eax + 0x16168], esi
jne 0x47d8d1
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x47d8cb
or eax, 0xffffffff
jmp 0x47d8d3
mov dword [0x57c89c], esi
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045f06e
leave
ret
Function at 0x4802f7
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x48032c
push 3
lea eax, [ebx + 2]
cdq
pop ecx
idiv ecx
lea eax, [eax*4 + 1]
push eax
push dword [ebp + 8]
call fcn.0047dfaf
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4803fa
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov byte [esi], 0
test edi, edi
jne 0x480341
mov eax, esi
jmp 0x4803f9
cmp ebx, 2
jle 0x480395
xor edx, edx
push 3
lea eax, [ebx - 3]
pop ecx
div ecx
inc eax
mov ecx, eax
imul ecx, ecx, 0xfffffffd
add ebx, ecx
mov dword [ebp + 0x14], ebx
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [edi + 2]
shl ecx, 8
push 4
or ecx, edx
pop edx
mov ebx, ecx
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec edx
shr ecx, 6
mov byte [edx + esi], bl
test edx, edx
jg 0x480373
add esi, 4
add edi, 3
dec eax
jne 0x48035b
mov ebx, dword [ebp + 0x14]
mov byte [esi], 0
test ebx, ebx
jle 0x4803f6
xor edx, edx
xor eax, eax
test ebx, ebx
jle 0x4803bc
mov dword [ebp + 0x10], ebx
mov eax, ebx
movzx ecx, byte [edi]
shl edx, 8
or edx, ecx
inc edi
dec dword [ebp + 0x10]
jne 0x4803a9
cmp ebx, 3
jge 0x4803c9
push 3
pop ecx
sub ecx, eax
add eax, ecx
shl edx, 8
dec ecx
jne 0x4803c3
inc eax
jmp 0x4803de
mov ecx, edx
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec eax
mov byte [eax + esi], cl
shr edx, 6
test eax, eax
jg 0x4803cc
push 3
pop eax
cmp ebx, eax
jge 0x4803f2
mov byte [eax + esi], 0x3d
dec eax
cmp eax, ebx
jg 0x4803e9
mov byte [esi + 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x516fbf
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x14], vtable.Mortar::PacketSerializer.0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
mov eax, dword [edi + 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.00421a30
mov ecx, dword [edi + 0x14]
push ecx
lea eax, [esp + 0x18]
call fcn.00421a30
mov edx, dword [edi + 0x18]
push edx
lea eax, [esp + 0x18]
call fcn.00421a30
mov eax, dword [edi + 0x1c]
push eax
lea eax, [esp + 0x18]
call fcn.00421a30
mov ecx, dword [edi + 0x20]
push ecx
lea eax, [esp + 0x18]
call fcn.00421a30
mov edx, dword [ebp + 8]
push edx
lea ebx, [esp + 0x18]
call fcn.004218f0
mov edi, eax
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x494a0e
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x494a20
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x494bf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x516fe2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x14], vtable.Mortar::PacketSerializer.0
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
mov eax, dword [edi + 0xc]
push eax
lea eax, [esp + 0x18]
call fcn.00421a30
mov ecx, dword [edi + 0x14]
push ecx
lea eax, [esp + 0x18]
call fcn.00421a30
movzx edx, word [edi + 0x18]
push edx
lea eax, [esp + 0x18]
call fcn.00421bd0
movzx eax, word [edi + 0x1a]
push eax
lea eax, [esp + 0x18]
call fcn.00421bd0
push ecx
fld dword [edi + 0x1c]
lea eax, [esp + 0x18]
fstp dword [esp]
call fcn.00421a30
mov ecx, dword [edi + 0x20]
push ecx
lea eax, [esp + 0x18]
call fcn.00421a30
mov edx, dword [ebp + 8]
push edx
lea ebx, [esp + 0x18]
call fcn.004218f0
mov edi, eax
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x494cb0
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x494cc2
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a4ff0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x518386
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
fldz
movzx eax, byte [0x576b7c]
push ecx
mov edx, dword [ebp + 8]
mov edi, 1
fst dword [esp]
push 0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
fst dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [0x555150]
fstp dword [esp + 4]
push ecx
mov esi, esp
mov byte [esi], al
movzx eax, byte [0x576b7d]
mov byte [esi + 1], al
movzx eax, byte [0x576b7e]
mov byte [esi + 2], al
movzx eax, byte [0x576b7f]
mov dword [esp + 0x2c], esp
mov byte [esi + 3], al
call fcn.00404410
mov dword [esp + 0x84], 0
fldz
fstp dword [esp]
mov edx, dword [ebx + 0x80]
fld dword [ebx + 0xc]
sub esp, 0x14
fld qword [0x554bc0]
mov ecx, esp
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp + 0x10]
fadd dword [ebx + 8]
fadd qword [0x554ca0]
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
mov dword [esp + 0x40], esp
fstp dword [esp + 0xc]
push ecx
push edx
call fcn.00404370
mov eax, dword [0x5b30cc]
add esp, 4
push eax
mov ecx, edi
mov dword [esp + 0x9c], 0xffffffff
call fcn.0041f9d0
mov byte [0x578454], 0
mov ecx, 0x10
mov esi, 0x57c348
mov edi, 0x577c14
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, 0x57c348
mov edi, 0x578414
rep movsd dword es:[edi], dword [esi]
inc dword [0x578458]
cmp byte [ebx + 0x7c], 0
je 0x4a512c
mov ecx, dword [0x5b3034]
jmp 0x4a5132
mov ecx, dword [0x5b3030]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
fld dword [0x5551d8]
fstp dword [esp + 0x1c]
mov ecx, 0x10
fld dword [0x5552e0]
lea esi, [esp + 0x1c]
fstp dword [esp + 0x30]
mov edi, 0x578414
fld1
push 1
fst dword [esp + 0x48]
fstp dword [esp + 0x5c]
fldz
fst dword [esp + 0x24]
fst dword [esp + 0x28]
fst dword [esp + 0x2c]
fst dword [esp + 0x30]
fst dword [esp + 0x38]
fst dword [esp + 0x3c]
fst dword [esp + 0x40]
fst dword [esp + 0x44]
fstp dword [esp + 0x4c]
fld dword [ebx + 8]
fldz
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x50]
fld dword [ebx + 0xc]
fadd st(1)
fstp dword [esp + 0x54]
fadd dword [ebx + 0x10]
mov ebx, 0x576b80
fstp dword [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
inc dword [0x578458]
call fcn.0041b7e0
mov ecx, dword [0x576b6c]
mov al, byte [0x576b6f]
mov bl, byte [0x576b6e]
push ecx
mov byte [esp + 0x17], al
mov eax, esp
mov byte [eax], cl
mov cl, byte [esp + 0x17]
mov dl, ch
mov dword [esp + 0x1c], esp
mov byte [eax + 1], dl
mov byte [eax + 2], bl
mov byte [eax + 3], cl
call fcn.0041bbf0
mov edx, dword [esp + 0x18]
add esp, 4
cmp byte [edx + 0x7c], 0
je 0x4a5203
mov ecx, dword [0x5b3034]
jmp 0x4a5209
mov ecx, dword [0x5b3030]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a9740
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x518560
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5750c8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
fld1
mov ebx, ecx
fst dword [esp + 0x2c]
mov esi, 0x576b6c
fst dword [esp + 0x30]
lea eax, [esp + 0x14]
lea ecx, [ebx + 0x5c]
fstp dword [esp + 0x34]
call fcn.00403890
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.004d2280
fld dword [0x5768e0]
fcomp dword [ebx + 0x94]
mov ecx, dword [0x5b30d0]
mov dword [esp + 0x14], ecx
fnstsw ax
test ah, 0x41
jne 0x4a97f4
lea esi, [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [ebx + 0x5c]
mov dword [esp + 0x10], 0xff149614
call fcn.00403890
mov edx, dword [ebx + 0x8c]
push edx
push 0x54d0cc
lea edx, [esp + 0x40]
call fcn.004198f0
mov esi, dword [esp + 0x1c]
jmp 0x4a980f
mov eax, dword [ebx + 0x90]
mov esi, dword [0x5b30f8]
push eax
push 0x54d0d0
lea edx, [esp + 0x40]
call fcn.004198f0
fld dword [0x554e50]
add esp, 8
fstp dword [esp + 0x10]
sub esp, 8
fld dword [0x57c3ac]
mov eax, esp
fstp dword [eax]
mov dword [esp + 0x20], esp
fld dword [0x57c3b0]
fstp dword [eax + 4]
mov dword [esp + 0x70], 0
fldz
push ecx
fstp dword [esp]
fld1
push 0
push ecx
fstp dword [esp]
movzx ecx, byte [ebx + 0x5c]
fld dword [ebx + 0x98]
fmul qword [0x555360]
push 0xf
sub esp, 8
mov eax, esp
mov byte [eax], cl
movzx edx, byte [ebx + 0x5d]
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
mov byte [eax + 1], dl
fstp dword [esp + 4]
movzx ecx, byte [ebx + 0x5e]
mov byte [eax + 2], cl
movzx edx, byte [ebx + 0x5f]
mov dword [esp + 0x34], esp
mov byte [eax + 3], dl
lea ecx, [esp + 0x30]
lea eax, [esp + 0x40]
mov edx, 0x57c3b4
call fcn.004037a0
sub esp, 0xc
mov ecx, eax
lea edx, [ebx + 8]
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.00403dd0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x54], esp
push ecx
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0xa8], 2
call fcn.00404370
add esp, 4
push esi
mov dword [esp + 0xa4], 0xffffffff
call fcn.0041fa70
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret 4
Function at 0x4b6e10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5167e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
fld dword [esi + 0xb4]
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x4b6fb8
mov eax, dword [esi + 0xd4]
xor ebx, ebx
cmp eax, ebx
jne 0x4b6eee
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd4], 2
mov dword [ebp - 0x18], vtable.Mortar::Delegate1_bool__class_Mortar::MortarSound__::Global.0
mov dword [ebp - 0x14], 0x494d00
sub esp, 0x24
mov dword [ebp - 4], ebx
mov eax, esp
mov cl, 1
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10], eax
mov byte [eax + 0x20], cl
mov dword [eax], ebx
mov byte [ebp - 4], cl
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x18]
call edx
mov byte [ebp - 4], bl
fld1
mov edi, dword [0x5b3200]
sub esp, 8
fstp dword [esp + 4]
mov ebx, 0x54d5f8
fldz
fstp dword [esp]
call fcn.00494e50
fld dword [0x554c40]
fstp dword [0x5b2a74]
mov byte [0x5b3072], 1
mov byte [0x5b2a70], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x4b6fb8
mov eax, dword [esi + 0x98]
fld dword [0x554bb0]
fstp dword [esi + 0xd0]
cmp eax, ebx
je 0x4b6f13
mov byte [eax + 0x139], bl
mov dword [ebp - 0x18], vtable.Mortar::Delegate1_bool__class_Mortar::MortarSound__::Global.0
mov dword [ebp - 0x14], 0x494d00
sub esp, 0x24
mov dword [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x10], eax
mov byte [eax + 0x20], 1
mov dword [eax], ebx
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x18]
call edx
mov byte [ebp - 4], 2
fld1
mov edi, dword [0x5b3200]
sub esp, 8
fstp dword [esp + 4]
mov ebx, str.Unpause
fldz
fstp dword [esp]
call fcn.00494e50
xor eax, eax
mov dword [esi + 0xd4], 4
cmp byte [0x5b30fd], al
je 0x4b6fb3
mov ecx, dword [0x5b3210]
mov dword [0x576b50], ecx
mov dword [0x576b54], eax
mov dword [0x576b58], 0x6c078965
mov dword [0x576b5c], 0x5d588b65
mov dword [0x576b60], 0x269ec3
mov dword [0x576b64], eax
mov byte [0x5b30fd], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2180
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516d79
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.HUDControl.0
xor eax, eax
mov byte [esi + 4], al
fld dword [0x57c388]
fstp dword [esi + 0x14]
mov ecx, 1
fld dword [0x57c38c]
lea edi, [esi + 0x38]
fstp dword [esi + 0x18]
fld dword [0x57c390]
fstp dword [esi + 0x1c]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov byte [edi + 0x20], cl
mov dword [edi], eax
mov dword [ebp - 4], eax
movzx eax, byte [0x576b6c]
mov byte [esi + 0x5c], al
movzx edx, byte [0x576b6d]
mov byte [esi + 0x5d], dl
movzx eax, byte [0x576b6e]
push fcn.00417af0
push fcn.00461e90
mov byte [esi + 0x5e], al
movzx edx, byte [0x576b6f]
push 2
push 8
lea ebx, [esi + 0x64]
mov byte [esi + 0x5f], dl
push ebx
mov byte [esi + 0x60], cl
call fcn.0045f2ca
mov eax, dword [0x57c3ac]
mov dword [ebx], eax
mov ecx, dword [0x57c3b0]
mov dword [ebx + 4], ecx
mov edx, dword [0x57c3cc]
mov dword [esi + 0x6c], edx
mov eax, dword [0x57c3d0]
mov dword [esi + 0x70], eax
mov dword [ebp - 0x18], vtable.Mortar::Delegate1_void__class_HUDControl__::Global.0
mov dword [ebp - 0x14], 0x4d20d0
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call dword [0x551cf4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x501500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51b793
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
add eax, ecx
lea edi, [edx + eax*4]
xor ebx, ebx
cmp dword [edi], ebx
jne 0x5015e7
push 0x14
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], ebx
cmp esi, ebx
je 0x5015b2
push 0x5c
mov dword [esi + 4], ebx
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
cmp eax, ebx
je 0x501588
mov dword [esi], eax
mov dword [eax], eax
mov eax, dword [esi]
mov dword [eax + 4], eax
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
jmp 0x5015b4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x560d4c
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], vtable.std::bad_alloc.0
call sub.MSVCR100.dll__CxxThrowException
xor esi, esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x38], 0xffffffff
mov dword [edi], esi
mov cl, 1
cmp eax, ebx
je 0x5015d1
cmp eax, 2
je 0x5015d1
cmp eax, 3
jne 0x5015d4
mov byte [esi + 0xf], cl
cmp eax, 2
jne 0x5015e7
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x18]
mov edx, dword [edx + eax*4 + 8]
mov byte [edx + 0x10], cl
mov ebx, dword [edi]
call fcn.00405e60
mov eax, dword [edi]
xor cl, cl
mov byte [eax + 0xe], cl
mov word [eax + 0xc], 0
mov eax, dword [edi]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4060e4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00406294
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 0x4061e2
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 0x406185
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4061c8
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40619c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4061b7
test al, 0x40
je 0x4061ae
mov ecx, dword [edi + 0x20]
jmp 0x4061b5
test al, 0x80
je 0x4061c8
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4061c8
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 0x406154
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret