joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40131f
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi + 0x18], 0
jne 0x401387
push edi
push str.advapi32.dll
call fcn.00406a87
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.CreateProcessWithLogonW
push eax
mov dword [esi + 0x18], eax
call edi
push str.CreateProcessWithTokenW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
push str.OpenProcessToken
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.DuplicateTokenEx
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.ImpersonateLoggedOnUser
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.RevertToSelf
push dword [esi + 0x18]
mov dword [esi + 0x10], eax
call edi
mov dword [esi + 0x14], eax
pop edi
ret

Function at 0x401af5
Capabilities:
Modify service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x34
mov ebx, str.RemoteRegistry
push ebx
push dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], esi
call edi
cmp eax, esi
mov dword [ebp - 8], eax
je 0x401bf5
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401bec
cmp dword [ebp + 8], esi
je 0x401b9f
cmp dword [ebp - 0x20], 4
je 0x401bec
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x422
jne 0x401bec
push 0x36
push ebx
push dword [ebp + 0x10]
call edi
mov edi, eax
cmp edi, esi
je 0x401bec
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x401b91
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov dword [ebp - 4], eax
jmp 0x401be5
cmp dword [ebp - 0x20], 4
jne 0x401bec
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
je 0x401bec
cmp dword [ebp - 4], esi
je 0x401bec
push 0x36
push ebx
push dword [ebp + 0x10]
call edi
mov edi, eax
cmp edi, esi
je 0x401bec
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c06
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov esi, str.X:_autorun.inf
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push 0x104
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x21f]
push ebx
push eax
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x220], bl
call sub.msvcrt.dll_memset
mov al, byte [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
add esp, 0xc
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x10]
push eax
push 0xfa
lea eax, [ebp - 0x220]
push eax
push 0x416615
push str.open
mov edi, str.autorun
push edi
call esi
cmp byte [ebp - 0x220], bl
je 0x401cce
push 0x104
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 0x115], bl
call sub.msvcrt.dll_strcat
add esp, 0x1c
push 5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
xor eax, eax
inc eax
jmp 0x401d55
lea eax, [ebp - 0x10]
push eax
push 0xfa
lea eax, [ebp - 0x220]
push eax
push 0x416615
push str.shellexecute
push edi
call esi
cmp byte [ebp - 0x220], bl
je 0x401d53
push 0x104
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
mov byte [ebp - 0x115], bl
call sub.msvcrt.dll_strcat
add esp, 0x1c
push 5
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401cc6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404801
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push 0xf0000000
mov esi, eax
xor ebx, ebx
push 1
lea eax, [esi + 0x4028]
push ebx
mov dword [ebp - 0x10], eax
mov byte [eax], bl
push ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp dword [ebp - 8], ebx
je 0x4048e4
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp dword [ebp - 4], ebx
je 0x4048da
push edi
add esi, 0x3028
push ebx
push esi
call sub.msvcrt.dll_strlen
pop ecx
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
xor eax, eax
mov byte [ebp - 0x2c], bl
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
xor eax, eax
mov byte [ebp - 0x1c], bl
lea edi, [ebp - 0x1b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
movzx eax, byte [ebp + esi - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push str._2.2x
push eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call sub.msvcrt.dll_strcat
add esp, 0x14
inc esi
cmp esi, 0x10
jl 0x40489c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
pop ebx
leave
ret
Function at 0x404d11
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov edi, 0x3ff
push edi
xor esi, esi
lea eax, [ebp - 0x413]
push esi
push eax
mov byte [ebp - 0x414], 0
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], esi
lea eax, [ebp - 0x414]
push edi
push eax
mov eax, dword [ebp + 8]
jne 0x404d57
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x404d63
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
lea eax, [ebp - 0x414]
push eax
lea edi, [ebp - 0x14]
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x100
mov dword [ebp - 0xc], esi
call fcn.00406e89
mov edi, str.usbspeed.nirsoft.net
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00406f31
mov ebx, eax
cmp ebx, esi
jl 0x404df6
push edi
call sub.msvcrt.dll_strlen
pop ecx
lea ecx, [ebp - 0x14]
push ecx
call fcn.00406fec
mov edi, str.usb3speed.nirsoft.net
push edi
call sub.msvcrt.dll_strlen
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x14]
push ecx
call fcn.00407053
cmp dword [ebp + 0xc], esi
mov eax, dword [ebp - 0x14]
jne 0x404de1
test eax, eax
jne 0x404dd2
mov eax, 0x416615
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x404df6
test eax, eax
jne 0x404dea
mov eax, 0x416615
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.0040140f
lea esi, [ebp - 0x14]
call fcn.00406e64
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4051af
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push edi
mov edi, dword [esi + 0x18a0]
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
push eax
push 0x3f9
push dword [esi + 4]
call ebx
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebp
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
push eax
push 0x3fa
push dword [esi + 4]
call ebx
push eax
call ebp
xor eax, eax
test edi, edi
sete al
push eax
push 1
mov eax, esi
call fcn.00401423
cmp dword [esi + 0xc], 0
pop edi
pop ebp
pop ebx
je 0x40523b
fldz
fcom qword [esi + 0x1880]
fnstsw ax
test ah, 0x44
jnp 0x405239
fcomp qword [esi + 0x1878]
fnstsw ax
test ah, 0x44
jnp 0x40523b
cmp dword [esi + 0x176c], 0
jne 0x40523b
xor eax, eax
inc eax
jmp 0x40523d
fstp st(0)
xor eax, eax
push eax
push 0x3fb
mov eax, esi
call fcn.00401423
ret
Function at 0x40566c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push 0x20000000
push 3
mov esi, eax
push edi
push 3
push closesocket
lea eax, [esi + 0x20]
push eax
mov dword [esi + 0xc], 0x80000
mov dword [esi + 8], edi
mov dword [esi + 0x10], 0xb4
mov dword [esi + 0x14], 0x2710
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40574c
push ebx
push dword [esi + 0xc]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ebx, ebx
cmp dword [esi + 0x10], edi
mov dword [esi], eax
jbe 0x40572e
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
mov dword [ebp - 4], edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40572e
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
call fcn.00405601
fst qword [esi + 0x128]
mov eax, dword [esi + 0x10]
shr eax, 1
cmp ebx, eax
jne 0x40570f
fstp qword [esi + 0x138]
jmp 0x405711
fstp st(0)
push edi
mov eax, esi
call fcn.00405647
cmp dword [esi + 0x18], edi
jne 0x40572e
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp eax, dword [esi + 0x14]
ja 0x40572e
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x4056d2
call fcn.00405601
fstp qword [esi + 0x128]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x405750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push ebx
push 0xa0000000
push 2
mov esi, eax
push ebx
push 1
push 0x40000000
lea eax, [esi + 0x20]
push eax
mov dword [esi + 0xc], 0x80000
mov dword [esi + 8], ebx
mov dword [esi + 0x10], 0xb4
mov dword [esi + 0x14], 0x3a98
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405877
push edi
push dword [esi + 0xc]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push ebx
mov dword [ebp - 0xc], eax
call sub.msvcrt.dll_srand
pop ecx
xor edi, edi
cmp dword [esi + 0xc], ebx
pop ecx
jbe 0x4057d4
call sub.msvcrt.dll_rand
imul eax, eax, 0xff
cdq
mov ecx, 0x7fff
idiv ecx
mov ecx, dword [ebp - 0xc]
mov byte [edi + ecx], al
inc edi
cmp edi, dword [esi + 0xc]
jb 0x4057b5
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edi, edi
cmp dword [esi + 0x10], ebx
mov dword [esi], eax
jbe 0x405859
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x405852
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0xc]
jne 0x405852
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
call fcn.00405601
fst qword [esi + 0x130]
mov eax, dword [esi + 0x10]
shr eax, 1
cmp edi, eax
jne 0x405831
fstp qword [esi + 0x140]
jmp 0x405833
fstp st(0)
push ebx
mov eax, esi
call fcn.00405647
cmp dword [esi + 0x18], ebx
jne 0x405859
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp eax, dword [esi + 0x14]
ja 0x405859
inc edi
cmp edi, dword [esi + 0x10]
jb 0x4057e3
jmp 0x405859
mov dword [esi + 0x1c], 1
call fcn.00405601
fstp qword [esi + 0x130]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4058c3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
fldz
push edi
xor edi, edi
fst qword [esi + 0x128]
lea eax, [ebp - 4]
fst qword [esi + 0x130]
push eax
fst qword [esi + 0x138]
push edi
fstp qword [esi + 0x140]
push esi
push 0x40587b
push edi
push edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
pop edi
je 0x405916
push eax
mov dword [esi + 0x150], 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
leave
ret
Function at 0x405b88
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
call fcn.004059c4
cmp eax, 0xffffffff
pop ecx
mov dword [ebp - 8], eax
je 0x405c17
push ebx
push esi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405c00
push ebx
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405c00
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x405c09
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
jmp 0x405c20
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 4]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x406008
Capabilities:
Get common file path

Disassembly:
cmp byte [0x41b1e0], 0
push esi
mov esi, 0x41b1e0
jne 0x406028
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x41b2e8], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x41b2e8]
pop ecx
pop ecx
pop esi
ret

Function at 0x40603b
Capabilities:
Get common file path

Disassembly:
cmp byte [0x41b2f0], 0
push esi
mov esi, 0x41b2f0
jne 0x40605b
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x41b3f8], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_strcpy
mov eax, dword [0x41b3f8]
pop ecx
pop ecx
pop esi
ret

Function at 0x4063ab
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x416615
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x40694e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x30], str.RunAs
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
leave
ret
Function at 0x4069d5
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
test ebp, ebp
je 0x406a31
push ebx
push edi
push ebp
call sub.msvcrt.dll_strlen
pop ecx
lea ebx, [eax + 1]
push ebx
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406a2f
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push ebx
push ebp
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x406f94
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, eax
call fcn.004059c4
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x406fe5
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
call fcn.00406e64
mov edx, edi
mov eax, esi
call fcn.00406e2e
push edi
push dword [esi]
push ebx
call fcn.00406516
mov eax, dword [esi]
add esp, 0xc
mov byte [edi + eax], 0
push ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
jmp 0x406fe7
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x407900
Capabilities:
Read .ini file

Disassembly:
push 0x41acc8
push dword [esp + 0xc]
mov byte [esi], 0
push esi
push 0x416615
push dword [esp + 0x14]
push 0x41add0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
ret

Function at 0x407924
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00415a90
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x41acc8
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x416615
push dword [ebp + 8]
push 0x41add0
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
pop esi
je 0x407990
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_strcpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x407994
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00415a90
push esi
push edi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x41acc8
push edi
push esi
lea eax, [ebp - 0x1004]
push eax
push 0x416615
push dword [ebp + 8]
mov esi, 0x41add0
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
cmp byte [ebp - 0x1004], 0
jne 0x4079fc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x4079fe
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x407cf4
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00405db6
test eax, eax
pop ecx
je 0x407d7b
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x41acc8
push edi
call sub.msvcrt.dll_strcpy
push str.general
mov esi, 0x41add0
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
push edi
push 0
push 0x416fc8
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x41ae20
mov dword [0x41ae18], eax
call fcn.00407900
push 0x3f
push str.TranslatorName
mov esi, 0x41ae60
call fcn.00407900
push 0xff
push str.TranslatorURL
mov esi, 0x41aea0
call fcn.00407900
add esp, 0x18
pop edi
pop esi
ret
Function at 0x409e65
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x27c
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x1ac], ebx
push edi
je 0x409f30
cmp dword [esi + 0x208], ebx
je 0x409ef2
push 0x15c
lea eax, [esp + 0x130]
push ebx
push eax
mov dword [esp + 0x134], ebx
call sub.msvcrt.dll_memset
mov edi, 0x104
push edi
lea eax, [esp + 0x31]
push ebx
push eax
mov byte [esp + 0x38], bl
call sub.msvcrt.dll_memset
add esp, 0x18
push edi
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0x4001
push 0x160
lea eax, [esp + 0x130]
push eax
push ebx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov dword [esi + 0x1a0], eax
push eax
jmp 0x409f21
call fcn.00406ae7
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x1a0]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x198]
call ebp
cmp dword [esi + 0x1b0], ebx
je 0x409f75
call fcn.00406ae7
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x1a4]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push ebx
push 0x1003
push dword [esi + 0x198]
call ebp
call fcn.00406ae7
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
mov dword [esi + 0x19c], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push ebx
push dword [esi + 0x19c]
mov dword [esp + 0x20], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push dword [esi + 0x19c]
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esi + 0x19c]
call edi
push dword [esp + 0x14]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x18]
call edi
mov eax, dword [esi + 0x19c]
mov esi, dword [esi + 0x198]
push eax
push ebx
push 0x1208
push esi
call fcn.004036a4
pop ecx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x27c
ret
Function at 0x40a3bf
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 0x194]
cmp word [esp + 0x10], ax
push edi
jb 0x40a412
movzx edi, word [esp + 0x14]
movzx eax, ax
add eax, dword [esi + 0x20c]
cmp edi, eax
jge 0x40a412
push 0x10
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40a3f5
inc ebx
movzx ecx, word [esi + 0x194]
push ebx
mov eax, edi
push 0
sub eax, ecx
call fcn.004088b9
call fcn.0040a41b
xor eax, eax
inc eax
jmp 0x40a414
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4