joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100327ab
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 0x1003297f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10089e00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1003297f
test cl, 0x48
je 0x10032816
cmp byte [eax + 5], 0xa
je 0x10032816
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 0x10032868
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10032850
call fcn.1002a111
mov dword [eax], 9
call fcn.1002a11a
mov dword [eax], esi
jmp 0x10032860
cmp eax, 0x6d
je 0x1003297f
push eax
call fcn.1002a123
pop ecx
or eax, 0xffffffff
jmp 0x10032981
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1003297a
test eax, eax
je 0x1003288f
cmp byte [ebx], 0xa
jne 0x1003288f
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x10032898
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 0x10032974
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x10032964
cmp al, 0xd
je 0x100328ca
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x10032956
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100328e4
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100328df
add dword [ebp + 0x10], 2
jmp 0x10032938
mov dword [ebp + 0x10], eax
jmp 0x10032952
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 0x1003290c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10032952
cmp dword [ebp - 0xc], 0
je 0x10032952
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1003292d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10032938
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x10032955
cmp ebx, dword [ebp + 0xc]
jne 0x1003293d
cmp byte [ebp - 1], 0xa
jne 0x1003293d
mov byte [ebx], 0xa
jmp 0x10032955
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10032a31
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x10032956
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x100328ae
jmp 0x10032974
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x10032974
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 0x10032981
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003361c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10089af0], ebx
push esi
push edi
jne 0x1003369c
push 0x10068f70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100336d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006b704
push edi
call esi
test eax, eax
mov dword [0x10089af0], eax
je 0x100336d7
push 0x1006b6f4
push edi
call esi
push 0x1006b6e0
push edi
mov dword [0x10089af4], eax
call esi
cmp dword [0x10089770], 2
mov dword [0x10089af8], eax
jne 0x1003369c
push 0x1006b6c4
push edi
call esi
test eax, eax
mov dword [0x10089b00], eax
je 0x1003369c
push 0x1006b6ac
push edi
call esi
mov dword [0x10089afc], eax
mov eax, dword [0x10089afc]
test eax, eax
je 0x100336e1
call eax
test eax, eax
je 0x100336c8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10089b00]
test eax, eax
je 0x100336c8
test byte [ebp - 8], 1
jne 0x100336e1
cmp dword [0x1008977c], 4
jb 0x100336db
or byte [ebp + 0x12], 0x20
jmp 0x10033700
xor eax, eax
jmp 0x10033710
or byte [ebp + 0x12], 4
jmp 0x10033700
mov eax, dword [0x10089af4]
test eax, eax
je 0x10033700
call eax
mov ebx, eax
test ebx, ebx
je 0x10033700
mov eax, dword [0x10089af8]
test eax, eax
je 0x10033700
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10089af0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100361ca
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10027aa0
mov eax, dword [0x10084ca0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.10032a31
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x100362fd
push 2
push esi
push dword [ebp + 8]
call fcn.10032a31
add esp, 0xc
cmp eax, ebx
je 0x100362fd
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1003629d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1002a1a0
push 0x8000
push dword [ebp + 8]
call fcn.10036e56
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x10036253
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.10030221
add esp, 0xc
cmp eax, 0xffffffff
je 0x10036273
sub edi, eax
test edi, edi
jg 0x1003624b
jmp 0x1003628b
call fcn.1002a11a
cmp dword [eax], 5
jne 0x10036288
call fcn.1002a111
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.10036e56
pop ecx
pop ecx
jmp 0x100362e5
jge 0x100362e5
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10032a31
push dword [ebp + 8]
call fcn.1002ae22
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x100362e5
call fcn.1002a111
mov dword [eax], 0xd
call fcn.1002a11a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.10032a31
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100362ff
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10027973
leave
ret
Function at 0x10036759
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 0x10036772
or eax, 0xffffffff
jmp 0x100367d3
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100367cf
push 0x3d
push esi
call fcn.10028a82
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x100367cf
cmp esi, eax
je 0x100367cf
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x10089790]
sete cl
cmp eax, dword [0x10089794]
mov dword [ebp - 8], ecx
jne 0x100367b5
mov edi, eax
call fcn.100366f8
mov dword [0x10089790], eax
cmp eax, ebx
jne 0x1003680e
cmp dword [ebp + 0xc], ebx
je 0x100367d7
cmp dword [0x10089798], ebx
je 0x100367d7
call fcn.100354d4
test eax, eax
je 0x1003680e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x100367e0
xor eax, eax
jmp 0x100367d2
push 4
call fcn.10027d76
cmp eax, ebx
pop ecx
mov dword [0x10089790], eax
je 0x100367cf
mov dword [eax], ebx
cmp dword [0x10089798], ebx
jne 0x1003680e
push 4
call fcn.10027d76
cmp eax, ebx
pop ecx
mov dword [0x10089798], eax
je 0x100367cf
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x10089790]
call fcn.100366ab
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1003686f
cmp dword [esi], ebx
je 0x1003686f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.10027d88
cmp dword [ebp - 8], ebx
pop ecx
jne 0x10036852
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x100368b0
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x10036849
mov eax, edi
shl eax, 2
push eax
push dword [0x10089790]
call fcn.100298c4
cmp eax, ebx
pop ecx
pop ecx
je 0x100368b0
jmp 0x100368ab
cmp dword [ebp - 8], ebx
jne 0x1003691b
cmp edi, ebx
jge 0x1003687e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x10089790]
call fcn.100298c4
cmp eax, ebx
pop ecx
pop ecx
je 0x100367cf
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 [0x10089790], eax
cmp dword [ebp + 0xc], ebx
je 0x10036905
push dword [ebp - 4]
call fcn.1002a050
inc eax
inc eax
push eax
call fcn.10027d76
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x10036905
push dword [ebp - 4]
push esi
call fcn.10030ad0
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 0x100368fe
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.10027d88
pop ecx
cmp dword [ebp - 8], ebx
je 0x10036913
push dword [ebp - 4]
call fcn.10027d88
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x100367d2
push dword [ebp - 4]
call fcn.10027d88
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x100367dc
Function at 0x10036be6
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1006c6e0
call fcn.1002a5e0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x10089b7c], edi
jne 0x10036c2a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10036c15
mov dword [0x10089b7c], ebx
jmp 0x10036c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10036c2a
mov dword [0x10089b7c], 2
mov eax, dword [0x10089b7c]
cmp eax, ebx
jne 0x10036c4a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x10036d0d
cmp eax, 2
je 0x10036c53
cmp eax, edi
jne 0x10036c7b
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x10036c66
mov eax, dword [0x100899cc]
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 0x10036c82
xor eax, eax
jmp 0x10036d0d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10027aa0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10036cb5
cmp esi, edi
jne 0x10036ccb
push dword [ebp - 0x20]
call fcn.10027d76
pop ecx
mov esi, eax
cmp esi, edi
je 0x10036c7b
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 0x10036cfe
cmp dword [ebp + 0x14], edi
jne 0x10036ce8
push edi
push edi
jmp 0x10036cee
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 0x10036d0a
push esi
call fcn.10027d88
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.1002a61b
ret
Function at 0x10036d16
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1006c6f0
call fcn.1002a5e0
xor esi, esi
cmp dword [0x10089b80], esi
jne 0x10036d5a
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10036d45
mov dword [0x10089b80], edi
jmp 0x10036d5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10036d5a
mov dword [0x10089b80], 2
mov eax, dword [0x10089b80]
cmp eax, 2
je 0x10036e3b
cmp eax, esi
je 0x10036e3b
cmp eax, 1
jne 0x10036d9f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10036d88
mov eax, dword [0x100899cc]
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 0x10036da6
xor eax, eax
jmp 0x10036e4d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10027aa0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x10036ddc
cmp edi, esi
jne 0x10036df7
lea eax, [ebx + ebx]
push eax
call fcn.10027d76
pop ecx
mov edi, eax
cmp edi, esi
je 0x10036d9f
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 0x10036e2a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x10036e14
push esi
push esi
jmp 0x10036e1a
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 0x10036e36
push edi
call fcn.10027d88
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x10036e4d
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.1002a61b
ret

Function at 0x10036f3f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x10084ca0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10036f0f
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1002a1a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x10036fa1
cmp dword [ebp - 0x1c], 5
jb 0x10036fb9
jmp 0x10036fb5
cmp dword [ebp - 0x10], 1
jne 0x10036fb9
cmp dword [ebp - 0x1c], 4
ja 0x10036fb5
jne 0x10036fb9
cmp dword [ebp - 0x18], 0
jbe 0x10036fb9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x1006cff0
call fcn.100019b0
test eax, eax
jge 0x10036fda
mov byte [0x10085e64], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10027973
add ebp, 0x78
leave
ret
Function at 0x1003b05d
Capabilities:
Get disk information

Disassembly:
mov eax, 0x10050cb0
call fcn.1002a0dc
sub esp, 0x150
mov eax, dword [0x10084ca0]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x1003b0a5
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x1003b0a9
cmp eax, esi
jb 0x1003b0b0
xor eax, eax
jmp 0x1003b185
call fcn.1003a62b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.1003b01b
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x1003b175
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x1003b104
xor esi, esi
jmp 0x1003b178
test byte [ebp - 0x158], 2
jne 0x1003b114
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x1003b175
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1003b175
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x1003b100
cmp dword [ebp - 0x154], edi
jbe 0x1003b100
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x1003b100
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001020
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.10027973
leave
ret 8

Function at 0x1003dbb5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x1003dbee
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.1001bccc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10009ef0
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x1003ef03
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 0x1003ef46
call fcn.1004aad5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1003ef46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003ef61
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1003e068
test ebx, ebx
mov esi, eax
je 0x1003ef5f
test edi, edi
je 0x1003ef5f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1003f8ae
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x10050dd7
call fcn.1002a0dc
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x1003f8d3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1003f91f
call fcn.1003a62b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001020
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x100402af
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 0x100402e6
call fcn.1004aad5
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 0x100402f7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x10040330
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x10040315
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x1004031d
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x1004032e
test ax, ax
jne 0x1004032e
test si, si
je 0x10040330
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x1004033f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x10040591
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10050ede
call fcn.1002a0dc
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.1004aad5
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x100405df
call fcn.1004aad5
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 0x100405f0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x100405fc
or eax, 0xffffffff
jmp 0x100406ff
mov ecx, esi
call fcn.100400d1
mov dword [ebp - 0x14], eax
call fcn.1003ced3
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x1004063f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x1004063f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1004063f
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.1003e597
push dword [ebp - 0x14]
call fcn.1003ce2b
push edi
push eax
push ebx
mov ecx, esi
call fcn.10040384
xor ebx, ebx
cmp eax, ebx
je 0x100406b3
test byte [esi + 0x38], 0x10
je 0x10040681
push 4
pop edi
mov ecx, esi
call fcn.1003f1dc
test ah, 1
je 0x10040679
push 5
pop edi
push edi
mov ecx, esi
call fcn.1003c8cf
cmp dword [esi + 0x1c], ebx
je 0x100406b3
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.1003f44d
jmp 0x100406b3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x100406c7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x100406e0
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x100406e0
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.1004010b
cmp dword [esi + 0x54], ebx
je 0x100406fc
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 0x10040739
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.1004aad5
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 0x10040770
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.10040384
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8