joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413df0
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0x48]
push eax
mov edi, ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
push str.Agent_ld
lea ecx, [ebp - 0x44]
push 0x40
push ecx
call fcn.00523a87
add esp, 0x10
test byte [ebp - 0x48], 4
push 0
push 0
push 0
jne 0x413e3e
push 4
lea edx, [ebp - 0x44]
push edx
jmp 0x413e44
push 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x413e78
push ebx
mov edx, edi
mov ecx, esi
call fcn.00413c40
add esp, 4
push esi
mov edi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 4
pop esi
call fcn.00521a0b
mov esp, ebp
pop ebp
ret

Function at 0x413e90
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x210]
push edx
push 0x596958
push 1
push 0
push 0x596d58
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x413ee9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push edi
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
push 0
push ebx
push eax
call edx
mov eax, dword [ebp - 0x210]
mov edx, dword [ebp - 0x218]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
lea edx, [ebp - 0x214]
push edx
push 0x596db8
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x413ed9
mov edx, dword [ebp - 0x21c]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push 2
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
Function at 0x413fc0
Capabilities:
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569ab3
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 4], 0
push SysReAllocString
mov dword [ebp - 0x120], 0x400
mov dword [ebp - 0x124], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41405c
lea ecx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x11c]
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x124]
push eax
push 0
push str.Startup
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x414076
push 0x80004005
call fcn.00403230
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x118]
push str._s_s
push eax
call fcn.00403300
mov esi, dword [ebp - 0x118]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4140d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4140fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
Function at 0x4143e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569ccb
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x599330
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0
call fcn.00401f10
push 0x9c
lea eax, [ebp - 0xac]
push 0
push eax
mov dword [ebp - 4], 0
call fcn.00524a80
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xac]
push ecx
mov dword [ebp - 0xac], 0x9c
call esi
test eax, eax
jne 0x41447b
lea edx, [ebp - 0xac]
push edx
mov dword [ebp - 0xac], 0x94
call esi
test eax, eax
je 0x4145c3
mov eax, dword [ebp - 0x9c]
sub eax, 0
je 0x4145b1
dec eax
mov esi, 4
je 0x414516
dec eax
jne 0x4145c3
cmp dword [ebp - 0xa8], esi
ja 0x4144b5
push 0x59a32c
lea ecx, [ebp - 0xb0]
call fcn.00402f30
cmp dword [ebp - 0xa8], 5
jne 0x414504
cmp dword [ebp - 0xa4], 0
jne 0x4144e0
push str._2000
lea ecx, [ebp - 0xb0]
call fcn.00402f30
cmp dword [ebp - 0xa8], 5
jne 0x414504
cmp dword [ebp - 0xa4], 1
jb 0x4145c3
push 0x59a338
lea ecx, [ebp - 0xb0]
call fcn.00402f30
cmp dword [ebp - 0xa8], 5
jbe 0x414516
push 0x59a024
lea ecx, [ebp - 0xb0]
call fcn.00402f30
cmp dword [ebp - 0xa8], esi
jne 0x4145c3
cmp dword [ebp - 0xa4], 0
jne 0x41455c
push 0x59a33c
lea ecx, [ebp - 0xb0]
call fcn.00402f30
cmp byte [ebp - 0x97], 0x43
jne 0x414554
push str.OSR2
lea ecx, [ebp - 0xb0]
call fcn.00402160
cmp dword [ebp - 0xa8], esi
jne 0x4145c3
cmp dword [ebp - 0xa4], 0xa
jne 0x414596
push 0x59a348
lea ecx, [ebp - 0xb0]
call fcn.00402f30
cmp byte [ebp - 0x97], 0x41
jne 0x41458e
push 0x59a34c
lea ecx, [ebp - 0xb0]
call fcn.00402160
cmp dword [ebp - 0xa8], esi
jne 0x4145c3
cmp dword [ebp - 0xa4], 0x5a
jne 0x4145c3
push 0x59a350
lea ecx, [ebp - 0xb0]
call fcn.00402f30
jmp 0x4145c3
push 3
push 0x59a354
lea ecx, [ebp - 0xb0]
call fcn.00402e50
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
push eax
call fcn.00402d80
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb0]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414603
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
Function at 0x414620
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x414669
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x414679
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4146c7
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
Function at 0x419690
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a91c
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x11c], esp
push str.SetupBox.exe
call fcn.00401f10
lea eax, [ebp - 0x11c]
push eax
call fcn.00411890
add esp, 8
mov dword [ebp - 4], 0
cmp dword [0x5ca050], 0
jne 0x41971a
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 0x11c]
push 0
push edx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x419774
push ecx
mov ecx, esp
mov dword [ebp - 0x120], esp
push str.SetupBox.exe
call fcn.00401f10
lea ecx, [ebp - 0x120]
push ecx
call fcn.00411a60
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
add esp, 8
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x120]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
push str._Boot
call fcn.00401f10
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x12c], esp
push 0x59a9e0
call fcn.00401f10
mov byte [ebp - 4], 2
mov eax, dword [0x5ca190]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x128], esp
mov esi, esp
push eax
call fcn.00402d80
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ecx - 8]
mov eax, 1
sub eax, dword [ecx - 4]
or edx, eax
jge 0x4197ed
push 0
lea ecx, [ebp - 0x11c]
call fcn.00403190
mov ecx, dword [ebp - 0x11c]
mov byte [ebp - 4], 0
call fcn.00414120
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax - 8]
add esp, 0xc
push ecx
push eax
call fcn.005221ba
add esp, 8
test eax, eax
js 0x41986b
mov ecx, dword [ebp - 0x11c]
cmp eax, dword [ecx - 8]
jg 0x41986b
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x11c]
mov byte [eax + ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403230
int3
Function at 0x4232b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb50
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 4], 0
push ebx
push esi
mov ebx, ecx
jne 0x4232df
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x4232e6
lea ebx, [edi + 8]
push ebx
call fcn.004234c0
add esp, 4
test al, al
je 0x4232cd
lea esi, [ebp - 0xb48]
mov ecx, edi
call fcn.004231a0
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
lea ecx, [ebp - 0xb48]
cmp byte [eax + ecx - 1], 0x5c
jne 0x42332a
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x110]
cmp byte [eax + ecx - 1], 0x5c
je 0x42335e
push 0x59978c
mov edx, ecx
push edx
call esi
lea eax, [ebp - 0xb48]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
lea eax, [ebp - 0x110]
call fcn.00423550
test al, al
je 0x4232cd
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4232cd
mov eax, dword [edi + 4]
push eax
call fcn.005549b0
test eax, eax
jne 0x4232cd
lea esp, [esp]
mov edx, dword [edi + 4]
push 0x800
lea ecx, [ebp - 0x910]
push ecx
push edx
call fcn.00554320
mov esi, eax
test esi, esi
jle 0x42340c
push 0
lea eax, [ebp - 0xb4c]
push eax
push esi
lea ecx, [ebp - 0x910]
push ecx
push ebx
mov dword [ebp - 0xb4c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423409
cmp dword [ebp - 0xb4c], esi
je 0x4233c0
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 4]
push edx
call fcn.00554520
test esi, esi
jne 0x423431
mov ecx, dword [ebp - 0x930]
lea eax, [ebp - 0x110]
call fcn.00423590
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.00521a0b
mov esp, ebp
pop ebp
ret

Function at 0x4234c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x423540
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x423540
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4234ee
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete al
pop edi
pop ebp
ret
push esi
push edi
call fcn.0052454e
mov esi, eax
push 0x5c
push esi
call fcn.005241a0
add esp, 0xc
test eax, eax
je 0x42353a
push esi
mov byte [eax], 0
call fcn.004234c0
add esp, 4
push esi
test al, al
jne 0x423525
call fcn.00521f90
add esp, 4
pop esi
xor al, al
pop edi
pop ebp
ret
call fcn.00521f90
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42351f
pop esi
mov al, 1
pop edi
pop ebp
ret
xor al, al
pop edi
pop ebp
ret
Function at 0x423590
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x4235c0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x423626
lea ecx, [ebp - 0x10]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x423626
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x423626
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4236b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb1c
mov eax, dword [0x5bfc00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 4], 0
push edi
mov edi, ecx
jne 0x4236dd
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
push 0x59b984
push edi
call fcn.005245c0
add esp, 8
cmp eax, edi
je 0x4236cc
push ebx
push 0x3a
push edi
call fcn.00524660
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 8
test eax, eax
push edi
lea eax, [ebp - 0x20c]
push eax
setne byte [ebp - 0xb11]
call ebx
lea ecx, [ebp - 0x20c]
push 0x3a
push ecx
call fcn.00524660
add esp, 8
test eax, eax
jne 0x423757
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x310]
push eax
call ebx
push 0
lea ecx, [ebp - 0x310]
push ecx
lea edx, [esi + 8]
push edx
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005245a0
add esp, 0x14
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov byte [ebp - 0x108], 0
call fcn.00524a80
add esp, 0xc
cmp byte [ebp - 0xb11], 0
je 0x4237af
lea ebx, [esi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
push edi
call fcn.00524800
add esp, 0xc
test eax, eax
jne 0x4237fb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, edi
push eax
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4237d8
push 0x59b988
push edi
call fcn.005245c0
add esp, 8
cmp eax, edi
jne 0x4237ce
add edi, 2
push edi
lea eax, [ebp - 0x108]
push eax
jmp 0x4237d6
push edi
lea ecx, [ebp - 0x108]
push ecx
call ebx
push 0
push 1
push 3
push 0
push 0
push SysReAllocString
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42380d
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 8
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00555660
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x42389a
inc dword [esi + 0x110]
mov dword [ebp - 0xb1c], eax
mov dword [ebp - 0xb18], eax
push 0
lea edx, [ebp - 0xb1c]
push edx
push 0x800
lea eax, [ebp - 0xb10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42388e
mov eax, dword [ebp - 0xb1c]
add dword [ebp - 0xb18], eax
test eax, eax
je 0x42388e
mov edx, dword [esi + 4]
push eax
lea ecx, [ebp - 0xb10]
push ecx
push edx
call fcn.00554c80
mov edi, eax
test edi, edi
je 0x423847
mov eax, dword [ebp - 0xb18]
add dword [esi + 0x118], eax
mov ecx, dword [esi + 4]
push ecx
call fcn.00554fc0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
sete al
pop ebx
xor ecx, ebp
pop edi
call fcn.00521a0b
mov esp, ebp
pop ebp
ret
Function at 0x42fbfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42fc43
call fcn.00428cc8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42fc43
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42fc5f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042f701
mov esi, eax
test edi, edi
je 0x42fc5d
test ebx, ebx
je 0x42fc5d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4315a1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x560676
call fcn.00524ede
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4315c6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x431618
call fcn.004261e2
push eax
lea ecx, [ebp - 0x10]
call fcn.00403020
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005251df
push eax
call fcn.00402210
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004030a0
mov eax, esi
call fcn.00524fb6
ret 8

Function at 0x434bcf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00428cc8
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x434c08
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00434811
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x434c66
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x434c8a
cmp dword [edi + 0x74], 0
jne 0x434c8a
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00428cc8
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
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00434c27
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8