joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408c90
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444e78
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
test esi, esi
push edi
jne 0x408cb6
xor eax, eax
jmp 0x408cb9
mov eax, dword [esi + 0x1c]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 0x20
jne 0x408cdb
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x418
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
or edi, 0xffffffff
push ecx
mov ebp, eax
mov dword [esi + 0xb8], edi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [0x4574a8], edi
xor edi, edi
test ebp, ebp
jle 0x408dc5
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
push edi
mov ecx, esi
call fcn.004083b0
test eax, eax
jne 0x408d5a
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, esi
call dword [edx + 0xe8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call ebx
test eax, eax
jne 0x408d61
inc edi
cmp edi, ebp
jl 0x408d29
jmp 0x408dc5
push edi
mov ecx, esi
call fcn.00409c30
test eax, eax
jne 0x408d80
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
push esi
lea ecx, [esp + 0x2c]
mov dword [0x4574a8], edi
call fcn.0042b5e9
xor ecx, ecx
xor eax, eax
push ecx
mov edx, 2
push ecx
push ecx
mov edi, edx
push eax
mov dword [esp + 0x54], ecx
push ecx
push edi
lea ecx, [esp + 0x30]
push edx
push ecx
lea ecx, [esp + 0x48]
call fcn.00437d9b
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], 0xffffffff
call fcn.0042b65b
mov eax, dword [0x4574a8]
test eax, eax
jge 0x408de3
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov edi, dword [sym.imp.USER32.dll_CreateCursor]
push 0x447f50
push 0x447ed0
push 0x20
push 0x20
push 2
push 4
push 0
call edi
push 0x448050
push 0x447fd0
push 0x20
push 0x20
push 2
push 4
push 0
mov dword [0x45c15c], eax
call edi
mov dword [0x45c160], eax
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004248a4
mov ecx, esi
call fcn.004281e1
mov eax, dword [0x45c15c]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [0x45c158], eax
lea ecx, [esp + 0x10]
mov eax, 1
push ecx
mov dword [0x45c168], eax
mov dword [0x45c164], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0x45c140
push esi
mov ecx, esi
mov dword [0x45c140], edx
mov dword [0x45c144], eax
mov dword [0x45c16c], esi
call fcn.00409af0
mov ecx, dword [esp + 0x3c]
mov eax, dword [0x45c164]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret
Function at 0x410e70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410e9a
test byte [esp + 0xc], 0x80
je 0x410e8c
and al, 0xfe
jmp 0x410e8e
or al, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x410eae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004128c0
add esp, 4
or eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x412380
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00412440
mov eax, dword [0x45e0dc]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4123a4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x45e0d8], 1
mov byte [0x45e0d4], bl
jne 0x4123fe
mov ecx, dword [0x45f6b0]
test ecx, ecx
je 0x4123ec
mov esi, dword [0x45f6ac]
sub esi, 4
cmp esi, ecx
jb 0x4123ec
mov eax, dword [esi]
test eax, eax
je 0x4123e5
call eax
mov ecx, dword [0x45f6b0]
sub esi, 4
cmp esi, ecx
jae 0x4123d7
push 0x4570ac
push 0x4570a4
call fcn.00412460
add esp, 8
push 0x4570b8
push 0x4570b0
call fcn.00412460
add esp, 8
test ebx, ebx
je 0x41241d
call fcn.00412450
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x45e0dc], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x412480
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.00412210
mov esi, eax
add esp, 8
test esi, esi
je 0x4124e0
push esi
call fcn.00414440
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x412500
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4124f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.00411830
add esp, 4
test edi, edi
je 0x4124f6
push edi
call fcn.004128c0
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x4143e0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004146a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x4589f0], eax
je 0x414438
push 0x74
push 1
call fcn.00412210
mov esi, eax
add esp, 8
test esi, esi
je 0x414438
mov eax, dword [0x4589f0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x414438
push esi
call fcn.00414440
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x414460
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x4589f0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4144ce
push 0x74
push 1
call fcn.00412210
mov esi, eax
add esp, 8
test esi, esi
je 0x4144c4
mov ecx, dword [0x4589f0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4144c4
push esi
call fcn.00414440
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00411230
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret

Function at 0x4144e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x4589f0]
cmp eax, 0xffffffff
je 0x41457c
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x414504
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x41456d
mov eax, dword [esi + 0x24]
test eax, eax
je 0x414514
push eax
call fcn.00411830
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x414524
push eax
call fcn.00411830
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x414534
push eax
call fcn.00411830
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x414544
push eax
call fcn.00411830
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x414554
push eax
call fcn.00411830
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x414564
push eax
call fcn.00411830
add esp, 4
push esi
call fcn.00411830
add esp, 4
mov eax, dword [0x4589f0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x415a00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x415a2c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x45f5a0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x415a67
push 2
push ebp
push ecx
call fcn.0041a250
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x415bc9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x415b11
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x415ac2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x415aaf
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x415a92
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415bba
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x415b0d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x415a8e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x415ba9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x415b65
cmp eax, 5
jne 0x415b4e
call fcn.00412940
mov dword [eax], 9
call fcn.00412950
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004128c0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x415b85
cmp byte [ebp], 0x1a
jne 0x415b85
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00412940
mov dword [eax], 0x1c
call fcn.00412950
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x415b0d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415bfa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x415b11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x415b11
Function at 0x416ba0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x45e3e8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x416be2
call edi
mov esi, eax
test esi, esi
je 0x416bcc
mov eax, 1
jmp 0x416bdd
call ebp
mov ebx, eax
test ebx, ebx
je 0x416cef
mov eax, 2
mov dword [0x45e3e8], eax
cmp eax, 1
jne 0x416c82
test esi, esi
jne 0x416bfb
call edi
mov esi, eax
test esi, esi
je 0x416cef
cmp word [esi], 0
mov eax, esi
je 0x416c15
add eax, 2
cmp word [eax], 0
jne 0x416c03
add eax, 2
cmp word [eax], 0
jne 0x416c03
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x416c74
push edi
call fcn.00411760
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x416c74
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x416c66
push ebx
call fcn.00411830
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x416cef
test ebx, ebx
jne 0x416c93
call ebp
mov ebx, eax
test ebx, ebx
je 0x416cef
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x416cab
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x416c9b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x416c9b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00411760
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x416ccd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x417070
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x458ce8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x417094
add eax, 8
inc ebp
cmp eax, 0x458d78
jb 0x417085
cmp ecx, dword [ebp*8 + 0x458ce8]
jne 0x41723b
mov eax, dword [0x45e098]
cmp eax, 1
je 0x4171fd
test eax, eax
jne 0x4170c0
cmp dword [0x4586b4], 1
je 0x4171fd
cmp ecx, 0xfc
je 0x41723b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4170fb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x417144
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x44e88c
add ebx, ecx
push ebx
call fcn.00419b60
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44e86c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x458cec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0041af80
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x45f5a0]
test eax, eax
je 0x41720e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x417218
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x458cec]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x41b920
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x45e548]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x41b968
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x41b948
mov eax, 2
jmp 0x41b963
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ba48
mov eax, 1
mov dword [0x45e548], eax
cmp eax, 2
jne 0x41b988
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41ba5a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41b9a3
mov ecx, dword [0x45e2c0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x41b9c2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00411760
mov esi, eax
add esp, 4
test esi, esi
jne 0x41b9d9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ba3f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x41ba20
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41ba3f
push esi
call fcn.00411830
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41ba4f
push esi
call fcn.00411830
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00411830
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x41ba60
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004118a0
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.0041a250
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41bba0
push 2
push ebp
push ebx
call fcn.0041a250
add esp, 0xc
cmp eax, 0xffffffff
je 0x41bba0
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x41bb41
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.0041cbc0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x41bae6
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.00415a00
add esp, 0xc
cmp eax, 0xffffffff
je 0x41bb02
sub esi, eax
test esi, esi
jle 0x41bb1a
jmp 0x41bad7
call fcn.00412950
cmp dword [eax], 5
jne 0x41bb17
call fcn.00412940
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.0041cbc0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0041a250
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x41bb87
push 0
push ecx
push ebx
call fcn.0041a250
add esp, 0xc
push ebx
call fcn.00419f20
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x41bb87
call fcn.00412940
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00412950
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.0041a250
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x41d280
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x41d43e
push 0x3d
push edi
call fcn.004115e0
mov esi, eax
add esp, 8
test esi, esi
je 0x41d43e
cmp edi, esi
je 0x41d43e
mov dl, byte [esi + 1]
mov ecx, dword [0x45e0c0]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x45e0bc]
cmp eax, ecx
jne 0x41d2d7
push eax
call fcn.0041d510
add esp, 4
mov dword [0x45e0bc], eax
test eax, eax
jne 0x41d352
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41d2fe
mov eax, dword [0x45e0c4]
test eax, eax
je 0x41d2fe
call fcn.0041cb40
test eax, eax
je 0x41d34d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41d30a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00411760
add esp, 4
mov dword [0x45e0bc], eax
test eax, eax
je 0x41d43e
mov dword [eax], 0
mov eax, dword [0x45e0c4]
test eax, eax
jne 0x41d34d
push 4
call fcn.00411760
add esp, 4
mov dword [0x45e0c4], eax
test eax, eax
je 0x41d43e
mov dword [eax], 0
mov eax, dword [0x45e0bc]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0041d490
mov esi, eax
add esp, 8
test esi, esi
jl 0x41d44f
cmp dword [ebx], 0
je 0x41d44f
test ebp, ebp
je 0x41d447
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00411830
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x41d3a9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x41d398
lea eax, [esi*4]
push eax
push ebx
call fcn.00413630
add esp, 8
test eax, eax
je 0x41d3c3
mov dword [0x45e0bc], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41d436
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00411760
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41d436
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00411830
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x41d3c7
test ebp, ebp
jne 0x41d436
test esi, esi
jge 0x41d459
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00413630
add esp, 8
test eax, eax
je 0x41d43e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x45e0bc], eax
jmp 0x41d3c7
Function at 0x4206d0
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.004118a0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42079b
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 0x42079b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42074e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x420759
or bh, 8
and edi, 0x8000000
je 0x420774
mov eax, dword [0x45f71c]
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 0x42079b
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