joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4061e2
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x45d568
call fcn.0041f258
sub esp, 0x2f4
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [edi], vtable.Editor.0
mov dword [edi + 4], ebx
mov dword [edi + 8], edx
mov dword [edi + 0xc], edx
mov dword [ebp - 4], edx
mov dword [edi + 0x10], edx
mov byte [ebp - 4], 1
mov dword [edi + 0x14], edx
mov byte [ebp - 4], 2
mov dword [edi + 0x18], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x1c], edx
mov dword [edi + 0x20], edx
mov word [edi + 0xdc], 0x101
mov byte [edi + 0xde], 1
mov eax, dword [ecx]
mov dword [edi + 0x10], eax
mov dword [ecx], edx
mov ecx, edi
call fcn.004068b0
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x300]
call fcn.00411ce1
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x10]
add ecx, 0x24
push ecx
mov ecx, eax
call fcn.00411ded
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x300]
call fcn.00411d72
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RICHED20.DLL
call esi
push str.Msftedit.DLL
call esi
mov ecx, dword [edi + 0x10]
push 1
push 1
push str.WordWrap
call fcn.004055d8
mov edx, dword [ebp + 8]
test eax, eax
mov ecx, ebx
setne al
movzx eax, al
push eax
push edi
call fcn.00401d96
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.00407207
call fcn.00406f82
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x4062e5
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4062de
mov eax, dword [eax + 4]
jmp 0x4062e0
xor eax, eax
push 0
push eax
call esi
push 0x1c
call fcn.0041f215
pop ecx
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x406307
push 0x3ef
push ebx
mov ecx, eax
call fcn.0041a565
jmp 0x406309
xor eax, eax
mov byte [ebp - 4], 4
mov dword [edi + 0x18], eax
call fcn.00406f6b
test eax, eax
jne 0x40632c
mov eax, dword [edi + 0x18]
test eax, eax
je 0x406325
mov eax, dword [eax + 4]
jmp 0x406327
xor eax, eax
push 0
push eax
call esi
lea ecx, [ebp - 0x28]
call fcn.00406959
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00406942
push eax
call fcn.004069ce
push eax
call fcn.004069e5
push eax
call fcn.004069b7
push eax
push esi
lea ecx, [edi + 0x24]
lea edx, [edi + 0x1c]
call fcn.00406f99
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.004017c6
lea ecx, [ebp - 0x28]
call fcn.00406ebd
mov esi, eax
mov byte [ebp - 4], 8
call fcn.00406ea6
push eax
call fcn.00406f32
push eax
call fcn.00406f49
push eax
call fcn.00406f1b
push eax
push esi
lea ecx, [edi + 0x80]
lea edx, [edi + 0x20]
call fcn.00406f99
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.004017c6
mov byte [ebp - 4], 3
push dword [ebp + 8]
call fcn.0041f2ab
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x406646
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x45d61a
call fcn.0041f258
sub esp, 0x480
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x24]
push esi
mov eax, dword [ebx + 0x10]
add eax, 0x24
push eax
call fcn.00401708
and dword [ebp - 4], 0
mov esi, 0x463fe8
push esi
call fcn.0042a10c
cmp dword [ebp - 0x10], 8
mov edx, dword [ebp - 0x14]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
cmovae ecx, dword [ebp - 0x24]
push 0xffffffffffffffff
call fcn.00406193
push eax
lea ecx, [ebp - 0x24]
call fcn.00406853
mov ecx, dword [ebx + 0x10]
lea eax, [ebp - 0x74]
push eax
call fcn.004057c2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
mov edx, dword [ebx + 4]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 2
call fcn.00403185
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.004017c6
push 0xc7
push 0xf121
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
lea edx, [ebp - 0x3c]
mov ecx, eax
call fcn.00417c63
test al, al
je 0x40682b
push edi
mov edi, 0x106
cmp dword [ebp - 0x2c], 0
je 0x4067ec
push 0x20c
lea eax, [ebp - 0x280]
push 0
push eax
call fcn.00421460
mov esi, dword [ebx + 0x10]
add esp, 0xc
add esi, 0x24
cmp dword [esi + 0x14], 8
jb 0x40672a
mov esi, dword [esi]
push esi
call fcn.0042a10c
push esi
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, edi
cmovb eax, ecx
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0042a0a8
push 0x20c
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.00421460
cmp dword [ebp - 0x28], 8
lea esi, [ebp - 0x3c]
cmovae esi, dword [ebp - 0x3c]
push esi
call fcn.0042a10c
push esi
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, edi
cmovb eax, ecx
push eax
lea eax, [ebp - 0x48c]
push eax
call fcn.0042a0a8
mov eax, dword [ebx + 4]
lea edi, [ebp - 0x4a]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x280]
mov dword [ebp - 0x58], 2
mov dword [ebp - 0x54], eax
add esp, 0x2c
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x50], eax
mov eax, 0x111
mov word [ebp - 0x4c], ax
xor eax, eax
stosd dword es:[edi], eax
push 0x96
push 0x463fec
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041ca6a
mov byte [ebp - 4], 4
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x406813
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.0041caf0
mov edi, 0x106
push 0xc7
push 0xf121
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
lea edx, [ebp - 0x3c]
mov ecx, eax
call fcn.00417c63
test al, al
jne 0x4066fc
jmp 0x40682a
lea eax, [ebp - 0x3c]
mov ecx, ebx
push eax
call fcn.0040710f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.0041caf0
pop edi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004017c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004017c6
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x407016
Capabilities:
Get file attributes

Disassembly:
cmp dword [ecx + 0x40], 5
jne 0x40701f
mov al, 1
ret
lea eax, [ecx + 0x24]
cmp dword [eax + 0x14], 8
jb 0x40702a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 1
ret
Function at 0x409305
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x45dd41
call fcn.0041f258
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x40935f
push str.CreateFileMapping_failed
lea ecx, [ebp - 0x24]
call fcn.004014c8
mov dword [ebp - 4], ebx
call esi
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.0040915d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004017c6
push 2
pop eax
cmp dword [ebp + 0x10], eax
push 4
pop ecx
push dword [ebp + 0xc]
cmove eax, ecx
push ebx
push ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 4], eax
test eax, eax
jne 0x4093b8
call esi
push dword [edi]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.MapViewOfFile_failed
lea ecx, [ebp - 0x24]
mov dword [edi], ebx
call fcn.004014c8
mov dword [ebp - 4], 1
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0040915d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004017c6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a387
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
lea eax, [ebp - 0x418]
push esi
push edi
push 0x20a
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00421460
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40a3b4
mov esi, dword [esi]
push 0x105
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40a3dc
call esi
cmp eax, 2
jne 0x40a3dc
xor al, al
jmp 0x40a433
push 0x20a
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00421460
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40a3fa
mov edi, dword [edi]
push 0x105
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x40a418
call esi
cmp eax, 2
je 0x40a3d8
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.0042a7e7
neg eax
pop ecx
sbb al, al
pop ecx
inc al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a565
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x45e020
call fcn.0041f258
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
call fcn.00413847
push eax
mov dword [ebp - 0x10], eax
call fcn.0041f2a2
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
test esi, esi
je 0x40a59d
and dword [esi], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp + 8], 0
lea eax, [ebp + 8]
and dword [ebp - 0x18], 0
push 0
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a5f2
call ebx
cmp eax, 0x6d
je 0x40a5f2
push str.Failed_to_read_standard_input
lea ecx, [ebp - 0x38]
call fcn.004014c8
mov byte [ebp - 4], 1
call ebx
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.0040915d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004017c6
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a642
test esi, esi
je 0x40a5ff
add dword [esi], eax
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a5a3
push str.WriteFile_failed
lea ecx, [ebp - 0x50]
call fcn.004014c8
mov byte [ebp - 4], 2
call ebx
mov edx, eax
lea ecx, [ebp - 0x50]
call fcn.0040915d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004017c6
jmp 0x40a5a3
or dword [ebp - 4], 0xffffffff
push edi
call fcn.0041f2ab
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a660
Capabilities:
Delete file
Move file

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40a668
mov ecx, dword [ecx]
push 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
ret

Function at 0x40a743
Capabilities:
Get disk size

Disassembly:
mov eax, 0x45e04c
call fcn.0041f258
sub esp, 0x28
push esi
xor esi, esi
mov edx, ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.0040a7b2
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x18]
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push ecx
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov esi, dword [ebp - 0x10]
imul esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004017c6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40a8c8
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov eax, 0x45e0aa
call fcn.0041f258
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], ebx
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push edx
push ebx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x40a932
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.0041bfc0
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.004015da
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004017c6
mov byte [ebp - 4], bl
cmp dword [ebp - 0x10], 0
je 0x40a944
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40a956
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45e0dd
call fcn.0041f258
sub esp, 0x438
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x238]
push 0x20a
mov esi, ecx
push ebx
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x10], ebx
call fcn.00421460
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40a9d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00404340
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.004017c6
push 0x464da0
lea eax, [ebp - 0x238]
push 0x105
push eax
call fcn.0042a0a8
add esp, 0xc
push 0x20a
lea eax, [ebp - 0x444]
push ebx
push eax
call fcn.00421460
add esp, 0xc
lea eax, [ebp - 0x444]
push eax
push ebx
push 0x464d98
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40aa33
push str.Unable_to_create_temporary_file
lea ecx, [ebp - 0x2c]
call fcn.004014c8
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.0040915d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.004017c6
lea eax, [ebp - 0x444]
mov ecx, esi
push eax
call fcn.004014c8
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40aa73
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x45e0ef
call fcn.0041f258
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x21c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.00421460
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x105
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.0042b6b2
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00421460
add esp, 0x3c
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x428]
push eax
push ebx
push 0x464d98
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40ab14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
sub ecx, 0x13
je 0x40ab50
dec ecx
sub ecx, 1
je 0x40ab3f
sub ecx, 0xf6
je 0x40ab47
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x15
pop ecx
call fcn.00408165
mov ecx, edi
call fcn.00408165
jmp 0x40ab14
mov bl, 1
jmp 0x40ab21

