joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40436d
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push edi
xor edi, edi
push edi
push 1
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40441b
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4043bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
jmp 0x404422
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x4043e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x4043ae
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4043cf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 0xc]
push eax
call fcn.00425e44
int3

Function at 0x405966
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push esi
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4059bd
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x4059b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
jmp 0x4059c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 8]
push eax
call fcn.00425e44
int3
Function at 0x40ee84
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [edi], ecx
je 0x40ef29
mov eax, dword [ebp + 0x10]
sub eax, ecx
je 0x40eee5
sub eax, 1
je 0x40eece
sub eax, 1
je 0x40eeba
lea ecx, [ebp + 0xf]
call fcn.00403eb4
push 0x44bb18
jmp 0x40ef36
mov edx, dword [ebp + 0xc]
mov ecx, edx
push 2
pop esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eec5
jmp 0x40eee0
mov edx, dword [ebp + 0xc]
xor esi, esi
mov ecx, edx
inc esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eed9
sub ecx, ebx
inc ecx
jmp 0x40eef9
push dword [ebp + 0xc]
call fcn.0042bffd
pop ecx
push 4
pop esi
mov dword [ebp - 4], eax
lea edx, [ebp - 4]
mov ecx, esi
push ecx
push edx
push esi
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40ef23
push eax
lea ecx, [ebp + 0xc]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 0xc]
jmp 0x40ef39
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp + 0xf]
call fcn.0040e04e
push 0x44cc00
lea eax, [ebp + 0xf]
push eax
call fcn.00425e44
int3

Function at 0x40f905
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x40fe52
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 8], edi
jne 0x40fecc
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x40fe8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 8]
jmp 0x40fedc
mov al, byte [ebp + 8]
mov byte [esi + 0x10], al
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40f0d7
push edi
push edi
mov dword [ebp - 4], edi
call fcn.0042c448
add esp, 0x18
mov dword [esi + 8], eax
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp + 0xb]
call fcn.0040e028
push 0x44cbc8
lea eax, [ebp + 0xb]
push eax
call fcn.00425e44
int3
Function at 0x418906
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
mov ebx, ecx
push eax
push eax
push 3
push eax
push eax
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x418984
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x418984
lea eax, [esi + 1]
push eax
call fcn.00423c6a
mov dword [ebx], eax
pop ecx
test eax, eax
jne 0x418959
push 0x44dd78
lea eax, [ebp + 0xb]
jmp 0x41899b
push 0
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418984
mov eax, dword [ebx]
push edi
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 8]
push eax
call fcn.00425e44
int3

Function at 0x41b159
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x451334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
xor ebx, ebx
push eax
push 0x103
mov esi, ecx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x41b1ff
inc edi
lea eax, [ebp - 0x108]
push edi
push eax
push str._sopatchinstall__i_.log
push 0x103
push esi
call fcn.0041b059
add esp, 0x14
test eax, eax
js 0x41b1df
push ebx
push ebx
push 1
push ebx
push ebx
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x41b1cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x41b18b
jmp 0x41b1ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041b0b5
jmp 0x41b1ee
push str.OPatchInstall:_Could_not_create_a_path_for_the_temp_file
mov ecx, 0x451150
call fcn.0041b07a
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423afa
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp - 0x10c]
push eax
call fcn.00425e44
int3
Function at 0x401440
Capabilities:
Encode data using xor

Disassembly:
push 0x40c4c0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov byte [0x8b94b65d], al
xchg edi, eax
xchg esp, eax
dec esi
mov esi, dword [edi]
jl 0x401493
xchg ebp, eax
cmp ebx, esi
and byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bh, cl
invalid
lea ecx, [ebx - 0x5c]
and eax, 0xbf04e646
cwde
dec esi
and ecx, esp
pop ds
xchg ecx, eax
push 0x37
mov word [edx - 0x6a], cs
add ecx, dword [edx]
pop eax
mov dh, 0x9f
in eax, dx
cmp cl, byte [edi - 0x53]
xor ebx, dword [ecx - 0x48ee309a]
or al, 0
stosb byte es:[edi], al
add byte [eax - 0x2d], ah
xchg ebx, eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
pushfd
scasd eax, dword es:[edi]
add byte [eax], al
sub ecx, dword [edi]
add byte [eax], al
add byte [ebx], ch
sldt word [eax]
add byte [edi], al
add byte [ebx + 0x68], dl
pop edi
cmp dword [esi], esi
xor al, 0x39
add byte [0xd8000501], cl
loopne 0x4014e4
fsub st(0)
jmp 0x34110e0
loope 0x4014f8
add byte [ebx], al
add eax, 0x19800000
add dword [eax], eax
inc edx
add byte [edx], ah
add dword [ebx], esp
invalid
Function at 0x4070ab
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4070c5
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 8], 0
push ebp
mov ebp, ecx
jne 0x4070d4
push 0xd
pop eax
jmp 0x407105
push ebx
mov ebx, dword [esp + 0x10]
push edi
xor edi, edi
push ebx
call fcn.00446b50
inc eax
add ebx, eax
add edi, eax
pop ecx
cmp eax, 1
jne 0x4070dc
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop ebp
ret 8

Function at 0x40a351
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x494334]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push ebx
push ebx
push 1
mov dword [edi + 0xc], 0xbc2
mov eax, dword [0x496f50]
push ebx
mov dword [edi + 0x18], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x20], eax
call esi
push ebx
push ebx
push 1
push ebx
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x38], eax
call fcn.004127d5
mov dword [edi + 0x3c], eax
call fcn.0040ca0c
push dword [edi + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [edi + 0x40], eax
call esi
push dword [edi + 0x24]
call esi
push dword [edi + 0x38]
call esi
lea eax, [ebp - 0x10c]
push eax
push ebx
push edi
push 0x40a193
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40a3e5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x20]
call esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [edi + 0x54]
mov ebx, 0x104
push ebx
push eax
push 0x7b
push dword [edi + 0x18]
call esi
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x7c
push dword [edi + 0x18]
call esi
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.0040a477
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044119a
leave
ret 4
Function at 0x40b601
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [eax - 1]
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x1c]
mov esi, edi
sar ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
cmp edi, ebx
jge 0x40b65d
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebp
lea eax, [ecx - 0x30]
push eax
call fcn.0040a013
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebp
add eax, ebp
push eax
call fcn.0040c37f
mov edi, esi
cmp esi, ebx
jl 0x40b627
mov eax, dword [esp + 0x20]
cmp esi, ebx
jne 0x40b67c
test al, 1
jne 0x40b67c
imul eax, eax, 0x30
imul ecx, edi, 0x30
add eax, 0xffffffd0
add eax, ebp
add ecx, ebp
push eax
call fcn.0040c37f
mov edi, dword [esp + 0x1c]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x18]
push edi
push ebp
call fcn.0040b722
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x412931
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x494334]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
lea eax, [ebp - 0x28]
push esi
push 0
push eax
call fcn.00442b50
add esp, 0xc
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jne 0x41297f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x94
push eax
call esi
test eax, eax
je 0x41299b
cmp dword [ebp - 0x18], 2
jne 0x412998
cmp dword [ebp - 0x24], 6
jae 0x412998
cmp dword [ebp - 0x24], 4
jb 0x412998
call fcn.004129f1
jmp 0x41299b
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0044119a
add ebp, 0x78
leave
ret
Function at 0x414dfc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x494334]
xor eax, ebp
mov dword [ebp + 0x38c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x398]
lea eax, [ebp - 0x78]
push eax
push 1
xor ebx, ebx
mov dword [ebp - 0x7c], 0x400
push ebx
push str.SOFTWAREJavaSoftJava_UpdatePolicy
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414ed0
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x74], bl
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.TransferJobID
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x7c], ebx
jbe 0x414ed0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x414ed0
lea eax, [ebp - 0x74]
push eax
call fcn.00446b50
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x414eb0
lea eax, [esi + esi]
call fcn.00441310
mov eax, esp
lea ecx, [ebp - 0x74]
push 3
push esi
push ecx
push eax
call fcn.004043eb
mov ebx, eax
push edi
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
push 0x10
push 0x47a870
push edi
call fcn.0044355e
add esp, 0xc
test eax, eax
je 0x414ed0
xor eax, eax
jmp 0x414ed5
mov eax, 0x80004005
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.0044119a
add ebp, 0x390
leave
ret
Function at 0x416adf
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x68
mov eax, 0x468049
call fcn.0044120d
mov esi, dword [ebp + 8]
xor ecx, ecx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x60], esi
cmp dword [ebp + 0x10], ecx
jne 0x416b0e
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
jmp 0x416c2b
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
push eax
push ecx
push 0x40000001
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x416c33
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 2
test eax, eax
jne 0x416b56
mov dword [ebp - 0x18], eax
mov byte [ebp + eax - 0x28], cl
jmp 0x416b60
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e8f4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x40000001
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x416bb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004170ac
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push str.binary2string__phase2__failed__sysError
push eax
call fcn.0040297a
add esp, 0x18
mov byte [ebp - 4], 4
jmp 0x416c5f
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x18]
ja 0x416bd0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x416bde
sub ecx, dword [ebp - 0x18]
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040e8f4
and dword [esi], 0
lea eax, [ebp - 0x28]
and dword [esi + 0x10], 0
mov ecx, esi
and dword [esi + 0x14], 0
push eax
call fcn.004082b4
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x416c2b
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
cmp eax, 0x1000
jb 0x416c22
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00407e86
mov eax, dword [ebp - 0x64]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.00440d30
pop ecx
pop ecx
mov eax, esi
call fcn.004411bc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004170ac
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push str.binary2string__phase1__failed__sysError
push eax
call fcn.0040297a
add esp, 0x18
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00403346
push 0x48a894
lea eax, [ebp - 0x70]
push eax
call fcn.00442f9e
int3
Function at 0x416c77
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x54
mov eax, 0x468085
call fcn.0044120d
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x48]
push eax
push 1
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
push eax
movlpd qword [ebp - 0x48], xmm0
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x416cea
push dword [ebp - 0x48]
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00412013
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push dword [esi]
call fcn.004425d0
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.004411bc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004170ac
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
push str.decryption_failed__sysError
push eax
call fcn.0040297a
add esp, 0x18
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00403346
push 0x48a894
lea eax, [ebp - 0x60]
push eax
call fcn.00442f9e
int3

