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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x20087630
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x200e0a40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x20087630
test cl, 0x48
je 0x200874c5
cmp byte [eax + 5], 0xa
je 0x200874c5
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x20087517
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x200874ff
call fcn.20081cdf
mov dword [eax], 9
call fcn.20081ce8
mov dword [eax], esi
jmp 0x2008750f
cmp eax, 0x6d
je 0x20087630
push eax
call fcn.20081cf1
pop ecx
or eax, 0xffffffff
jmp 0x20087632
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x2008762b
test eax, eax
je 0x2008753e
cmp byte [ebx], 0xa
jne 0x2008753e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x20087547
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x20087625
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x20087615
cmp al, 0xd
je 0x20087579
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x20087607
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x20087593
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x2008758e
add dword [ebp + 0x10], 2
jmp 0x200875e7
mov dword [ebp + 0x10], eax
jmp 0x20087603
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x200875bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x20087603
cmp dword [ebp - 0xc], 0
je 0x20087603
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x200875dc
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x200875e7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x20087606
cmp ebx, dword [ebp + 0xc]
jne 0x200875ec
cmp byte [ebp - 1], 0xa
jne 0x200875ec
mov byte [ebx], 0xa
jmp 0x20087606
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.2008aaa1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x20087607
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x2008755d
jmp 0x20087625
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x20087625
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x20087632
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x200892cd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x200cc84c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x200cd3b8]
je 0x20089304
inc eax
cmp eax, 0x13
jb 0x200892f5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x200cd3b8]
jne 0x20089427
mov eax, dword [0x200e03f0]
cmp eax, 1
je 0x20089402
cmp eax, edx
jne 0x20089334
cmp dword [0x200e03f4], 1
je 0x20089402
cmp ecx, 0xfc
je 0x20089427
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x2008936a
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.2007f120
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.2007d3c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x2008939e
mov eax, edi
push eax
call fcn.2007d3c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x200aa708
push edi
call fcn.2007fc70
add esp, 0x10
push edi
call fcn.2007d3c0
push dword [esi + str.p_v__b]
mov ebx, eax
call fcn.2007d3c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.2007eb40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.2007f120
push edi
push ebx
call fcn.2007f130
push 0x200ae864
push ebx
call fcn.2007f130
push dword [esi + str.p_v__b]
push ebx
call fcn.2007f130
push 0x12010
push 0x200ae830
push ebx
call fcn.200898a6
add esp, 0x2c
jmp 0x20089427
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + str.p_v__b]
push dword [esi]
call fcn.2007d3c0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.2007c9ae
add ebp, 0x90
leave
ret

Function at 0x2008947e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x200894ac
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x200894b1
cmp eax, 1
je 0x200894b1
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x200894b5
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x200cc84c]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x20089547
push ebx
call fcn.2008947e
test eax, eax
pop ecx
jne 0x2008951c
call fcn.20081ce8
mov dword [eax], 0xf
call fcn.20081cdf
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x20089556
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x20089503
inc eax
cmp eax, 0x104
ja 0x20089503
test edi, edi
mov ecx, edi
jne 0x20089593
cmp eax, dword [ebp + 0xa0]
jg 0x20089576
mov eax, dword [ebp + 0xa0]
push eax
call fcn.2007ee10
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x200895ab
call fcn.20081cdf
mov dword [eax], 0xc
jmp 0x20089503
cmp eax, dword [ebp + 0xa0]
jle 0x200895ab
call fcn.20081cdf
mov dword [eax], 0x22
jmp 0x20089503
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.2007f120
pop ecx
pop ecx
jmp 0x20089505

Function at 0x200898a6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x200e07f0], ebx
push esi
push edi
jne 0x20089926
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x20089961
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x200b2c64
push edi
call esi
test eax, eax
mov dword [0x200e07f0], eax
je 0x20089961
push 0x200b2c54
push edi
call esi
push 0x200b2c40
push edi
mov dword [0x200e07f4], eax
call esi
cmp dword [0x200e0378], 2
mov dword [0x200e07f8], eax
jne 0x20089926
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x200e0800], eax
je 0x20089926
push 0x200b2c0c
push edi
call esi
mov dword [0x200e07fc], eax
mov eax, dword [0x200e07fc]
test eax, eax
je 0x2008996b
call eax
test eax, eax
je 0x20089952
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x200e0800]
test eax, eax
je 0x20089952
test byte [ebp - 8], 1
jne 0x2008996b
cmp dword [0x200e0384], 4
jb 0x20089965
or byte [ebp + 0x12], 0x20
jmp 0x2008998a
xor eax, eax
jmp 0x2008999a
or byte [ebp + 0x12], 4
jmp 0x2008998a
mov eax, dword [0x200e07f4]
test eax, eax
je 0x2008998a
call eax
mov ebx, eax
test ebx, ebx
je 0x2008998a
mov eax, dword [0x200e07f8]
test eax, eax
je 0x2008998a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x200e07f0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2008cc78
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.2007eb40
mov eax, dword [0x200cc84c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.200896eb
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x2008cdad
push 2
push esi
push dword [ebp + 8]
call fcn.200896eb
add esp, 0xc
cmp eax, ebx
je 0x2008cdad
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x2008cd4d
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.2007e690
push 0x8000
push dword [ebp + 8]
call fcn.2008dc9b
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x2008cd03
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.20086d8a
add esp, 0xc
cmp eax, 0xffffffff
je 0x2008cd23
sub edi, eax
test edi, edi
jg 0x2008ccfb
jmp 0x2008cd3b
call fcn.20081ce8
cmp dword [eax], 5
jne 0x2008cd38
call fcn.20081cdf
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.2008dc9b
pop ecx
pop ecx
jmp 0x2008cd95
jge 0x2008cd95
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.200896eb
push dword [ebp + 8]
call fcn.20081a60
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 0x2008cd95
call fcn.20081cdf
mov dword [eax], 0xd
call fcn.20081ce8
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.200896eb
add esp, 0xc
mov eax, esi
pop edi
jmp 0x2008cdaf
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret
Function at 0x2008dac5
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 0x2008dade
or eax, 0xffffffff
jmp 0x2008db3f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x2008db3b
push 0x3d
push esi
call fcn.2007f6af
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x2008db3b
cmp esi, eax
je 0x2008db3b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x200e0398]
sete cl
cmp eax, dword [0x200e039c]
mov dword [ebp - 4], ecx
jne 0x2008db21
mov edi, eax
call fcn.2008da64
mov dword [0x200e0398], eax
cmp eax, ebx
jne 0x2008db7a
cmp dword [ebp + 0xc], ebx
je 0x2008db43
cmp dword [0x200e03a0], ebx
je 0x2008db43
call fcn.2008cbe8
test eax, eax
je 0x2008db7a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x2008db4c
xor eax, eax
jmp 0x2008db3e
push 4
call fcn.2007ee10
cmp eax, ebx
pop ecx
mov dword [0x200e0398], eax
je 0x2008db3b
mov dword [eax], ebx
cmp dword [0x200e03a0], ebx
jne 0x2008db7a
push 4
call fcn.2007ee10
cmp eax, ebx
pop ecx
mov dword [0x200e03a0], eax
je 0x2008db3b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x200e0398]
sub edi, esi
push esi
call fcn.2008da17
mov edi, eax
test edi, edi
pop ecx
jl 0x2008dbe1
cmp dword [ebx], 0
je 0x2008dbe1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.2007ee22
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x2008dbc1
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x2008dc22
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x2008dbb8
mov eax, edi
shl eax, 2
push eax
push dword [0x200e0398]
call fcn.20080c0f
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x2008dc22
jmp 0x2008dc1d
cmp dword [ebp - 4], 0
jne 0x2008dc89
test edi, edi
jge 0x2008dbf1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x200e0398]
call fcn.20080c0f
test eax, eax
pop ecx
pop ecx
je 0x2008db3b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x200e0398], eax
cmp dword [ebp + 0xc], 0
je 0x2008dc74
push esi
call fcn.2007d3c0
inc eax
inc eax
push eax
call fcn.2007ee10
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x2008dc74
push esi
push edi
call fcn.2007f120
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x2008dc6d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.2007ee22
pop ecx
cmp dword [ebp - 4], 0
je 0x2008dc81
push esi
call fcn.2007ee22
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x2008db3e
push esi
call fcn.2007ee22
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x2008db48
Function at 0x2008e11f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x200cc84c]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.2008e0ef
mov eax, 0x20000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.2007e690
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x2008e183
cmp dword [ebp - 0x1c], 5
jb 0x2008e19b
jmp 0x2008e197
cmp dword [ebp - 0x10], 1
jne 0x2008e19b
cmp dword [ebp - 0x1c], 4
ja 0x2008e197
jne 0x2008e19b
cmp dword [ebp - 0x18], 0
jbe 0x2008e19b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x200b33e4
call fcn.2000f7d0
test eax, eax
jge 0x2008e1bc
mov byte [0x200cdb50], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.2007c9ae
add ebp, 0x78
leave
ret

