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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.10045700
mov eax, dword [0x100a71bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10008], ecx
mov eax, dword [ebp - 0x10008]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x18c]
jle 0x1003261d
mov edx, dword [ebp - 0x10008]
mov eax, dword [edx + 0x18c]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x10008]
mov edx, dword [ecx + 0x4b0]
mov eax, dword [ebp + 8]
lea ecx, [edx + eax*2]
mov dword [ebp - 0x10014], ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x10004]
push eax
mov ecx, dword [ebp - 0x10008]
mov edx, dword [ecx + 0x188]
push edx
call fcn.1004c327
add esp, 0xc
mov dword [ebp - 0x1000c], eax
mov eax, dword [ebp - 0x1000c]
mov dword [ebp - 0x10010], eax
cmp dword [ebp - 0x10010], 0xffff
jae 0x10032675
jmp 0x1003267a
call fcn.10045623
mov ecx, dword [ebp - 0x10010]
mov byte [ebp + ecx - 0x10004], 0
lea edx, [ebp - 0x10004]
push edx
mov eax, dword [ebp - 0x10014]
push eax
call fcn.10008dd0
add esp, 8
cmp dword [ebp - 0x1000c], 0xffffffff
jne 0x100326b9
push 0
push 0x80070026
mov ecx, dword [ebp - 0x10008]
call fcn.10039dd0
mov ecx, dword [ebp - 0x1000c]
mov edx, dword [ebp - 0x10014]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 0x10008]
mov dword [ecx + 0x4b4], eax
mov edx, dword [ebp - 0x10008]
mov eax, dword [edx + 0x18c]
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10008]
mov dword [ecx + 0x18c], eax
mov edx, dword [ebp - 0x10008]
cmp dword [edx + 0x18c], 0
jg 0x100327b5
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x4b4]
movzx edx, word [ecx - 2]
cmp edx, 0x1a
jne 0x10032749
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x4b4]
sub ecx, 2
mov dword [ebp - 0x10018], ecx
mov edx, dword [ebp - 0x10008]
mov eax, dword [ebp - 0x10018]
mov dword [edx + 0x4b4], eax
xor ecx, ecx
mov edx, dword [ebp - 0x10018]
mov word [edx], cx
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x4b4]
movzx edx, word [ecx - 2]
cmp edx, 0xa
je 0x1003278d
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x4b4]
mov edx, 0xa
mov word [ecx], dx
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x4b4]
add ecx, 2
mov edx, dword [ebp - 0x10008]
mov dword [edx + 0x4b4], ecx
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x4b4]
xor edx, edx
mov word [ecx], dx
mov eax, dword [ebp - 0x10008]
mov ecx, dword [eax + 0x188]
push ecx
call fcn.1004b804
add esp, 4
jmp 0x100327e3
mov edx, dword [ebp - 0x10008]
mov eax, dword [edx + 0x4b4]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebp - 0x10008]
mov eax, dword [edx + 0x4b4]
sub eax, 0x7d0
mov ecx, dword [ebp - 0x10008]
mov dword [ecx + 0x4b4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100454bc
mov esp, ebp
pop ebp
ret 8
Function at 0x1003c390
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x1003c3a6
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x29
jae 0x1003c3de
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*8 + 0x100a6ea4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10055eb0
add esp, 8
test eax, eax
jne 0x1003c3dc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*8 + 0x100a6ea0]
and edx, 0xff
movzx eax, dl
jmp 0x1003c401
jmp 0x1003c39d
mov eax, dword [ebp + 8]
push eax
call fcn.1004b6b0
add esp, 4
cmp eax, 1
jne 0x1003c3ff
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
push edx
call dword [sym.imp.USER32.dll_VkKeyScanA]
cwde
jmp 0x1003c401
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003cd40
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp dword [0x100a6e9c], 0
je 0x1003cd7f
push 0x100aa6b8
push 0x100aa6b4
push 0x100aa6b0
call fcn.1003cac0
add esp, 0xc
mov dword [0x100a6e9c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x1003cdd7
cmp dword [ebp - 8], 2
je 0x1003cda0
cmp dword [ebp - 8], 5
je 0x1003ce7d
jmp 0x1003ce9d
push 0x100aa6b8
push 0x100aa6b4
push 0x100aa6b0
call fcn.1003cac0
add esp, 0xc
test eax, eax
jne 0x1003cdd2
mov ecx, dword [0x100a9690]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x100a9690], 0
jmp 0x1003cea4
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
cmp dword [0x100aa6b8], 0
jne 0x1003ce09
cmp dword [0x100aa6b4], 0
je 0x1003cdf8
mov dword [ebp - 0x14], 0x100
jmp 0x1003cdff
mov dword [ebp - 0x14], 0x101
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x1003ce2a
cmp dword [0x100aa6b4], 0
je 0x1003ce1b
mov dword [ebp - 0x18], 0x104
jmp 0x1003ce22
mov dword [ebp - 0x18], 0x105
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [0x100aa6b0]
and ecx, 0xff
movzx esi, cl
push 0
mov edx, dword [0x100aa6b0]
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
and eax, 0xff
movzx eax, al
shl eax, 8
or esi, eax
movzx ecx, si
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x1003cea4
mov edx, dword [0x100a9690]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x100a9690], 0
mov dword [ebp - 0xc], 1
jmp 0x1003cea4
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x1003cec5
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x100a9690]
push eax
call dword [sym.imp.USER32.dll_CallNextHookEx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10044940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b0ef
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100a71bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0x1c
call fcn.100454cd
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x10044995
mov ecx, dword [ebp - 0x20]
call fcn.100448b0
mov dword [ebp - 0x24], eax
jmp 0x1004499c
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x100449bf
mov eax, 0x8007000e
jmp 0x10044af6
mov ecx, dword [ebp - 0x10]
call fcn.10044930
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x10044a00
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 0
je 0x100449f1
push 1
mov ecx, dword [ebp - 0x28]
call fcn.100451b0
mov dword [ebp - 0x34], eax
jmp 0x100449f8
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x1c]
jmp 0x10044af6
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x2c]
call ecx
mov edx, dword [0x100a8910]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
push 0
push str.Enable
call sym.Enable40.dll_enaCreateContextW
cmp dword [ebp - 0x14], 0
je 0x10044adc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x4ec]
mov dword [eax + 0x4ec], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x160]
mov dword [eax + 0x160], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc58], 0
je 0x10044aad
push 1
push 0x76
push 0
push str.parentScript
mov ecx, dword [ebp - 0x18]
call fcn.10032b50
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc58]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.1002b800
mov dword [ebp - 0x1c], eax
push 1
push 0x76
push 0
push str.parentDefaultObject
mov ecx, dword [ebp - 0x18]
call fcn.10032b50
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x170]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.1002b800
mov dword [ebp - 0x1c], eax
push 1
push 2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call sym.Enable40.dll_enaSetOption
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x10047003
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10046d61
Function at 0x1004700e
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10046e46

Function at 0x1005f10d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005edcd
Function at 0x100023a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x101bdfe4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 0x2e484e5c
push eax
push 0
mov dword [ebp - 0x10c], 0x747874
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x110]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x100023f3
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10002403
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
push 1
mov ecx, edx
and ecx, 3
push SysReAllocStringLen
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000247c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.1000646a
add esp, 4
mov dword [ebp - 0x10c], 0
mov edi, eax
lea eax, [ebp - 0x10c]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x1000247c
mov ecx, edi
call fcn.10001bb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013d5e0
mov esp, ebp
pop ebp
ret
Function at 0x100092a4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1015a3a6
call fcn.1013df0f
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x1000934e
push dword [ebp + 8]
mov ecx, eax
call fcn.100095dc
mov esi, eax
test esi, esi
je 0x100093e1
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x10009337
push edx
call fcn.1000646a
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009337
xor edi, edi
inc edi
jmp 0x10009341
push dword [ebx]
call fcn.10006465
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.10009169
jmp 0x100093df
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.1013ded2
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x100093d7
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.1000646a
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x100093d1
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.10009145
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.10009145
add al, bl
mov edx, edi
test edx, edx
jns 0x100093c2
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x10009399
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10007a26
mov eax, edi
call fcn.1013ded8
ret 0x10

Function at 0x100093e9
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 0x1000943c
push esi
push dword [ebp + 8]
call fcn.100095dc
mov edi, eax
test edi, edi
jne 0x1000940c
mov eax, dword [ebp + 0x10]
jmp 0x1000944e
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_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10009407
mov eax, dword [ebp - 8]
jmp 0x1000944e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014a46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x10014a8b
call fcn.1000b4f1
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10014a8b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x10014aa7
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001f7dc
mov ebx, eax
test edi, edi
je 0x10014aa5
test esi, esi
je 0x10014aa5
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100154b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1001556f
cmp dword [esi + 0x20], 0
je 0x1001556f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001556f
cmp dword [ebp + 8], 0
je 0x1001556f
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.1000b4f1
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10015540
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001556f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.100203b8
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x10015560
test edi, edi
je 0x10015560
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x1001556b
mov ecx, esi
call fcn.10015254
mov eax, ebx
jmp 0x10015571
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100199f6
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1015bde5
call fcn.1013df0f
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10019a1c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10019a7b
call fcn.1000cf15
push eax
lea ecx, [ebp - 0x10]
call fcn.10006488
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 fcn.1013ded2
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1014529a
push eax
call fcn.10006a92
add esp, 0x14
test esi, esi
je 0x10019a6e
push esi
call fcn.101433b6
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10007a26
mov eax, ebx
call fcn.1013ded8
ret 8
Function at 0x10020a46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x10020a71
cmp dword [ebx + 0x80], 0
jne 0x10020a71
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.1000b4f1
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.10020d04
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10020aab
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 esi, esi
call fcn.1000b4f1
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10020ae2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10020b03
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10022c2d
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
je 0x10022c47
mov edi, dword [esi + 0xc]
jmp 0x10022c87
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10022c60
call fcn.10011e84
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10022c75
call fcn.10011e84
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10022c87
call fcn.10011e84
call fcn.1000b4f1
cmp dword [eax + 0x3c], 0
je 0x10022c9c
push edi
mov ecx, ebx
call fcn.100222c1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10022e79
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10022cc5
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10022cd1
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10025110
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.10019940
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1002514c
call fcn.10025332
mov dword [esi + 0xc], 1
jmp 0x10025151
call fcn.10025332
cmp dword [esi], 0
je 0x1002519a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x10025174
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1000cc16
jmp 0x10025185
push 0xff
mov ecx, esi
call fcn.10007671
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10009718
jmp 0x100251be
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100251be
push dword [esi]
push dword [ebp - 4]
call fcn.1000e58b
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10025287
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.10025332
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100252cf
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000cc16
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10009718
jmp 0x100252da
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1000e58b
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10036cd7
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.100857f6
call fcn.1000b545
cmp dword [eax + 0x14], 0
jne 0x10036cf2
mov ecx, esi
pop esi
jmp fcn.10036022
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.10001b40
call fcn.1000b545
cmp dword [eax + 0x14], 0
jne 0x10037bb8
mov ecx, esi
pop esi
jmp fcn.1003741b
pop esi
ret
Function at 0x10046443
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x1004645c
call fcn.1000b4f1
mov esi, dword [eax + 0xc]
push 0x10171e84
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x100464b2
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100464b1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10046492
xor esi, esi
jmp 0x100464a8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.100464ba
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x101560ad
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10155d6d