joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x449910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov esi, ecx
xor ebx, ebx
push eax
push 0xf003f
lea edi, [esi + 0x40]
push ebx
push str.SOFTWAREMicrosoftWindowsVSCAP
push reloc.MSVFW32.dll_Ordinal_2
mov dword [esp + 0x40], edi
mov dword [edi], ebx
mov byte [esi + 0x44], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a0f3
mov byte [esi + 0x44], bl
jmp 0x40a215
push 0x104
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], 1
call fcn.0042f1cc
push 0x104
mov edi, eax
call fcn.0042f1cc
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
mov ebp, eax
mov eax, dword [esp + 0x10]
push ecx
push edi
push edx
push ebx
push str.CEValue
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a146
mov byte [esi + 0x44], bl
jmp 0x40a202
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push ebx
push str.CEName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a16e
mov byte [esi + 0x44], bl
jmp 0x40a202
push edi
lea ecx, [esp + 0x28]
call fcn.0042f4f9
push ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], ebx
call fcn.0042f4f9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.00403060
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x4c], 2
call fcn.0042f200
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x50], 3
call fcn.0042f200
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.004030a0
cmp al, bl
mov byte [esp + 0x44], 1
setne cl
mov byte [esi + 0x44], cl
lea ecx, [esp + 0x1c]
call fcn.00403090
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call fcn.0042f48b
lea ecx, [esp + 0x24]
mov dword [esp + 0x44], 0xffffffff
call fcn.0042f48b
push edi
call fcn.0042f1f5
push ebp
call fcn.0042f1f5
mov edi, dword [esp + 0x34]
add esp, 8
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
cmp byte [esi + 0x44], bl
jne 0x40a27c
lea eax, [esp + 0x28]
push eax
push 0xf003f
push ebx
push str.SOFTWAREMicrosoftWindowsVSCAP
push reloc.MSVFW32.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a273
lea ecx, [esp + 0x2c]
mov eax, 4
push ecx
lea edx, [esp + 0x34]
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
push edx
push ebx
push str.CEST
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a275
mov dword [edi], ebx
mov ecx, dword [esp + 0x28]
push ecx
call ebp
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret
Function at 0x40a290
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
mov al, byte [esi + 0x44]
test al, al
jne 0x40a320
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsVSCAP
push reloc.MSVFW32.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a2e6
mov ecx, dword [esp + 4]
add esi, 0x40
push 4
push esi
push 4
push eax
push str.CEST
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
lea edx, [esp + 4]
push edx
push str.SOFTWAREMicrosoftWindowsVSCAP
push reloc.MSVFW32.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 4]
add esi, 0x40
push 4
push esi
push 4
push 0
push str.CEST
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x40ce70
Capabilities:
Capture screenshot
Terminate process

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x38]
mov esi, eax
mov eax, dword [0x45e8c8]
mov dword [esp + 0x10], esi
test eax, eax
je 0x40ced0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x40ced0
mov eax, dword [0x4619a4]
test eax, eax
je 0x40cec4
mov eax, dword [esp + 0x34]
mov ecx, dword [0x461924]
push 1
push edi
push ebx
push ebp
push eax
call fcn.004058d0
push 1
jmp 0x40cec6
push 0
push 1
call fcn.0040b850
add esp, 8
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x10]
push edi
push ebx
push ecx
mov esi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push esi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
push 0xcc0020
push ebp
push edx
push eax
push edi
push ebx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
call fcn.0040d1a0
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
sub ebx, edx
mov edi, eax
mov eax, dword [0x46199c]
mov dword [esp + 0x14], ebx
mov ebx, 1
sub ecx, ebp
cmp eax, ebx
mov dword [esp + 0x18], ecx
jne 0x40cf60
mov eax, dword [esp + 0x14]
add ecx, 0xffffffc0
add eax, 0xffffffc0
push ecx
push eax
push esi
call fcn.0040dea0
add esp, 0xc
mov eax, dword [0x45e8f0]
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
cmp eax, ebx
jne 0x40cfc3
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x40cfb1
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
sub ebx, eax
mov eax, dword [esp + 0x28]
sub edx, ecx
mov dword [esp + 0x14], ebx
test eax, eax
mov dword [esp + 0x18], edx
je 0x40cfa6
push eax
call ebp
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40cfb1
push eax
call ebp
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edi
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_DrawIcon]
mov ecx, dword [esp + 0x40]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x45e8c4]
mov ebx, dword [esp + 0x3c]
push edx
push ebx
call fcn.0040d060
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
jne 0x40d00b
push 0x30
push 0xf04b
push 0xf2b5
call fcn.0040eb90
add esp, 0xc
push 1
call fcn.0041a398
push ebx
call ebp
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [0x45e8c8]
test eax, eax
je 0x40d03f
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x40d03f
mov eax, dword [0x4619a4]
test eax, eax
je 0x40d033
push 1
jmp 0x40d035
push 0
push 0
call fcn.0040b850
add esp, 8
mov eax, dword [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x40d1d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x449c00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push esi
push edi
lea eax, [esp + 0x158]
push 0x12c
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x158]
push ecx
lea ecx, [esp + 0x10]
call fcn.0042f4f9
lea edx, [esp + 0xc]
push str._temp
lea eax, [esp + 0x18]
mov ebx, 1
push edx
push eax
mov dword [esp + 0x298], ebx
call fcn.0042f720
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x290], 2
call fcn.0042f5c4
lea ecx, [esp + 0x14]
mov byte [esp + 0x28c], bl
call fcn.0042f48b
mov edx, dword [esp + 0xc]
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
jne 0x40d293
mov esi, dword [esp + 0x294]
push esi
call fcn.0040e1a0
add esp, 4
mov dword [esp + 0x10], ebx
jmp 0x40d2ca
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x18], 0x10
je 0x40d2b6
mov esi, dword [esp + 0x294]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0042f200
jmp 0x40d2c6
mov esi, dword [esp + 0x294]
push esi
call fcn.0040e1a0
add esp, 4
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x28c], 0
call fcn.0042f48b
mov ecx, dword [esp + 0x284]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x284
ret

Function at 0x40e430
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449d68
push eax
mov dword fs:[0], esp
test ecx, ecx
jne 0x40e44d
xor eax, eax
jmp 0x40e450
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0x10]
push 5
push 0
push 0
push ecx
push 0x45e87c
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [esp + 8], 0xffffffff
lea ecx, [esp + 0x10]
jg 0x40e490
call fcn.0042f48b
xor eax, eax
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 4
call fcn.0042f48b
mov ecx, dword [esp]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0xc
ret 4
Function at 0x40e4b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x449d9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov ebp, ecx
lea eax, [esp + 0x18]
mov dword [esp + 0x228], 0
push eax
push str..htm
push Ordinal_2
call fcn.0040e820
test eax, eax
jne 0x40e763
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push Ordinal_2
mov ecx, ebp
call fcn.0040e820
test eax, eax
jne 0x40e763
lea edx, [esp + 0x18]
push 0x45ed58
push edx
call fcn.0041a520
mov edx, eax
add esp, 8
test edx, edx
jne 0x40e584
lea eax, [esp + 0x18]
push 0x45ed54
push eax
call fcn.0041a520
mov edx, eax
add esp, 8
test edx, edx
jne 0x40e584
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x17]
jmp 0x40e587
mov byte [edx], 0
mov edi, 0x45e154
or ecx, 0xffffffff
xor eax, eax
push 5
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x234]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jg 0x40e797
mov edx, dword [0x45f438]
mov dword [esp + 0x10], edx
mov bl, 1
mov byte [esp + 0x228], bl
ja 0x40e6fb
xor ecx, ecx
mov cl, byte [eax + 0x40e7f0]
jmp dword [ecx*4 + 0x40e7b8]
push eax
lea edx, [esp + 0x14]
push str.Unknown_Error___d__occurred.
push edx
call fcn.00428ad1
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push str.Unable_to_open_hyperlink:_n_n
push ecx
call fcn.0042f794
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 2
call fcn.0042f5c4
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], bl
call fcn.0042f48b
mov edx, dword [esp + 0x10]
push 0
push 0x30
push edx
call fcn.00439f82
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], 0
call fcn.0042f48b
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call fcn.0042f48b
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 4
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call fcn.0042f48b
mov eax, 1
jmp 0x40e77c
Function at 0x40e820
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push ebx
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x40e8a5
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edi, [esp + 0x14]
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, dword [esp + 0x124]
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 + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret 0xc
mov eax, ebx
pop ebx
add esp, 0x10c
ret 0xc
Function at 0x40ee20
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x449efe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
push str.temp001.wav
lea ecx, [esp + 0x18]
call fcn.0042f4f9
lea eax, [esp + 8]
mov dword [esp + 0xec], 0
push eax
call fcn.0040d1d0
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
mov bl, 1
push eax
push edx
mov byte [esp + 0xf8], bl
call fcn.0042f6ba
push eax
mov ecx, 0x46189c
mov byte [esp + 0xf0], 2
call fcn.0042f5c4
lea ecx, [esp + 0xc]
mov byte [esp + 0xec], bl
call fcn.0042f48b
lea ecx, [esp + 8]
mov byte [esp + 0xec], 0
call fcn.0042f48b
mov esi, dword [sym.imp.KERNEL32.dll_OpenFile]
mov bl, 8
mov ecx, dword [0x46189c]
lea eax, [esp + 0x5c]
push 0x1011
push eax
push ecx
call esi
cmp eax, 0xffffffff
jne 0x40f01d
push 0
call fcn.0041a28f
push eax
call fcn.0041a260
call fcn.0041a26d
push eax
lea edx, [esp + 0x34]
push 0x45e134
push edx
call fcn.0041a20e
add esp, 0x14
lea eax, [esp + 0x28]
lea ecx, [esp + 0xc]
push eax
call fcn.0042f4f9
push str.temp
lea ecx, [esp + 0xc]
mov byte [esp + 0xf0], 3
call fcn.0042f4f9
push str..wav
lea ecx, [esp + 0x14]
mov byte [esp + 0xf0], 4
call fcn.0042f4f9
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 5
push ecx
call fcn.0040d1d0
add esp, 4
lea edx, [esp + 8]
mov byte [esp + 0xec], 6
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0042f6ba
lea ecx, [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0xf8], 7
call fcn.0042f6ba
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0xf8], bl
call fcn.0042f6ba
push eax
mov ecx, 0x46189c
mov byte [esp + 0xf0], 9
call fcn.0042f5c4
lea ecx, [esp + 0x18]
mov byte [esp + 0xec], bl
call fcn.0042f48b
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 7
call fcn.0042f48b
lea ecx, [esp + 0x24]
mov byte [esp + 0xec], 6
call fcn.0042f48b
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 5
call fcn.0042f48b
lea ecx, [esp + 0x10]
mov byte [esp + 0xec], 4
call fcn.0042f48b
lea ecx, [esp + 8]
mov byte [esp + 0xec], 3
call fcn.0042f48b
lea ecx, [esp + 0xc]
mov byte [esp + 0xec], 0
call fcn.0042f48b
jmp 0x40eeb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x46189c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov dword [esp + 0xec], 0xffffffff
call fcn.0042f48b
mov ecx, dword [esp + 0xe4]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xe8
ret
Function at 0x40f080
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40f0b5
mov ecx, dword [eax]
mov dword [0x461848], ecx
mov edx, dword [eax + 4]
mov dword [0x46184c], edx
mov ecx, dword [eax + 8]
mov dword [0x461850], ecx
mov edx, dword [eax + 0xc]
mov dword [0x461854], edx
mov ax, word [eax + 0x10]
mov word [0x461858], ax
mov ecx, dword [0x461944]
mov edx, dword [0x45e900]
push 0x10000
push 0
push ecx
push 0x461848
push edx
push 0x46185c
call dword [sym.imp.WINMM.dll_waveInOpen]
test eax, eax
jne 0x40f0fd
push esi
mov esi, 3
call fcn.0040f120
dec esi
jne 0x40f0e4
mov eax, dword [0x46185c]
push eax
call dword [sym.imp.WINMM.dll_waveInStart]
test eax, eax
pop esi
je 0x40f10e
push 0xf2a0
push eax
call fcn.0040ec10
add esp, 8
xor eax, eax
ret
mov eax, 1
ret

