joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2a0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dc90
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call fcn.00418440
xor eax, eax
add esp, 0xc
mov dword [edi + 0x1c], eax
mov ecx, edi
mov word [edi + 0x24], ax
mov eax, dword [edi]
call dword [eax + 0x10]
test eax, eax
jne 0x40b43b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test eax, eax
jne 0x40b43b
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
mov esi, eax
test esi, esi
je 0x40b349
push 0x2010
push 8
push 9
push dword [edi + 8]
push ecx
call fcn.00406fe0
mov eax, esi
jmp 0x40b43b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
test eax, eax
jne 0x40b43b
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
push 0x14
mov dword [ebp - 4], 0
call fcn.0040fc8d
mov edx, eax
add esp, 4
test edx, edx
je 0x40b3f9
mov ecx, dword [edi + 4]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov eax, dword [edx + 4]
mov dword [edx + 8], eax
mov dword [edx], ecx
jmp 0x40b3fb
xor edx, edx
mov ecx, edx
mov dword [edi + 0x234], edx
mov dword [ebp - 4], 0xffffffff
call fcn.00408f40
test eax, eax
jne 0x40b43b
mov edx, dword [edi]
lea eax, [edi + 0x18]
push eax
lea esi, [edi + 0x14]
mov ecx, edi
push esi
call dword [edx + 0x30]
xor eax, eax
mov ecx, 0x11
cmp dword [esi], eax
cmove eax, ecx
jmp 0x40b43b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 4
Function at 0x40b7c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00418440
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x108]
cmp eax, 1
je 0x40b836
cmp eax, 2
jne 0x40b826
mov eax, dword [ebp - 0x114]
cmp eax, 5
jb 0x40b836
jne 0x40b826
cmp dword [ebp - 0x110], 0
je 0x40b836
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xe
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret

Function at 0x40b850
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x423fe8
push 1
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x10], eax
test eax, eax
je 0x40b987
cmp eax, 0xffffffff
je 0x40b987
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b971
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0
push eax
push 0x40adf0
mov dword [ebp - 0x210], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40b92b
test byte [esi + 0x1c], 2
je 0x40b93f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00418440
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push str.CanonIJNetworkScannerSelectorEX2CloseAtom_d
push 0x104
push eax
call fcn.0040fd8c
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
push 0x4e20
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b971
mov eax, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
cmp word [esi + 0x1e], 1
jne 0x40b94a
push 1
jmp 0x40b94c
push 0
push 0x899
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
or word [esi + 0x1c], 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xf
xor ecx, ebp
pop esi
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x40ba30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00418440
push str.SoftwareCanon
lea eax, [ebp - 0x20c]
mov dword [esi], 1
push 0x104
push eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x218], 0
mov dword [edi], 1
call fcn.00410465
add esp, 0x18
lea eax, [ebp - 0x20c]
push str.IJNetworkScannerSelectorEX2
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bb55
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 4
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x210]
push eax
push 0
push str.Startup
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 4
call esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], 4
push eax
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 4
push eax
push 0
push str.Enable
push dword [ebp - 0x214]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040f324
mov esp, ebp
pop ebp
ret 8

Function at 0x40bb70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
mov dword [ebp - 0x230], 0
push 0x206
push eax
mov word [ebp - 0x22c], ax
mov edi, ecx
lea eax, [ebp - 0x22a]
push eax
call fcn.00418440
xor eax, eax
xorps xmm0, xmm0
push str.SoftwareCanon
mov word [ebp - 0x24], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x22c]
push 0x104
push eax
movdqu xmmword [ebp - 0x22], xmm0
movq qword [ebp - 0x12], xmm0
call fcn.00410465
add esp, 0x18
lea eax, [ebp - 0x22c]
push str.IJNetworkScannerSelectorEX2
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x230]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40bc9b
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push str.Startup
push dword [ebp - 0x230]
call esi
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push str.Enable
push dword [ebp - 0x230]
call esi
movzx eax, word [edi + 0x248]
push eax
push str._04x
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.0040fd8c
add esp, 0x10
lea eax, [ebp - 0x24]
push 0x20
push eax
push 1
push 0
push str.UserLID
push dword [ebp - 0x230]
call esi
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040f324
mov esp, ebp
pop ebp
ret 8
Function at 0x40e1d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x208], ecx
push edi
mov edi, dword [ebp + 8]
cmp eax, 0x111
ja 0x40e38f
je 0x40e2ba
cmp eax, 0x10
je 0x40e39d
cmp eax, 0x4e
je 0x40e29d
cmp eax, 0x110
jne 0x40e39d
push 0xfffffffffffffffa
push edi
mov dword [esi + 4], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp - 0x208]
mov dword [esi + 0x10], eax
mov ecx, esi
mov eax, dword [esi]
push ebx
push edi
call dword [eax + 8]
push 0xc9
push dword [esi + 0x24]
mov dword [ebp - 0x208], eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [0x42937c], eax
test eax, eax
je 0x40e284
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x80
push edi
call esi
push dword [0x42937c]
push 0
push 0x80
push edi
call esi
mov eax, dword [ebp - 0x208]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
push ecx
push ebx
push edi
mov ecx, esi
call dword [eax + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 0x10
movzx ebx, bx
cmp ebx, 9
jg 0x40e367
je 0x40e31c
mov eax, ebx
dec eax
je 0x40e2d6
dec eax
jne 0x40e3c4
jmp 0x40e2de
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x2c]
push ebx
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [0x42937c]
test eax, eax
je 0x40e3c4
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x42937c], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.00418440
mov ecx, dword [esi + 0x20]
lea edx, [ebp - 0x204]
add esp, 8
call fcn.00404010
add esp, 4
lea eax, [ebp - 0x204]
push 5
push 0
push 0
push eax
push 0x4245e0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x40e304
cmp ebx, 0x965
jne 0x40e3c4
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x3c]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 0x31a
je 0x40e3dc
cmp eax, 0x484
je 0x40e3b2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f324
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0x484
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f324
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x38]
jmp 0x40e304
Function at 0x41a0c0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427178]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00412502
mov dword [ebp - 0x14], eax
cmp dword [0x429334], esi
jne 0x41a1b3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41a140
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41a293
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41a293
push 0x4236c0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a293
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x429334], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x429338], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42933c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x429344], eax
test eax, eax
je 0x41a1b0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x429340], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41a1d8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41a1cb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41a1ed
push 4
pop eax
jmp 0x41a295
cmp dword [ebp - 0x14], esi
je 0x41a1ed
push dword [0x429334]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41a1d2
mov eax, dword [0x429340]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41a24b
cmp dword [0x429344], edi
je 0x41a24b
push eax
call ebx
push dword [0x429344]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41a24b
test eax, eax
je 0x41a24b
call ecx
test eax, eax
je 0x41a240
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41a240
test byte [ebp - 8], 1
jne 0x41a24b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41a27b
mov eax, dword [0x429338]
cmp eax, edi
je 0x41a278
push eax
call ebx
test eax, eax
je 0x41a278
call eax
mov esi, eax
test esi, esi
je 0x41a278
mov eax, dword [0x42933c]
cmp eax, edi
je 0x41a278
push eax
call ebx
test eax, eax
je 0x41a278
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x429334]
call ebx
test eax, eax
je 0x41a293
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41a295
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f324
mov esp, ebp
pop ebp
ret
Function at 0x10006e70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
mov ecx, dword [esp + 0x114]
lea eax, [esp]
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
push eax
push 0xf003f
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006f28
lea edx, [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x100
call edi
test eax, eax
jne 0x10006f0e
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.10006e70
mov esi, eax
add esp, 8
test esi, esi
jne 0x10006f32
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x30], 0x100
call edi
test eax, eax
je 0x10006ed0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x120]
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebp
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x110
ret

Function at 0x10013790
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100137ae
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100137cc
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1001382a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10013811
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1001381a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10013824
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10013806
inc dword [ebp + 0xc]
invalid
invalid
invalid
Function at 0x100137f0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100137ae
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100137cc
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1001382a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10013811
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1001381a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10013824
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10013806
inc dword [ebp + 0xc]
invalid
invalid
invalid

Function at 0x10013940
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x56fffffc
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.100130e7
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001309c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
invalid
invalid

