joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100273a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.10015c00
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x1002746b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1002746b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x1002741e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x10027429
or bh, 8
and edi, 0x8000000
je 0x10027444
mov eax, dword [0x1007b39c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x1002746b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10027840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x1002786b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x1002788f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x100278aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x10038f24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x1006182c
call fcn.100149b8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.1005092f
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x10038f63
call fcn.1005092f
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10038f71
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10038f7f
or eax, 0xffffffff
jmp 0x10039067
mov ecx, esi
call fcn.10038e9a
mov dword [ebp - 0x14], eax
call fcn.10039d34
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x10038fb6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x10038fb6
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.10039ce8
push dword [ebp - 0x14]
call fcn.10039835
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.10038baa
cmp eax, edi
je 0x10039029
test byte [esi + 0x24], 0x10
je 0x10038ff7
push 4
mov ecx, esi
pop ebx
call fcn.1003cb9b
test ah, 1
je 0x10038fef
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.1003c285
cmp dword [esi + 0x1c], edi
je 0x10039029
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.1003cd27
jmp 0x10039029
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x1003903d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x10039056
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x10039056
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.10038ed4
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x1003a22c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003a264
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.1003d682
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1003d65a
jmp 0x1003a270
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x1003c02e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1003c070
call fcn.1005092f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1003c070
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1003c067
xor eax, eax
jmp 0x1003c078
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1003c07e
pop edi
pop esi
pop ebx
ret 4
Function at 0x406e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [edi]
imul eax, eax, 0x2710
movzx ecx, word [edi + 2]
imul ecx, ecx, 0x64
add ecx, eax
movzx edi, word [edi + 6]
add edi, ecx
cmp edi, dword [esi + 0x1c]
jne 0x406e7e
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x406e7e
mov ebx, 3
cmp dword [esi + 0x20], eax
jge 0x406ef2
mov edx, dword [ebp + 0x14]
xor ebx, ebx
lea eax, [ebp - 0x24]
mov dword [eax], ebx
mov ecx, dword [ebp + 8]
push eax
push edx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
call fcn.00406fc0
add esp, 0x18
test al, al
je 0x406eab
cmp dword [esi + 0x1c], edi
jne 0x406ebd
mov eax, dword [esi + 0x20]
jmp 0x406ec2
mov eax, 0xfffffe70
add eax, dword [ebp - 0x24]
xor ebx, ebx
cmp eax, 0x64
setb bl
jmp 0x406ef2
mov dword [esi + 0x1c], edi
xor eax, eax
inc eax
mov dword [esi + 0x20], eax
cmp dword [esi + 0x10], 0
je 0x406eed
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406ed6
mov eax, dword [esi]
push 0x42d8a8
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x406f08
mov ebx, 2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d150
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push dword [ebp - 0x20]
push 1
push 5
push str.GBP1_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0041ec80
add esp, 0xc
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ecx
call fcn.0041ec80
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
jmp 0x406eed
Function at 0x409fa0
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 8], eax
push str.MOZ_CRASHREPORTER_NO_DELETE_DUMP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x409fcc
cmp byte [eax], 0
jne 0x40a0f7
cmp dword [0x431504], 0
je 0x40a031
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x4314f4
call fcn.00415b50
cmp dword [esi + 0x14], 8
jb 0x409fed
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40a031
mov ecx, dword [ebp - 0x20]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x40a027
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40a107
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c66c
add esp, 8
cmp dword [0x43151c], 0
je 0x40a096
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x43150c
call fcn.00415b50
cmp dword [esi + 0x14], 8
jb 0x40a052
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40a096
mov ecx, dword [ebp - 0x20]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x40a08c
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40a107
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c66c
add esp, 8
cmp dword [0x431534], 0
je 0x40a0f7
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x431524
call fcn.00415b50
cmp dword [esi + 0x14], 8
jb 0x40a0b7
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40a0f7
mov ecx, dword [ebp - 0x20]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x40a0ed
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x40a107
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c66c
add esp, 8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d150
add esp, 0x1c
pop esi
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x415330
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov edx, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x28]
mov ecx, esi
call fcn.00415b50
cmp dword [esi + 0x14], 8
jb 0x415358
mov esi, dword [ebp - 0x28]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41539c
mov ecx, dword [ebp - 0x28]
lea edi, [eax + eax]
add edi, 2
cmp edi, 0x1000
jb 0x415392
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4153c7
add eax, eax
add eax, 0x25
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.0041c66c
add esp, 8
test esi, esi
jne 0x4153ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4153c3
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d150
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4153af
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x416510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
movzx eax, cx
cmp byte [0x431610], 1
jne 0x41659e
xor ebx, ebx
push 5
push eax
push ebx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push eax
push ebx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push ebx
push dword [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
or byte [esi + 0xa], 0x40
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x4165ad
xor ecx, ecx
push ecx
push dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x418040
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov edi, edx
mov esi, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x10]
cmp dword [ecx + 0x10], eax
jne 0x418086
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x418069
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x418073
mov edx, dword [edi]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x418132
lea ebx, [ebp - 0x28]
mov ecx, ebx
mov edx, edi
call fcn.00415b50
cmp dword [ebx + 0x14], 8
jb 0x41809b
mov ebx, dword [ebp - 0x28]
lea edi, [ebp - 0x40]
mov ecx, edi
mov edx, esi
call fcn.00415b50
cmp dword [edi + 0x14], 8
jb 0x4180b0
mov edi, dword [ebp - 0x40]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
sete bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4180f7
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x4180ed
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x418148
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c66c
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x418134
mov ecx, dword [ebp - 0x28]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x418126
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x418148
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0041c66c
add esp, 8
jmp 0x418134
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d150
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x418cb0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x818
mov esi, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
xor eax, eax
push eax
push eax
push 0x31
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x418cec
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea edi, [esi + 8]
lea eax, [ebp - 0x810]
push 0x400
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x1c], 8
mov dword [ebp - 0x824], edi
jb 0x418d15
mov edi, dword [esi + 8]
lea edx, [ebp - 0x818]
push edx
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x418d7e
lea edi, [ebp - 0x810]
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
lea ecx, [ebp - 0x820]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x418d7e
mov eax, dword [ebp - 0x818]
mov edx, dword [ebp - 0x820]
sub eax, edx
mov ebx, 0
js 0x418da5
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x418d72
mov ebx, dword [ecx + 8]
add edx, dword [ecx]
sub ebx, edx
add ebx, eax
cmp byte [esi + 0x20], 0
je 0x418d82
sub dword [ecx], ebx
jmp 0x418d85
xor ebx, ebx
jmp 0x418da5
add dword [ecx + 8], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov edi, dword [eax + 4]
sub ecx, edi
mov eax, dword [eax + 8]
sub eax, edx
push 1
push ecx
push eax
push edi
push edx
push dword [esi]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x1c]
cmp eax, 8
jb 0x418de3
mov ecx, dword [ebp - 0x824]
mov ecx, dword [ecx]
lea edi, [eax + eax]
add edi, 2
cmp edi, 0x1000
jb 0x418dd9
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x418e0e
add eax, eax
add eax, 0x25
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.0041c66c
add esp, 8
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 7
mov word [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d150
mov eax, ebx
add esp, 0x818
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x418e20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov byte [ecx], 0
lea ebx, [ebp - 0x1c]
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x418e66
push ebx
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x418e66
xor ebx, ebx
jmp 0x418ea6
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov dword [ecx], 4
lea edx, [ebp - 0x20]
lea edi, [ebp - 0x14]
push ecx
push edx
push edi
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
test eax, eax
jne 0x418e9d
cmp dword [ebp - 0x14], 4
jne 0x418e9d
cmp dword [ebp - 0x20], 1
mov eax, dword [ebp + 8]
sete byte [eax]
mov bl, 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d150
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x419fa0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x9c54
call fcn.0041d6c0
mov dword [ebp - 0x9c60], edx
mov edi, ecx
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4e32]
push 0x2711
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [ebp - 0x9c5c]
lea ebx, [ebp - 0x9c58]
push esi
push ebx
push 0xb0
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
mov ecx, dword [ebx]
mov edi, 0xfffffffe
sub eax, ecx
je 0x41a060
lea ecx, [ecx*2 - 0x4e32]
add ecx, ebp
lea edi, [ebp - 0x9c54]
push eax
push ecx
push 0x2711
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebp - 0x9c5c]
sub eax, dword [ebp - 0x9c58]
mov word [ebp + eax*2 - 0x9c54], 0
sub esp, 0x20
xor eax, eax
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x42b140]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
not edi
sub esp, 0x20
xor esi, esi
mov dword [esp + 0x1c], esi
movaps xmm0, xmmword [0x42b140]
movups xmmword [esp + 0xc], xmm0
lea eax, [ebp - 0x4e32]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, 0xfde9
mov dword [esp], eax
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call ebx
mov ecx, ebx
mov ebx, eax
sub esp, 0x20
mov dword [esp + 0x1c], esi
movaps xmm0, xmmword [0x42b140]
movups xmmword [esp + 0xc], xmm0
mov eax, dword [ebp - 0x9c60]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, 0xfde9
mov dword [esp], eax
call ecx
mov esi, eax
add ebx, edi
add esi, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d150
mov eax, esi
add esp, 0x9c54
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x41faf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x431014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x41fb92
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x41fb92
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x41fb90
mov ebx, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, ebx
mov ebx, edx
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call edi
cmp eax, 3
je 0x41fba6
cmp eax, 1
je 0x41fb6c
test eax, eax
jne 0x41fb90
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
sub edi, ebx
je 0x41fb87
push dword [esi + 0x4c]
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x41fb90
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x41fb92
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d150
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x3d], 0
mov bl, 1
jmp 0x41fb92
Function at 0x10086300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1008630f
pop dword [ebp - 0x2c]
mov eax, 0x1008630f
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x9d0bd2cd
sub dword [ebp - 0x3c], 0x4eb98d82
mov dword [ebp - 0x38], 0x4d0a0773
add dword [ebp - 0x38], 0xe52944d2
mov dword [ebp - 0x34], 0x9971083f
add dword [ebp - 0x34], 0xb2db3bef
mov dword [ebp - 0x30], 0xf1c64b63
add dword [ebp - 0x30], 0xe39b49d
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xf0dbc6b1
sub dword [ebp - 0x3c], 0x7c695d5b
mov dword [ebp - 0x38], 0xa67749ab
add dword [ebp - 0x38], 0x9af517ca
mov dword [ebp - 0x34], 0x8d6995bf
add dword [ebp - 0x34], 0xd605d6ad
mov dword [ebp - 0x30], 0x78e9c41a
sub dword [ebp - 0x30], 0x78e9c41a
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xd5734335
add eax, 0x3aa20f67
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x77c47
push 0
call eax
mov ecx, 0x50ec0cbb
add ecx, 0xaf144f1f
mov edx, eax
mov ebx, 0x91025fdd
add ebx, 0x7f7c6423
add ebx, dword [ebp - 0x2c]
mov esi, 0x40cb6129
sub esi, 0x55fd6f7d
xor dword [ebp - 0x18], 0x1c01dc1e
mov edi, dword [ebx]
mov dword [ebp - 0xc], 0x46da5342
sub edi, esi
sub dword [ebp - 0x20], 0x6a061d2a
mov dword [edx], edi
add dword [ebp - 0x24], 0x6c452088
add edx, 4
add ebx, 4
loop 0x10086427
add eax, 0x3846b7fc
sub eax, 0x384555c1
mov ebx, eax
add eax, 0x830d9ba
sub eax, 0x830d9b5
mov ecx, 0xcf77ae8c
sub ecx, 0xbf77ae8c
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret