joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402123
Capabilities:
Get common file path
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7dc
mov eax, dword [0x65de64]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 0x7dc], eax
mov edi, edx
xor eax, eax
push ebx
push eax
mov byte [esi], al
push 0x410
mov byte [edi], al
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x7d8], eax
test eax, eax
jne 0x402185
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.GetProcessInfo
push str._s_:_Failed_to_open_process__d__Error0x_.8x
call fcn.00401e12
add esp, 0x10
jmp 0x402332
push ebx
push str.GetProcessInfo
push str._s_:_Opened_process__pid_d
call fcn.00401e12
add esp, 0xc
push 0x3e8
push edi
push 0
push dword [ebp - 0x7d8]
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
test eax, eax
je 0x4021eb
push 0x3e8
push esi
push 0
push dword [ebp - 0x7d8]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
push esi
push edi
push ebx
push str.GetProcessInfo
push str._s_:_PID___d__name___s__path___s
call fcn.00401e12
mov edx, dword [ebp - 0x7dc]
add esp, 0x14
mov ecx, esi
call fcn.00401f9b
jmp 0x402326
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcessInfo
push str._s_:_GetModuleBaseName_failed...Error0x_.8x__...trying_GetProcessImageFileName_method
call fcn.00401e12
push 0x3e7
lea eax, [ebp - 0x3eb]
mov byte [ebp - 0x3ec], 0
push 0
push eax
call fcn.005cb330
push 0x3e7
lea eax, [ebp - 0x7d3]
mov byte [ebp - 0x7d4], 0
push 0
push eax
call fcn.005cb330
add esp, 0x24
lea eax, [ebp - 0x3ec]
push 0x3e8
push eax
push dword [ebp - 0x7d8]
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameA]
test eax, eax
je 0x402332
push ecx
mov edx, esi
lea ecx, [ebp - 0x3ec]
call fcn.00401e75
pop ecx
test eax, eax
jne 0x4022d2
push str.GetProcessInfo
push str._n__Converting_using_default_Windows_dir
call fcn.00401e12
pop ecx
pop ecx
push 0x3e8
lea eax, [ebp - 0x7d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 3
lea eax, [ebp - 0x7d4]
push eax
push 0x3e8
push esi
call fcn.005ce0fa
lea eax, [ebp - 0x3e3]
push 0x5c
push eax
call fcn.005ca730
add esp, 0x18
test eax, eax
je 0x4022d2
inc eax
push eax
push 0x3e8
push esi
call fcn.005d3dea
push esi
push str._n_Final_path_is__s
call fcn.00401e12
add esp, 0x14
lea eax, [ebp - 0x3ec]
push 0x5c
push eax
call fcn.005ca860
pop ecx
pop ecx
test eax, eax
je 0x402304
inc eax
push eax
push 0x3e8
push edi
call fcn.005d306f
mov cl, byte [edi]
add esp, 0xc
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x402304
sub cl, 0x20
mov byte [edi], cl
mov edx, dword [ebp - 0x7dc]
mov ecx, esi
call fcn.00401f9b
push esi
push edi
push ebx
push str.GetProcessInfo
push str._s_:_PID___d__name___s__path___s
call fcn.00401e12
add esp, 0x14
push dword [ebp - 0x7d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c8b52
leave
ret
Function at 0x40257c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402594
test al, 0x10
jne 0x402594
xor eax, eax
inc eax
pop esi
ret
push esi
push str.IsFileExists
push str._s_:_Specified_file___s__does_not_exist
call fcn.00401e12
add esp, 0xc
xor eax, eax
pop esi
ret

Function at 0x4025ab
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push ecx
mov ebx, edx
xor edi, edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4025df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyToClipboard
push str._s_OpenClipboard_failed___Error0x_.8x
call fcn.00401e12
add esp, 0xc
xor eax, eax
jmp 0x402673
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 8]
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x402615
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyToClipboard
push str._s_GlobalAlloc_failed___Error0x_.8x
call fcn.00401e12
add esp, 0xc
jmp 0x40266a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x402633
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyToClipboard
push str._s_GlobalLock_failed___Error0x_.8x
jmp 0x40260b
push dword [ebp + 8]
push ebx
push eax
call fcn.005cadb0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x402667
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CopyToClipboard
push str._s_SetClipboardData_failed___Error0x_.8x
jmp 0x40260b
xor edi, edi
inc edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402677
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x65de64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.EnableSeDebugPrivilege_:_Enabling_the_SeDebug_privileges_for_current_process
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call fcn.00401e12
pop ecx
lea eax, [ebp - 0x18]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4026ff
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40270a
push str.EnableSeDebugPrivilege_:_Adjustin_the_privilege..
call fcn.00401e12
pop ecx
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4026f8
push str.EnableSeDebugPrivilege_:_Failed_to_enable_the_privilege
jmp 0x402704
push str.EnableSeDebugPrivilege_:_Successfully_enabled_the_privilege
jmp 0x402704
push str.EnableSeDebugPrivilege_:_Failed_to_get_process_token
call fcn.00401e12
pop ecx
cmp dword [ebp - 0x18], 0
pop esi
je 0x40271a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c8b52
leave
ret
Function at 0x402726
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x138c
call fcn.005c94c0
mov eax, dword [0x65de64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.C:Windows
lea edi, [ebp - 0x3ec]
push 0x3dd
lea eax, [ebp - 0x3e1]
mov ebx, ecx
push 0
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call fcn.005cb330
push 0xf
pop ecx
mov esi, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
lea edi, [ebp - 0xbbc]
rep movsd dword es:[edi], dword [esi]
push 0x3ab
lea eax, [ebp - 0xb7f]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.005cb330
push 0xd
pop ecx
mov esi, str.C:Program_FilesMicrosoftEdgeApplicationmsedge.exe
lea edi, [ebp - 0x7d4]
rep movsd dword es:[edi], dword [esi]
push 0x3b1
lea eax, [ebp - 0x79d]
push 0
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call fcn.005cb330
push 0xc
pop ecx
mov esi, str.C:Program_FilesInternet_Exploreriexplore.exe
lea edi, [ebp - 0xfa4]
rep movsd dword es:[edi], dword [esi]
push 0x3b8
xor esi, esi
lea eax, [ebp - 0xf74]
push esi
push eax
call fcn.005cb330
push ebx
push str.LaunchInternetExplorer_:_Launching_default_browser_using_ShellExecute__link_s
call fcn.00401e12
add esp, 0x38
push 1
push esi
push esi
push ebx
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x402894
push eax
push str.LaunchInternetExplorer_:_Error_0x_.8x
call fcn.00401e12
pop ecx
pop ecx
push 0x200
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov al, byte [ebp - 0x3ec]
mov byte [ebp - 0xbbc], al
mov byte [ebp - 0x7d4], al
mov byte [ebp - 0xfa4], al
call fcn.00401e3c
test eax, eax
lea ecx, [ebp - 0xbbc]
lea esi, [ebp - 0x7d4]
cmovne esi, ecx
mov ecx, esi
call fcn.0040257c
test eax, eax
lea ecx, [ebp - 0xfa4]
push ebx
cmovne ecx, esi
lea eax, [ebp - 0x138c]
push ecx
push str._s___s_
push 0x3e8
push eax
call fcn.00401bca
lea eax, [ebp - 0x138c]
push eax
push str.LaunchInternetExplorer_:_Now_launching_manually_using_browser__s
call fcn.00401e12
add esp, 0x1c
lea ecx, [ebp - 0x138c]
push 3
pop edx
call fcn.004028a3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c8b52
leave
ret
Function at 0x4028a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, ecx
mov si, dx
push edi
push str.LaunchApplication
push str._s_:_Launching_app__s
call fcn.00401e12
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.005cb330
add esp, 0x18
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x10]
mov word [ebp - 0x24], si
xor ebx, ebx
inc ebx
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x28], ebx
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push eax
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40291e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.LaunchApplication
push str._s_:_Failed_to_launch_the_application__s___Error0x_.8x
call fcn.00401e12
add esp, 0x10
xor eax, eax
jmp 0x402930
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403935
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40398f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40398f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40397f
cmp esi, ecx
jae 0x40398f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40396d
cmp esi, ecx
jae 0x40398f
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x403991
xor eax, eax
pop esi
pop ebp
ret
Function at 0x407cb7
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x5ed26e
call fcn.005c9311
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov edi, str.CGooglePasswordDecryptorDlg::CheckCommandline
push esi
push edi
push str._s___cmd_line__s
call fcn.00401e12
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407ce4
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
call fcn.005d92aa
push str..exe
push esi
call fcn.005ca9a0
add esp, 0x10
test eax, eax
jne 0x407d17
xor eax, eax
call fcn.005c92df
ret
cmp cl, 0x20
je 0x407d1f
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x407d11
jmp 0x407d09
push eax
lea ecx, [ebp - 0x10]
call fcn.004090ac
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00409198
mov ecx, eax
call fcn.00409131
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 1
jl 0x407d58
push eax
push edi
push str._s___Final_input_is___s_
call fcn.00401e12
mov eax, dword [ebp - 0x10]
add esp, 0xc
inc esi
lea ecx, [eax - 0x10]
call fcn.00402ac8
mov eax, esi
jmp 0x407d0b
Function at 0x409501
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfec
mov eax, dword [0x65de64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x3e7
lea eax, [ebp - 0x7d3]
xor ebx, ebx
push esi
push ebx
push eax
mov byte [ebp - 0x7d4], bl
call fcn.005cb330
push esi
lea eax, [ebp - 0x3eb]
mov byte [ebp - 0x3ec], bl
push ebx
push eax
call fcn.005cb330
add esp, 0x18
lea eax, [ebp - 0x3ec]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
js 0x4096e6
push str.MicrosoftWindowsLogCache
mov edi, 0x3e8
lea eax, [ebp - 0x3ec]
push edi
push eax
call fcn.005d3dea
add esp, 0xc
lea eax, [ebp - 0xfa4]
push edi
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x3ec]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0xfa4]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x3ec]
push 2
push eax
call edi
test eax, eax
jne 0x4095c5
call esi
push str.tmp_win_aprp_3501_20240608
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x7d4]
push 0x631f58
push eax
call fcn.004096f9
add esp, 0x10
lea ecx, [ebp - 0x7d4]
call fcn.0040257c
test eax, eax
jne 0x409642
push 0x62fb0c
lea eax, [ebp - 0x7d4]
mov dword [ebp - 0xfdc], ebx
push eax
lea eax, [ebp - 0xfdc]
push eax
call fcn.005d93af
add esp, 0xc
cmp dword [ebp - 0xfdc], ebx
je 0x4096e8
test eax, eax
jne 0x4096e8
push 7
lea eax, [ebp - 0x7d4]
push eax
call edi
test eax, eax
jne 0x40963a
call esi
push 7
pop eax
jmp 0x4096ea
lea eax, [ebp - 0xfd8]
push eax
push ebx
lea eax, [ebp - 0x7d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x4096e6
lea eax, [ebp - 0xfec]
push eax
lea eax, [ebp - 0xfd4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0xfb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0xfe4]
push eax
lea eax, [ebp - 0xfb4]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov esi, dword [ebp - 0xfe0]
mov edx, dword [ebp - 0xfe8]
mov ecx, dword [ebp - 0xfe4]
mov eax, dword [ebp - 0xfec]
cmp edx, esi
jb 0x4096bc
ja 0x4096b6
cmp eax, ecx
jbe 0x4096bc
sub eax, ecx
sbb edx, esi
jmp 0x4096c4
sub ecx, eax
mov eax, ecx
sbb esi, edx
mov edx, esi
push 0xc9
push 0x2a69c000
push edx
push eax
call fcn.005c9750
push 7
pop ecx
sub ecx, eax
xor edx, edx
cmp eax, 7
cmovg ecx, edx
mov eax, ecx
jmp 0x4096ea
call esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c8b52
leave
ret
Function at 0x40ebc7
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.004783b4
test eax, eax
jne 0x40ed15
push esi
push 5
pop ecx
call fcn.0040c272
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x40ebf2
push esi
call dword [0x65ea08]
pop ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
jle 0x40ed00
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40ed00
cmp dword [0x6785a8], 0
push ebx
jne 0x40ec8b
xor ebx, ebx
push ebx
call fcn.0040bf77
mov esi, str.expand_32_byte_k
mov edi, 0x6785a8
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x40ec3d
push 0x2c
push ebx
push 0x6785b8
call fcn.005cb330
jmp 0x40ec67
mov esi, dword [0x65eacc]
test esi, esi
je 0x40ec5c
push 0x2c
push ebx
push 0x6785b8
call fcn.005cb330
mov dword [0x6785b8], esi
jmp 0x40ec67
push 0x6785b8
push 0x2c
push eax
call dword [eax + 0x38]
mov eax, dword [0x6785d8]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov dword [0x6785e4], eax
mov dword [0x6785d8], ebx
mov byte [0x678628], bl
jmp 0x40ec91
mov bl, byte [0x678628]
movzx eax, bl
cmp ecx, eax
jle 0x40ecdf
test bl, bl
je 0x40ecba
movzx eax, bl
push eax
push 0x6785e8
push edi
call fcn.005cadb0
movzx eax, byte [0x678628]
add esp, 0xc
sub dword [ebp + 8], eax
add edi, eax
inc dword [0x6785d8]
mov edx, 0x6785a8
mov ecx, 0x6785e8
call fcn.0040e8a0
mov ecx, dword [ebp + 8]
mov bl, 0x40
mov byte [0x678628], bl
cmp ecx, 0x40
jg 0x40ec98
movzx eax, bl
sub eax, ecx
push ecx
add eax, 0x6785e8
push eax
push edi
call fcn.005cadb0
mov ecx, dword [ebp + 8]
add esp, 0xc
sub byte [0x678628], cl
pop ebx
jmp 0x40ed07
and dword [0x6785a8], 0
test esi, esi
je 0x40ed13
push esi
call dword [0x65ea10]
pop ecx
pop edi
pop esi
leave
ret

Function at 0x40ed37
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov eax, ecx
mov edi, edx
push 0
push 0x14
mov dword [ebp - 4], edi
and dword [eax], 0
mov dword [ebp - 8], eax
call fcn.0040c774
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40ed61
push 7
pop eax
jmp 0x40edd1
cmp byte [0x65e9bc], 0
push ebx
je 0x40eda3
mov ecx, 0xc8
call fcn.0040f42d
test eax, eax
jne 0x40eda3
mov eax, dword [ebp + 8]
lea ebx, [esi + 8]
mov dword [ebx], edi
lea edi, [esi + 4]
push edi
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push esi
push 0x40ed17
push eax
push eax
call fcn.005d9d52
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x40edb2
jmp 0x40eda6
lea ebx, [esi + 8]
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea edi, [esi + 4]
cmp dword [ebx], 0
pop ebx
jne 0x40edca
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 8]
mov dword [edi], eax
call dword [ebp - 4]
pop ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41461a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 8]
mov eax, edx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x41464e
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + eax]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ecx + 4]
cmovl esi, eax
mov eax, dword [ebp - 4]
inc edx
cmp edx, edi
jl 0x414634
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
leave
ret
Function at 0x43f9d2
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, edx
mov edi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [edi + 0x10], 1
push esi
push esi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.0044465f
add esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x43fa13
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.0044465f
add esp, 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x486166
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x4861a5
call fcn.00495c16
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4861a5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4861ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0049561e
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x486c04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x486c90
cmp dword [esi + 0x20], 0
je 0x486c90
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x486c90
cmp dword [ebp + 8], 0
je 0x486c90
xor edi, edi
mov ebx, edi
call fcn.00495c16
push 0x5feb98
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x486c74
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x486c90
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0049b02e
mov edi, eax
add esp, 0xc
test edi, edi
je 0x486c8c
mov ecx, esi
call fcn.004869a2
mov eax, edi
jmp 0x486c92
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x48bc3c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5edf33
call fcn.005c9311
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x48bc62
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x48bcbc
lea ecx, [ebp - 0x10]
call fcn.004035bf
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5fdad8]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005da42b
push eax
call fcn.00404134
add esp, 0x14
test esi, esi
je 0x48bcaf
push esi
call fcn.005da3a0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402ac8
mov eax, ebx
call fcn.005c92df
ret 8
Function at 0x4916d2
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x491725
push esi
push dword [ebp + 8]
call fcn.004918b8
mov edi, eax
test edi, edi
je 0x491720
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x491720
mov eax, dword [ebp - 8]
jmp 0x491737
mov eax, dword [ebp + 0x10]
jmp 0x491737
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x49173d
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ee318
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.005c94c0
mov eax, dword [0x65de64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x49186b
push ebx
push edx
call fcn.004918b8
mov ebx, eax
test ebx, ebx
jne 0x4917a5
push esi
jmp 0x491893
lea ecx, [ebp - 0x1014]
call fcn.004035bf
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x49182a
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.004036b5
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.00488973
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x491858
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.00409391
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00402ac8
jmp 0x49189a
push esi
mov ecx, edi
call fcn.004090ac
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x491851
test esi, esi
jne 0x491874
mov esi, 0x62db03
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.004090ac
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c8b52
leave
ret 0x10