joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011ec1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1001c580]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1001c4e0]
je 0x10011ef6
inc eax
cmp eax, 0x13
jb 0x10011ee7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1001c4e0]
jne 0x1001201c
mov eax, dword [0x1001cb9c]
cmp eax, 1
je 0x10011ff4
cmp eax, edx
jne 0x10011f26
cmp dword [0x1001cba0], 1
je 0x10011ff4
cmp ecx, 0xfc
je 0x1001201c
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10011f5c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100116d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100123f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10011f90
mov eax, edi
push eax
call fcn.100123f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10015eb8
push edi
call fcn.1000e380
add esp, 0x10
push edi
call fcn.100123f0
push dword [esi + 0x1001c4e4]
mov ebx, eax
call fcn.100123f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1000ecd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100116d0
push edi
push ebx
call fcn.100116e0
push 0x10015e98
push ebx
call fcn.100116e0
push dword [esi + 0x1001c4e4]
push ebx
call fcn.100116e0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10013c87
add esp, 0x2c
jmp 0x1001201c
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1001c4e4]
push dword [esi]
call fcn.100123f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10012512
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1001314f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000ecd0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100131ea
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1001cb24]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100131ea
cmp eax, 1
je 0x1001320b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100131ea
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100131b7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100131e6
xor eax, eax
inc eax
jmp 0x1001322a
cmp edi, eax
jae 0x100131ee
xor eax, eax
jmp 0x1001322a
cmp eax, esi
jae 0x100131f5
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1001cb24]
jmp 0x1001320e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013c87
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001cd7c], ebx
push esi
push edi
jne 0x10013d07
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10013d42
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1001cd7c], eax
je 0x10013d42
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1001cd80], eax
call esi
cmp dword [0x1001cb24], 2
mov dword [0x1001cd84], eax
jne 0x10013d07
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001cd8c], eax
je 0x10013d07
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1001cd88], eax
mov eax, dword [0x1001cd88]
test eax, eax
je 0x10013d4c
call eax
test eax, eax
je 0x10013d33
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001cd8c]
test eax, eax
je 0x10013d33
test byte [ebp - 8], 1
jne 0x10013d4c
cmp dword [0x1001cb30], 4
jb 0x10013d46
or byte [ebp + 0x12], 0x20
jmp 0x10013d6b
xor eax, eax
jmp 0x10013d7b
or byte [ebp + 0x12], 4
jmp 0x10013d6b
mov eax, dword [0x1001cd80]
test eax, eax
je 0x10013d6b
call eax
mov ebx, eax
test ebx, ebx
je 0x10013d6b
mov eax, dword [0x1001cd84]
test eax, eax
je 0x10013d6b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001cd7c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008d13
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008d52
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008d52
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008d52
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008d52
cmp dword [ecx + 0x74], 0xe
jbe 0x10008d52
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000b9d2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000ba6f
push ebx
push esi
call fcn.1000b99b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b92f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ba1c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ba6e
push edi
push eax
call fcn.1000c98d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000ba3c
call fcn.1000a474
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000ba6d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b92f
add esp, 0x20
test eax, eax
jne 0x1000ba5b
push edi
call fcn.1000a474
jmp 0x1000ba63
push ebx
call fcn.1000a474
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000bcdc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013668
push 0x10013660
push str.FlsAlloc
push 0x1f
call fcn.1000bbf8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bd10
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
jmp 0x1000bd16
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000bd5a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsGetValue
push 0x21
call fcn.1000bbf8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bd91
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bd99
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013680
push 0x10013678
push str.FlsSetValue
push 0x22
call fcn.1000bbf8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bdd3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10011460
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001148d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001148d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000c0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1000c0d9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000c0ef
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000c0e6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1000c122
nop
cmp esi, ecx
jae 0x1000c0e6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1000c110
cmp esi, ecx
jae 0x1000c0e6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000c180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], ecx
call fcn.1000e727
mov ebx, eax
test ebx, ebx
jne 0x1000c1a0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, edi
shr eax, 4
push esi
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000c287
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000c287
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000c287
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1000c208
cmp esi, ecx
jae 0x1000c287
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1000c1f2
cmp esi, ecx
jae 0x1000c287
movzx eax, word [esi]
test ax, ax
je 0x1000c287
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x1000c292
mov ebx, dword [ebp - 4]
mov edx, 1
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1000c251
push edi
mov ecx, ebx
call fcn.10003d20
mov eax, dword [ebx]
push 0
push 0
push edi
push eax
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x1000c292
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
pop esi
mov byte [edi + eax], 0
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10003fb0
int3
Function at 0x1000c2a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor dl, dl
mov dword [ebp - 4], ecx
test eax, eax
je 0x1000c3af
test eax, 0xffff0000
jne 0x1000c3af
push ebx
push edi
movzx edi, ax
push edi
call fcn.1000e727
mov ebx, eax
test ebx, ebx
je 0x1000c3ab
mov eax, edi
shr eax, 4
push 6
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000c3ab
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000c3ab
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000c3aa
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1000c339
cmp esi, ecx
jae 0x1000c3aa
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1000c323
cmp esi, ecx
jae 0x1000c3aa
movzx eax, word [esi]
test ax, ax
je 0x1000c3aa
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 2]
push ecx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
js 0x1000c3b7
mov ebx, dword [ebp - 4]
mov ecx, 1
mov edx, dword [ebx]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x1000c382
push edi
mov ecx, ebx
call fcn.10003d20
mov edx, dword [ebx]
movzx eax, word [esi]
push 0
push 0
push edi
push edx
push eax
lea eax, [esi + 2]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebx]
cmp edi, dword [eax - 8]
jg 0x1000c3b7
mov dword [eax - 0xc], edi
mov eax, dword [ebx]
mov byte [edi + eax], 0
pop esi
pop edi
mov dl, 1
pop ebx
mov al, dl
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10003fb0
int3