Function at 0x200900f8
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 0x2009012f
call fcn.20098beb
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 0x20090140
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x20090179
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x2009015e
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x20090166
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x20090177
test ax, ax
jne 0x20090177
test si, si
je 0x20090179
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x20090188
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x200903da
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x200a318c
call fcn.2007d394
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.20098beb
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x20090428
call fcn.20098beb
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 0x20090439
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x20090445
or eax, 0xffffffff
jmp 0x20090548
mov ecx, esi
call fcn.2008ff1c
mov dword [ebp - 0x14], eax
call fcn.20091c2e
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x20090488
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x20090488
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x20090488
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.20092ea0
push dword [ebp - 0x14]
call fcn.20091b86
push edi
push eax
push ebx
mov ecx, esi
call fcn.200901cd
xor ebx, ebx
cmp eax, ebx
je 0x200904fc
test byte [esi + 0x38], 0x10
je 0x200904ca
push 4
pop edi
mov ecx, esi
call fcn.20093bb2
test ah, 1
je 0x200904c2
push 5
pop edi
push edi
mov ecx, esi
call fcn.2009162a
cmp dword [esi + 0x1c], ebx
je 0x200904fc
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.20093cd4
jmp 0x200904fc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x20090510
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x20090529
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x20090529
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.2008ff56
cmp dword [esi + 0x54], ebx
je 0x20090545
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 0x200905bb
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 0x200905db
cmp dword [edi + 0x50], 0
jne 0x200905db
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.20098beb
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.20090582
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 0x200925dc
Capabilities:
Get graphical window text

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

Function at 0x2009380d
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 0x20093850
call fcn.20098beb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x20093850
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x2009386b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.20092968
test ebx, ebx
mov esi, eax
je 0x20093869
test edi, edi
je 0x20093869
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x200939b6
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x200a4a9c
mov ecx, edi
call fcn.20003052
cmp dword [esi + 0x48], 0
push dword [esp + 0xc]
jne 0x20093a09
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x20093a1c
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.20077bb4
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.200254a9
jmp 0x20093a1c
mov ecx, esi
call fcn.20093b12
test eax, eax
je 0x20093a1c
push edi
mov ecx, eax
call fcn.200925dc
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x200961bc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x200cc84c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x2009620f
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jne 0x2009620f
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x20096217
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 8
Function at 0x20096975
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x200cc84c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x200969c6
push edi
call fcn.2009a4fb
mov esi, eax
test esi, esi
je 0x200969ea
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x200969ea
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x200a4c68
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.2007c9ae
leave
ret 0xc

Function at 0x200976b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x200976ce
mov edi, dword [esi + 0xc]
jmp 0x200976f8
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x200976f8
call fcn.2009553f
call fcn.20098beb
cmp dword [eax + 0x1038], 0
je 0x20097710
push edi
mov ecx, ebx
call fcn.20096ab9
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.200975d7
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x2009772e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x2009773a
mov edi, eax
mov dword [ebx + 0x58], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8