joyce8/EMBER2024-capa huggingface dataset:
Function at 0x65a7d9
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x65a801
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x65a812
push 2
call edi
test ax, ax
jge 0x65a812
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0064eaf9
cmp dword [esi + 0x30], ebx
jne 0x65a8ec
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0064eaf9
cmp eax, dword [esp + 0x34]
jne 0x65a8ec
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x65a888
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x65a8cd
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x65a8ec
cmp eax, 0x205
je 0x65a8ec
cmp eax, 0x201
je 0x65a8ec
cmp eax, 0x204
je 0x65a8ec
cmp eax, ebx
jne 0x65a8b3
cmp dword [esp + 0x1c], 0x1b
je 0x65a8ec
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x8c9a9c]
jbe 0x65a8e2
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x65a845
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x403040
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x44a78c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x461c10]
push ebx
push edi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x12c], 0
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x138]
mov byte [esp + 0x12c], 1
lea eax, [edi + edi*2]
shl eax, 1
push eax
call fcn.004200a2
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4030c7
lea ecx, [esp + 0xc]
mov byte [esp + 0x12c], al
call fcn.00432ab7
lea ecx, [esp + 8]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00432ab7
xor eax, eax
jmp 0x403231
test edi, edi
jle 0x403208
mov ecx, dword [esp + 0x134]
push ebp
push esi
lea ebp, [eax + 2]
lea esi, [ecx + 4]
mov dword [esp + 0x18], edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0x100
push edx
push 0x4664a8
push eax
push ecx
mov ecx, ebx
call fcn.004010b0
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x10]
push edx
call fcn.00432c40
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4031f1
lea ecx, [esp + 0x1c]
push 0x45d110
push ecx
lea ecx, [esp + 0x18]
call fcn.00430689
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 2
call fcn.00432bf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 1
call fcn.00432ab7
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4031f1
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea ecx, [esp + 0x10]
dec eax
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00430595
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 3
call fcn.00432bf0
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 1
call fcn.00432ab7
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4031f1
mov dx, word [esi - 4]
mov ecx, ebx
mov word [ebp + 2], dx
mov eax, dword [esp + 0x14]
push eax
call fcn.00403250
lea ecx, [esp + 0x10]
mov byte [ebp - 2], al
call fcn.00432f73
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
mov byte [esp + 0x20], dl
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov word [ebp], ax
mov eax, dword [esp + 0x18]
add esi, 0xc
add ebp, 6
dec eax
mov dword [esp + 0x18], eax
jne 0x4030e2
pop esi
pop ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x12c], 0
call fcn.00432ab7
lea ecx, [esp + 8]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00432ab7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x124]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8
Function at 0x407ab0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x308
xor eax, eax
push ebx
push ebp
mov ebx, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
call fcn.00445aed
mov eax, dword [eax + 8]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
dec ecx
test edx, edx
je 0x407b13
lea eax, [esp + 0xc]
dec eax
cmp byte [eax + ecx], 0x5c
je 0x407b0e
mov byte [eax + ecx], 0
mov edx, ecx
dec ecx
test edx, edx
jne 0x407afb
jmp 0x407b13
mov byte [esp + ecx + 0xb], 0
push esi
lea eax, [esp + 0x10]
push 0x45ee9c
lea esi, [ebx + 0xe8]
push eax
push 0x45ee94
push esi
call fcn.00430a2c
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x124]
lea ebp, [ebx + 0x618]
rep stosd dword es:[edi], eax
mov ecx, 0x40
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x114]
push ecx
push 0x104
push edx
push 0x4664a8
push 0x45ee88
push 0x45ed5c
call edi
mov eax, dword [esi]
push eax
push 0x100
push ebp
push 0x4664a8
push 0x45ee80
push 0x45ed5c
call edi
mov ecx, dword [esi]
lea edx, [esp + 0x218]
push ecx
push 0x100
push edx
push 0x4664a8
push 0x45ee74
push 0x45ed5c
call edi
lea eax, [esp + 0x218]
lea ecx, [ebx + 0x928]
push eax
call fcn.00432c40
mov al, byte [esp + 0x114]
pop esi
test al, al
je 0x407c86
test ebp, ebp
je 0x407c86
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
lea eax, [ebx + 0xec]
push 0x45ee94
push eax
call fcn.00430a2c
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [ebx + 0xf0]
push 0x45ee68
push ecx
push 0x45ee94
push edx
call fcn.00430a2c
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [ebx + 0xf4]
push 0x45ee5c
push eax
push 0x45ee94
push ecx
call fcn.00430a2c
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [ebx + 0xfc]
push 0x45ee50
push edx
push 0x45ee94
push eax
call fcn.00430a2c
add esp, 0x10
lea ecx, [esp + 0xc]
add ebx, 0x100
push 0x45ee44
push ecx
push 0x45ee94
push ebx
call fcn.00430a2c
add esp, 0x10
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x308
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x308
ret
Function at 0x408060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44ab18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x461c10]
push ebx
mov dword [esp + 4], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov bl, 4
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], bl
call fcn.00432c40
lea ecx, [esp + 0x18]
push 0x45eef0
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call fcn.00430689
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 5
call fcn.00432bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00432ab7
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x18]
dec eax
lea ecx, [esp + 4]
push eax
push edx
call fcn.00430595
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 6
call fcn.00432bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00432ab7
lea eax, [esp + 0x18]
push 0x45eef0
push eax
lea ecx, [esp + 0xc]
call fcn.00430689
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 7
call fcn.00432bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00432ab7
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
mov ecx, dword [edx - 8]
sub eax, ecx
lea ecx, [esp + 4]
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00430595
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 8
call fcn.00432bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00432ab7
lea ecx, [esp + 0x18]
push 0x45eef0
push ecx
lea ecx, [esp + 0xc]
call fcn.00430689
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 9
call fcn.00432bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00432ab7
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [edx - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x18]
dec eax
lea ecx, [esp + 4]
push eax
push edx
call fcn.00430595
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0xa
call fcn.00432bf0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00432ab7
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
call fcn.00432bf0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041fe0b
mov edx, dword [esp + 0x10]
mov byte [esp + 0x30], al
push edx
call fcn.0041fe0b
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x10]
push eax
call fcn.0041fe0b
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x3a], al
push ecx
call fcn.0041fe0b
add esp, 0x10
lea ecx, [esp + 0x14]
mov byte [esp + 0x2f], al
mov byte [esp + 0x24], 3
call fcn.00432ab7
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call fcn.00432ab7
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.00432ab7
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.00432ab7
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.00432ab7
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x409eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44ab88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x461c10]
push esi
mov esi, ecx
mov dword [esp + 4], eax
lea ecx, [esi + 0x108]
lea edx, [esi + 0x618]
push ecx
push edx
lea eax, [esp + 0xc]
push 0x45efb8
push eax
mov dword [esp + 0x2c], 0
call fcn.00430a2c
mov edx, dword [esp + 0x14]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push edx
push reloc.dcpi.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409f47
lea ecx, [esp + 4]
mov dword [esi + 0x718], 0
mov dword [esp + 0x1c], 0xffffffff
call fcn.00432ab7
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esi + 0x71c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0x45efa8
push eax
mov dword [esi + 0x718], 1
mov dword [esp + 0x24], 4
call edi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
add esi, 0x720
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push 0
push 0x45ef9c
push eax
mov dword [esp + 0x24], 0x200
call edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00432ab7
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x409fe0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x44aba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x461c10]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], 0
test esi, esi
je 0x40a0ac
lea ecx, [edi + 0x108]
lea edx, [edi + 0x618]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x45efb8
push eax
call fcn.00430a2c
mov edx, dword [esp + 0x1c]
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
push 0x20006
push 0
push edx
push reloc.dcpi.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a0ac
mov ecx, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 4]
push 4
push eax
push 4
add edi, 0x718
push 0
push 0x45efa8
push ecx
mov dword [edi], 1
call ebx
test eax, eax
jne 0x40a0a1
mov ecx, dword [esp + 0x20]
lea eax, [esi + 8]
push 0x200
push eax
push 1
push 0
push 0x45ef9c
push ecx
call ebx
test eax, eax
je 0x40a0d3
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.00432ab7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x82
mov dword [esp + 0x18], 0xffffffff
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
call fcn.00432ab7
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40a7e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44ac7b
push eax
mov dword fs:[0], esp
sub esp, 0x114
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x40
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x920]
test eax, eax
je 0x40a983
mov eax, dword [esi + 0x928]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a853
mov eax, dword [esi + 0x928]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push reloc.dcpi.dll_Ordinal_2
call edi
mov ebx, eax
jmp 0x40a858
mov ebx, 0x270f
mov eax, dword [esi + 0x92c]
push eax
call ebp
test eax, eax
pop ebp
je 0x40a882
mov eax, dword [esi + 0x92c]
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push eax
push reloc.dcpi.dll_Ordinal_2
call edi
jmp 0x40a887
mov eax, 0x270f
test eax, eax
mov dword [esp + 0x18], 0x100
jne 0x40a8e0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0x45f000
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
add esi, 0x930
push ecx
mov ecx, esi
call fcn.00432c40
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
test ebx, ebx
jne 0x40a925
mov eax, dword [esp + 0x10]
push eax
call edi
jmp 0x40a925
test ebx, ebx
jne 0x40a983
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push 0x45f000
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esi, 0x930
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call fcn.00432c40
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x461c10]
mov dword [esp + 0xc], ecx
mov edx, dword [esi]
lea eax, [esp + 0xc]
push edx
push 0x45efec
push eax
mov dword [esp + 0x134], 0
call fcn.00430a2c
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_2
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or esi, 0xffffffff
cmp eax, esi
jne 0x40a99d
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], esi
call fcn.00432ab7
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], esi
call fcn.00432ab7
mov eax, 1
jmp 0x40a985
Function at 0x40dc40
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [ecx + 0x1c]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call fcn.00437d99
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov esi, 0x45f3ac
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
call fcn.00445aed
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.0040dd90
mov edx, dword [eax]
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x1c]
push 0x100
push eax
push 0x4664a8
push ecx
push edx
call ebp
lea ecx, [esp + 0x10]
call fcn.00432ab7
mov al, byte [esp + 0x18]
test al, al
je 0x40dcd2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
mov edx, dword [ecx + 4]
push 0x400
push ebx
push edx
call dword [sym.imp.USER32.dll_ModifyMenuA]
add esi, 0xc
inc ebx
cmp esi, 0x45f3d0
jb 0x40dc6b
mov esi, 0x45f3d0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
call fcn.00445aed
mov eax, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call fcn.0040dd90
mov edx, dword [eax]
mov ecx, dword [esi + 8]
push edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x1c]
push 0x100
push eax
push 0x4664a8
push ecx
push edx
call ebp
lea ecx, [esp + 0x10]
call fcn.00432ab7
mov al, byte [esp + 0x18]
test al, al
je 0x40dd4a
mov eax, dword [esi]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
add esi, 0xc
cmp esi, 0x45f418
jb 0x40dce3
call fcn.00445aed
mov ecx, dword [eax + 4]
call fcn.0040a9c0
pop edi
pop esi
pop ebp
cmp eax, 1
pop ebx
jne 0x40dd80
mov ecx, dword [esp + 4]
push 0
push 0x8006
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_DeleteMenu]
add esp, 0x108
ret
Function at 0x416a10
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push Ordinal_2
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x416bf0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jne 0x416a6b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x416a88
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x416aa8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
lea ecx, [esp + 0x18]
push 0
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416bdb
cmp dword [esp + 0x18], ebx
jne 0x416bdb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x416bf0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x416bf0
lea ecx, [esp + 0xc]
push ecx
push 0x453b38
push 1
push ebx
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
test eax, eax
jl 0x416bca
mov eax, dword [esp + 0xc]
test eax, eax
je 0x416bca
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00439910
mov esi, eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push edx
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.00444bb9
mov ecx, dword [esp + 0x2c]
push 0
mov ebx, ecx
mov eax, dword [esp + 0x10]
neg ebx
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
push ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4180f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41814b
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4664a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41813e
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41814d
xor eax, eax
pop esi
leave
ret 4

Function at 0x428f55
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x465de8
cmp edx, dword [eax]
je 0x428f77
add eax, 8
inc ecx
cmp eax, 0x465e78
jl 0x428f68
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x465de8]
jne 0x4290a5
mov eax, dword [0x468f8c]
cmp eax, 1
je 0x42907f
test eax, eax
jne 0x428fa8
cmp dword [0x462c98], 1
je 0x42907f
cmp edx, 0xfc
je 0x4290a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x428fdf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00427000
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00421b30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x429022
lea eax, [ebp - 0x1a4]
push eax
call fcn.00421b30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x453944
push edi
call fcn.00426e80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00427000
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00427010
lea eax, [ebp - 0xa0]
push 0x453924
push eax
call fcn.00427010
push dword [esi + 0x465dec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00427010
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042b48c
add esp, 0x2c
pop edi
jmp 0x4290a5
lea eax, [ebp + 8]
lea esi, [esi + 0x465dec]
push 0
push eax
push dword [esi]
call fcn.00421b30
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 0x42fd90
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.00421d50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42fe5b
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 0x42fe5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42fe0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42fe19
or bh, 8
and edi, 0x8000000
je 0x42fe34
mov eax, dword [0x46a73c]
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 0x42fe5b
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