Function at 0x10011307
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x1001135a
push esi
push dword [ebp + 8]
call fcn.100114ed
mov edi, eax
test edi, edi
je 0x10011355
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10011355
mov eax, dword [ebp - 8]
jmp 0x1001136c
mov eax, dword [ebp + 0x10]
jmp 0x1001136c
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x1001cd06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x1001cd45
call fcn.1000e599
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001cd45
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001cd4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10025a8f
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1001d74d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1001d7d9
cmp dword [esi + 0x20], 0
je 0x1001d7d9
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001d7d9
cmp dword [ebp + 8], 0
je 0x1001d7d9
xor edi, edi
mov ebx, edi
call fcn.1000e599
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x1001d7bd
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001d7d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.100265e9
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1001d7d5
mov ecx, esi
call fcn.1001d4eb
mov eax, edi
jmp 0x1001d7db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10021d0d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10167479
call fcn.10145f79
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10021d33
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10021d8d
lea ecx, [ebp - 0x10]
call fcn.10004020
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x10176968]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1014f2ea
push eax
call fcn.1000bf10
add esp, 0x14
test esi, esi
je 0x10021d80
push esi
call fcn.1014f1f0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10004000
mov eax, ebx
call fcn.10145f47
ret 8
Function at 0x100234c9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10021c53
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x10023505
call fcn.100236e6
mov dword [esi + 0xc], 1
jmp 0x1002350a
call fcn.100236e6
cmp dword [esi], 0
je 0x10023555
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x10023530
push edi
call fcn.1000e78c
lea ecx, [edi + 1]
push ecx
jmp 0x1002353f
push 0xff
call fcn.10003d80
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1000e7af
pop edi
jmp 0x10023579
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x10023579
push dword [esi]
push dword [ebp - 4]
call fcn.100165d4
pop esi
leave
ret 0xc

Function at 0x1002363d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.100236e6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10023685
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000e78c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000e7af
jmp 0x10023690
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.100165d4
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10026ce5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x10026d10
cmp dword [edi + 0x80], 0
jne 0x10026d10
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.1000e599
push 5
push ebx
mov esi, dword [eax + 0xc]
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 ecx, edi
push eax
call fcn.10026f7e
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10026d3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.1000e599
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10026d70
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.10026d83
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10028eef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x10028f45
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10028f1e
call fcn.1001a110
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10028f33
call fcn.1001a110
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10028f45
call fcn.1001a110
call fcn.1000e599
cmp dword [eax + 0x3c], 0
je 0x10028f5a
push edi
mov ecx, ebx
call fcn.10028612
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10029143
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10028f83
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10028f8f
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1003cd76
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.1008c9a3
call fcn.1000e5ed
cmp dword [eax + 0x14], 0
jne 0x1003cd91
mov ecx, esi
pop esi
jmp fcn.1003c09a
pop esi
ret

Function at 0x1003dc45
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10003570
call fcn.1000e5ed
cmp dword [eax + 0x14], 0
jne 0x1003dc60
mov ecx, esi
pop esi
jmp fcn.1003d4b6
pop esi
ret

Function at 0x10046bdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x10046bf5
call fcn.1000e599
mov esi, dword [eax + 0xc]
push 0x10180828
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10046c37
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10046c37
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10046c37
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10046c40
jmp 0x10046c39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100fd250
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.101570c0
pop ecx
test eax, eax
jne 0x100fd292
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1001182d
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100fd258
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret
Function at 0x1015b94c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101a41e0
push 0x101a41d8
push str.FlsAlloc
push 0x1e
call fcn.1015b7cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1015b980
push dword [ebp + 8]
mov ecx, esi
call dword [0x10176968]
call esi
jmp 0x1015b986
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1015b9ca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101a41f0
push 0x101a41e8
push str.FlsGetValue
push 0x20
call fcn.1015b7cd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1015ba01
push dword [ebp + 8]
mov ecx, esi
call dword [0x10176968]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]