Function at 0x416e14
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x54
mov eax, 0x468085
call fcn.0044120d
mov esi, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x50], eax
xor eax, eax
push 5
inc eax
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 0x14], eax
pop ecx
cmove eax, ecx
movlpd qword [ebp - 0x48], xmm0
lea ecx, [ebp - 0x48]
push ecx
push eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x416e92
push dword [ebp - 0x48]
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.00412013
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push dword [esi]
call fcn.004425d0
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.004411bc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004170ac
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
push str.encryption_failed__sysError
push eax
call fcn.0040297a
add esp, 0x18
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00403346
push 0x48a894
lea eax, [ebp - 0x60]
push eax
call fcn.00442f9e
int3
Function at 0x416f31
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x6c
mov eax, 0x46812d
call fcn.0044120d
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x74], edi
lea ecx, [ebx + 0x10]
mov dword [ebp - 0x74], ecx
cmp dword [ecx], esi
jne 0x416f5f
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
jmp 0x41705d
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebp - 0x5c], esi
jb 0x416f6c
mov eax, dword [ebx]
push esi
push esi
lea edx, [ebp - 0x5c]
push edx
push esi
push 1
push dword [ecx]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x417065
mov esi, dword [ebp - 0x5c]
xor eax, eax
and dword [ebp - 0x68], eax
and dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], eax
test esi, esi
je 0x416fd4
cmp esi, 0x7fffffff
ja 0x4170a6
push esi
cmp esi, 0x1000
jb 0x416fb4
call fcn.00402a96
jmp 0x416fb9
call fcn.00440d00
pop ecx
add esi, eax
mov dword [ebp - 0x70], eax
push esi
push eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], esi
call fcn.004120ae
mov eax, dword [ebp - 0x70]
pop ecx
pop ecx
mov dword [ebp - 0x68], esi
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x416fe3
mov ebx, dword [ebx]
push 0
push 0
lea ecx, [ebp - 0x5c]
push ecx
push eax
mov eax, dword [ebp - 0x74]
push 1
push dword [eax]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x41703d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004170ac
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push str.string2binary__phase2__failed__sysError
push eax
call fcn.0040297a
add esp, 0x18
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00403346
push 0x48a894
lea eax, [ebp - 0x1c]
jmp 0x4170a0
lea eax, [ebp - 0x5d]
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
call fcn.00416934
mov eax, dword [ebp - 0x6c]
mov dword [edi], eax
mov eax, dword [ebp - 0x68]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x64]
mov dword [edi + 8], eax
mov eax, edi
call fcn.004411bc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004170ac
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push str.string2binary__phase1__failed__sysError
push eax
call fcn.0040297a
add esp, 0x18
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00403346
push 0x48a894
lea eax, [ebp - 0x6c]
push eax
call fcn.00442f9e
call fcn.0040e8cb
int3