joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4279f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46db90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
mov al, byte [ebp + 0x44]
lea esi, [ebp + 0x44]
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], al
call fcn.00404a20
mov ecx, dword [0x4717b8]
push ecx
push ebx
push esi
lea ecx, [esp + 0x2c]
call fcn.004044b0
mov edx, dword [0x4717b8]
lea ecx, [esp + 0x20]
push edx
push ebx
push ebp
mov dword [esp + 0x44], ebx
call fcn.00404310
mov edi, str..tmp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..tmp
lea ecx, [esp + 0x28]
call fcn.004043f0
mov al, byte [esi]
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call fcn.00404a20
mov ecx, dword [0x4717b8]
push ecx
push ebx
push esi
lea ecx, [esp + 0x1c]
call fcn.004044b0
mov edx, dword [0x4717b8]
lea ecx, [esp + 0x10]
push edx
push ebx
push ebp
mov byte [esp + 0x44], 1
call fcn.00404310
mov edi, 0x48abd8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x48abd8
lea ecx, [esp + 0x18]
call fcn.004043f0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x427ace
mov eax, 0x4717b4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
mov eax, dword [esp + 0x24]
mov ecx, 0x4717b4
cmp eax, ebx
je 0x427ae6
mov ecx, eax
mov eax, dword [ebp + 0x24]
cmp eax, ebx
jne 0x427af2
mov eax, 0x4717b4
push ecx
push eax
call fcn.0040d690
mov ecx, dword [ebp + 0x30]
add esp, 8
cmp eax, ecx
je 0x427b6e
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x427b10
mov eax, 0x4717b4
push eax
call esi
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call fcn.00404a20
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x427b59
mov al, byte [ecx - 1]
cmp al, bl
je 0x427b4f
cmp al, 0xff
je 0x427b4f
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
dec ecx
push ecx
call fcn.0045fe2d
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jne 0x427b7b
mov ecx, 0x4717b4
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x427b88
mov eax, 0x4717b4
push ecx
push eax
call fcn.0043e21f
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp ecx, ebx
je 0x427bb6
mov al, byte [ecx - 1]
cmp al, bl
je 0x427bac
cmp al, 0xff
je 0x427bac
dec al
mov byte [ecx - 1], al
jmp 0x427bb6
dec ecx
push ecx
call fcn.0045fe2d
add esp, 4
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x427be6
mov al, byte [ecx - 1]
cmp al, bl
je 0x427bdc
cmp al, 0xff
je 0x427bdc
dec al
mov byte [ecx - 1], al
jmp 0x427be6
dec ecx
push ecx
call fcn.0045fe2d
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x428700
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x46dc80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ecx + 0x14]
push ebx
mov dword [esp + 0xc], ecx
mov ebx, dword [eax]
cmp ebx, eax
mov dword [esp + 4], ebx
je 0x4288c8
push ebp
push esi
push edi
jmp 0x428737
mov ebx, dword [esp + 0x10]
add ebx, 8
xor ebp, ebp
push ebp
lea ecx, [esp + 0x20]
mov al, byte [ebx + 0x44]
lea esi, [ebx + 0x44]
mov byte [esp + 0x20], al
call fcn.00404a20
mov ecx, dword [0x4717b8]
push ecx
push ebp
push esi
lea ecx, [esp + 0x28]
call fcn.004044b0
mov edx, dword [0x4717b8]
lea ecx, [esp + 0x1c]
push edx
push ebp
push ebx
mov dword [esp + 0x40], ebp
call fcn.00404310
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x428785
mov eax, 0x4717b4
push eax
lea ecx, [esp + 0x18]
call fcn.00460131
mov edi, str..old
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
mov eax, dword [0x4717b8]
mov byte [esp + 0x34], 1
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x4287b9
call fcn.0044c49d
cmp esi, ebp
jbe 0x428802
mov ecx, dword [esp + 0x24]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x20]
push ebp
call fcn.00405bc0
test al, al
je 0x428800
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov esi, str..old
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebp
mov byte [eax + ebp], 0
xor ebp, ebp
mov eax, dword [esp + 0x20]
cmp eax, ebp
jne 0x42880f
mov eax, 0x4717b4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
call fcn.004279c0
test eax, eax
je 0x428866
mov ecx, ebx
call fcn.004279f0
test eax, eax
je 0x428866
mov ecx, ebx
call fcn.00427c00
push 0x50001
push 0x4898b4
push 0x48ac40
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x428866
mov ecx, dword [esp + 0x14]
push eax
push ebp
push str._SILENT
push ecx
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 0
call fcn.004600c3
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
cmp ecx, ebp
je 0x4288a0
mov al, byte [ecx - 1]
test al, al
je 0x428896
cmp al, 0xff
je 0x428896
dec al
mov byte [ecx - 1], al
jmp 0x4288a0
dec ecx
push ecx
call fcn.0045fe2d
add esp, 4
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov eax, dword [edx]
mov edx, dword [ecx + 0x14]
cmp eax, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], eax
jne 0x428733
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x429e10
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
xor edi, edi
not ecx
dec ecx
mov ebp, ecx
test ebp, ebp
jle 0x429e9b
mov dl, byte [edi + ebx]
cmp dl, 0x7f
jg case.default.0x429e52
cmp dl, 0x3d
je 0x429ea9
movsx ecx, dl
mov dl, byte [ecx + 0x475a6c]
cmp dl, 0xff
je case.default.0x429e52
cmp esi, 3
ja case.default.0x429e52
jmp dword [esi*4 + 0x429eb8]
shl dl, 2
mov byte [eax], dl
mov esi, 1
jmp case.default.0x429e52
mov cl, dl
mov esi, 2
shr cl, 4
or byte [eax], cl
inc eax
shl dl, 4
mov byte [eax], dl
jmp case.default.0x429e52
mov cl, dl
mov esi, 3
shr cl, 2
or byte [eax], cl
inc eax
shl dl, 6
mov byte [eax], dl
jmp case.default.0x429e52
mov cl, byte [eax]
or cl, dl
mov byte [eax], cl
inc eax
xor esi, esi
inc edi
cmp edi, ebp
jl 0x429e32
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov byte [eax], 0
pop ebp
sub eax, ecx
pop ebx
ret
mov edx, dword [esp + 0x18]
pop edi
sub eax, edx
pop esi
pop ebp
inc eax
pop ebx
ret
Function at 0x42af40
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push ecx
push 0x42af70
push 0
push 0
call fcn.0043c785
add esp, 0x1c
ret
Function at 0x42d810
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0xa0
mov eax, dword [str.IRNPF]
mov cx, word [0x48b04c]
push ebp
push esi
push edi
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x32]
rep stosd dword es:[edi], eax
push 0x490728
push str.UnInstallDriver
stosw word es:[edi], ax
call fcn.0042ddc0
add esp, 8
xor edi, edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x42d93b
push 0x490728
push str.Opened_the_SCM
call fcn.0042ddc0
add esp, 8
lea edx, [esp + 0x2c]
push 0xf01ff
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x42d93b
push 0x490728
push str.Opened_the_IRNPF_service_in_the_SCM
call fcn.0042ddc0
add esp, 8
lea eax, [esp + 0x10]
push eax
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push 0x490728
test edi, edi
jne 0x42d8cb
push str.Failed_to_stop_the_IRNPF_service
jmp 0x42d8d0
push str.IRNPF_service_stopped
call fcn.0042ddc0
add esp, 8
mov esi, 2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push 0x490728
jne 0x42d911
push str.Delete_IRNPF_service_failed
call fcn.0042ddc0
add esp, 8
xor edi, edi
push 0x3e8
call ebx
dec esi
test esi, esi
jg 0x42d8e4
jmp 0x42d91e
push str.Delete_IRNPF_service_success
call fcn.0042ddc0
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xa0
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0xa0
ret
Function at 0x42d950
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x208
mov eax, dword [str.IRNPF]
mov cx, word [0x48b04c]
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov ecx, 0x1e
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 5
mov esi, str.IResearch_IRNPF_Driver
lea edi, [esp + 0x90]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x1a
lea edi, [esp + 0xa7]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x110]
mov byte [esp + 0xc], 0
push edx
xor ebp, ebp
stosb byte es:[edi], al
call fcn.00430d50
lea eax, [esp + 0x114]
push eax
call fcn.00430c60
push 0x490728
push str.InstallDriver
call fcn.0042ddc0
add esp, 0x10
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x42d9f4
pop edi
pop esi
pop ebp
add esp, 0x208
ret
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x120]
push 0
push ecx
push 1
push 2
push 1
lea edx, [esp + 0xb4]
push 0xf01ff
lea eax, [esp + 0x38]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x42da86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0x431
jne 0x42dad8
push 0x490728
push str.Service_IRNPF.sys_already_exists
call fcn.0042ddc0
add esp, 8
xor ebp, ebp
mov byte [esp + 0xc], 1
push str.WINPCAPSUCC3.exe
call fcn.0040f340
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x208
ret
push 0x490728
push str.Created_service_for_IRNPF.sys
call fcn.0042ddc0
add esp, 8
mov byte [esp + 0xc], 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x42dac2
push str.IRNPAPFAIL4.exe
call fcn.0040f340
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42da58
push str.WINPCAPSUCC2.exe
call fcn.0040f340
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42da58
push str.IRNPAPFAIL3.exe
call fcn.0040f340
push 0x490728
push str.InstallDriver_failed
call fcn.0042ddc0
add esp, 0xc
jmp 0x42da65
Function at 0x42ffa0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x43002e
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x128
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x43002e
mov edi, dword [esp + 0x134]
cmp dword [esp + 0x10], edi
je 0x430001
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42ffe3
pop edi
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x128
ret
Function at 0x4308a0
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
sub esp, 0x248
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov ebp, dword [esp + 0x258]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp], 0
mov eax, dword [0x4907dc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x114]
push ecx
push str.ProData.dat
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x430a09
mov al, byte [esp + 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test al, 0x10
jne 0x430967
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x14c]
push 0x104
push eax
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x430942
lea ecx, [esp + 0x14]
push ebp
push ecx
call fcn.00448080
add esp, 8
test eax, eax
jle 0x430967
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4309f2
test byte [esp + 0x118], 0x10
jne 0x4309df
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x14c]
push 0x104
push edx
call ebx
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4309ba
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00448080
add esp, 8
test eax, eax
jle 0x4309df
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x43097a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x248
ret
Function at 0x430c60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46e800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x48b574]
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp + 0x18], 0
mov dword [esp], eax
lea eax, [esp + 0xc]
mov byte [esp + 0x18], 1
push eax
push 1
push 0
push str.SYSTEMCurrentControlSet_servicesIRNPF
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x430d1e
push esi
push 0x104
call fcn.0045fe04
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
push 0
push 0
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x430d14
push edi
push esi
lea ecx, [esp + 0xc]
call fcn.0046024c
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push edi
call fcn.0046024c
push 0
push edi
lea ecx, [esp + 0x10]
call fcn.0045e447
test eax, eax
pop edi
jge 0x430d14
call fcn.0042d810
push esi
call fcn.0045fe2d
add esp, 4
pop esi
lea ecx, [esp]
mov byte [esp + 0x18], 0
call fcn.004600c3
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004600c3
mov ecx, dword [esp + 0x10]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x430d50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [esp + 0x114]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ax, word [esp + 0xc]
mov ecx, edx
mov edi, str.iResearchCommon_npf.sys
mov word [ecx], ax
mov al, byte [esp + 0xe]
mov byte [ecx + 2], al
or ecx, 0xffffffff
xor eax, eax
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]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x431b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e893
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0044dfa1
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.0044c3ec
mov edi, dword [0x4932b0]
lea ecx, [esp + 8]
call fcn.0044c3ec
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x431bac
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.0044c488
lea ecx, [esp + 0xc]
call fcn.0044c488
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.00417b20
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x475bbc
jne 0x431c1a
mov eax, 4
test cl, 2
jne 0x431c21
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x43e4fa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43e51a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00440986
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43e53d
test byte [esp + 8], 2
je 0x43e53d
call fcn.004409f9
mov dword [eax], 0xd
call fcn.00440a02
mov dword [eax], 5
jmp 0x43e516
xor eax, eax
ret
Function at 0x45d4c0
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.0043d430
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45d58b
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 0x45d58b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45d53e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45d549
or bh, 8
and edi, 0x8000000
je 0x45d564
mov eax, dword [0x49483c]
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 0x45d58b
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 0x45d960
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 0x45d98b
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 0x45d9af
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 0x45d9ca
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