joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
neg eax
bswap edi
mov edx, 0xf7
ror eax, 0x4a
rcl esi, 0xfd
rcl esi, 0x26
and esi, 0x5e
imul eax
mov edx, 0x55
or edx, 0xdf
or edi, 0x25
or eax, 6
ror edi, 0x4e
dec edx
sub ebx, 7
rol edi, 0xe3
mov edi, 0x46
rcl edi, 0x64
rcl edx, 0x5b
add eax, 0xce
inc esi
dec ebx
inc edx
imul edx
bswap edx
ror edi, 0x2a
mov ebx, 0x18
inc edi
neg ebx
rcr esi, 0x6e
rcr esi, 0xf9
dec esi
neg eax
imul ebx
not edx
rcr edx, 0x89
not eax
neg edi
and eax, 0xd5
rcr esi, 0x5a
neg edx
neg ebx
and ebx, 0x9b
or ebx, 0x74
ror esi, 0x92
rcl edi, 0x11
rol edx, 0x3e
ror esi, 0x30
sbb edi, 0xf1
ror esi, 0xe8
xor ecx, ecx
xor edi, edi
rcr ebx, 0x31
not edx
mov edx, 0x1d
dec eax
rcl edi, 0x2b
and esi, 0xed
dec edx
dec ebx
rcr edx, 0xdd
not edi
add eax, 0x9e
rol ebx, 0x3b
imul edx
ror esi, 0x5c
dec esi
not eax
dec ebx
not edi
rcl esi, 0x7b
rol esi, 0xa8
imul esi
rcr esi, 0xef
imul edi
sub edx, 0xff
rol esi, 0x21
bswap edx
mov ebx, 0x9a
rcr eax, 0xa7
and ebx, 0x6a
dec ebx
inc edi
add eax, 0x63
inc edx
dec edi
imul ebx
neg edx
rcr edi, 0xe7
neg eax
or ebx, 0xbc
neg ebx
and eax, 0x8b
inc ebx
sbb ebx, 0xc
not edi
and edx, 0xf5
not edx
ror eax, 0xb2
sbb esi, 0x35
rcl eax, 0x27
neg edi
mov ecx, dword [ebp + 0xc]
dec edi
bswap esi
not edx
bswap eax
imul eax
sbb ebx, 0xf8
neg edi
dec esi
dec edx
or esi, 0x48
inc edx
add eax, 0x26
bswap ebx
bswap esi
dec ebx
ror eax, 0x4c
neg ebx
bswap edx
inc esi
and esi, 0xeb
ror eax, 0x34
sub eax, 0xf7
bswap ebx
rcl eax, 0x43
rcl esi, 0xa1
bswap edi
neg edx
add eax, 0x87
neg edx
imul edi
neg edx
not eax
bswap ebx
add esi, 0x72
not edx
neg edx
not eax
rcr edx, 0x4a
rcr ebx, 0x9f
not ebx
sub edx, 0x46
rcr edi, 0x3c
imul edx
imul edx
imul esi
imul ebx
ror ebx, 0x52
bswap eax
sbb edi, 0x5d
add ebx, 0x50
mov edi, dword [ebp + 8]
xor esi, eax
mov esi, eax
xor eax, ebx
not byte [edi]
xor ebx, ebx
xor esi, esi
mov eax, ebx
mov esi, ebx
mov ebx, eax
xor ebx, esi
mov esi, esi
mov ebx, eax
xor ebx, ebx
add byte [edi], 0x79
xor eax, eax
xor eax, eax
xor eax, esi
xor esi, eax
mov esi, esi
xor esi, ebx
xor ebx, ebx
xor eax, esi
mov ebx, eax
sub byte [edi], 0x30
mov eax, ebx
mov eax, eax
xor ebx, esi
xor ebx, eax
xor ebx, eax
mov eax, eax
mov esi, esi
mov esi, esi
xor esi, ebx
imul byte [edi]
inc edi
loop 0x401ec9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4073c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49a894]
jne 0x4073ce
repz ret
jmp fcn.0040bda6
Function at 0x40d5ad
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a36f
and dword [ebp - 4], 0
cmp dword [0x49be14], 0
mov ebx, eax
jne 0x40d65e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d70f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d70f
push eax
call fcn.0040a2fd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49be14], eax
call esi
push eax
call fcn.0040a2fd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49be18], eax
call esi
push eax
call fcn.0040a2fd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49be1c], eax
call esi
push eax
call fcn.0040a2fd
pop ecx
mov dword [0x49be24], eax
test eax, eax
je 0x40d65e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a2fd
pop ecx
mov dword [0x49be20], eax
mov eax, dword [0x49be20]
cmp eax, ebx
je 0x40d6b6
cmp dword [0x49be24], ebx
je 0x40d6b6
push eax
call fcn.0040a378
push dword [0x49be24]
mov esi, eax
call fcn.0040a378
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d6b6
test edi, edi
je 0x40d6b6
call esi
test eax, eax
je 0x40d6ad
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d6ad
test byte [ebp - 0xc], 1
jne 0x40d6b6
or dword [ebp + 0x10], 0x200000
jmp 0x40d6ef
mov eax, dword [0x49be18]
cmp eax, ebx
je 0x40d6ef
push eax
call fcn.0040a378
pop ecx
test eax, eax
je 0x40d6ef
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d6ef
mov eax, dword [0x49be1c]
cmp eax, ebx
je 0x40d6ef
push eax
call fcn.0040a378
pop ecx
test eax, eax
je 0x40d6ef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49be14]
call fcn.0040a378
pop ecx
test eax, eax
je 0x40d70f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d711
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x66204c
Capabilities:
Encode data using xor

Disassembly:
movzx ax, dl
lea eax, sym.imp.KERNEL32.dll_LocalFree
call fcn.00664b92
fadd dword [edx - 0x28]
fdiv dword cs:[ecx]
fdiv dword [esi - 0x28]
fsub dword es:[eax + ebx*8]
daa
fdiv dword [ebx]
fdiv dword [ecx]
fdiv dword [edx]
fsub dword [ecx]
fsub dword [eax + ebx*8]
xor ebx, eax
xor eax, ebx
xor bl, al
and eax, ebx
and al, 0xd8
xor eax, ebx
jbe 0x662050
xor eax, ebx
sub al, bl
and bl, al
and al, 0xd8
sbb eax, 0x26d876d8
fsub dword [edi]
fsubr dword [0x22d828d8]
sub eax, 0x22d828d8
fdiv dword [esi - 0x28]
jno 0x66206a
xor ebx, eax
jbe 0x66206e
xor ebx, eax
daa
fsub dword [ecx]
fsubr dword [edx]
fdiv dword [edx]
fdiv dword [esi - 0x28]
sub al, bl
daa
fsub dword [edx]
fdiv dword [esi - 0x28]
xor al, 0xd8
xor eax, ebx
jbe 0x662088
sub bl, al
daa
fdiv dword [ebx]
fdiv dword [0x31d822d8]
fdiv dword [edx]
fdiv dword [esi - 0x28]
sub eax, 0x76d828d8
fsub dword [edx]
fsubr dword [esi]
fdiv dword [ecx]
fdiv dword [esi - 0x28]
xor bl, al
sbb eax, 0x35d828d8
fsubr dword [ecx]
fsubr dword [0x76d833d8]
fsubr dword [edx]
fsubr dword [0x2bd828d8]
sub al, bl
xor eax, 0x2dd829d8
fdiv dword [ebx]
fdiv dword [esi - 0x28]
sub bl, al
sub eax, 0x2bd828d8
fdiv dword [esi - 0x28]
sub bl, al
sub eax, 0x24d834d8
fdiv dword [0x1dd824d8]
fdiv dword [esi - 0x28]
jno 0x6620d2
and ebx, eax
xchg esi, eax
push ebp
xchg esi, eax
push ss
mov dword [0xebcbc53], eax
pop esp
in al, dx
sub bl, byte [esp + ebp*4 + 9]
push edi
out 0x25, eax
das
ja 0x662163
mov byte [0xcffcbbcd], al
sbb byte [esi - 0x4d50290a], ch
pop esi
invalid
mov eax, 0xdc4c29a9
sbb al, byte [ecx + 0x41]
dec esp
fcomp qword [edx]
inc ecx
inc ecx
jg 0x66210c
lcall 0x91c6, 0x36fd5add
cmp dword [edi - 0x2269a610], 0x2fdd4d7c
jp 0x66219f
xlatb
cmpsd dword [esi], dword es:[edi]
sbb al, 0xec
fild word [esi - 0x6e864c39]
invalid
and edi, dword [ebp - 3]
js 0x662142
into
stosd dword es:[edi], eax
sti
and ah, al
int 0x6c
lodsd eax, dword [esi]
salc
push esp
movsb byte es:[edi], byte [esi]
stc
jne 0x662186
add al, 0x86
jo 0x662157
mov ebx, 0xc3c2e9e7
adc ebp, esp
in al, dx
sub bh, byte [esi + esi*8]
cmc
adc eax, 0xeae7e1e
push ds
jle 0x662138
push cs
add byte [eax + 0x772838be], al
bound edx, qword [eax + edx*2 - 0x2f76f6d4]
xor byte [esi + 0x5177378e], ch
int1
jbe 0x662187
sub al, 0x3c
jbe 0x66213b
hlt

Function at 0x6f5e59
Capabilities:
Check for vm using instruction vpcext

Disassembly:
mov dword [esp + 4], 0x7ef35dfa
ror al, 4
call fcn.00737962
xchg ecx, eax
jb 0x6f5ede
pop ss
invalid
or cl, dl
invalid
Function at 0x401000
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x40b084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004055d0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401070
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x228]
call fcn.004016c0
mov ebx, 0xe
lea eax, [ebp - 0x228]
call fcn.004011b0
cmp dword [ebp - 0x214], 8
jb 0x4010b8
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
jmp 0x4010c4
lea edx, [ebp - 0x228]
mov dword [ebp - 0x22c], edx
push 0x100
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
mov edi, eax
mov eax, dword [ebp - 0x22c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x230]
push ecx
push edi
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
lea edx, [ebp - 0x284]
push 0
push edx
call fcn.004055d0
mov eax, dword [ebp - 0x228]
mov esi, 8
add esp, 0xc
mov dword [ebp - 0x258], 0x80
cmp dword [ebp - 0x214], esi
jae 0x40115f
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x214], esi
pop edi
pop esi
pop ebx
jb 0x40119c
mov eax, dword [ebp - 0x228]
push eax
call fcn.004018ae
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040189f
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40189f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b084]
jne 0x4018a9
repz ret
jmp fcn.0040201d
Function at 0x40444c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40b084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004032fe
and dword [ebp - 0x14], 0
cmp dword [0x40c9a8], 0
mov dword [ebp - 0x18], eax
jne 0x4044ff
push 0x409470
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4045a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x409464
push ebx
call edi
test eax, eax
je 0x4045a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x409454
push ebx
mov dword [0x40c9a8], eax
call edi
push eax
call esi
push 0x409440
push ebx
mov dword [0x40c9ac], eax
call edi
push eax
call esi
push 0x409424
push ebx
mov dword [0x40c9b0], eax
call edi
push eax
call esi
mov dword [0x40c9b8], eax
test eax, eax
je 0x4044ff
push 0x40940c
push ebx
call edi
push eax
call esi
mov dword [0x40c9b4], eax
mov eax, dword [0x40c9b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404558
cmp dword [0x40c9b8], ecx
je 0x404558
push eax
call esi
push dword [0x40c9b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404558
test ebx, ebx
je 0x404558
call edi
test eax, eax
je 0x40454f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40454f
test byte [ebp - 8], 1
jne 0x404558
or dword [ebp + 0x10], 0x200000
jmp 0x40458b
mov eax, dword [0x40c9ac]
cmp eax, dword [ebp - 0x18]
je 0x40458b
push eax
call esi
test eax, eax
je 0x40458b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40458b
mov eax, dword [0x40c9b0]
cmp eax, dword [ebp - 0x18]
je 0x40458b
push eax
call esi
test eax, eax
je 0x40458b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40c9a8]
call esi
test eax, eax
je 0x4045a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4045a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040189f
leave
ret
Function at 0x43b200
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50235e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x583a1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 4], 0
mov eax, 0xaaaaaaab
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], 1
lea ecx, [edi + 2]
mul ecx
mov ecx, dword [ebp - 0x10]
shr edx, 1
shl edx, 2
push edx
call fcn.0043cea0
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x14], eax
cmp dword [eax + 0x14], 0x10
jb 0x43b29f
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
mov dword [ebp - 0x20], edx
je 0x43b314
mov edi, edx
nop
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movsx eax, byte [esi]
movzx edx, byte [esi + 1]
and eax, 3
add eax, eax
shr edx, 4
movzx eax, byte [edx + eax*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movsx edx, byte [esi + 1]
movzx eax, byte [esi + 2]
and edx, 0xf
shr eax, 6
movzx eax, byte [eax + edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movsx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
sub edi, 1
jne 0x43b2b0
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
lea eax, [edx + edx*2]
sub edi, eax
sub edi, 1
je 0x43b364
sub edi, 1
jne 0x43b38f
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movsx eax, byte [esi]
movzx edx, byte [esi + 1]
and eax, 3
add eax, eax
shr edx, 4
movzx eax, byte [edx + eax*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movsx eax, byte [esi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x43b38c
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movsx eax, byte [esi]
and eax, 3
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
add ecx, 4
sub ecx, dword [ebp - 0x14]
push 0
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0043cea0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b810
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5024ce
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
push esi
push edi
mov eax, dword [0x583a1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x10]
shr eax, 2
push 0
mov dword [ebp - 0x24], 1
lea eax, [eax + eax*2]
push eax
call fcn.0043cea0
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x43b8af
mov edi, dword [edi]
cmp dword [esi + 0x14], 0x10
mov eax, esi
mov dword [ebp - 0x20], esi
jb 0x43b8bf
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x43b994
mov eax, dword [ebp - 0x18]
mov dh, byte [ebp - 0x16]
dec ecx
mov dword [ebp - 0x28], ecx
mov cl, byte [edi]
cmp cl, 0x3d
je 0x43b944
movzx ecx, cl
mov cl, byte [ecx + 0x572990]
cmp cl, 0xff
je 0x43b944
mov byte [ebp + esi - 0x18], cl
inc edi
mov eax, dword [ebp - 0x18]
inc esi
mov dh, byte [ebp - 0x16]
cmp esi, 4
jne 0x43b93d
mov esi, dword [ebp - 0x1c]
mov dl, ah
shr dl, 4
mov cl, al
and dl, 3
shl cl, 2
add dl, cl
mov cl, ah
mov byte [ebp - 0x14], dl
mov dl, dh
shr dl, 2
and dl, 0xf
shl cl, 4
add dl, cl
mov byte [ebp - 0x13], dl
mov dl, dh
mov cx, word [ebp - 0x14]
shl dl, 6
add dl, byte [ebp - 0x15]
mov word [esi], cx
mov byte [esi + 2], dl
add esi, 3
mov dword [ebp - 0x1c], esi
xor esi, esi
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x43b8d2
test esi, esi
je 0x43b991
mov dl, ah
mov cl, al
shl cl, 2
mov al, ah
shr dl, 4
dec esi
and dl, 3
shl al, 4
add dl, cl
mov cl, dh
shr cl, 2
and cl, 0xf
shl dh, 6
add dh, byte [ebp - 0x15]
add cl, al
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], cl
mov byte [ebp - 0x12], dh
test esi, esi
jle 0x43b991
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call fcn.004e5600
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, esi
jmp 0x43b994
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
push 0
push eax
call fcn.0043cea0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x441da0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504f3e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x34
mov eax, dword [0x583a1c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], edx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x441ecb
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0
push dword [ebp - 0x34]
call fcn.0043cea0
push dword [ebp - 0x34]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.004e5600
add esp, 0xc
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
movups xmm0, xmmword [ebp - 0x2c]
mov dword [esi + 0x14], 0
mov byte [ebp - 0x2c], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 4], 2
mov byte [esi + 0x18], 1
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0043a450
jmp 0x441edd
mov byte [esi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e3bc5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x442000
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x44205d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x442020
mov eax, dword [esi]
jmp 0x442137
cmp eax, 0x4e0
jb 0x442137
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x442076
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x4420c0
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x442180
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x4421a0
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 0xc