joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403b53
xor eax, eax
ret
not al
and eax, 0xff
shr eax, 4
and eax, 1
ret

Function at 0x404230
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4435c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x45a5f8]
test eax, eax
jne 0x4042db
mov eax, dword [0x456bd4]
push esi
mov dword [esp + 4], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00427bff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00427c4e
push str.winhlp32.exe
lea ecx, [esp + 8]
call fcn.00427bab
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4042c2
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4042c2
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x45a5f8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.0042781b
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4042f0
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 0x404352
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
Function at 0x404550
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x404639
lea eax, [esp + 0x10]
push eax
push str..htm
push 0x80000000
call fcn.004042f0
add esp, 0xc
test eax, eax
jne 0x404639
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push 0x80000000
call fcn.004042f0
add esp, 0xc
test eax, eax
jne 0x404639
lea ecx, [esp + 0x10]
push 0x4564a0
push ecx
call fcn.00411c50
mov esi, eax
add esp, 8
test esi, esi
jne 0x404613
lea edx, [esp + 0x10]
push 0x45649c
push edx
call fcn.00411bd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x404613
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x404616
mov byte [esi], 0
push 0x456498
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret

Function at 0x4053d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x48
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 9
mov esi, str.SOFTWAREKingsoftFastAIT4.0KPGMaker
lea edi, [esp + 0x2c]
mov eax, dword [str.MainFramePlacement]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x45655c]
mov edx, dword [0x456560]
mov dword [esp + 0x18], eax
mov eax, dword [0x456564]
mov dword [esp + 0x1c], ecx
mov cx, word [0x456568]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
movsw word es:[edi], word [esi]
mov word [esp + 0x28], cx
push eax
push 0x20019
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], edx
mov dl, byte [0x45656a]
push 0
push ecx
push 0x80000002
mov byte [esp + 0x3e], dl
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405495
lea edx, [esp + 0x10]
lea eax, [ebx + 0xc4]
push edx
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push 0
push edx
push eax
mov dword [esp + 0x28], 0x2c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405495
mov eax, 1
pop edi
mov dword [ebx + 0xcc], eax
pop esi
pop ebx
add esp, 0x48
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x48
ret
Function at 0x4054a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x44
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 9
mov esi, str.SOFTWAREKingsoftFastAIT4.0KPGMaker
lea edi, [esp + 0x28]
mov eax, dword [str.MainFramePlacement]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x45655c]
mov edx, dword [0x456560]
mov dword [esp + 0x14], eax
mov eax, dword [0x456564]
mov dword [esp + 0x18], ecx
mov cx, word [0x456568]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
movsw word es:[edi], word [esi]
mov word [esp + 0x24], cx
push eax
push 0x20006
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], edx
mov dl, byte [0x45656a]
push 0
push ecx
push 0x80000002
mov byte [esp + 0x3a], dl
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405542
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0x20006
push 0
push 0
lea ecx, [esp + 0x40]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40556a
mov eax, dword [esp + 0xc]
add ebx, 0xc4
push 0x2c
push ebx
push 3
lea edx, [esp + 0x20]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x44
ret

Function at 0x4056d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0xa
mov esi, str.SOFTWAREKingsoftFastAIT4.0DataExchange
lea edi, [esp + 0x2c]
mov eax, dword [str.KPGMakerMainWindow]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x456598]
mov edx, dword [0x45659c]
mov dword [esp + 0x18], eax
mov eax, dword [0x4565a0]
mov dword [esp + 0x1c], ecx
mov cx, word [0x4565a4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
movsw word es:[edi], word [esi]
mov word [esp + 0x28], cx
push eax
push 0x20019
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], edx
mov dl, byte [0x4565a6]
push 0
push ecx
push 0x80000002
mov byte [esp + 0x3e], dl
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4057bf
lea edx, [esp + 0x10]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push 0
push edx
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4057bf
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4057bf
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4057b4
mov edx, dword [esp + 8]
push 9
push edx
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
add esp, 0x50
ret
Function at 0x4057d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x4c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xa
mov esi, str.SOFTWAREKingsoftFastAIT4.0DataExchange
lea edi, [esp + 0x2c]
mov eax, dword [str.KPGMakerMainWindow]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x456598]
mov edx, dword [0x45659c]
mov dword [esp + 0x18], eax
mov eax, dword [0x4565a0]
mov dword [esp + 0x1c], ecx
mov cx, word [0x4565a4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc]
movsw word es:[edi], word [esi]
mov word [esp + 0x28], cx
push eax
push 0x20006
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], edx
mov dl, byte [0x4565a6]
push 0
push ecx
push 0x80000002
mov byte [esp + 0x3e], dl
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40587b
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0x20006
push 0
push 0
lea ecx, [esp + 0x44]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40587b
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x405888
mov dword [esp + 0x10], eax
jmp 0x40588f
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 4
push eax
push 4
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
add esp, 0x4c
ret
Function at 0x407890
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x443af3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x628
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10c]
mov dword [esp + 0x638], 0
call fcn.0040a320
mov eax, dword [esp + 0x640]
lea ecx, [esp + 0x10c]
push eax
mov byte [esp + 0x63c], 1
call fcn.0040a370
lea ecx, [esp + 0x10c]
lea esi, [ebp + 0x174]
call fcn.0040a570
push eax
mov ecx, esi
call fcn.00427958
mov ecx, esi
call fcn.00427cf1
mov ecx, ebp
call fcn.004075d0
test eax, eax
je 0x4079f0
push ebx
push edi
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov bl, 0x5c
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], bl
je 0x407968
mov edi, 0x456154
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebp + 0x178]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00427958
mov ecx, esi
call fcn.00427cf1
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], bl
je 0x4079d3
mov edi, 0x456154
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
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 esi, [ebp + 0x17c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00427958
mov ecx, esi
call fcn.00427cf1
pop edi
pop ebx
jmp 0x407a10
push 0x456618
lea ecx, [ebp + 0x178]
call fcn.00427958
push 0x456614
lea ecx, [ebp + 0x17c]
call fcn.00427958
lea ecx, [esp + 0x10c]
mov byte [esp + 0x638], 0
call fcn.0040a360
lea ecx, [esp + 0x640]
mov dword [esp + 0x638], 0xffffffff
call fcn.0042781b
mov ecx, dword [esp + 0x630]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x634
ret 4
Function at 0x40a920
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x410]
test eax, eax
je 0x40a93c
push 0xffffffffffffff9d
call fcn.0040a7a0
pop edi
xor eax, eax
pop esi
ret 4
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
lea edi, [esi + 4]
push eax
push edi
push 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40a9c6
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x404], eax
je 0x40a9c6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esi + 0x404]
push 0
push 0
push 0
push 2
push 0
push edx
mov dword [esi + 0x408], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x40c], eax
je 0x40a9c6
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x414], eax
jne 0x40a9db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0040a7a0
pop edi
xor eax, eax
pop esi
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push eax
mov dword [esi + 0x418], eax
call edi
test eax, eax
je 0x40aa00
push 0xffffffffffffff9e
mov ecx, esi
call fcn.0040a7a0
pop edi
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x418]
cmp word [eax], 0x5a4d
je 0x40aa1d
push 0xffffffffffffff9e
mov ecx, esi
call fcn.0040a7a0
pop edi
xor eax, eax
pop esi
ret 4
mov eax, dword [eax + 0x3c]
mov ecx, dword [esi + 0x414]
add eax, ecx
push 0xf8
push eax
mov dword [esi + 0x41c], eax
call edi
test eax, eax
je 0x40aa4a
push 0xffffffffffffff9f
mov ecx, esi
call fcn.0040a7a0
pop edi
xor eax, eax
pop esi
ret 4
mov eax, dword [esi + 0x41c]
cmp dword [eax], 0x4550
je 0x40aa68
push 0xffffffffffffff9f
mov ecx, esi
call fcn.0040a7a0
pop edi
xor eax, eax
pop esi
ret 4
mov edx, dword [esi + 0x41c]
add eax, 4
add edx, 0x18
mov ecx, esi
mov dword [esi + 0x420], eax
mov dword [esi + 0x424], edx
mov dword [esi + 0x410], 1
call fcn.0040b200
mov ecx, esi
call fcn.0040b2a0
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x40e400
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x444178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
lea eax, [esp + 8]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [0x456bd4]
mov dword [esp + 4], edx
push 0
push 0xd
push 3
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.004263d7
mov eax, dword [esi + 0x1c]
push 0x20
push 0
push 0x1036
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3e8
lea ecx, [esp + 8]
call fcn.00427d6e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
sub eax, edx
mov ecx, dword [esp + 4]
cdq
sub eax, edx
push 0xffffffffffffffff
sar eax, 1
sub eax, 0xa
push eax
push 0
push ecx
push 0
mov ecx, esi
call fcn.004216f9
push 0x3e9
lea ecx, [esp + 8]
call fcn.00427d6e
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
sub eax, edx
push 0xffffffffffffffff
cdq
sub eax, edx
mov edx, dword [esp + 8]
sar eax, 1
sub eax, 0xa
mov ecx, esi
push eax
push 0
push edx
push 1
call fcn.004216f9
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042781b
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4179e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x457a68
cmp edx, dword [eax]
je 0x417a0b
add eax, 8
inc ecx
cmp eax, 0x457af8
jl 0x4179fc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x457a68]
jne 0x417b39
mov eax, dword [0x45cf80]
cmp eax, 1
je 0x417b13
test eax, eax
jne 0x417a3c
cmp dword [0x457574], 1
je 0x417b13
cmp edx, 0xfc
je 0x417b39
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417a73
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00419680
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413240
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417ab6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413240
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x456648
push edi
call fcn.004122b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00419680
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00419690
lea eax, [ebp - 0xa0]
push 0x44cfbc
push eax
call fcn.00419690
push dword [esi + 0x457a6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00419690
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041ab27
add esp, 0x2c
pop edi
jmp 0x417b39
lea eax, [ebp + 8]
lea esi, [esi + 0x457a6c]
push 0
push eax
push dword [esi]
call fcn.00413240
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 0x41f8d0
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.00411af0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41f99b
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 0x41f99b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41f94e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41f959
or bh, 8
and edi, 0x8000000
je 0x41f974
mov eax, dword [0x45e73c]
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 0x41f99b
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
Function at 0x41fd70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41fd9b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41fdbf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41fdda
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x423ea6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x423ede
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.00427c76
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00427c4e
jmp 0x423eea
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x425afe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x425b40
call fcn.0043d6ec
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x425b40
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x425b37
xor eax, eax
jmp 0x425b48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00425b4e
pop edi
pop esi
pop ebx
ret 4

Function at 0x426dcd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x426def
cmp dword [edi + 0x3c], 0
jne 0x426def
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0043d6ec
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00426e2e
pop edi
pop esi
pop ebx
ret 8

Function at 0x426e7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0043d6ec
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x426ead
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00426ec0
pop edi
pop esi
pop ebx
ret 8