Function at 0x40ab54
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x45e121
call fcn.0041f258
sub esp, 0x38
push ebx
push esi
push edi
push 0x8001
mov dword [ebp - 0x10], edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x40ab88
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40abbf
push str.modifyAttribs:_GetFileAttributes_failed
lea ecx, [ebp - 0x2c]
call fcn.004014c8
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0040908e
mov byte [ebp - 4], 1
jmp 0x40ac04
mov eax, dword [ebp + 8]
or ecx, dword [ebp - 0x10]
not eax
and ecx, eax
cmp dword [edi + 0x14], 8
jb 0x40abd1
mov edi, dword [edi]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40ac19
push str.modifyAttribs:_SetFileAttributes_failed
lea ecx, [ebp - 0x2c]
call fcn.004014c8
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.0040908e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
call fcn.004017c6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.004017c6
jmp 0x40ac1b
mov bl, 1
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40accd
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45e13b
call fcn.0041f258
sub esp, 0x24
push ebx
push esi
push edi
push 0x8001
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov dword [ebp - 0x18], esi
and dword [ebp - 4], 0
mov edx, edi
lea ecx, [ebp - 0x30]
call fcn.0040a7b2
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
xor edx, edx
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x10]
push edx
push edx
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edx
push ecx
push edx
push edx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], edx
cmovae eax, dword [ebp - 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x40ad34
test byte [ebp - 0x10], 0x10
jne 0x40ad36
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004017c6
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40b341
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x45e208
call fcn.0041f258
sub esp, 0x198
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 0x147
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x192
mov esi, eax
lea eax, [ebp - 0x1a4]
push ebx
push eax
call fcn.00421460
add esp, 0xc
cmp byte [ebp + 0x10], bl
je 0x40b3a1
cmp esi, 0xffffffff
je 0x40b3a1
lea eax, [ebp - 0x1a4]
push eax
push esi
push 0x148
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40b3b6
push 0xc9
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1a4]
push eax
call fcn.004014c8
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40bebe
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x45e33d
call fcn.0041f258
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x40bed9
mov eax, dword [edi + 4]
jmp 0x40bedb
xor eax, eax
push 0x413
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, eax
call fcn.0040c1a2
push 1
mov ecx, edi
call fcn.0040c1cd
mov eax, dword [edi + 0xc]
xor esi, esi
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x40bf08
mov eax, dword [ebx + 4]
jmp 0x40bf0a
xor eax, eax
push 0
push 0
push 0xb
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp byte [edi + 0x5d], cl
je 0x40bf4c
mov esi, dword [ebx]
call fcn.00406a49
movzx eax, al
push eax
call fcn.00406a65
movzx eax, al
mov ecx, ebx
push eax
lea eax, [edi + 0x28]
push eax
lea eax, [edi + 0x10]
push eax
call dword [esi + 0xb0]
mov esi, eax
jmp 0x40bfca
mov eax, dword [ebx]
push ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, ebx
call dword [eax + 0x44]
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 0
call dword [eax + 0x48]
lea ecx, [ebp - 0xd]
mov byte [ebp - 0xd], 0
push ecx
mov ecx, dword [edi + 0xc]
lea eax, [edi + 0x10]
push eax
call fcn.00407917
test al, al
je 0x40bfbd
cmp byte [ebp - 0xd], 0
jne 0x40bfb9
lea ecx, [edi + 0x28]
cmp dword [ecx + 0x14], 8
jb 0x40bf8f
mov ecx, dword [ecx]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x4c]
push 0x1b
inc esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x40bfb9
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0xd]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.00407917
test al, al
jne 0x40bf7e
test esi, esi
jne 0x40bfca
push dword [ebp - 0x14]
mov eax, dword [ebx]
mov ecx, ebx
push dword [ebp - 0x14]
call dword [eax + 0x48]
push esi
dec esi
lea eax, [ebp - 0x30]
neg esi
sbb esi, esi
add esi, 0x9c72
push esi
push eax
call fcn.0040c563
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push 0x413
mov ecx, edi
call fcn.004043e7
mov edx, 0x9c73
lea ecx, [ebp - 0x48]
call fcn.0041c337
mov byte [ebp - 4], 2
mov ecx, edi
push eax
push 2
call fcn.004043e7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004017c6
mov ecx, edi
call fcn.0040affd
push 0
push 2
push 0x401
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004017c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401cc1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c6ff
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x45e3d9
call fcn.0041f258
sub esp, 0x1dc
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x30]
and dword [ebp - 0x1c], 0
xor eax, eax
stosd dword es:[edi], eax
mov ebx, edx
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xa
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push eax
lea eax, [ebp - 0x30]
mov edi, 0x400
push eax
push 0xf
push edi
call esi
lea eax, [ebp - 0x30]
push eax
call fcn.0042ba44
push 0xc8
lea eax, [ebp - 0x1e8]
push 0
push eax
call fcn.00421460
add esp, 0x10
lea eax, [ebp - 0x1e8]
push 0x64
push eax
push 0x10
push edi
call esi
push 0xa
pop eax
mov ecx, eax
lea edi, [ebp - 0x58]
xor eax, eax
lea esi, [ebp - 0x1e8]
rep stosd dword es:[edi], eax
xor edi, edi
cmp ax, word [ebp - 0x1e8]
je 0x40c7cd
push 0x30
pop ebx
movzx eax, word [esi]
cmp bx, ax
je 0x40c7c1
push eax
call fcn.0042b9a3
pop ecx
test eax, eax
je 0x40c7b1
push 0xa
pop eax
cmp edi, eax
jae 0x40c7c1
movzx eax, word [esi]
sub eax, ebx
mov dword [ebp + edi*4 - 0x58], eax
inc edi
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
xor eax, eax
cmp ax, word [esi]
jne 0x40c78d
mov ebx, dword [ebp - 0x10]
test edi, edi
je 0x40c7cd
mov esi, dword [ebp - 0x58]
jmp 0x40c7d6
push 3
pop esi
xor edi, edi
mov dword [ebp - 0x58], esi
inc edi
push 0xc6
lea eax, [ebp - 0x11e]
push 0
push eax
call fcn.00421460
and dword [ebp - 0x14], 0
add esp, 0xc
mov eax, ebx
lea ebx, [ebp - 0x11e]
cdq
push 0xa
pop ecx
idiv ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
lea eax, [edx + 0x30]
mov word [ebp - 0x120], ax
jmp 0x40c871
dec esi
test esi, esi
jg 0x40c85b
lea esi, [ebp - 0x58]
lea eax, [ebp - 0x30]
sub esi, ebx
push eax
sar esi, 1
call fcn.0042a10c
inc eax
cmp eax, esi
cmovb esi, eax
lea eax, [ebp - 0x30]
push eax
push esi
push ebx
call fcn.0042a0a8
push ebx
call fcn.0042a10c
lea ecx, [edi - 1]
add esp, 0x14
lea ebx, [ebx + eax*2]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
mov ecx, dword [ebp - 0x10]
lea edx, [eax + 1]
cmovge edx, eax
mov eax, edx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + eax*4 - 0x58]
mov eax, ecx
push 0xa
cdq
pop ecx
idiv ecx
mov ecx, eax
mov dword [ebp - 0x10], eax
lea eax, [edx + 0x30]
mov word [ebx], ax
add ebx, 2
test ecx, ecx
jg 0x40c80f
lea eax, [ebp - 0x120]
push eax
call fcn.0042ba44
pop ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x120]
push eax
call fcn.004014c8
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40de21
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x45e768
call fcn.0041f258
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, ecx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
xor ecx, ecx
push 2
pop edx
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f2a2
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x18
call fcn.0041f215
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x40de82
push edi
mov ecx, eax
call fcn.004014c8
jmp 0x40de84
xor eax, eax
mov byte [ebp - 4], 0
mov ecx, 0x47d9a8
push eax
push ebx
call fcn.0040ef01
or dword [ebp - 4], 0xffffffff
push edi
call fcn.0041f2ab
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret