joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4112a2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4748e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4112e2
cmp byte [ebx], 0xa
jne 0x4112e2
or byte [eax + edi + 0x28], 4
jmp 0x4112e7
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4113e5
mov al, byte [edx]
cmp al, 0x1a
je 0x4113c7
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411316
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41133b
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x411345
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4112f8
jmp 0x4113e5
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4113c2
cmp dword [ebp - 0xc], 0
je 0x4113c2
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4748e0]
test byte [eax + edi + 0x28], 0x48
je 0x41139c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411387
mov byte [esi], dl
jmp 0x411398
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4748e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4113e5
cmp byte [ebp - 1], 0xa
jne 0x4113ab
cmp esi, ebx
jne 0x4113ab
mov byte [esi], 0xa
jmp 0x4113e4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411e22
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4113e5
mov byte [esi], 0xd
jmp 0x4113e4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4748e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4113e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4113e5
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4113ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4748e0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411431
cmp word [esi], dx
jne 0x411431
or byte [edi + eax + 0x28], 4
jmp 0x411436
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x411589
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x411569
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411478
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4114ae
cmp eax, edx
jae 0x4114ba
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x411450
jmp 0x411589
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411565
cmp dword [ebp - 0x14], 0
je 0x411565
mov eax, dword [ebx*4 + 0x4748e0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41153d
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x411506
mov word [esi], cx
jmp 0x411539
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4748e0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4748e0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4748e0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411589
pop ebx
cmp word [ebp - 4], bx
jne 0x41154e
cmp esi, dword [ebp + 0xc]
jne 0x41154e
mov word [esi], bx
jmp 0x411586
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411e22
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411589
push 0xd
jmp 0x411582
mov ecx, dword [ebx*4 + 0x4748e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411580
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411589
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4151e6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x415283
push ebx
push esi
call fcn.004151af
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00413e34
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415230
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415282
push edi
push eax
call fcn.00412001
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415250
call fcn.0040efd8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415281
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413e34
add esp, 0x20
test eax, eax
jne 0x41526f
push edi
call fcn.0040efd8
jmp 0x415277
push ebx
call fcn.0040efd8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41ae50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ae7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ae7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41c20e
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x40
push 0x1000
mov ebx, 0x4ac
xor ebp, ebp
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
mov edi, 0x472a38
mov esi, eax
push edi
call fcn.0041c168
push ebx
push edi
push esi
call fcn.00405470
add esp, 0x14
call fcn.0041c14e
push ebp
push ebp
push 0x427038
lea eax, [esi + 0x188]
push eax
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebp
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check mutex on windows
Create thread
Execute shellcode via indirect call
Extract resource via kernel32 functions
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x402130
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
jne 0x40103a
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040120a
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401078
push 0x40040
push 0x402154
push 0x40215c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040120a
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0x402184
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4010b9
push 0x40010
push 0x40218c
push 0x402194
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi + 1]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040120a
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010f3
push 0x40010
push 0x40218c
push 0x4021b4
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040120a
mov esp, ebp
pop ebp
ret 0x10
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
push 0
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test ebx, ebx
je 0x4011db
test esi, esi
je 0x4011db
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x40
push 0x1000
push esi
mov ebx, eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40114f
push 0x40010
push 0x40218c
push 0x4021fc
jmp 0x4011ea
lea ecx, [ebp - 8]
push ecx
push esi
push dword [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp dword [ebp - 8], esi
je 0x401175
push 0x40010
push 0x40218c
push 0x402220
jmp 0x4011ea
push 0
push 0
push 0
push dword [ebp - 0xc]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x4011a0
push 0x40010
push 0x40218c
push 0x402248
jmp 0x4011ea
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x8000
push 0
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
pop ebx
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040120a
mov esp, ebp
pop ebp
ret 0x10
push 0x40010
push 0x40218c
push 0x4021d8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.0040120a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401a40
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a7f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a7f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a7f
cmp dword [ecx + 0x74], 0xe
jbe 0x401a7f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10c89
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10904]
test eax, eax
mov ecx, 0xbb40
je 0x10ca0
cmp eax, ecx
jne 0x10cc3
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10904
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10904], eax
jne 0x10cc3
mov eax, ecx
mov dword [0x10904], eax
not eax
mov dword [section..data], eax
pop ebp
jmp fcn.00010bc6
Function at 0x409640
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x479cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x499750]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x499750]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.00405440
push 0
push 0x1a
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x150], 0
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0
call ebp
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405470
mov eax, dword [str.MacromediaFlash_PlayerSharedObjects]
push eax
mov esi, eax
call fcn.004013d0
add esp, 4
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.00409500
lea ecx, [esp + 0x14]
call fcn.00401ab0
mov esi, eax
call fcn.00409760
push 0
push 0x1c
lea edx, [esp + 0x38]
push edx
push 0
call ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00405470
mov eax, dword [str.GoogleChromeUser_DataDefaultPepper_DataShockwave_FlashWritableRootSharedObjects]
push eax
mov esi, eax
call fcn.004013d0
add esp, 4
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.00409500
lea ecx, [esp + 0x14]
call fcn.00401ab0
mov esi, eax
call fcn.00409760
lea ecx, [esp + 0x14]
call fcn.00401a90
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0043adc4
add esp, 0x134
ret
Function at 0x409830
Capabilities:
Create directory
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x479833
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x499750]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x499750]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1a4]
lea eax, [esp + 0x188]
push eax
mov esi, 0x489b7c
lea edi, [esp + 0x1c]
mov dword [esp + 0x184], 0
call fcn.00409da0
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00401ab0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, edi
mov esi, eax
call fcn.00401a90
cmp esi, 0xffffffff
jne 0x4098ca
lea ecx, [esp + 0x188]
call fcn.00401a90
xor al, al
jmp 0x409980
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov bl, 0x10
test byte [esp + 0x34], bl
je 0x4098f4
lea eax, [esp + 0x60]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4098e0
sub eax, edx
cmp eax, 8
je 0x4099aa
lea edx, [esp + 0x34]
push edx
push esi
call edi
test eax, eax
jne 0x4098d2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x190]
push eax
mov ecx, ebp
call fcn.00401c40
push 0x489b80
call fcn.004013d0
add esp, 4
mov ebx, eax
push 0x489b80
mov eax, ebp
call fcn.00409500
lea esi, [esp + 0x18]
call fcn.004103f0
push 0
push eax
or eax, 0xffffffff
mov esi, ebp
mov byte [esp + 0x188], 1
call fcn.00409590
lea ecx, [esp + 0x18]
call fcn.00401a90
push 0
mov ecx, ebp
call fcn.00401ab0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
lea ecx, [esp + 0x188]
sete bl
call fcn.00401a90
mov al, bl
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0043adc4
add esp, 0x170
ret 0x20
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x190]
push eax
mov ecx, ebp
call fcn.00401c40
push 0x489b80
call fcn.004013d0
add esp, 4
mov ebx, eax
push 0x489b80
mov eax, ebp
call fcn.00409500
lea ecx, [esp + 0x60]
push ecx
call fcn.004013d0
add esp, 4
lea edx, [esp + 0x60]
mov ebx, eax
push edx
mov eax, ebp
call fcn.00409500
lea ecx, [esp + 0x188]
call fcn.00401a90
mov al, 1
jmp 0x409980
Function at 0x40b990
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x47a197
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x499750]
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], 0x489ca0
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.0040ca10
mov dword [esp + 0x1c], 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.0040d3d0
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 [0x49e5f8]
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 0x40c630
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x47a147
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x499750]
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], 0x489cb0
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.0040c980
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.0040d3d0
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 [0x49e5f8]
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 0x40d3d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x478e3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x499750]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00458354
push 4
mov dword [esp + 0x20], 0
call fcn.0041d993
mov edi, eax
add esp, 4
test edi, edi
je 0x40d450
call fcn.004581e5
mov dword [edi], eax
call fcn.00458019
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00458321
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40d445
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00458342
jmp 0x40d452
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
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], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
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 0x40e760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47a278
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x499750]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
call fcn.00402200
mov ecx, dword [esp + 0x34]
push eax
mov dword [esp + 0x30], 0
call fcn.0040e600
lea ecx, [esp + 8]
mov esi, eax
call fcn.00401a90
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 8
Function at 0x40ef00
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a082
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x499750]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
push edi
mov eax, esi
call fcn.0040ff60
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00401430
test esi, esi
mov dword [esp + 0x18], ebx
jne 0x40ef4b
call fcn.0043b5dc
mov ebp, dword [esi + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.00401430
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
je 0x40ef6f
cmp eax, esi
je 0x40ef74
call fcn.0043b5dc
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
je 0x40ef8e
add eax, 0x10
call fcn.004094a0
test eax, eax
jge 0x40f016
xor eax, eax
mov ebp, vtable.Variant.0
mov ebx, 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x44]
push ecx
call fcn.0040f790
mov byte [esp + 0x80], bl
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov eax, esi
call fcn.0040f240
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x1c], edx
mov byte [esp + 0x84], 0
call fcn.0040f1e0
mov dword [esp + 0x80], 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x24], ebp
call fcn.0040dd40
cmp dword [esp + 0x14], 0
jne 0x40f022
call fcn.0043b5dc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 4]
jne 0x40f038
call fcn.0043b5dc
mov eax, dword [esp + 0x18]
add eax, 0x30
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x4133e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x479a11
mov eax, dword fs:[0]
push eax
mov eax, dword [0x499750]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], vtable.AMF3Serializer.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4