Function at 0x40f120
Capabilities:
Capture microphone audio

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x449f18
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push 0x20
call fcn.0042f1cc
mov esi, eax
add esp, 4
test esi, esi
jne 0x40f159
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push edi
mov ecx, 8
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push eax
mov eax, dword [0x461854]
and eax, 0xffff
lea ecx, [esp + 0xc]
imul eax, dword [0x45e904]
push eax
call fcn.00402f60
mov ecx, dword [esp + 0xc]
push 0x20
mov dword [esi], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 4], edx
mov eax, dword [0x46185c]
push esi
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
test eax, eax
pop edi
je 0x40f1c0
push 0xf2a1
push eax
call fcn.0040ec10
mov esi, dword [0x4619ac]
add esp, 8
jmp 0x40f1f7
mov ecx, dword [0x46185c]
push 0x20
push esi
push ecx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
test eax, eax
je 0x40f1ea
push 0xf2a1
push eax
call fcn.0040ec10
mov esi, dword [0x4619ac]
add esp, 8
jmp 0x40f1f7
mov eax, dword [0x4619ac]
mov esi, eax
inc eax
mov dword [0x4619ac], eax
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00403040
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4117e8
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44a1c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push str.NoSave.ini
lea ecx, [esp + 0x1c]
call fcn.0042f4f9
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0
push eax
call fcn.0040e1a0
add esp, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x34], 1
call fcn.0042f6ba
mov eax, dword [0x45e934]
mov byte [esp + 0x28], 2
cmp eax, 1
jne 0x41184d
mov ecx, esi
call fcn.004107d0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4119b4
mov edx, dword [esp + 0x10]
push ebx
push 0x45f230
push edx
call fcn.0041a7c3
mov esi, eax
push str.savesettings__0__n
push esi
call fcn.0041a756
push esi
call fcn.0041a6d9
mov eax, dword [0x45f438]
add esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
push str.CS.ini
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 4
call fcn.0042f4f9
lea eax, [esp + 0x20]
mov bl, 5
push eax
mov byte [esp + 0x30], bl
call fcn.0040e1a0
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 6
call fcn.0042f5c4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0042f48b
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.0042f6ba
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 7
call fcn.0042f5c4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0042f48b
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
call esi
push str.Cdata.ini
lea ecx, [esp + 0x10]
call fcn.0042f614
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0042f6ba
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 8
call fcn.0042f5c4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0042f48b
mov edx, dword [esp + 8]
push edx
call esi
push str.CCursor.ini
lea ecx, [esp + 0x10]
call fcn.0042f614
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.0042f6ba
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 9
call fcn.0042f5c4
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call fcn.0042f48b
mov eax, dword [esp + 8]
push eax
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.0042f48b
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 3
call fcn.0042f48b
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0042f48b
pop ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0042f48b
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0042f48b
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.0042f48b
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4211c5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x460e40
cmp edx, dword [eax]
je 0x4211e7
add eax, 8
inc ecx
cmp eax, 0x460ed0
jl 0x4211d8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x460e40]
jne 0x421315
mov eax, dword [0x463ad4]
cmp eax, 1
je 0x4212ef
test eax, eax
jne 0x421218
cmp dword [0x460494], 1
je 0x4212ef
cmp edx, 0xfc
je 0x421315
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42124f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00421a40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041d640
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x421292
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041d640
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x45341c
push edi
call fcn.004236b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00421a40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00421a50
lea eax, [ebp - 0xa0]
push 0x4533fc
push eax
call fcn.00421a50
push dword [esi + 0x460e44]
lea eax, [ebp - 0xa0]
push eax
call fcn.00421a50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042361f
add esp, 0x2c
pop edi
jmp 0x421315
lea eax, [ebp + 8]
lea esi, [esi + 0x460e44]
push 0
push eax
push dword [esi]
call fcn.0041d640
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x427ee0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041bb40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x427fab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x427fab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x427f5e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x427f69
or bh, 8
and edi, 0x8000000
je 0x427f84
mov eax, dword [0x46521c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x427fab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret