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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ecx, ecx
lea eax, [edi + edi*4]
lea esi, [edi + eax*2]
shl esi, 5
lea ebp, [esi + 0x431760]
mov edx, ebp
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov eax, dword [esi + 0x431774]
mov dword [esi + 0x431770], eax
mov ecx, dword [esi + 0x431774]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x431730]
push ebp
push ebx
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test al, al
mov byte [esp + 0x18], al
jne 0x41016e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4100ca
mov al, byte [esp + 0x28]
test al, al
je 0x4100ad
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4100b4
mov edx, dword [esi + 0x431774]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4100b4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
mov eax, dword [esi + 0x431730]
push 1
push ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
pop edi
pop esi
pop ebp
pop ebx
ret
mov al, byte [esi + 0x431622]
test al, al
jne 0x41016e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x4247f4]
mov ebx, dword [esp + 0x14]
cmp eax, edi
mov byte [esi + 0x431622], 1
jne 0x4100fc
push edi
push ebx
call fcn.00401830
add esp, 8
lea ecx, [esi + 0x431628]
push ecx
push str.The_connection_with__s_was_broken
push 0x435820
call fcn.00410876
mov eax, dword [0x4247f4]
add esp, 0xc
cmp edi, eax
jne 0x41012f
mov edx, dword [0x42fd24]
push edi
push edi
push edx
call fcn.004031d0
add esp, 0xc
push 0x30
push 0x41d1a4
push 0x435820
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4313a8]
mov ecx, dword [0x4357fc]
mov edx, dword [0x4357f0]
push eax
push ecx
add edi, 0xc350
push 0
push edi
push 4
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_SetMenuItemBitmaps]
mov al, byte [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x410780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4107d6
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x41a51c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4107c9
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4107d8
xor eax, eax
pop esi
leave
ret 4
Function at 0x4167f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421ef8
cmp edx, dword [eax]
je 0x416814
add eax, 8
inc ecx
cmp eax, 0x421f88
jl 0x416805
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421ef8]
jne 0x416942
mov eax, dword [0x42b15c]
cmp eax, 1
je 0x41691c
test eax, eax
jne 0x416845
cmp dword [0x41f824], 1
je 0x41691c
cmp edx, 0xfc
je 0x416942
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41687c
lea eax, [ebp - 0x1a4]
push 0x41a98c
push eax
call fcn.00418040
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00415d30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4168bf
lea eax, [ebp - 0x1a4]
push eax
call fcn.00415d30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41a988
push edi
call fcn.00411470
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x41a96c
push eax
call fcn.00418040
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00418050
lea eax, [ebp - 0xa0]
push 0x41a968
push eax
call fcn.00418050
push dword [esi + 0x421efc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00418050
push 0x12010
lea eax, [ebp - 0xa0]
push 0x41a940
push eax
call fcn.00418959
add esp, 0x2c
pop edi
jmp 0x416942
lea eax, [ebp + 8]
lea esi, [esi + 0x421efc]
push 0
push eax
push dword [esi]
call fcn.00415d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4060b6
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.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3d2a5760
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x3f6d54ee
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x404618
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41804c], 0
je 0x404679
cmp word [0x418328], 0xd7b2
jne 0x404641
cmp dword [0x418330], 0
jbe 0x404641
mov eax, 0x418324
call dword [0x418340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x417030], 0
jne 0x404695
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x414cd0
Capabilities:
Encode data using xor

Disassembly:
pop es
dec esp
inc ebp
in al, dx
mov edx, 0x72f02e00
pop ecx
mov edi, 0x8c6ca369
fdivr st(1), st(0)
jg 0x414cc6
jge 0x414ce2
pop eax
push ebp
xlatb
mov dh, 0x35
push esi
mov word [edx], ds
arpl word [edi], dx
sbb ah, byte [ebx + 0x17]
adc esp, dword [ebx + 0x17]
imul esp, dword [edx], 0x5def60a8
sbb dword [ebp - 0x4f], 0xfffffff7
pop esi
rcr byte [eax + 0x62], 1
xlatb
test al, 0x89
mov ebp, 0xd8aba437
push ecx
adc esp, eax
or byte [edx], 0x22
push ss
mov dl, byte [ecx + edx]
jnp 0x414d61
push esp
in al, dx
mov ebp, 0x9fe30a20
arpl word [edi - 0x28f63343], bx
mov ah, 0x7b
out dx, eax
jnp 0x414d0b
mov edi, 0xe37df237
invalid
sub eax, 0x185a811
sub al, 0x19
invalid
Function at 0x546223e0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffff8a
lcall 0xc285, 0x606d4e39
invalid

Function at 0x54cd8108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.54cd8258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x54cd812e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x54cd811a
add dl, dl
jne 0x54cd8139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x54cd818c
xor eax, eax
add dl, dl
jne 0x54cd8146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x54cd822d
add dl, dl
jne 0x54cd8155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54cd8160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54cd816b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54cd8176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x54cd8182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x54cd8125
mov eax, 1
add dl, dl
jne 0x54cd819a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x54cd81a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x54cd8191
sub eax, ebx
mov ebx, 1
jne 0x54cd81d8
mov ecx, 1
add dl, dl
jne 0x54cd81be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x54cd81c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x54cd81b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54cd8125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x54cd81ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x54cd81fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x54cd81e6
cmp eax, 0x7d00
jae 0x54cd821d
cmp eax, 0x500
jb 0x54cd8218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54cd8125
cmp eax, 0x7f
ja 0x54cd8220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x54cd8125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x54cd824e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x54cd8125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x102122eb
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1024b5e4
call fcn.1021e371
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edx
mov edi, ebx
mov dword [ebp - 0x28], edx
xor eax, eax
xor ecx, ecx
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
xor eax, eax
mov dword [ebp - 0x3c], ecx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x1d]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x1d], dl
call fcn.1021cb63
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1021b9b7
push ecx
mov ecx, esp
push eax
call fcn.1020fac6
call fcn.1021297c
mov edx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x24], eax
je 0x102123c0
push dword [ebp - 0x38]
and dword [ebp - 0x30], esi
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.1020f0ca
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1020f74b
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.1020fb98
call fcn.10211f6a
mov edx, dword [ebp - 0x1c]
add esp, 0xc
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
xor edi, edi
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
je 0x102123f3
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.TEZERPQIYLLYLEDXNCBRVQTCCXGWUR]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.1021cb63
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x24]
jb 0x102123ca
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
mov ecx, ebx
call fcn.1021cb63
lea ecx, [ebp - 0x34]
call fcn.1021b7ff
lea ecx, [ebp - 0x1c]
call fcn.1021b7ff
lea ecx, [ebp + 0xc]
call fcn.1021b7ff
mov eax, ebx
call fcn.1021e31b
ret
Function at 0x10212422
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1024b63a
call fcn.1021e371
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], edx
mov edi, ebx
mov dword [ebp - 0x24], edx
xor eax, eax
xor ecx, ecx
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
xor eax, eax
mov dword [ebp - 0x3c], ecx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x1d]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x1d], dl
call fcn.1021cb63
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1021b9b7
push ecx
mov ecx, esp
push eax
call fcn.1020fac6
call fcn.1021297c
mov edx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x28], eax
je 0x102124f7
push dword [ebp - 0x38]
and dword [ebp - 0x30], esi
lea eax, [ecx - 4]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.1020f0ca
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1020f74b
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.1020fb98
call fcn.10211f6a
mov edx, dword [ebp - 0x1c]
add esp, 0xc
add eax, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
xor edi, edi
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x1021252f
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.TEZERPQIYLLYLEDXNCBRVQTCCXGWUR]
cbw
movzx eax, ax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.1021cc5c
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x10212501
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.1021cc5c
lea ecx, [ebp - 0x34]
call fcn.1021b7ff
lea ecx, [ebp - 0x1c]
call fcn.1021b7ff
lea ecx, [ebp + 0xc]
call fcn.1021b7ff
mov eax, ebx
call fcn.1021e31b
ret
Function at 0x102128cb
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1024bc62
call fcn.1021e371
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 0x10212935
push dword [ebp - 0x14]
call fcn.1021dd8e
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.10220c90
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 0x10212946
push ebx
call fcn.1021dd97
pop ecx
mov ecx, edi
call fcn.10212616
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10212967
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.10212a0a
mov esi, eax
test esi, esi
je 0x10212960
mov ecx, edi
call fcn.10212616
push ebx
call fcn.1021dd97
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10216974
mov eax, esi
call fcn.1021e31b
ret 8

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

