joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477849
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046bcca
xor ebx, ebx
cmp dword [0x4bfd80], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x47791f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4779ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4779ff
push eax
call fcn.0046bc5c
mov dword [esp], 0x4a5d08
push edi
mov dword [0x4bfd80], eax
call esi
push eax
call fcn.0046bc5c
mov dword [esp], 0x4a5cf4
push edi
mov dword [0x4bfd84], eax
call esi
push eax
call fcn.0046bc5c
mov dword [0x4bfd88], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00470804
test eax, eax
pop ecx
pop ecx
je 0x4778ed
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00466667
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x47791f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046bc5c
cmp eax, ebx
pop ecx
mov dword [0x4bfd90], eax
je 0x47791f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046bc5c
pop ecx
mov dword [0x4bfd8c], eax
mov eax, dword [0x4bfd8c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4779a4
cmp dword [0x4bfd90], ecx
je 0x4779a4
push eax
call fcn.0046bcd3
push dword [0x4bfd90]
mov esi, eax
call fcn.0046bcd3
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4779a4
cmp edi, ebx
je 0x4779a4
call esi
cmp eax, ebx
je 0x477971
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x477971
test byte [ebp - 0x18], 1
jne 0x4779a4
lea eax, [ebp - 0x10]
push eax
call fcn.0047083b
test eax, eax
pop ecx
je 0x47798c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00466667
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x47799b
or dword [ebp + 0x10], 0x200000
jmp 0x4779df
or dword [ebp + 0x10], 0x40000
jmp 0x4779df
mov eax, dword [0x4bfd84]
cmp eax, dword [ebp - 8]
je 0x4779df
push eax
call fcn.0046bcd3
cmp eax, ebx
pop ecx
je 0x4779df
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4779df
mov eax, dword [0x4bfd88]
cmp eax, dword [ebp - 8]
je 0x4779df
push eax
call fcn.0046bcd3
cmp eax, ebx
pop ecx
je 0x4779df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bfd80]
call fcn.0046bcd3
cmp eax, ebx
pop ecx
je 0x4779ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x477a01
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48167a
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp + 8], eax
jne 0x481693
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1c
pop esi
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00466400
add esp, 0xc
push 0
push 4
mov dword [ebp - 0x20], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
je 0x48171a
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x481712
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jne 0x481708
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 4], eax
je 0x481708
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x481702
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call edi
jmp 0x481708
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4816d5
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4820a2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c0104], 0
push esi
jne 0x482015
call fcn.00481f40
test eax, eax
je 0x482058
mov eax, dword [0x4c0104]
cmp eax, 1
jne 0x482036
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x482058
pop esi
ret
push eax
call dword [0x4c010c]
test eax, eax
jne 0x4820a0
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x48205c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c0104]
call dword [0x4c010c]
mov edi, eax
test edi, edi
je 0x482083
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x48209f
lea edi, [esi + 0xff0]
push esi
push dword [0x4c0104]
call dword [0x4c0108]
add esi, 0x10
cmp esi, edi
jb 0x482089
mov eax, esi
pop edi
pop esi
ret
jmp 0x482002
Function at 0x490570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x49bef8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc660]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4c04f4]
test eax, eax
jne 0x4905a2
xor esi, esi
jmp 0x4905ab
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x4905ed
cmp dword [esi + 0x14], 0
jne 0x49062f
cmp dword [esi + 0x10], 0
jne 0x490635
push 0x490080
push 0x4c04ec
call fcn.00490290
mov eax, dword [0x4c04f4]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x49061b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x49061b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x490675
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x490663
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x490635
cmp dword [esi + 0x14], 0
je 0x4905c7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x49069a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4906cb
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4906cb
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4906cb
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x49067f
jmp 0x4905c1
Function at 0x490840
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x49bf78
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4bc660]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x4906f0
push 0
push 0
call fcn.00466e8b
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4908ab
lea ecx, [esp + 0x10]
call fcn.00466195
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00412297
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x4908d1
cmp eax, 0xffffffff
je 0x4908d1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x492040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x49204f
mov eax, dword [eax + 4]
jmp 0x492052
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4920ea
push esi
call fcn.004914c0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x4920cf
cmp eax, 3
je 0x4920cf
cmp eax, 0x7b
je 0x4920cf
cmp eax, 0xf
je 0x4920cf
cmp eax, 0x15
je 0x4920cf
cmp eax, 0x57
je 0x4920cf
cmp eax, 0xa1
je 0x4920cf
cmp eax, 0x35
je 0x4920cf
cmp eax, 0x20
jne 0x4920c4
mov eax, dword [0x4c0550]
mov dword [ecx], eax
mov edx, dword [0x4c0554]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4c0550]
mov dword [ecx], eax
mov edx, dword [0x4c0554]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4c0550]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4c0554]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x492117
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x492140
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49c15b
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4bc660]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc660]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.004020ed
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x298], esi
je 0x492207
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4921ec
call fcn.00466787
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4921fb
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x4a83ec
je 0x49220c
mov edx, 0x4a83e4
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x492211
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040aa73
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x49223e
lea eax, [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x492281
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x492264
call edi
mov esi, eax
call fcn.004914c0
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x492303
mov eax, dword [esp + 0x24]
push eax
jmp 0x4922fb
lea eax, [esp + 0x68]
lea edx, [eax + 2]
jmp 0x492290
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x492290
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004023c0
test byte [esp + 0x3c], 0x10
je 0x4922cb
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x4922df
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x38], edi
mov eax, dword [0x4c0550]
mov dword [ebp], eax
mov ecx, dword [0x4c0554]
mov dword [ebp + 4], ecx
jb 0x492303
mov edx, dword [esp + 0x24]
push edx
call fcn.00464a2b
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004648e8
add esp, 0x288
ret
Function at 0x4e83cf
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa4]
test edi, edi
je 0x4e84ae
cmp word [edi], 0x5a4d
jne 0x4e84ae
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x4e84ae
mov ebx, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
lea ebp, [ebx + edi]
cmp ebp, edi
je 0x4e84ae
mov edx, dword [ebp + 0x1c]
mov esi, dword [esp + 0xa8]
add edx, edi
test esi, 0xffff0000
mov dword [esp + 0x1c], edx
jne 0x4e844f
mov ecx, dword [ebp + 0x10]
cmp esi, ecx
jb 0x4e84ae
mov eax, esi
sub eax, ecx
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jae 0x4e84ae
mov eax, dword [edx + eax*4]
jmp 0x4e84d4
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
add eax, edi
xor edx, edx
test ecx, ecx
jbe 0x4e84ae
mov dword [esp + 0x10], eax
jmp 0x4e846a
mov esi, dword [esp + 0xa8]
mov eax, dword [eax]
add eax, edi
mov bl, byte [esi]
mov cl, bl
cmp bl, byte [eax]
jne 0x4e8492
test cl, cl
je 0x4e848e
mov bl, byte [esi + 1]
mov cl, bl
cmp bl, byte [eax + 1]
jne 0x4e8492
add esi, 2
add eax, 2
test cl, cl
jne 0x4e846e
xor eax, eax
jmp 0x4e8497
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4e84bd
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x18]
inc edx
add eax, 4
cmp edx, ecx
mov dword [esp + 0x10], eax
jb 0x4e8463
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret 0xc
mov ecx, dword [ebp + 0x24]
mov ebx, dword [esp + 0x14]
xor eax, eax
lea edx, [ecx + edx*2]
mov ecx, dword [esp + 0x1c]
mov ax, word [edx + edi]
mov eax, dword [ecx + eax*4]
test eax, eax
je 0x4e84ae
cmp eax, ebx
jb 0x4e8564
mov edx, dword [esp + 0x18]
add edx, ebx
cmp eax, edx
ja 0x4e8564
mov ebx, dword [esp + 0xac]
test ebx, ebx
je 0x4e84ae
lea edx, [eax + edi]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x80
jae 0x4e84ae
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, ebp
push 0x2e
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call fcn.004e908f
add esp, 8
test eax, eax
je 0x4e84ae
mov byte [eax], 0
inc eax
push ebx
lea edx, [esp + 0x24]
push eax
push edx
call ebx
push eax
call fcn.004e83cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0xc
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 0xc

Function at 0x4e85df
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov al, 0x74
mov cl, 0x72
mov byte [esp + 3], al
mov byte [esp + 0xa], al
mov byte [esp + 0xd], al
mov eax, dword [esp + 0x14]
mov byte [esp + 2], cl
mov byte [esp + 8], cl
lea ecx, [esp]
push eax
push ecx
push eax
mov byte [esp + 0xc], 0x56
mov byte [esp + 0xd], 0x69
mov byte [esp + 0x10], 0x75
mov byte [esp + 0x11], 0x61
mov byte [esp + 0x12], 0x6c
mov byte [esp + 0x13], 0x50
mov byte [esp + 0x15], 0x6f
mov byte [esp + 0x17], 0x65
mov byte [esp + 0x18], 0x63
mov byte [esp + 0x1a], 0
call fcn.004e857f
push eax
call fcn.004e83cf
add esp, 0x10
ret 4
Function at 0x4e864f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x10
mov al, 0x6c
lea ecx, [esp]
mov byte [esp + 6], al
mov byte [esp + 8], al
mov byte [esp + 9], al
mov eax, dword [esp + 0x14]
push eax
push ecx
push eax
mov byte [esp + 0xc], 0x56
mov byte [esp + 0xd], 0x69
mov byte [esp + 0xe], 0x72
mov byte [esp + 0xf], 0x74
mov byte [esp + 0x10], 0x75
mov byte [esp + 0x11], 0x61
mov byte [esp + 0x13], 0x41
mov byte [esp + 0x16], 0x6f
mov byte [esp + 0x17], 0x63
mov byte [esp + 0x18], 0
call fcn.004e857f
push eax
call fcn.004e83cf
add esp, 0x10
ret 4

Function at 0x4e870f
Capabilities:
Parse pe header

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
jne 0x4e872a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x24]
push eax
call fcn.004e85df
mov edx, eax
test edx, edx
mov dword [esp + 0x10], edx
jne 0x4e8748
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp word [esi], 0x5a4d
je 0x4e875b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
je 0x4e8774
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov ecx, dword [eax + 0x34]
cmp ecx, esi
je 0x4e8820
mov edi, dword [esp + 0x20]
mov eax, esi
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
test eax, eax
je 0x4e8820
mov ebx, dword [edi + 4]
lea eax, [edi + 8]
sub ebx, 8
mov dword [esp + 0x20], 0
shr ebx, 1
je 0x4e8814
mov ebp, eax
mov ax, word [ebp]
mov ecx, eax
and ecx, 0xf000
test cx, cx
je 0x4e8804
cmp cx, 0x3000
jne 0x4e8768
mov ecx, dword [edi]
and eax, 0xfff
add eax, ecx
lea ecx, [esp + 0x24]
add eax, esi
push ecx
mov esi, eax
push 4
push 4
push esi
call edx
test eax, eax
je 0x4e8768
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
add eax, edx
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x24]
push eax
push ecx
push 4
push esi
call dword [esp + 0x20]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add ebp, 2
inc eax
cmp eax, ebx
mov dword [esp + 0x20], eax
jb 0x4e87ac
add edi, dword [edi + 4]
cmp dword [edi], 0
jne 0x4e8795
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
Function at 0x402780
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
cmp byte [ebx], 0
mov dword [ebp - 0xc], esi
je 0x4027ea
mov bl, byte [ebx + 1]
mov ecx, dword [esi + 0x18]
movzx eax, bl
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
and ecx, eax
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 4]
mov edi, dword [eax + ecx*8]
mov edx, edi
lea ecx, [eax + ecx*8]
nop word [eax + eax]
cmp edi, esi
jne 0x4027c8
mov eax, esi
jmp 0x4027cd
mov eax, dword [ecx + 4]
mov eax, dword [eax]
cmp edx, eax
je 0x4027da
cmp byte [edx + 8], bl
je 0x4027dc
mov edx, dword [edx]
jmp 0x4027c0
mov edx, esi
pop edi
cmp edx, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebx + 0x14]
add ebx, 4
mov dword [ebp - 8], edi
mov esi, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x4027fd
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x402819
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x402808
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x2c]
and eax, edx
mov edi, dword [edi + 0x24]
mov edx, dword [ecx + eax*8]
lea eax, [eax*8 + 4]
add eax, ecx
mov dword [ebp - 0x10], edx
mov esi, edx
mov dword [ebp - 0x14], eax
nop dword [eax + eax]
cmp edx, edi
jne 0x402848
mov eax, edi
jmp 0x40284c
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4028b6
cmp dword [ebx + 0x14], 0x10
lea ecx, [esi + 8]
mov eax, ebx
jb 0x40285d
mov eax, dword [ebx]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x18], edx
cmp edx, 0x10
jb 0x402870
mov ecx, dword [ecx]
push dword [ebp - 8]
mov edx, dword [ebp - 4]
push eax
call fcn.00413770
add esp, 8
test al, al
jne 0x40288d
mov esi, dword [esi]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
jmp 0x402840
cmp dword [ebp - 0x18], 0x10
lea eax, [esi + 8]
jb 0x402898
mov eax, dword [eax]
cmp dword [ebx + 0x14], 0x10
jb 0x4028a0
mov ebx, dword [ebx]
push dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, ebx
push eax
call fcn.00413770
add esp, 8
test al, al
cmovne edi, esi
mov eax, dword [ebp - 0xc]
cmp edi, dword [eax + 0x24]
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46da8b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x48b084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea ecx, [esi + 0xc]
mov dword [esi], vtable._.21.0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
call fcn.0040aee0
mov dword [ebp - 4], 0
mov dword [esi], vtable.F.0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
lea edi, [esi + 0x30]
mov dword [edi + 0x24], 0
mov dword [ebp + 8], edi
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x404a0b
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [edi + 0x24], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405230
Capabilities:
Get number of processors

Disassembly:
mov edx, dword [ecx]
mov eax, dword [ecx + 0x88]
push esi
lea esi, [ecx + 8]
lea ecx, [esi + 0x64]
mov dword [edx + 0x11c], eax
call fcn.0040c010
lea ecx, [esi + 0x58]
call fcn.0040c010
mov ecx, esi
pop esi
jmp fcn.00404a20
Function at 0x40cd20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d4b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x48b084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable..7.0
call fcn.0044703a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0042eb98
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret