joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100042f5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
call fcn.1000214f
and eax, 0x64dbd526
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x10004313
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.1000214f
mov ebx, 0x8b13e0f6
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1000214f
sub al, 0x88
adc byte [eax], ah
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1000433c
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1000433c
call fcn.1000214f
invalid

Function at 0x100042fe
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
call fcn.1000214f
and eax, 0x64dbd526
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x10004313
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.1000214f
mov ebx, 0x8b13e0f6
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.1000214f
sub al, 0x88
adc byte [eax], ah
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x1000433c
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x1000433c
call fcn.1000214f
invalid
Function at 0x405c4e
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405f19
test bl, 8
mov dword [ebp - 8], eax
je 0x405c8d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a308], eax
jmp 0x405e0a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405ca7
test eax, eax
je 0x405db8
test bl, 2
je 0x405db8
mov esi, 0x425750
push edi
push esi
call fcn.0040653c
cmp dword [ebp + 8], 0
je 0x405cc6
push 0x40a59c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ccc
push edi
call fcn.00405e5d
cmp word [edi], 0
jne 0x405cdc
cmp word [0x425750], 0x5c
jne 0x405ce7
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dad
cmp word [ebp - 0x22c], 0x2e
jne 0x405d31
cmp word [ebp - 0x22a], 0
je 0x405d90
cmp word [ebp - 0x22a], 0x2e
jne 0x405d31
cmp word [ebp - 0x228], 0
je 0x405d90
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040653c
test byte [ebp - 0x258], 0x10
je 0x405d5c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d90
push dword [ebp + 0xc]
push edi
call fcn.00405c4e
jmp 0x405d90
push dword [ebp - 4]
push edi
call fcn.00405c06
test eax, eax
jne 0x405d88
cmp dword [ebp - 4], eax
je 0x405d80
push edi
push 0xfffffffffffffff1
call fcn.004055a4
push 0
push edi
call fcn.00406302
jmp 0x405d90
inc dword [0x42a308]
jmp 0x405d90
push edi
push 0xfffffffffffffff2
call fcn.004055a4
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405d09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405db8
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e0a
cmp dword [ebp - 8], esi
jne 0x405dcc
inc dword [0x42a308]
jmp 0x405e0a
push edi
call fcn.0040689a
test eax, eax
je 0x405e0a
push edi
call fcn.00405e11
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405c06
test eax, eax
jne 0x405e02
cmp dword [ebp - 4], esi
je 0x405dc4
push edi
push 0xfffffffffffffff1
call fcn.004055a4
push esi
push edi
call fcn.00406302
jmp 0x405e0a
push edi
push 0xffffffffffffffe5
call fcn.004055a4
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4068c1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068e5
xor eax, eax
test eax, eax
je 0x4068f8
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068f8
xor ecx, ecx
jmp 0x4068fb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a1e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406a55
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a2f
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a2a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a86
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406a68
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10003939
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x5423074
call fcn.1001dc04
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x1184]
mov dword [ebp - 4], 0x28
call fcn.1000ca19
lea ecx, [esi + 0x1114]
mov byte [ebp - 4], 0x27
call fcn.1000ca19
lea ecx, [esi + 0x10a4]
mov byte [ebp - 4], 0x26
call fcn.1000ca19
cmp dword [esi + 0x109c], 0xffffffff
lea ecx, [esi + 0x109c]
mov byte [ebp - 4], 0x25
je 0x10003992
call fcn.10003bd5
lea ecx, [esi + 0x105c]
mov byte [ebp - 4], 0x24
call fcn.1000d0a9
lea ecx, [esi + 0x101c]
mov byte [ebp - 4], 0x23
call fcn.1000d0a9
lea ecx, [esi + 0xfac]
mov byte [ebp - 4], 0x22
call fcn.1000ca19
lea ecx, [esi + 0xf7c]
mov byte [ebp - 4], 0x21
call fcn.1000cf16
lea ecx, [esi + 0xf58]
mov byte [ebp - 4], 0x20
call fcn.1000cf16
lea ecx, [esi + 0xf34]
mov byte [ebp - 4], 0x1f
call fcn.1000cf16
lea ecx, [esi + 0xf10]
mov byte [ebp - 4], 0x1e
call fcn.1000cf16
lea ecx, [esi + 0xeec]
mov byte [ebp - 4], 0x1d
call fcn.1000cf16
lea ecx, [esi + 0xec8]
mov byte [ebp - 4], 0x1c
call fcn.1000cf16
lea ecx, [esi + 0xea4]
mov byte [ebp - 4], 0x1b
call fcn.1000cf16
lea ecx, [esi + 0xe80]
mov byte [ebp - 4], 0x1a
call fcn.1000cf16
lea ecx, [esi + 0xe5c]
mov byte [ebp - 4], 0x19
call fcn.1000cf16
lea ecx, [esi + 0xe34]
mov byte [ebp - 4], 0x18
call fcn.1000cf16
lea ecx, [esi + 0xe10]
mov byte [ebp - 4], 0x17
call fcn.1000cf16
lea ecx, [esi + 0xde4]
mov byte [ebp - 4], 0x16
call fcn.1000d080
lea ecx, [esi + 0xdc0]
mov byte [ebp - 4], 0x15
call fcn.1000cf16
lea ecx, [esi + 0xd9c]
mov byte [ebp - 4], 0x14
call fcn.1000cf16
lea ecx, [esi + 0xd78]
mov byte [ebp - 4], 0x13
call fcn.1000cf16
lea ecx, [esi + 0xd54]
mov byte [ebp - 4], 0x12
call fcn.1000cf16
lea ecx, [esi + 0xd30]
mov byte [ebp - 4], 0x11
call fcn.1000cf16
lea ecx, [esi + 0xd0c]
mov byte [ebp - 4], 0x10
call fcn.1000cf16
lea ecx, [esi + 0xce8]
mov byte [ebp - 4], 0xf
call fcn.1000cf16
lea ecx, [esi + 0xcc4]
mov byte [ebp - 4], 0xe
call fcn.1000cf16
lea ecx, [esi + 0xca0]
mov byte [ebp - 4], 0xd
call fcn.1000cf16
lea ecx, [esi + 0xc7c]
mov byte [ebp - 4], 0xc
call fcn.1000cf16
lea ecx, [esi + 0xc58]
mov byte [ebp - 4], 0xb
call fcn.1000cf16
lea ecx, [esi + 0xc34]
mov byte [ebp - 4], 0xa
call fcn.1000cf16
lea ecx, [esi + 0xc10]
mov byte [ebp - 4], 9
call fcn.1000cf16
lea ecx, [esi + 0xbe8]
mov byte [ebp - 4], 8
call fcn.1000cf16
lea ecx, [esi + 0xbc0]
mov byte [ebp - 4], 7
call fcn.1000cf16
lea ecx, [esi + 0xb9c]
mov byte [ebp - 4], 6
call fcn.1000cf16
lea ecx, [esi + 0xb2c]
mov byte [ebp - 4], 5
call fcn.1000ca19
lea ecx, [esi + 0xabc]
mov byte [ebp - 4], 4
call fcn.1000ca19
lea ecx, [esi + 0xa7c]
mov byte [ebp - 4], 3
call fcn.1000d0a9
lea ecx, [esi + 0x9e4]
mov byte [ebp - 4], 2
call fcn.1000ca19
lea ecx, [esi + 0x970]
mov byte [ebp - 4], 1
call fcn.1000ca19
and byte [ebp - 4], 0
lea ecx, [esi + 0x900]
call fcn.1000ca19
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10003bed
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x5cb74ba3
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x344668f3
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x83977b
Capabilities:
Encode data using xor

Disassembly:
call fcn.00861064
pop esp
cli
sbb al, 0x16
mov eax, 0xcca8ae79
fsubr dword [ebx - 0x63]
sub dh, byte [ecx - 0x37]
std
adc eax, 0xf2b27d74
arpl word [ebp - 0x58], dx
pop esi
xor esi, edi
cmp bh, bl
mov dh, 0xbc
jne 0x839781
or byte [ebp - 0x79], dl
ljmp 0x2b8b
Function at 0x402170
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4021bb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4021b4
test esi, esi
je 0x4021b4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402190
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4023a0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4023f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4024c8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40242e
cmp eax, 4
jne 0x402450
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40243e
cmp edx, 4
je 0x40243e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004023a0
Function at 0x414529
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x390]
sub esp, 0x410
mov eax, dword [0x494284]
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 0x4145fd
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 0x4145fd
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4145fd
lea eax, [ebp - 0x74]
push eax
call fcn.00445520
pop ecx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0x4145dd
lea eax, [esi + esi]
call fcn.0043fb20
mov eax, esp
lea ecx, [ebp - 0x74]
push 3
push esi
push ecx
push eax
call fcn.00403e19
mov ebx, eax
push edi
push ebx
call dword [sym.imp.ole32.dll_CLSIDFromString]
push 0x10
push 0x47a970
push edi
call fcn.00441d9e
add esp, 0xc
test eax, eax
je 0x4145fd
xor eax, eax
jmp 0x414602
mov eax, 0x80004005
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x38c]
xor ecx, ebp
call fcn.0043f9b7
add ebp, 0x390
leave
ret
Function at 0x416215
Capabilities:
Encode data using base64 via winapi

Disassembly:
push 0x68
mov eax, 0x468132
call fcn.0043fa2a
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x5c], eax
cmp dword [ebp + 0x10], edx
jne 0x41624d
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xf
mov byte [esi], dl
jmp 0x416367
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], edx
push ecx
push edx
push 0x40000001
push dword [ebp + 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x41636f
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], cl
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 2
test eax, eax
jne 0x41629b
mov dword [ebp - 0x18], eax
mov byte [ebp + eax - 0x28], cl
jmp 0x4162a5
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e2a4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x60]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x40000001
push dword [ebp + 0x10]
push dword [ebp - 0x5c]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x4162fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004167e7
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push str.binary2string__phase2__failed__sysError
push eax
call fcn.0040227b
add esp, 0x18
mov byte [ebp - 4], 4
jmp 0x41639b
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x18]
ja 0x416317
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 0x416325
sub ecx, dword [ebp - 0x18]
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040e2a4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004028bb
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x416367
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], ecx
cmp eax, 0x1000
jb 0x41635e
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004078a4
mov eax, dword [ebp - 0x64]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5c]
push eax
push ecx
call fcn.0043f54d
pop ecx
pop ecx
mov eax, esi
call fcn.0043f9d9
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004167e7
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x58]
push str.binary2string__phase1__failed__sysError
push eax
call fcn.0040227b
add esp, 0x18
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.00402d4f
push 0x48a83c
lea eax, [ebp - 0x70]
push eax
call fcn.004417dd
int3
Function at 0x4163b3
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x54
mov eax, 0x46816e
call fcn.0043fa2a
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 0x416426
push dword [ebp - 0x48]
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.0041173c
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push dword [esi]
call fcn.00440e10
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.0043f9d9
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004167e7
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
push str.decryption_failed__sysError
push eax
call fcn.0040227b
add esp, 0x18
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00402d4f
push 0x48a83c
lea eax, [ebp - 0x60]
push eax
call fcn.004417dd
int3

Function at 0x416550
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x54
mov eax, 0x46816e
call fcn.0043fa2a
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 0x4165ce
push dword [ebp - 0x48]
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.0041173c
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push dword [esi]
call fcn.00440e10
add esp, 0xc
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.0043f9d9
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004167e7
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], edi
push str.encryption_failed__sysError
push eax
call fcn.0040227b
add esp, 0x18
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00402d4f
push 0x48a83c
lea eax, [ebp - 0x60]
push eax
call fcn.004417dd
int3
Function at 0x41666c
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0x6c
mov eax, 0x468216
call fcn.0043fa2a
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 0x41669a
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
jmp 0x416798
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
mov dword [ebp - 0x5c], esi
jb 0x4166a7
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 0x4167a0
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 0x41670f
cmp esi, 0x7fffffff
ja 0x4167e1
push esi
cmp esi, 0x1000
jb 0x4166ef
call fcn.00402389
jmp 0x4166f4
call fcn.0043f51d
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.004117d7
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 0x41671e
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 0x416778
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004167e7
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push str.string2binary__phase2__failed__sysError
push eax
call fcn.0040227b
add esp, 0x18
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00402d4f
push 0x48a83c
lea eax, [ebp - 0x1c]
jmp 0x4167db
lea eax, [ebp - 0x5d]
push eax
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x6c]
call fcn.00416084
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.0043f9d9
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004167e7
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push str.string2binary__phase1__failed__sysError
push eax
call fcn.0040227b
add esp, 0x18
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00402d4f
push 0x48a83c
lea eax, [ebp - 0x6c]
push eax
call fcn.004417dd
call fcn.0040e27b
int3