joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
lea eax, [esp]
push esi
push edi
push str.install.txt
push 0x409958
push 0x40838c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x409854
mov edx, ecx
mov esi, edi
mov edi, str.install.txt
push 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
pop esi
test eax, eax
jne 0x4012d6
add esp, 0x400
ret
push 0x409854
call fcn.00401460
add esp, 4
push 0x104
push 0x409750
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4012fe
add esp, 0x400
ret
push 0x409750
call fcn.00401460
add esp, 4
mov eax, 1
add esp, 0x400
ret

Function at 0x401320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push ebp
push 0x409854
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401343
pop ebp
add esp, 0x400
ret
push 0x409854
call fcn.00401460
push 0x408388
push str.install.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x40136e
pop ebp
add esp, 0x400
ret
mov al, byte [ebp + 0xc]
push ebx
push esi
push edi
test al, 0x10
jne 0x40143f
mov ebx, dword [sym.imp.MSVCRT.dll_fgets]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x400
push eax
call ebx
mov al, byte [esp + 0x1c]
add esp, 0xc
cmp al, 0x34
jne 0x4013e4
lea ecx, [esp + 0x10]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push ecx
call esi
add esp, 8
test eax, eax
je 0x4013e4
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
or ecx, 0xffffffff
xor eax, eax
push str.DisplayName
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x14]
push edx
call esi
mov edx, eax
add esp, 8
test edx, edx
jne 0x4013ec
test byte [ebp + 0xc], 0x10
je 0x401388
jmp 0x40143f
mov edi, str.DisplayName
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x409344
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x409344
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + 0x409342]
mov cl, byte [ecx + 0x409342]
cmp cl, 0xa
jne 0x40143f
mov byte [eax], 0
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x400
ret
Function at 0x402850
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov al, byte [0x409338]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, 0x400
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 0xc], esi
push ecx
push 0xf003f
stosw word es:[edi], ax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServicesOnce
push 0x80000002
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4028b1
cmp eax, 2
jne 0x40298e
pop edi
mov eax, 1
pop esi
add esp, 0x40c
ret
lea edx, [esp + 0xc]
push ebx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.WDRenameService
push edx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4028ea
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
jmp 0x40295f
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40295f
lea eax, [esp + 0x18]
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, dword [sym.imp.MSVCRT.dll__access]
mov esi, eax
lea ecx, [esp + 0x20]
push 0
push ecx
mov byte [esi], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
test eax, eax
jne 0x402941
lea edx, [esp + 0x18]
push edx
call ebx
test eax, eax
jne 0x402941
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00402140
add esp, 8
inc esi
push 0
push esi
call edi
add esp, 8
test eax, eax
jne 0x40295f
push esi
call ebx
test eax, eax
jne 0x40295f
push eax
push esi
call fcn.00402140
add esp, 8
mov ecx, dword [esp + 0xc]
push str.WDRenameService
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop ebx
je 0x4028a3
cmp esi, 2
je 0x4028a3
pop edi
xor eax, eax
pop esi
add esp, 0x40c
ret

Function at 0x4029a0
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x4029af
pop edi
xor eax, eax
pop esi
ret
mov al, byte [0x408ad4]
cmp al, 0x31
mov eax, dword [esp + 0x14]
jne 0x402a3a
mov ecx, eax
and ecx, 4
cmp cl, 4
jne 0x4029d7
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.00402140
add esp, 8
pop edi
pop esi
ret
and eax, 1
cmp al, 1
jne 0x4029aa
mov edi, dword [esp + 0x10]
push 0
test edi, edi
je 0x402a0c
push edi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x402a01
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4029aa
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
ret
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x402a32
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402a32
push eax
push esi
call fcn.00402140
add esp, 8
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
ret
Function at 0x403550
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov al, byte [0x408ad4]
sub esp, 0xc
cmp al, 0x31
jne 0x403571
lea eax, [esp]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
jmp 0x403584
lea ecx, [esp]
push ecx
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4035ec
mov al, byte [0x408ad4]
mov dword [esp + 4], 0x104
cmp al, 0x31
jne 0x4035bc
mov eax, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push str.Programs
push edx
jmp 0x4035d7
mov ecx, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push str.Common_Programs
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4035f2
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret

Function at 0x403610
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x403636
push str.c:Program_Files
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
pop ebx
ret
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
jne 0x403657
push str.c:Program_Files
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
pop ebx
ret
push esi
push edi
mov byte [eax + 1], 0
mov edi, str.Program_Files
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x403690
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x250]
lea ecx, [esp + 8]
push eax
push str._s.
push ecx
xor edi, edi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403727
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x110], 0x10
je 0x403700
cmp byte [esp + 0x13c], 0x2e
je 0x403700
inc edi
lea ecx, [esp + 0x110]
push ecx
push esi
call ebp
test eax, eax
jne 0x4036eb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 1
pop ebp
jb 0x403727
pop edi
xor eax, eax
pop esi
add esp, 0x244
ret
pop edi
mov eax, 1
pop esi
add esp, 0x244
ret
Function at 0x403770
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x408
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
push edi
je 0x403848
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403848
mov ecx, dword [esp + 0x414]
lea eax, [esp + 8]
push eax
push 0xa
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40384d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x400
call edi
mov esi, eax
cmp esi, 0x103
je 0x403820
test esi, esi
jne 0x403831
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00403770
mov esi, eax
add esp, 8
test esi, esi
je 0x4037c0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebp
add esp, 0x408
ret
mov ecx, dword [esp + 0x418]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebp
add esp, 0x408
ret
mov eax, 0x3f2
pop edi
pop ebp
add esp, 0x408
ret

Function at 0x403b60
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, dword [esp + 0x240]
push 0x5c
push edi
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x403b97
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
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 + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x403c72
lea edx, [esp + 0x34]
lea eax, [esp + 0x138]
push edx
push eax
call fcn.00403a90
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
add esp, 8
test eax, eax
jne 0x403c23
mov ecx, dword [esp + 0x18]
push ecx
push 1
push 1
call edi
mov esi, eax
push 0
push esi
call ebx
test eax, eax
jne 0x403c23
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
jne 0x403c72
lea eax, [esp + 0x34]
lea ecx, [esp + 0x138]
push eax
push ecx
call fcn.00403a90
add esp, 8
test eax, eax
jne 0x403c62
mov edx, dword [esp + 0x18]
push edx
push 1
push 1
call edi
mov esi, eax
push 0
push esi
call ebx
test eax, eax
je 0x403c0a
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x403c33
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x22c
ret
Function at 0x404810
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push ebx
push esi
mov esi, dword [esp + 0x164]
push edi
xor ebx, ebx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__fullpath]
lea ecx, [esp + 0x6c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, ebx
je 0x40486e
mov ecx, eax
lea edx, [esp + 0x60]
sub ecx, edx
cmp ecx, 2
jle 0x404869
mov byte [eax], bl
jmp 0x40486e
jne 0x40486e
mov byte [eax + 1], bl
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x16c]
mov cx, word [esp + 0x170]
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], cx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
push ebx
push 0x80
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4048f0
cmp dword [esp + 0x174], ebx
je 0x4048e1
mov edx, dword [esp + 0x50]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x158
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x158
ret

