joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ab7da
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 0x5ab7f3
or eax, 0xffffffff
jmp 0x5ab854
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x5ab850
push 0x3d
push esi
call fcn.00596a2e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x5ab850
cmp esi, eax
je 0x5ab850
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x838c7c]
sete cl
cmp eax, dword [0x838c80]
mov dword [ebp - 8], ecx
jne 0x5ab836
mov edi, eax
call fcn.005ab779
mov dword [0x838c7c], eax
cmp eax, ebx
jne 0x5ab88f
cmp dword [ebp + 0xc], ebx
je 0x5ab858
cmp dword [0x838c84], ebx
je 0x5ab858
call fcn.005a7990
test eax, eax
je 0x5ab88f
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x5ab861
xor eax, eax
jmp 0x5ab853
push 4
call fcn.00595265
cmp eax, ebx
pop ecx
mov dword [0x838c7c], eax
je 0x5ab850
mov dword [eax], ebx
cmp dword [0x838c84], ebx
jne 0x5ab88f
push 4
call fcn.00595265
cmp eax, ebx
pop ecx
mov dword [0x838c84], eax
je 0x5ab850
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x838c7c]
call fcn.005ab72c
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x5ab8f0
cmp dword [esi], ebx
je 0x5ab8f0
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0059514d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x5ab8d3
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x5ab931
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x5ab8ca
mov eax, edi
shl eax, 2
push eax
push dword [0x838c7c]
call fcn.00598963
cmp eax, ebx
pop ecx
pop ecx
je 0x5ab931
jmp 0x5ab92c
cmp dword [ebp - 8], ebx
jne 0x5ab99c
cmp edi, ebx
jge 0x5ab8ff
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x838c7c]
call fcn.00598963
cmp eax, ebx
pop ecx
pop ecx
je 0x5ab850
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 [0x838c7c], eax
cmp dword [ebp + 0xc], ebx
je 0x5ab986
push dword [ebp - 4]
call fcn.00595280
inc eax
inc eax
push eax
call fcn.00595265
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x5ab986
push dword [ebp - 4]
push esi
call fcn.00596170
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 0x5ab97f
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0059514d
pop ecx
cmp dword [ebp - 8], ebx
je 0x5ab994
push dword [ebp - 4]
call fcn.0059514d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x5ab853
push dword [ebp - 4]
call fcn.0059514d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x5ab85d
Function at 0x5abfc5
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00597530
mov eax, dword [0x6534d8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.005a64e1
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x5ac0f8
push 2
push esi
push dword [ebp + 8]
call fcn.005a64e1
add esp, 0xc
cmp eax, ebx
je 0x5ac0f8
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x5ac098
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.005960f0
push 0x8000
push dword [ebp + 8]
call fcn.005ac3e1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x5ac04e
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.005a6048
add esp, 0xc
cmp eax, 0xffffffff
je 0x5ac06e
sub edi, eax
test edi, edi
jg 0x5ac046
jmp 0x5ac086
call fcn.0059b5b9
cmp dword [eax], 5
jne 0x5ac083
call fcn.0059b5b0
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.005ac3e1
pop ecx
pop ecx
jmp 0x5ac0e0
jge 0x5ac0e0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005a64e1
push dword [ebp + 8]
call fcn.0059b746
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 0x5ac0e0
call fcn.0059b5b0
mov dword [eax], 0xd
call fcn.0059b5b9
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.005a64e1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5ac0fa
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0059508d
leave
ret
Function at 0x5ac106
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x630a18
call fcn.0059b564
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x839148], edi
jne 0x5ac14a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ac135
mov dword [0x839148], ebx
jmp 0x5ac14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5ac14a
mov dword [0x839148], 2
mov eax, dword [0x839148]
cmp eax, ebx
jne 0x5ac16a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x5ac22d
cmp eax, 2
je 0x5ac173
cmp eax, edi
jne 0x5ac19b
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x5ac186
mov eax, dword [0x838e58]
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 0x5ac1a2
xor eax, eax
jmp 0x5ac22d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00597530
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x5ac1d5
cmp esi, edi
jne 0x5ac1eb
push dword [ebp - 0x20]
call fcn.00595265
pop ecx
mov esi, eax
cmp esi, edi
je 0x5ac19b
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 0x5ac21e
cmp dword [ebp + 0x14], edi
jne 0x5ac208
push edi
push edi
jmp 0x5ac20e
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 0x5ac22a
push esi
call fcn.0059514d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0059b59f
ret
Function at 0x5ac236
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x630a28
call fcn.0059b564
xor esi, esi
cmp dword [0x83914c], esi
jne 0x5ac27a
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ac265
mov dword [0x83914c], edi
jmp 0x5ac27a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5ac27a
mov dword [0x83914c], 2
mov eax, dword [0x83914c]
cmp eax, 2
je 0x5ac35b
cmp eax, esi
je 0x5ac35b
cmp eax, 1
jne 0x5ac2bf
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x5ac2a8
mov eax, dword [0x838e58]
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 0x5ac2c6
xor eax, eax
jmp 0x5ac36d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00597530
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x5ac2fc
cmp edi, esi
jne 0x5ac317
lea eax, [ebx + ebx]
push eax
call fcn.00595265
pop ecx
mov edi, eax
cmp edi, esi
je 0x5ac2bf
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 0x5ac34a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x5ac334
push esi
push esi
jmp 0x5ac33a
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 0x5ac356
push edi
call fcn.0059514d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x5ac36d
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.0059b59f
ret
Function at 0x5afb00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ee668
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x2c]
push esi
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.005c5148
mov esi, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.005c503c
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
push 0xf00021
push edx
mov edx, dword [esp + 0x2c]
mov edi, eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_PatBlt]
push edi
mov ecx, esi
call fcn.005c503c
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 8], vtable.CGdiObject.0
call fcn.005c4fb7
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x5b19d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ee7b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
call fcn.005bfb85
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
lea ebx, [eax - 0x10]
mov ecx, ebx
cmp dword [ecx + 0xc], 1
mov byte [esp + 0x24], 1
mov dword [esp + 0x10], ebx
jle 0x5b1a3b
mov eax, dword [ecx + 4]
push eax
lea ecx, [esp + 0x34]
call fcn.0040b7ea
mov eax, dword [esp + 0x30]
lea ebx, [eax - 0x10]
mov dword [esp + 0x10], ebx
mov ecx, ebx
dec dword [ecx + 0xc]
jne 0x5b1a47
mov dword [ecx + 0xc], 0xffffffff
mov ecx, dword [esp + 0x34]
xor edx, edx
xor edi, edi
xor ebp, ebp
test ecx, ecx
jl 0x5b1a84
mov ecx, 1
sub ecx, eax
mov dword [esp + 0x18], ecx
mov cl, byte [eax]
test cl, cl
je 0x5b1a89
cmp cl, byte [esp + 0x38]
jne 0x5b1a76
mov ecx, dword [esp + 0x18]
mov ebp, edi
lea edi, [ecx + eax]
inc edx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
inc esi
inc eax
cmp edx, ecx
jle 0x5b1a60
cmp byte [eax], 0
jne 0x5b1a8c
mov ebp, edi
inc esi
mov eax, dword [ebx + 0xc]
test eax, eax
jge 0x5b1aa0
inc eax
mov dword [ebx + 0xc], eax
jne 0x5b1aa0
mov dword [ebx + 0xc], 1
cmp edx, dword [esp + 0x34]
jge 0x5b1b11
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.0040b671
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [esp + 0x24], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x5b1adb
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov dword [esp + 0x24], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5b1afa
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
sub esi, ebp
dec esi
push esi
mov esi, dword [esp + 0x30]
push ebp
push esi
lea ecx, [esp + 0x3c]
call fcn.0040aca8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5b1b47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x24], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5b1b66
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x5b44a8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x5b44b6
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x5b4597
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x6328e0]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x6328e0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x6328e0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x6328e0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x6328e0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x6328e0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x6328e0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x6328e0]
xor eax, esi
inc edx
dec edi
jne 0x5b44d3
pop ebx
cmp dword [ebp + 0x10], 0
je 0x5b45b8
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x6328e0]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x5b459d
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x5b67ca
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x5ed864
call fcn.00594e8c
sub esp, 0x9c
mov eax, dword [0x6534d8]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.005b9699
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.0040b0ee
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x5b685b
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.005960f0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x5b6854
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x5b685b
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00595265
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x5b6870
call fcn.005b6281
push dword [ebp + 0x20]
push ebx
push eax
call fcn.005960f0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x5b68ed
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.005d84b3
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x5b6e8a
je 0x5b6919
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x5b694f
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.0040b4d7
push ebx
mov ecx, edi
call fcn.0040b372
jmp 0x5b6938
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00596a2e
cmp eax, ebx
pop ecx
pop ecx
jne 0x5b6935
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0059508d
leave
ret 0x1c
Function at 0x5b9a44
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 0x5b9a7b
call fcn.005d84b3
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 0x5b9a8c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x5b9ac5
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x5b9aaa
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x5b9ab2
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x5b9ac3
test ax, ax
jne 0x5b9ac3
test si, si
je 0x5b9ac5
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x5b9ad4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x5b9d34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x5ecd1b
call fcn.00594e8c
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.005d84b3
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x5b9d74
call fcn.005d84b3
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 0x5b9d85
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x5b9d91
or eax, 0xffffffff
jmp 0x5b9e94
mov ecx, esi
call fcn.005b9866
mov dword [ebp - 0x14], eax
call fcn.005bb9f8
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x5b9dd4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x5b9dd4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x5b9dd4
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.005bd0df
push dword [ebp - 0x14]
call fcn.005bb950
push edi
push eax
push ebx
mov ecx, esi
call fcn.005b9b19
xor ebx, ebx
cmp eax, ebx
je 0x5b9e48
test byte [esi + 0x38], 0x10
je 0x5b9e16
push 4
pop edi
mov ecx, esi
call fcn.005bdd80
test ah, 1
je 0x5b9e0e
push 5
pop edi
push edi
mov ecx, esi
call fcn.005bb3f4
cmp dword [esi + 0x1c], ebx
je 0x5b9e48
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.005be011
jmp 0x5b9e48
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x5b9e5c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x5b9e75
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x5b9e75
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.005b98a0
cmp dword [esi + 0x54], ebx
je 0x5b9e91
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 0x5b9f07
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x54], ebx
jne 0x5b9f27
cmp dword [edi + 0x50], 0
jne 0x5b9f27
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.005d84b3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.005b9ece
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x5bc6f9
Capabilities:
Get graphical window text

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

Function at 0x5bda4b
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 0x5bda8e
call fcn.005d84b3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5bda8e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5bdaa9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.005bcbb0
test ebx, ebx
mov esi, eax
je 0x5bdaa7
test edi, edi
je 0x5bdaa7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x5be472
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x5ece38
call fcn.00594e8c
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x5be497
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x5be4e3
call fcn.005bfb85
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.0040b280
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8