joyce8/EMBER2024-capa huggingface dataset:
Function at 0x522850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x7c7d00
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7c7c3c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x5228cb
push 0x4c
push 1
call fcn.00537c73
mov esi, eax
add esp, 8
test esi, esi
jne 0x522893
push 0x7c7d00
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x7c7c3c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x7bcfe4]
inc eax
lea edx, [esi + 0xc]
mov dword [0x7bcfe4], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.005263a0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x7c7d00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x522d50
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00538102
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.005424c9
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x522e4a
call fcn.00538102
cmp dword [eax], 0
je 0x522d97
call fcn.00538102
mov ebp, dword [eax]
jmp 0x522d9a
or ebp, 0xffffffff
call fcn.005228e0
test esi, esi
mov dword [eax], ebp
jne 0x522daf
call fcn.00538102
cmp dword [eax], 4
je 0x522dff
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x522de2
cmp esi, 0xffffffff
je 0x522e24
test al, 6
je 0x522de2
call fcn.005228e0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.005263d0
add esp, 4
push eax
push 0x24
push 9
call fcn.00523130
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x522e42
test al, 6
je 0x522df0
test ah, 2
je 0x522e42
test esi, esi
jbe 0x522e4e
test ah, 2
je 0x522e4e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.00538102
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.005424c9
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x522e4a
jmp 0x522d84
call fcn.005228e0
mov eax, dword [eax]
push eax
push ebx
call fcn.005263d0
add esp, 4
push eax
push 0x24
push 2
call fcn.00523130
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x522e5b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x522e64
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x5392a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5392c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053808f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5392e7
test byte [esp + 8], 2
je 0x5392e7
call fcn.00538102
mov dword [eax], 0xd
call fcn.0053810b
mov dword [eax], 5
jmp 0x5392c0
xor eax, eax
ret
Function at 0x54c402
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x54c43a
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.0054a48c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0054a464
jmp 0x54c446
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x54daf4
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 0x54db36
call fcn.005539ad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x54db36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54db2d
xor eax, eax
jmp 0x54db3e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0054db44
pop edi
pop esi
pop ebx
ret 4

