joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb8fe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4cb90e
xor eax, eax
jmp 0x4cba91
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x4cba57
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x4cb917
cmp dword [ebp + 0x10], 0
je 0x4cba8b
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6afe78]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x4cba5d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x4cf367
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 4
pop eax
imul eax, eax, 0
movsx ecx, byte [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
push 4
pop eax
imul eax, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x6afe78]
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 0
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + eax]
push 4
pop eax
shl eax, 0
mov edx, dword [ebp + 8]
mov dword [edx + eax], ecx
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp + 8]
imul eax, dword [ecx + eax], 0x8088405
inc eax
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
push 4
pop eax
shl eax, 1
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
push 4
pop eax
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x6afe78]
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret
Function at 0x4d5bda
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67a1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x7140f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x21], 0
push 1
push 1
call fcn.004d4f92
pop ecx
push eax
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x54], esp
push 0x6b0ee4
lea eax, [ebp - 0x3c]
push eax
call fcn.0041cba3
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call fcn.004e0c90
push eax
mov ecx, esi
call fcn.004e18af
mov ecx, dword [ebp - 0x30]
call fcn.004d467c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004e0a9e
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x4d5dbf
mov dword [ebp - 0x28], 0x800000
mov eax, dword [ebp - 0x28]
or eax, 0x1000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
or eax, 0x2000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
or eax, 0x4000000
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
or eax, 0x80000
mov dword [ebp - 0x28], eax
push 0
push dword [ebp - 0x28]
push 0
push 0
push 0x6b0f18
lea eax, [ebp - 0x50]
push eax
call fcn.0041cba3
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
call fcn.004e0c90
push eax
push 0x6b0f2c
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.004d4fba
pop ecx
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
call fcn.004e3a26
push eax
mov eax, dword [ebp - 0x30]
push dword [eax + 8]
call fcn.004324cf
add esp, 0x20
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.004e195a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004e0a9e
cmp dword [ebp - 0x2c], 0
je 0x4d5db6
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1f
push dword [ebp - 0x2c]
call fcn.00432547
add esp, 0x10
mov eax, dword [ebp - 0x14]
or eax, 0x100
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
or eax, 0x80
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1f
push dword [ebp - 0x2c]
call fcn.004323f7
add esp, 0x10
push 0
push 0
push 0
push 0
push dword [ebp - 0x2c]
call fcn.00432388
add esp, 0x14
and dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 4
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push dword [ebp - 0x2c]
call fcn.00431b54
add esp, 0x14
cmp dword [ebp - 0x18], 0xc8
jne 0x4d5db6
mov byte [ebp - 0x21], 1
push dword [ebp - 0x2c]
call fcn.00431bc3
pop ecx
mov ecx, dword [ebp - 0x30]
call fcn.004d4f46
mov al, byte [ebp - 0x21]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006486fb
leave
ret
Function at 0x4e225e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4e227d
xor eax, eax
jmp 0x4e22f8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e2293
xor eax, eax
jmp 0x4e22f8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4e22db
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jae 0x4e22db
mov eax, dword [ebp - 4]
movzx eax, word [eax]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
jmp 0x4e22b4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jb 0x4e22e7
xor eax, eax
jmp 0x4e22f8
mov eax, dword [ebp - 4]
movzx eax, word [eax]
test eax, eax
jne 0x4e22f5
xor eax, eax
jmp 0x4e22f8
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4f8d32
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x672d28
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x7140f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.004e1846
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004e1846
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004e1846
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x48
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004e1846
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x60]
mov dword [eax + 0x60], ecx
mov eax, dword [ebp + 8]
add eax, 0x64
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.004e1846
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x7c]
mov dword [eax + 0x7c], ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4
Function at 0x4f8e29
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x672e67
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x7140f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.004e1846
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004e1846
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0x30
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004e1846
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x48
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.004e1846
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x60]
mov dword [eax + 0x60], ecx
mov eax, dword [ebp + 8]
add eax, 0x64
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.004e1846
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x7c]
mov dword [eax + 0x7c], ecx
mov eax, dword [ebp + 8]
add eax, 0x80
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.004e1846
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0x98
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x98
call fcn.004e1846
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xb0]
mov dword [eax + 0xb0], ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4

Function at 0x50af1f
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 0x50af64
call fcn.00512af8
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x50af64
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x50af80
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00512d19
mov ebx, eax
test edi, edi
je 0x50af7e
test esi, esi
je 0x50af7e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x50b993
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 0x50ba51
cmp dword [esi + 0x20], 0
je 0x50ba51
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50ba51
cmp dword [ebp + 8], 0
je 0x50ba51
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00512af8
push 0x6b2ee8
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 0x50ba22
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 0x50ba51
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.0051f065
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x50ba42
test edi, edi
je 0x50ba42
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x50ba4d
mov ecx, esi
call fcn.0050b735
mov eax, ebx
jmp 0x50ba53
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5108c5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x67b37d
call fcn.00649088
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x5108eb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x51094b
call fcn.00506dac
push eax
lea ecx, [ebp - 0x10]
call fcn.004e097c
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 [0x689b08]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0064fd6e
push eax
call fcn.004e1b89
add esp, 0x14
test esi, esi
je 0x51093e
push esi
call fcn.0064fc02
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004e121b
mov eax, ebx
call fcn.00649051
ret 8

Function at 0x5111a3
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 0x5111ce
cmp dword [ebx + 0x80], 0
jne 0x5111ce
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.00512af8
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.00511464
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 0x511208
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.00512af8
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 0x51123f
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.0051125e
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 0x517e9a
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 0x517eed
push esi
push dword [ebp + 8]
call fcn.00518083
mov edi, eax
test edi, edi
je 0x517ee8
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 0x517ee8
mov eax, dword [ebp - 8]
jmp 0x517eff
mov eax, dword [ebp + 0x10]
jmp 0x517eff
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
leave
ret 0xc

Function at 0x51946a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x5194b4
call fcn.00512af8
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5194b1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x519504
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x5194e1
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x689b08]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x5194e1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x519502
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call dword [0x689b08]
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x52167f
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 0x5216d5
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x5216ae
call fcn.0050781a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5216c3
call fcn.0050781a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5216d5
call fcn.0050781a
call fcn.00512af8
cmp dword [eax + 0x3c], 0
je 0x5216ea
push edi
mov ecx, ebx
call fcn.00520daf
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005218bc
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x521713
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x52171f
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 0x522db5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.005104a2
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.00522fce
cmp esi, 3
je 0x522df3
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x522e3c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x522e16
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00501d90
jmp 0x522e27
push 0xff
mov ecx, esi
call fcn.004e115f
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004e3540
jmp 0x522e60
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 0x522e60
push dword [esi]
push dword [ebp - 4]
call fcn.0051d0b5
pop edi
pop esi
leave
ret 0xc

Function at 0x522f25
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.00522fce
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x522f6d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00501d90
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004e3540
jmp 0x522f78
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0051d0b5
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x53350e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005795a2
call fcn.00512b4c
cmp dword [eax + 0x14], 0
jne 0x533529
mov ecx, esi
pop esi
jmp fcn.00532836
pop esi
ret

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

Disassembly:
push esi
mov esi, ecx
call fcn.0050d2b4
call fcn.00512b4c
cmp dword [eax + 0x14], 0
jne 0x541dda
mov ecx, esi
pop esi
jmp fcn.0054163b
pop esi
ret

Function at 0x54f368
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
push edi
test esi, esi
jne 0x54f382
call fcn.00512af8
mov esi, dword [eax + 0xc]
push 0x6bb59c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x54f3d8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x54f3d8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x54f3b7
xor esi, esi
jmp 0x54f3cd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0054f3e1
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x54f3da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x6022d3
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.0065b094
pop ecx
test eax, eax
jne 0x602315
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.005183ef
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x6022db
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x6636e5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006633a5