Function at 0x4054b0
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x408020]
sub esp, 0x104
cmp al, 0x30
push esi
je 0x4054f5
jle 0x40553b
cmp al, 0x32
jg 0x40553b
mov eax, dword [esp + 0x10c]
push 5
push 0
push eax
call fcn.004029a0
add esp, 0xc
test eax, eax
je 0x40553b
mov dword [0x409b64], 1
mov eax, 1
pop esi
add esp, 0x104
ret
lea ecx, [esp + 4]
push ecx
push 0
push 0x408454
push 0x409854
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40553b
mov esi, dword [esp + 0x10c]
lea edx, [esp + 4]
push 1
push edx
push esi
call fcn.004029a0
add esp, 0xc
test eax, eax
jne 0x405545
push 5
push eax
push esi
call fcn.004029a0
add esp, 0xc
test eax, eax
jne 0x405545
xor eax, eax
pop esi
add esp, 0x104
ret
push 5
lea eax, [esp + 8]
push 0
push eax
call fcn.004029a0
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x405620
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov al, byte [0x408ad4]
sub esp, 0x20
cmp al, 0x31
push ebp
push esi
jne 0x405636
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
push ebx
push 0xf003f
push 0
push 0
call dword [0x408afc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0xc], ebp
jne 0x405657
mov esi, 0x81000001
jmp 0x4056b6
mov eax, dword [esp + 0x30]
push edi
push 0x20
push eax
push ebp
call dword [0x408af8]
mov ebx, eax
test ebx, ebx
jne 0x405686
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0x424
neg esi
sbb esi, esi
and esi, 0x81000002
jmp 0x4056aa
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
call dword [0x408ad8]
test eax, eax
jne 0x4056ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
jne 0x4056aa
xor esi, esi
test ebx, ebx
pop edi
je 0x4056b6
push ebx
call dword [0x408ae4]
test ebp, ebp
pop ebx
je 0x4056c2
push ebp
call dword [0x408ae4]
mov eax, esi
pop esi
pop ebp
add esp, 0x20
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4056a8
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, 0x2710
ja 0x405712
mov edx, dword [esp + 0x2c]
push edx
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
call dword [0x408ae0]
test eax, eax
je 0x40571d
cmp dword [esp + 0x18], 1
jne 0x4056e3
mov ebp, dword [esp + 0x10]
jmp 0x4056a8
mov ebp, dword [esp + 0x10]
mov esi, 0x81000009
jmp 0x4056aa
mov ebp, dword [esp + 0x10]
mov esi, 0x81000005
jmp 0x4056aa
Function at 0x10053111
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1008cd23
call fcn.1005ede7
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
mov esi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor edx, edx
push edx
push edx
push ecx
push edx
push 1
push dword [eax - 0xc]
mov dword [ebp - 4], edx
push eax
call esi
test eax, eax
je 0x1005317b
push dword [ebp - 0x14]
call fcn.1005e7f1
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.100616d0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
add esp, 0x10
push 0
push 0
push eax
push ebx
push 1
push dword [ecx - 0xc]
push ecx
call esi
test eax, eax
jne 0x1005318c
push ebx
call fcn.1005e7fa
pop ecx
mov ecx, edi
call fcn.10052e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100531ad
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.10053250
mov esi, eax
test esi, esi
je 0x100531a6
mov ecx, edi
call fcn.10052e5c
push ebx
call fcn.1005e7fa
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10056e89
mov eax, esi
call fcn.1005ed91
ret 8

Function at 0x100531c2
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1008cd23
call fcn.1005ede7
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x1005323d
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 1
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x100531ff
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x10053235
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1005d88e
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
mov esi, dword [edi - 0xc]
push eax
push ebx
call fcn.1005c5aa
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1005323d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [ecx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10056e89
mov eax, ebx
call fcn.1005ed91
ret
Function at 0x10053250
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1008cd53
call fcn.1005ede7
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edi + 1]
mov dword [ebp - 0x14], edi
push eax
call fcn.1005e7f1
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.100616d0
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1005ddb9
add esp, 0x20
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 1
push 0
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x100532ca
push esi
call fcn.1005e7fa
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.10052e5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10053330
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x120]
push 0xfde9
push esi
mov byte [esi + eax], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], eax
call fcn.10055294
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.100591a9
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.100590e0
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x10053327
push dword [ebp - 0x120]
call fcn.100683e8
pop ecx
push esi
call fcn.1005e7fa
pop ecx
xor eax, eax
call fcn.1005ed91
ret 0xc
Function at 0x1005545c
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1012572c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf0000040
push 0x18
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x10055490
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10055595
push edi
mov edi, 0x94
push edi
call fcn.1005e7f1
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.100616d0
mov eax, dword [esi + 0x10]
push 0x80
push 0x100c2470
push edi
mov dword [eax], 0x206
mov dword [eax + 4], 0xa400
mov eax, dword [esi + 0x10]
mov dword [eax + 8], 0x31415352
mov dword [eax + 0xc], 0x400
mov dword [eax + 0x10], 0x10001
mov eax, dword [esi + 0x10]
add eax, 0x14
push eax
call fcn.1005ddb9
add esp, 0x20
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [esi + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x10055578
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x10055578
lea ebx, [esi + 0xc]
push ebx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x10055578
lea eax, [ebp - 8]
push eax
push 0
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x10055578
push dword [ebp - 8]
call fcn.1005e7f1
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.100616d0
add esp, 0x10
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
push 0
push 1
push dword [ebx]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x10055580
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10055594
mov eax, dword [esi + 0x14]
add eax, 0xc
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
mov dword [esi + 0x1c], eax
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005e6b3
mov esp, ebp
pop ebp
ret
Function at 0x100571ab
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x94
mov eax, 0x1008d165
call fcn.1005ede7
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x90], ebx
call fcn.100534e7
push eax
lea ecx, [ebp - 0x90]
call fcn.1005003b
mov eax, dword [esi]
lea ecx, [ebp - 0x94]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8c], 0x79706e4f
mov dword [ebp - 0x88], 0x5045584b
mov dword [ebp - 0x84], 0x4863574f
mov dword [ebp - 0x80], 0x4c6f4247
mov dword [ebp - 0x7c], 0x35785341
mov dword [ebp - 0x78], 0x68306864
mov dword [ebp - 0x74], 0x4c517a4c
mov dword [ebp - 0x70], 0x796f4248
mov dword [ebp - 0x6c], 0x63635849
mov dword [ebp - 0x68], 0x43676941
mov dword [ebp - 0x64], 0x30596e44
mov dword [ebp - 0x60], 0x4373774e
mov dword [ebp - 0x5c], 0x754d414a
mov dword [ebp - 0x58], 0x7939524d
mov dword [ebp - 0x54], 0x65554148
mov dword [ebp - 0x50], 0x6e554746
mov dword [ebp - 0x4c], 0x57595464
mov dword [ebp - 0x48], 0x5a515161
mov dword [ebp - 0x44], 0x6f4a4143
mov dword [ebp - 0x40], 0x374a6e44
mov dword [ebp - 0x3c], 0x7838524f
mov dword [ebp - 0x38], 0x6b6b514e
mov dword [ebp - 0x34], 0x76346a50
mov dword [ebp - 0x30], 0x4d734148
mov dword [ebp - 0x2c], 0x3777544a
mov dword [ebp - 0x28], 0x69416a66
mov dword [ebp - 0x24], 0x5630444a
mov dword [ebp - 0x20], 0x49415249
mov dword [ebp - 0x1c], 0x41416762
mov word [ebp - 0x18], 0x4641
mov byte [ebp - 0x16], 0x45
call dword [eax + 4]
push dword [eax]
mov byte [ebp - 0x14], bl
lea eax, [ebp - 0x15]
push ebx
sub esp, 0xc
mov byte [ebp - 4], 1
mov ecx, esp
push dword [ebp - 0x14]
mov dword [ecx], ebx
push eax
lea eax, [ebp - 0x8c]
mov dword [ecx + 4], ebx
push eax
mov dword [ecx + 8], ebx
call fcn.1004f7d5
lea eax, [ebp - 0xa0]
push eax
call fcn.10052b8c
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1005c5f3
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.10052fea
add esp, 0xc
lea ecx, [ebp - 0xa0]
call fcn.1005c473
mov ecx, dword [ebp - 0x94]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.10056e89
mov dword [ebp - 0x14], ebx
call fcn.100534e7
push eax
lea ecx, [ebp - 0x14]
call fcn.1005003b
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x94], esi
mov edi, dword [ebp - 0x90]
add edi, 0xfffffff0
push edi
call fcn.10052740
pop ecx
add eax, 0x10
push ebx
mov dword [esi], eax
call fcn.10057419
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.10056e89
mov ecx, edi
call fcn.10056e89
mov eax, esi
call fcn.1005ed91
ret