joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420123
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4202f7
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x455620]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4202f7
test cl, 0x48
je 0x42018e
cmp byte [eax + 5], 0xa
je 0x42018e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4201e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4201c8
call fcn.00411f6f
mov dword [eax], 9
call fcn.00411f7d
mov dword [eax], esi
jmp 0x4201d8
cmp eax, 0x6d
je 0x4202f7
push eax
call fcn.00411f8b
pop ecx
or eax, 0xffffffff
jmp 0x4202f9
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4202f2
test eax, eax
je 0x420207
cmp byte [ebx], 0xa
jne 0x420207
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x420210
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4202ec
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4202dc
cmp al, 0xd
je 0x420242
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4202ce
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42025c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x420257
add dword [ebp + 0x10], 2
jmp 0x4202b0
mov dword [ebp + 0x10], eax
jmp 0x4202ca
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420284
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4202ca
cmp dword [ebp - 0xc], 0
je 0x4202ca
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4202a5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4202b0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4202cd
cmp ebx, dword [ebp + 0xc]
jne 0x4202b5
cmp byte [ebp - 1], 0xa
jne 0x4202b5
mov byte [ebx], 0xa
jmp 0x4202cd
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d4df
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4202ce
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x420226
jmp 0x4202ec
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4202ec
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4202f9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4203b3
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x447048
call fcn.00411bf8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x45431c], edi
jne 0x4203f7
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4203e2
mov dword [0x45431c], ebx
jmp 0x4203f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4203f7
mov dword [0x45431c], 2
mov eax, dword [0x45431c]
cmp eax, ebx
jne 0x420417
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4204da
cmp eax, 2
je 0x420420
cmp eax, edi
jne 0x420448
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x420433
mov eax, dword [0x454288]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x42044f
xor eax, eax
jmp 0x4204da
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0040fe10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x420482
cmp esi, edi
jne 0x420498
push dword [ebp - 0x20]
call fcn.0040fa8f
pop ecx
mov esi, eax
cmp esi, edi
je 0x420448
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4204cb
cmp dword [ebp + 0x14], edi
jne 0x4204b5
push edi
push edi
jmp 0x4204bb
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4204d7
push esi
call fcn.0040faa6
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00411c33
ret
Function at 0x4204e8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x447058
call fcn.00411bf8
xor esi, esi
cmp dword [0x454320], esi
jne 0x42052c
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420517
mov dword [0x454320], edi
jmp 0x42052c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x42052c
mov dword [0x454320], 2
mov eax, dword [0x454320]
cmp eax, 2
je 0x42060d
cmp eax, esi
je 0x42060d
cmp eax, 1
jne 0x420571
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x42055a
mov eax, dword [0x454288]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x420578
xor eax, eax
jmp 0x42061f
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0040fe10
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4205ae
cmp edi, esi
jne 0x4205c9
lea eax, [ebx + ebx]
push eax
call fcn.0040fa8f
pop ecx
mov edi, eax
cmp edi, esi
je 0x420571
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4205fc
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4205e6
push esi
push esi
jmp 0x4205ec
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x420608
push edi
call fcn.0040faa6
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x42061f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00411c33
ret
Function at 0x420f28
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x420f41
or eax, 0xffffffff
jmp 0x420fa2
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x420f9e
push 0x3d
push esi
call fcn.00411914
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x420f9e
cmp esi, eax
je 0x420f9e
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x453e8c]
sete cl
cmp eax, dword [0x453e90]
mov dword [ebp - 8], ecx
jne 0x420f84
mov edi, eax
call fcn.00420ec2
mov dword [0x453e8c], eax
cmp eax, ebx
jne 0x420fdd
cmp dword [ebp + 0xc], ebx
je 0x420fa6
cmp dword [0x453e94], ebx
je 0x420fa6
call fcn.0042008e
test eax, eax
je 0x420fdd
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x420faf
xor eax, eax
jmp 0x420fa1
push 4
call fcn.0040fa8f
cmp eax, ebx
pop ecx
mov dword [0x453e8c], eax
je 0x420f9e
mov dword [eax], ebx
cmp dword [0x453e94], ebx
jne 0x420fdd
push 4
call fcn.0040fa8f
cmp eax, ebx
pop ecx
mov dword [0x453e94], eax
je 0x420f9e
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x453e8c]
call fcn.00420e70
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x42103e
cmp dword [esi], ebx
je 0x42103e
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040faa6
cmp dword [ebp - 8], ebx
pop ecx
jne 0x421021
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x42107f
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x421018
mov eax, edi
shl eax, 2
push eax
push dword [0x453e8c]
call fcn.00411994
cmp eax, ebx
pop ecx
pop ecx
je 0x42107f
jmp 0x42107a
cmp dword [ebp - 8], ebx
jne 0x4210ea
cmp edi, ebx
jge 0x42104d
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x453e8c]
call fcn.00411994
cmp eax, ebx
pop ecx
pop ecx
je 0x420f9e
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x453e8c], eax
cmp dword [ebp + 0xc], ebx
je 0x4210d4
push dword [ebp - 4]
call fcn.004116b0
inc eax
inc eax
push eax
call fcn.0040fa8f
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4210d4
push dword [ebp - 4]
push esi
call fcn.00416b60
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4210cd
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040faa6
pop ecx
cmp dword [ebp - 8], ebx
je 0x4210e2
push dword [ebp - 4]
call fcn.0040faa6
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x420fa1
push dword [ebp - 4]
call fcn.0040faa6
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x420fab
Function at 0x42929a
Capabilities:
Get disk information

Disassembly:
mov eax, 0x43f6b1
call fcn.00411740
sub esp, 0x154
mov eax, dword [0x450be0]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x158]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x4292df
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x4292e3
cmp eax, esi
jb 0x4292ea
xor eax, eax
jmp 0x4293ce
call fcn.00428366
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x154], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x154]
push eax
push edi
call fcn.00429253
push dword [ebp - 0x154]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x4293bb
push eax
push eax
lea ecx, [ebp - 0x15c]
push ecx
lea ecx, [ebp - 0x160]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x42934b
xor esi, esi
jmp 0x4293be
test byte [ebp - 0x15c], 2
jne 0x42935b
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x15c], 4
jne 0x4293bb
lea eax, [ebp - 0x150]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4293bb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x158], 0
je 0x429347
cmp dword [ebp - 0x158], edi
jbe 0x429347
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x158]
cmp eax, esi
jge 0x429347
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x154]
add ecx, 0xfffffff0
call fcn.004015b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0040fe88
leave
ret 8
Function at 0x42a30d
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00411b90
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x442b08]
je 0x42a45b
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42a37d
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x42a384
cmp ebx, ebx
jne 0x42a384
xor eax, eax
jmp 0x42a45e
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x42a391
mov byte [esi + 0x20], bl
jmp 0x42a3a5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.0040d3c2
test eax, eax
je 0x42a3cc
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d4de
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x42a3d1
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040d3c2
test eax, eax
je 0x42a3f9
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d4de
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x42a403
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.0040d3c2
test eax, eax
je 0x42a42b
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040d4de
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x42a435
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x42a447
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x42a45b
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42af6d
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.00411b90
add esp, 0xc
call fcn.00439f22
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x42b03d
cmp dword [ebp - 8], ebx
je 0x42b038
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x42ae3a
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004126b9
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x42b047
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x42b010
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x42b02a
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x42b042
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x42b049
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x42b047
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42ebb8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42ebf1
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.0040956e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402d00
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x430096
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4300d9
call fcn.00439f6c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4300d9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4300f4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042f1ba
test ebx, ebx
mov esi, eax
je 0x4300f2
test edi, edi
je 0x4300f2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x43250c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x432543
call fcn.00439f6c
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x432554
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x43258d
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x432572
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x43257a
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x43258b
test ax, ax
jne 0x43258b
test si, si
je 0x43258d
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x43259c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x43280b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4404c4
call fcn.00411740
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00439f6c
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x43284b
call fcn.00439f6c
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43285c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x432868
or eax, 0xffffffff
jmp 0x43296b
mov ecx, esi
call fcn.00432310
mov dword [ebp - 0x14], eax
call fcn.0042dba3
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4328ab
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4328ab
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4328ab
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.0042f707
push dword [ebp - 0x14]
call fcn.0042dae7
push edi
push eax
push ebx
mov ecx, esi
call fcn.004325eb
xor ebx, ebx
cmp eax, ebx
je 0x43291f
test byte [esi + 0x38], 0x10
je 0x4328ed
push 4
pop edi
mov ecx, esi
call fcn.0042b37d
test ah, 1
je 0x4328e5
push 5
pop edi
push edi
mov ecx, esi
call fcn.0042d568
cmp dword [esi + 0x1c], ebx
je 0x43291f
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0042b718
jmp 0x43291f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x432933
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x43294c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x43294c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0043234f
cmp dword [esi + 0x54], ebx
je 0x432968
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x433e39
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x450be0]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x433e8a
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x433e8a
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x433e92
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0040fe88
leave
ret 8