Function at 0x10014a80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stc
push es
add byte [eax], al
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x10014c52
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
invalid
invalid
Function at 0x1001c8a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10026670
cmp edx, dword [eax]
je 0x1001c8c4
add eax, 8
inc ecx
cmp eax, 0x10026700
jl 0x1001c8b5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10026670]
jne 0x1001c9f2
mov eax, dword [0x10029b18]
cmp eax, 1
je 0x1001c9cc
test eax, eax
jne 0x1001c8f5
cmp dword [0x10029b1c], 1
je 0x1001c9cc
cmp edx, 0xfc
je 0x1001c9f2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001c92c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1001fd60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1001ede0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1001c96f
lea eax, [ebp - 0x1a4]
push eax
call fcn.1001ede0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10023b1c
push edi
call fcn.1001fec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1001fd60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1001fd70
lea eax, [ebp - 0xa0]
push 0x10023afc
push eax
call fcn.1001fd70
push dword [esi + 0x10026674]
lea eax, [ebp - 0xa0]
push eax
call fcn.1001fd70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1002080f
add esp, 0x2c
pop edi
jmp 0x1001c9f2
lea eax, [ebp + 8]
lea esi, [esi + 0x10026674]
push 0
push eax
push dword [esi]
call fcn.1001ede0
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 0x401014
Capabilities:
Read .ini file

Disassembly:
jmp 0x401330
push 0xffffffffffffffff
push 0x430f7e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0041b8a8
mov eax, dword [0x43ac4c]
lea ebx, [esi + 0x54]
xor edi, edi
mov dword [esp + 0x80], edi
mov dword [ebx], eax
mov ecx, dword [0x43ac4c]
lea ebp, [esi + 0x58]
mov dword [ebp], ecx
mov eax, 1
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x3c], eax
push str.38400
mov ecx, ebx
mov byte [esp + 0x84], 2
mov dword [0x43f3d4], eax
mov dword [0x43f400], edi
mov dword [0x43f3cc], eax
call fcn.0041fd6a
push str.COM1
mov ecx, ebp
call fcn.0041fd6a
push str.Fidia.ini
lea edx, [esp + 0x18]
push 0x64
push edx
mov dword [0x43f3d0], 0x1e
mov dword [0x43f3f4], edi
push str.19200
mov word [esi + 0x50], di
mov word [esi + 0x52], di
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.BAUD
push str.SerialC1
call edi
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.0041fd6a
push str.Fidia.ini
lea ecx, [esp + 0x18]
push 0x64
push ecx
push str.COM1
push str.COMPORT
push str.SerialC1
call edi
lea edx, [esp + 0x14]
mov ecx, ebp
push edx
call fcn.0041fd6a
push str.Fidia.ini
lea eax, [esp + 0x18]
push 0x64
push eax
push 0x43a024
mov ebx, 1
push str.THREADPRIO
push str.SerialC1
mov dword [0x43f3d4], ebx
call edi
lea ecx, [esp + 0x14]
push ecx
call fcn.00405286
add esp, 4
lea edx, [esp + 0x14]
mov dword [esi + 0x3c], eax
mov dword [0x43f3f8], ebx
push str.Fidia.ini
push 0x64
push edx
push 0x43a010
push str.USACHECKSUM
push str.SerialC1
call edi
lea eax, [esp + 0x14]
push eax
call fcn.00405286
add esp, 4
lea ecx, [esp + 0x14]
mov dword [0x43f3cc], eax
push str.Fidia.ini
push 0x64
push ecx
push 0x43a010
push str.DEBUG
push str.SerialC1
call edi
lea edx, [esp + 0x14]
push edx
call fcn.00405286
add esp, 4
mov dword [0x43f400], eax
push str.Instanced_SerialC1
call fcn.0040102d
mov ecx, dword [esp + 0x7c]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret

Function at 0x401037
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x403790
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
mov ebp, dword [esp + 0x30]
sub eax, edi
cmp eax, ebp
jae 0x403807
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call ebx
test eax, eax
je 0x4037e5
cmp dword [esp + 0x14], 0x12
je 0x4037ff
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4037ed
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, ebp
jb 0x4037b3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x41c6e6
Capabilities:
Get graphical window text

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