Function at 0x553edd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x553f0b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x553f29
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00553e43
jmp 0x553f29
mov eax, dword [esi + 0x14]
test eax, eax
je 0x553f29
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00553e43
test edi, edi
mov eax, edi
jne 0x553f13
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401150
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40c608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea eax, [esp + 0x14]
push 0x411118
lea ecx, [esp + 4]
push eax
push ecx
mov dword [esp + 0x18], 0
call fcn.00407a92
mov edx, dword [esp]
mov eax, dword [esp + 0x14]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
push 0x80
je 0x4011af
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp]
push edx
jmp 0x4011bf
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
call fcn.0040791e
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.0040791e
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4011f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40c628
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov edx, dword [0x413f60]
test edx, edx
jne 0x401220
mov dword [esp + 0x18], 0xffffffff
jmp 0x4012bc
mov edi, dword [esp + 0x20]
or ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4012b8
mov eax, dword [esp + 0x24]
push str.UP_Dll
and eax, 0xffff
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4012b8
mov ecx, dword [0x413f60]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4012b8
mov edx, dword [0x413f60]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0
push 2
push 0x40000000
push eax
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
je 0x4012b8
lea ecx, [esp + 0x24]
push 0
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x20]
call fcn.0040791e
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x407830
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 [0x43000c]
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 0x407882
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x407882
mov ebx, 3
cmp dword [esi + 0x20], eax
jge 0x407949
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.004079c0
add esp, 0x18
test al, al
je 0x4078af
cmp dword [esi + 0x1c], edi
jne 0x4078c4
mov eax, dword [esi + 0x20]
jmp 0x4078c9
mov eax, 0xfffffe70
add eax, dword [ebp - 0x24]
xor ebx, ebx
cmp eax, 0x64
setb bl
jmp 0x407949
mov dword [esi + 0x1c], edi
xor eax, eax
inc eax
mov dword [esi + 0x20], eax
cmp dword [esi + 0x10], 0
je 0x407944
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4078dd
mov eax, dword [esi]
push 0x42c8fc
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
jne 0x407944
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.004062a0
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.004062a0
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ebx, 2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e640
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x40aba0
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x1c
mov eax, dword [0x43000c]
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 0x40abcc
cmp byte [eax], 0
jne 0x40acb5
cmp dword [0x43057c], 0
je 0x40ac1b
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x43056c
call fcn.004178b0
cmp dword [esi + 0x14], 7
jbe 0x40abed
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
cmp ecx, 8
jb 0x40ac1b
mov eax, dword [ebp - 0x20]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x40acc5
push edx
push eax
call fcn.0041dcce
add esp, 8
cmp dword [0x430594], 0
je 0x40ac6a
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x430584
call fcn.004178b0
cmp dword [esi + 0x14], 7
jbe 0x40ac3c
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
cmp ecx, 8
jb 0x40ac6a
mov eax, dword [ebp - 0x20]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x40ace0
push edx
push eax
call fcn.0041dcce
add esp, 8
cmp dword [0x4305ac], 0
je 0x40acb5
lea esi, [ebp - 0x20]
mov ecx, esi
mov edx, 0x43059c
call fcn.004178b0
cmp dword [esi + 0x14], 7
jbe 0x40ac8b
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
cmp ecx, 8
jb 0x40acb5
mov eax, dword [ebp - 0x20]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x40acfb
push edx
push eax
call fcn.0041dcce
add esp, 8
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041e640
add esp, 0x1c
pop esi
pop ebp
ret
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x40ad13
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x40ac11
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x40ad13
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x40ac60
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x40ad13
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x40acab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x417140
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x1c
mov edx, ecx
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea esi, [ebp - 0x24]
mov ecx, esi
call fcn.004178b0
cmp dword [esi + 0x14], 7
jbe 0x417167
mov esi, dword [ebp - 0x24]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x417195
mov eax, dword [ebp - 0x24]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x4171bf
push edx
push eax
call fcn.0041dcce
add esp, 8
test esi, esi
jne 0x4171a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4171bb
mov bl, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041e640
mov eax, ebx
add esp, 0x1c
pop esi
pop ebx
pop ebp
ret
xor ebx, ebx
jmp 0x4171a8
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x4171d7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x41718b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x4180d0
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 [0x430688], 1
jne 0x41815e
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 edi, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push edi
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 ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
jmp 0x41816d
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 0x419a00
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 [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x10]
cmp dword [ecx + 0x10], eax
jne 0x419a46
cmp dword [esi + 0x14], 0xf
mov ecx, esi
jbe 0x419a29
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0xf
mov edx, edi
jbe 0x419a33
mov edx, dword [edi]
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
je 0x419ac6
lea ebx, [ebp - 0x28]
mov ecx, ebx
mov edx, edi
call fcn.004178b0
cmp dword [ebx + 0x14], 7
jbe 0x419a5b
mov ebx, dword [ebp - 0x28]
lea edi, [ebp - 0x40]
mov ecx, edi
mov edx, esi
call fcn.004178b0
cmp dword [edi + 0x14], 7
jbe 0x419a70
mov edi, dword [ebp - 0x40]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
sete bl
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x419aa1
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x419adc
push edx
push eax
call fcn.0041dcce
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x419ac8
mov eax, dword [ebp - 0x28]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x419af4
push edx
push eax
call fcn.0041dcce
add esp, 8
jmp 0x419ac8
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e640
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x419b0c
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x419a97
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x419b0c
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x419aba
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x41aa00
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 [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 8]
mov dword [ebp - 0x824], 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 0x41aa45
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea edi, [ebp - 0x810]
push 0x400
push edi
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x1c], 8
mov ecx, dword [ebp - 0x824]
jb 0x41aa70
mov ecx, dword [ebp - 0x824]
mov ecx, dword [ecx]
lea edx, [ebp - 0x818]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x41aad6
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 0x41aad6
mov eax, dword [ebp - 0x818]
mov ecx, dword [ebp - 0x820]
sub eax, ecx
mov ebx, 0
js 0x41aafd
mov ebx, dword [esi + 0x24]
test ebx, ebx
jne 0x41aac7
mov edx, dword [esi + 4]
mov ebx, dword [edx + 8]
sub ebx, ecx
sub ebx, dword [edx]
add ebx, eax
cmp byte [esi + 0x20], 0
mov eax, dword [esi + 4]
je 0x41aada
sub dword [eax], ebx
jmp 0x41aadd
xor ebx, ebx
jmp 0x41aafd
add dword [eax + 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 ecx, dword [esi + 0x1c]
cmp ecx, 8
jb 0x41ab25
mov eax, dword [ebp - 0x824]
mov eax, dword [eax]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jae 0x41ab50
push edx
push eax
call fcn.0041dcce
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.0041e640
mov eax, ebx
add esp, 0x818
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x41ab68
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x41ab1b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x41ab70
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 [0x43000c]
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 0x41abb6
push ebx
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x41abb6
xor ebx, ebx
jmp 0x41abf4
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]
mov ecx, dword [edi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x41abeb
cmp dword [ebp - 0x20], 1
mov eax, dword [ebp + 8]
sete byte [eax]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e640
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41af60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x83c
mov eax, dword [0x43000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x3f6
mov dword [ebp - 0x840], ecx
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
xor eax, eax
push eax
push eax
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41afac
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea esi, [ebp - 0x838]
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
push esi
push dword [ebp - 0x840]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea esi, [ebp - 0x810]
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
lea ecx, [ebp - 0x828]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x41b062
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 0x838]
mov esi, dword [ebp - 0x830]
mov dword [ebp - 0x844], ecx
sub esi, ecx
cmp eax, esi
jl 0x41b062
cvtsi2ss xmm0, eax
cvtsi2ss xmm1, esi
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x848]
cvttss2si eax, dword [ebp - 0x848]
imul eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0x834]
mov ebx, ecx
sub ebx, dword [ebp - 0x82c]
add ebx, eax
test ebx, ebx
jg 0x41b077
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e640
add esp, 0x83c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
inc edx
push edx
push eax
push esi
push ecx
push dword [ebp - 0x844]
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
mov esi, dword [0x430680]
mov ecx, dword [esi + 4]
call fcn.00421380
mov eax, dword [0x430680]
mov dword [eax + 4], esi
mov dword [eax], esi
mov dword [eax + 8], esi
mov dword [0x430684], 0
lea edi, [ebp - 0x83c]
mov dword [edi], 0x3ed
lea ecx, [ebp - 0x820]
mov edx, edi
call fcn.00421830
mov dword [edi], 0x3f4
lea edi, [ebp - 0x820]
lea edx, [ebp - 0x83c]
mov ecx, edi
call fcn.00421830
push edi
mov esi, dword [ebp - 0x840]
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
add ebx, dword [edi + 0xc]
mov dword [edi + 0xc], ebx
mov eax, dword [edi]
mov ecx, dword [edi + 4]
sub ebx, ecx
mov edx, dword [edi + 8]
sub edx, eax
xor edi, edi
inc edi
push edi
push ebx
push edx
push ecx
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
lea esi, [ebp - 0x820]
mov ecx, esi
mov edx, 0x42a514
call fcn.00421830
mov ecx, esi
mov edx, 0x42a518
call fcn.00421830
mov ecx, esi
mov edx, 0x42a51c
call fcn.00421830
mov ecx, esi
mov edx, 0x42a520
call fcn.00421830
mov ecx, esi
mov edx, 0x42a524
call fcn.00421830
mov ecx, esi
mov edx, 0x42a528
call fcn.00421830
mov ecx, esi
mov edx, 0x42a52c
call fcn.00421830
mov ecx, esi
mov edx, 0x42a530
call fcn.00421830
jmp 0x41b062