joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015ba
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x40f4e1
call fcn.0040e153
push 0x412228
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 1
call fcn.00402ae0
sub esp, 0x20
lea ebx, [ebp + 0x28]
mov esi, esp
mov dword [ebp - 0x14], esp
call fcn.00402350
lea ebx, [ebp + 8]
call fcn.004028c0
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0040ace0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x70], esi
push ebx
mov dword [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40165a
mov byte [ebp - 0xd], 1
lea esi, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00402470
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 0x28]
call fcn.00402470
mov al, byte [ebp - 0xd]
call fcn.0040e1f2
ret
mov byte [ebp - 0xd], bl
jmp 0x40163a

Function at 0x40165f
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x40f312
call fcn.0040e153
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.00402e50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x10]
push ecx
mov ebx, 0xf003f
push ebx
push 0
push eax
mov edi, 0x80000001
push edi
mov dword [ebp - 0x14], eax
call esi
test eax, eax
jne 0x4016c0
mov eax, dword [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40169f
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x2c]
push 1
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x10]
jmp 0x401708
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0x41222c
push edi
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40171b
mov eax, dword [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4016e9
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x2c]
push 1
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40171b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.00402470
call fcn.0040e1f2
ret
Function at 0x401736
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x40f312
call fcn.0040e153
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
lea esi, [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.00402e50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp + 0x2c]
push ecx
mov ebx, 0xf003f
push ebx
push 0
push eax
mov edi, 0x80000001
push edi
mov dword [ebp - 0x14], eax
call esi
test eax, eax
jne 0x401788
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x2c]
jmp 0x4017bb
lea eax, [ebp + 0x2c]
push eax
push ebx
push 0
push 0x41222c
push edi
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4017ce
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4017ce
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp + 8]
call fcn.00402470
call fcn.0040e1f2
ret

Function at 0x401f49
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x415028]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.0040ace0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ebx, [ebp - 0x20c]
call fcn.00402220
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407da1
leave
ret

Function at 0x401fbe
Capabilities:
Get common file path
Get session user name

Disassembly:
push 0x320
mov eax, 0x40f2e2
call fcn.0040e1bc
and dword [ebp - 0x324], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x31c], ax
lea eax, [ebp - 0x31a]
mov esi, ecx
push eax
mov dword [ebp - 0x32c], esi
call fcn.0040ace0
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x31c]
push eax
mov dword [ebp - 0x328], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, esi
call fcn.00402200
and dword [ebp - 4], 0
mov al, byte [ebp - 0x114]
mov byte [ebp - 0x320], al
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x324], 1
mov byte [ebp - 0x31f], 0
call fcn.004024c0
mov eax, esi
call fcn.0040e206
ret
Function at 0x4020ee
Capabilities:
Check os version

Disassembly:
push 0x144
mov eax, 0x40f444
call fcn.0040e153
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], edi
call fcn.00401f49
xor esi, esi
inc esi
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00401fbe
lea eax, [ebp - 0x150]
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x150], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x140], 2
jne 0x40218e
cmp dword [ebp - 0x14c], 5
jne 0x402161
cmp dword [ebp - 0x148], esi
jne 0x402158
push str.:Documents_and_Settings_
jmp 0x402166
cmp dword [ebp - 0x148], 2
je 0x402151
push str.:Users_
push edi
call fcn.00402ae0
sub esp, 0x20
lea ebx, [ebp - 0x38]
mov esi, esp
mov dword [ebp - 0x10], esp
call fcn.00402350
mov ebx, edi
call fcn.004028c0
push str.TsGame_
push edi
call fcn.00402ae0
lea esi, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.00402470
mov eax, edi
call fcn.0040e1f2
ret
Function at 0x4034b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x4034f8
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x4034c9
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x4034fd
test ecx, ecx
je 0x4034f8
test edi, edi
jne 0x4034be
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4034fa

Function at 0x4053c4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4053cc
mov dword [ecx*4 + 0x417fc0], eax
inc ecx
cmp ecx, 0x100
jb 0x4053c7
mov edx, 0x800
jmp 0x405419
mov eax, dword [ecx*4 + 0x417bc0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x417fc0]
inc ecx
mov dword [ecx*4 + 0x417fbc], eax
cmp ecx, edx
jb 0x4053f8
mov dword [0x416e08], 0x405cec
call fcn.00405e4e
test eax, eax
jne 0x40543a
mov dword [0x416e08], 0x405d88
pop esi
ret
Function at 0x406257
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40626e
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x40628d
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x406292
inc edi
cmp edi, dword [ebp - 8]
jb 0x406284
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x406381
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x406314
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x4062be
cmp cl, 0xff
jne 0x406343
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
lea ebx, [esi - 5]
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x406354
movzx esi, byte [edx + 0x413a44]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x406304
cmp cl, 0xff
jne 0x406351
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x4062dc
dec ecx
shl edx, cl
and edx, 7
je 0x4062ab
movzx ecx, byte [edx + 0x413a44]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x413a3c], 0
mov cl, byte [ebx + 4]
je 0x406340
test cl, cl
je 0x406340
cmp cl, 0xff
jne 0x4062ab
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x40627f
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x40627f
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x407da1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415028]
jne 0x407dab
repz ret
jmp fcn.004085d6

Function at 0x407eea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x407f11
call fcn.00408d24
mov dword [eax], esi
call fcn.00408d11
push 0x16
pop esi
mov dword [eax], esi
call fcn.00408ee4
mov eax, esi
jmp 0x407f66
test dword [ebp + 0xc], 0xfffffff9
jne 0x407ef7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408d37
pop ecx
call fcn.00408d11
mov eax, dword [eax]
jmp 0x407f66
test al, 0x10
jne 0x407f64
test al, 1
je 0x407f64
test byte [ebp + 0xc], 2
je 0x407f64
call fcn.00408d24
mov dword [eax], 5
call fcn.00408d11
mov dword [eax], 0xd
jmp 0x407f35
xor eax, eax
pop esi
pop ebp
ret
Function at 0x40b672
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004098ab
and dword [ebp - 0x14], 0
cmp dword [0x416c08], 0
mov dword [ebp - 0x18], eax
jne 0x40b725
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b7cd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b7cd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416c08], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416c0c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416c10], eax
call edi
push eax
call esi
mov dword [0x416c18], eax
test eax, eax
je 0x40b725
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416c14], eax
mov eax, dword [0x416c14]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b77e
cmp dword [0x416c18], ecx
je 0x40b77e
push eax
call esi
push dword [0x416c18]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b77e
test ebx, ebx
je 0x40b77e
call edi
test eax, eax
je 0x40b775
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b775
test byte [ebp - 8], 1
jne 0x40b77e
or dword [ebp + 0x10], 0x200000
jmp 0x40b7b1
mov eax, dword [0x416c0c]
cmp eax, dword [ebp - 0x18]
je 0x40b7b1
push eax
call esi
test eax, eax
je 0x40b7b1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b7b1
mov eax, dword [0x416c10]
cmp eax, dword [ebp - 0x18]
je 0x40b7b1
push eax
call esi
test eax, eax
je 0x40b7b1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416c08]
call esi
test eax, eax
je 0x40b7cd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b7cf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407da1
leave
ret
Function at 0x401ca0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401d02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x401f10
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x402004
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.00401ca0
test eax, eax
jne 0x402004
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.00401ca0
test eax, eax
jne 0x402004
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x401fd5
lea eax, [esp + 0x10]
push 0x40c340
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x401fd5
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x401fd8
mov byte [esi], 0
push 0x40c33c
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x402360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407bb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
mov byte [esp + 0x48], 1
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CDC::Attach
mov edx, dword [esp + 0x50]
mov eax, dword [esi + edx*4 + 0x44]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
test eax, eax
je 0x4023e0
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub eax, edx
mov ebp, dword [esi + 0x78]
cdq
idiv dword [esi + 0x40]
mov edx, dword [esp + 0x28]
mov esi, dword [esi + 0x74]
sub edx, ecx
lea ecx, [esp + 0xc]
neg ecx
sbb ecx, ecx
push 0xcc0020
and ecx, dword [esp + 0x14]
push ebp
push esi
push 0
push 0
push ecx
push edx
mov ecx, dword [esp + 0x4c]
push eax
imul eax, dword [esp + 0x74]
push 0
push eax
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
test edi, edi
je 0x40243f
mov edi, dword [edi + 4]
mov edx, dword [esp + 0x10]
push edi
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 0
call fcn.00407552
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0040754c
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x4069a0
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408558
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
push 0x20
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4069df
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, 8
xor eax, eax
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
mov ax, word [esi + 0x7c]
lea ecx, [esp + 0x10]
imul eax, dword [esi + 0x84]
push eax
call section..text
mov ecx, dword [esp + 0x10]
push 0x20
mov dword [ebx], ecx
mov edx, dword [esp + 0x18]
mov dword [ebx + 4], edx
mov eax, dword [esi + 0x94]
push ebx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
je 0x406a62
push str.in_AddInputBufferToQueue__
push eax
call fcn.00406af0
mov esi, dword [esi + 0x98]
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004010d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov ecx, dword [esi + 0x94]
push 0x20
push ebx
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
test eax, eax
je 0x406aaf
push str.in_AddInputBufferToQueue__
push eax
call fcn.00406af0
mov esi, dword [esi + 0x98]
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004010d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edi, dword [esi + 0x98]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
lea edx, [edi + 1]
mov dword [esi + 0x98], edx
call fcn.004010d0
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret

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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408618
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x4072c5
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x34]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x407314
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00407786
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov word [esp + 0xc], 0x4d42
call edi
mov ecx, dword [esi]
lea edx, [esp + 8]
add ecx, 0xe
add eax, 0xe
mov dword [esp + 0x12], ecx
push 0xe
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x12], eax
mov word [esp + 0x16], 0
mov word [esp + 0x18], 0
call sub.MFC42.DLL_CFile::Write
push esi
call edi
push eax
push esi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00407786
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x10311af
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x210]
push eax
xor esi, esi
push 0x1003280
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x210], esi
call fcn.010ab83f
push 0x5c
xor edi, edi
lea eax, [ebp - 0x290]
push esi
inc edi
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], 0xf233
mov dword [ebp - 0x224], 8
mov dword [ebp - 0x220], 0xf234
mov dword [ebp - 0x294], 0x60
call fcn.010aad66
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x294]
push eax
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x288], 0x18
mov dword [ebp - 0x270], 2
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x280], 0xf230
mov dword [ebp - 0x278], 0xf231
mov dword [ebp - 0x27c], 0xfffc
mov dword [ebp - 0x274], 0xf232
mov dword [ebp - 0x240], 0x1031187
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], esi
call dword [fcn.01001084]
cmp eax, esi
mov dword [ebp - 0x210], eax
jl 0x103131c
cmp dword [ebp - 0x214], edi
jne 0x103131c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [fcn.010011e8]
test eax, eax
jbe 0x103131c
push edi
push esi
push 0x100325c
lea eax, [ebp - 0x20c]
push eax
push 0x1003250
push esi
call dword [fcn.01001bc8]
cmp eax, 0x20
ja 0x103131c
mov dword [ebp - 0x210], 0x80004005
mov esi, dword [ebp - 0x210]
lea ecx, [ebp - 0x234]
call fcn.010ab886
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac17
leave
ret 4