Disassembly:
push 0xc
mov eax, 0x1024bc62
call fcn.1021e371
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 0x102129f7
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 0x102129b9
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x102129ef
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1021ccb3
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.1021b9b7
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x102129f7
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.10216974
mov eax, ebx
call fcn.1021e31b
ret
Function at 0x10212a0a
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1024b66a
call fcn.1021e371
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.1021dd8e
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.10220c90
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1021d356
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 0x10212a84
push esi
call fcn.1021dd97
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.10212616
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10212aea
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.10214bf9
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.102186e3
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.1021861a
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x10212ae1
push dword [ebp - 0x120]
call fcn.102279a0
pop ecx
push esi
call fcn.1021dd97
pop ecx
xor eax, eax
call fcn.1021e31b
ret 0xc
Function at 0x10214dc1
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1062572c]
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 0x10214df5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10214efa
push edi
mov edi, 0x94
push edi
call fcn.1021dd8e
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.10220c90
mov eax, dword [esi + 0x10]
push 0x80
push 0x10402b68
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.1021d356
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 0x10214edd
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x10214edd
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 0x10214edd
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 0x10214edd
push dword [ebp - 8]
call fcn.1021dd8e
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.10220c90
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 0x10214ee5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10214ef9
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.1021dc50
mov esp, ebp
pop ebp
ret
Function at 0x10216c98
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x50
mov eax, 0x1024ba88
call fcn.1021e371
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
call fcn.10212ca1
push eax
lea ecx, [ebp - 0x4c]
call fcn.1020f98d
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], 0x2f68584f
mov dword [ebp - 0x44], 0x6c4d684e
mov dword [ebp - 0x40], 0x71684246
mov dword [ebp - 0x3c], 0x33735243
mov dword [ebp - 0x38], 0x44596a46
mov dword [ebp - 0x34], 0x4959524b
mov dword [ebp - 0x30], 0x54677862
mov dword [ebp - 0x2c], 0x4d51414e
mov dword [ebp - 0x28], 0x44735144
mov dword [ebp - 0x24], 0x6a41324f
mov dword [ebp - 0x20], 0x3149774a
mov dword [ebp - 0x1c], 0x41414144
mov word [ebp - 0x18], 0x4241
mov byte [ebp - 0x16], 0x34
call dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x15]
mov byte [ebp - 4], 1
push ebx
sub esp, 0xc
mov ecx, esp
push dword [ebp - 0x50]
mov dword [ecx], ebx
push eax
lea eax, [ebp - 0x48]
mov dword [ecx + 4], ebx
push eax
mov dword [ecx + 8], ebx
call fcn.1020f1e0
lea eax, [ebp - 0x5c]
push eax
call fcn.10212422
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1021ba00
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.102127a4
add esp, 0xc
lea ecx, [ebp - 0x5c]
call fcn.1021b882
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.10216974
mov dword [ebp - 0x14], ebx
call fcn.10212ca1
push eax
lea ecx, [ebp - 0x14]
call fcn.1020f98d
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x50], esi
mov edi, dword [ebp - 0x4c]
add edi, 0xfffffff0
push edi
call fcn.102120b2
add eax, 0x10
pop ecx
mov dword [esi], eax
push ebx
call fcn.10216e62
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.10216974
mov ecx, edi
call fcn.10216974
mov eax, esi
call fcn.1021e31b
ret