joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10087ff0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x10088093
test eax, eax
jbe 0x10088093
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x10088093
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x1008803e
xor esi, esi
jmp 0x10088044
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x1008806f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.10081c70
add esi, eax
push esi
mov ebx, esi
call fcn.10081c70
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x10088050
pop ebp
test edi, edi
pop edi
jne 0x10088093
test ebx, ebx
je 0x10088093
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.1009bf10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x100881b0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100882cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100882cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.100adb7c
mov esi, eax
test esi, esi
je 0x100882cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x100882cd
mov ecx, esi
call fcn.10088140
cmp edi, eax
jge 0x100882cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x10088253
mov dword [esp + 0x34], 1
jmp 0x100882ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x100882cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.100876e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x1008c730
Capabilities:
Create process on windows

Disassembly:
push str.Microsoft_Internet_Explorer
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov ecx, dword [esp + 4]
push 1
push 0
push 0
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4
Function at 0x10094240
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x1009428c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x1009428c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x10094276
push eax
call ebp
test ax, ax
jl 0x10094284
inc esi
add edi, 4
cmp esi, 6
jb 0x10094268
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.10093f40
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10098010
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10098070
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10098070
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10098070
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10098070
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x10098080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x100ae520
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100ae558
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100ac5c2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100ac59a
jmp 0x100ae564
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100afd20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100afd62
call fcn.100b6062
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100afd62
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100afd59
xor eax, eax
jmp 0x100afd6a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100afd70
pop edi
pop esi
pop ebx
ret 4
Function at 0x6d5bb202
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d5c3fd0]
jne 0x6d5bb20c
repz ret
jmp fcn.6d5bb8f0

Function at 0x6d5bbf21
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x6d5bbf30
pop dword [ebp - 0x44]
mov eax, 0x282d6fe0
sub eax, 0xbad1b0b0
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xfdc6967e
sub dword [ebp - 0x54], 0xaf745133
mov dword [ebp - 0x50], 0x78b23731
sub dword [ebp - 0x50], 0x467eeaec
mov dword [ebp - 0x4c], 0x33617ab5
add dword [ebp - 0x4c], 0x18eac979
mov dword [ebp - 0x48], 0xb7c18d29
add dword [ebp - 0x48], 0x483e72d7
lea eax, [ebp - 0x54]
push eax
mov eax, 0xe1f01d38
add eax, 0x8b6bb300
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x57c42f55
add dword [ebp - 0x54], 0x1cae3a01
mov dword [ebp - 0x50], 0x6465e9d1
add dword [ebp - 0x50], 0xdd0677a4
mov dword [ebp - 0x4c], 0x94ffa183
add dword [ebp - 0x4c], 0xce6fcae9
mov dword [ebp - 0x48], 0x6a63e8d
add dword [ebp - 0x48], 0xf959c173
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x343d0
push 0
call eax
mov ecx, 0xefeb6fc1
sub ecx, 0xefeb34df
xor esi, esi
add esi, eax
mov edx, 0xa9545a27
sub edx, 0x3bf7dc27
add edx, dword [ebp - 0x44]
mov edi, 0xfebba984
add edi, 0xa39127a6
xor dword [ebp - 0x10], 0x9375b22a
mov ebx, dword [edx]
add ebx, edi
mov dword [ebp - 0x10], 0xfe4ba249
mov dword [esi], ebx
mov dword [ebp - 0xc], 0x31dfd21b
add esi, 0x2bbdd2f0
sub esi, 0x2bbdd2ec
add edx, 4
loop 0x6d5bc04f
add eax, 0x12e4a6c6
add eax, 0xed1c3795
xor ebx, ebx
add ebx, eax
add eax, 0x8202c68
add eax, 0xf7dfd39d
mov ecx, 0xcf4a9e32
sub ecx, 0x61ef9e32
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x15dde10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfce000]
push edi
or ebp, 0xffffffff
jmp 0x15dde32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x15dde39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15dde28
mov eax, 1
add ebx, ebx
jne 0x15dde4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x15dde5c
jne 0x15dde7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15dde7b
dec eax
add ebx, ebx
jne 0x15dde68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x15dde40
add ebx, ebx
jne 0x15dde77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x15ddecd
xor ecx, ecx
sub eax, 3
jb 0x15dde93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x15ddf02
sar eax, 1
mov ebp, eax
jmp 0x15dde9e
add ebx, ebx
jne 0x15dde9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15dde6c
inc ecx
add ebx, ebx
jne 0x15ddeac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15dde6c
add ebx, ebx
jne 0x15ddeb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x15ddeae
jne 0x15ddeca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x15ddeae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x15ddeec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x15ddede
jmp 0x15dde2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x15ddeec
add edi, ecx
jmp 0x15dde2e
pop esi
mov edi, esi
mov ecx, 0x10f46
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x15ddf0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x15ddf0f
lea edi, [esi + 0x11db000]
mov eax, dword [edi]
or eax, eax
je 0x15ddf80
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11de250]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11de28c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x15ddf35
mov ecx, edi
jns 0x15ddf64
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11de290]
or eax, eax
je 0x15ddf7a
mov dword [ebx], eax
add ebx, 4
jmp 0x15ddf52
call dword [esi + 0x11de2a0]
mov ebp, dword [esi + 0x11de294]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x15ddfb4
sub esp, 0xffffff80
jmp 0x440bf8
Function at 0x401f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45f858
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401fa5
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447dac
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x401fdb
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447dac
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x401fee
mov edx, dword [esp + 0x28]
mov dword [edx], ebx
jmp 0x402073
call fcn.004571ca
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402029
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447dac
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40205b
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447dac
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov ecx, ebx
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [ecx], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447dac
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x403570
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45f9c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x34], eax
call fcn.004481dc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x403608
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00447dac
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
mov eax, dword [esp]
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call fcn.00447dac
mov ecx, dword [esp + 0x58]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 4