Function at 0x103216a
Capabilities:
Get file system object information

Disassembly:
push 0x2c8
mov eax, 0x10b4339
call fcn.010aac9f
xor ebx, ebx
push ebx
mov dword [ebp - 0x2cc], ecx
push 0x1004de8
lea ecx, [ebp - 0x2d4]
call fcn.010ab83f
lea ecx, [ebp - 0x2c8]
mov dword [ebp - 4], ebx
call fcn.010a955a
mov byte [ebp - 4], 1
call fcn.010a910a
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x5c0]
cmp esi, ebx
je 0x10321c0
cmp dword [esi + 0x54], ebx
je 0x10321c0
xor edi, edi
inc edi
jmp 0x10321c2
xor edi, edi
mov ecx, esi
call fcn.010424d5
cmp edi, ebx
je 0x10321db
neg eax
sbb eax, eax
and eax, 0x7e
add eax, 0xef1f
jmp 0x10321e0
mov eax, 0xef20
push eax
lea ecx, [ebp - 0x2c8]
call fcn.010a954e
test eax, eax
je 0x103223f
cmp edi, ebx
je 0x103222e
push 0x200
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push ebx
add esi, 0x58
push esi
call dword [0x1001b84]
lea ecx, [ebp - 0x2c8]
test eax, eax
je 0x1032223
lea eax, [ebp - 0x2b8]
push eax
jmp 0x1032224
push esi
push 0x1003338
call fcn.010a9542
push dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0x2cc]
call fcn.010a9536
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], bl
call fcn.010a93c2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d4]
call fcn.010ab886
call fcn.010aad31
ret