Function at 0x403c20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
mov ecx, 0x50
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14c]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403c5a
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret
mov eax, dword [esp + 8]
mov edx, eax
or edx, 0x10
cmp eax, edx
jne 0x403ca7
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
je 0x403c92
mov eax, dword [esp + 8]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
jne 0x403ca7
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
jne 0x403c79
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 2
pop esi
add esp, 0x140
ret
Function at 0x403cc0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
mov al, byte [0x483d7c]
push esi
push edi
mov byte [esp + 8], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 8]
push edx
call fcn.00403e30
add esp, 4
test al, al
jne 0x403d47
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
dec ecx
js 0x403d1b
mov al, 0x5c
cmp byte [esp + ecx + 8], al
je 0x403d52
dec ecx
jns 0x403d12
mov edx, dword [esp + 0x114]
test edx, edx
je 0x403d47
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
xor eax, eax
pop esi
add esp, 0x108
ret
mov edx, dword [esp + 0x114]
mov byte [esp + ecx + 8], 0
test edx, edx
je 0x403d83
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 8]
push ecx
call fcn.00403e30
add esp, 4
test al, al
jne 0x403d47
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
mov eax, 1
pop esi
add esp, 0x108
ret
Function at 0x404d30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x45fce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x200]
lea ecx, [esi + 0x200]
call dword [eax + 0x4c]
mov eax, dword [esi + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x47f244]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test eax, eax
je 0x404d89
push eax
lea edx, [esp + 8]
push 0x47c1dc
push edx
jmp 0x404d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push 0x47c1dc
push eax
call fcn.0043e0d9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esi + 0x1d4]
push ecx
push edx
push eax
call fcn.0044f404
mov ecx, dword [esi + 0x1c]
push 0
push 1
push 0x8001
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00447dac
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x406580
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4601ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x18], esi
call fcn.00401070
push fcn.0040edd0
push fcn.0040ed60
push 6
lea ecx, [esi + 0xd8]
xor ebp, ebp
push 0x48
push ecx
mov dword [esp + 0x30], ebp
call fcn.0042ae92
lea ecx, [esi + 0x288]
mov byte [esp + 0x1c], 1
call fcn.0040ed60
lea ecx, [esi + 0x2d0]
mov byte [esp + 0x1c], 2
call fcn.0040b210
push fcn.0040b250
push fcn.0040b210
push 6
lea edx, [esi + 0x310]
push 0x40
push edx
mov byte [esp + 0x30], 3
call fcn.0042ae92
push fcn.0040b250
push fcn.0040b210
push 6
lea eax, [esi + 0x490]
push 0x40
push eax
mov byte [esp + 0x30], 4
call fcn.0042ae92
lea ecx, [esi + 0x610]
mov byte [esp + 0x1c], 5
call fcn.0040ed60
lea ecx, [esi + 0x658]
mov byte [esp + 0x1c], 6
call fcn.0040b210
lea ecx, [esi + 0x698]
mov byte [esp + 0x1c], 7
call fcn.0040b210
lea ecx, [esi + 0x6d8]
mov byte [esp + 0x1c], 8
call fcn.0040b210
lea ecx, [esi + 0x718]
mov byte [esp + 0x1c], 9
call fcn.0040b210
lea ecx, [esi + 0x758]
mov byte [esp + 0x1c], 0xa
call fcn.0040b210
mov ecx, dword [0x47f244]
mov dword [esi + 0x798], ecx
lea edi, [esi + 0x79c]
mov dword [edi + 4], ebp
mov dword [edi], 0x469414
lea ebx, [esi + 0x7a4]
mov dword [ebx + 4], ebp
mov dword [ebx], 0x469414
push 0x10
push ebp
push ebp
push 1
push 0x47c400
push ebp
mov byte [esp + 0x34], 0xe
mov dword [esi], 0x464e80
call dword [sym.imp.USER32.dll_LoadImageA]
push ebp
push 0x47c3f8
push 0x5a
mov ecx, edi
mov dword [esi + 0x7ac], eax
call fcn.004516dd
push ebp
push 0x47c3f8
push 0x64
mov ecx, ebx
call fcn.004516dd
mov ecx, 9
xor eax, eax
lea edi, [esi + 0x7bc]
mov dword [esi + 0x7b8], ebp
mov dword [esi + 0xb24], ebp
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esi + 0x7e0]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x8e4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x924]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x964]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x9a4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0x9e4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xa24]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xa64]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xaa4]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esi + 0xae4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x407fb0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x30c
push esi
mov esi, ecx
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
add esi, 0x9e4
lea ecx, [esp + 8]
push esi
push ecx
lea edx, [esp + 0x114]
push 0x47c6c4
push edx
call fcn.0042af14
add esp, 0x10
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x30c
ret

Function at 0x408060
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x208
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx ecx, byte [esp + 4]
push ecx
lea edx, [esp + 0x10c]
push 0x47c6cc
push edx
call fcn.0042af14
add esp, 0xc
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
pop edi
neg eax
add esp, 0x208
ret

Function at 0x409b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0xc]
call fcn.00411b80
mov eax, dword [0x47f244]
mov dword [esp + 0x28], 0
mov dword [esp + 4], eax
push 1
push 0x47cc98
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.00411d30
lea ecx, [esp + 4]
push ecx
push 0x47cc90
lea ecx, [esp + 0x10]
call fcn.004128f0
lea ecx, [esp + 8]
call fcn.00411d90
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x409ba4
push esi
push edi
push 0
lea ecx, [esp + 0x10]
call fcn.004481dc
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.00447dac
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.00411bc0
mov ecx, dword [esp + 0x20]
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 4