joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b910
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10006810
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.1000df60
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
jmp 0x1000b968
lea ecx, [ebp - 0x14]
call fcn.10008b10
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.1000e520
push eax
lea ecx, [ebp - 0x14]
call fcn.10008940
movzx edx, al
test edx, edx
jne 0x1000ba17
push 0x100
push 0
lea eax, [ebp - 0x12c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.100089c0
mov ecx, eax
call fcn.1000e000
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1000ba12
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000ea80
cmp eax, 0xffffffff
je 0x1000ba12
lea ecx, [ebp - 0x14]
call fcn.100089c0
push eax
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.10010000
mov al, 1
jmp 0x1000ba31
jmp 0x1000b960
jmp 0x1000ba1f
mov dword [ebp - 4], 0xffffffff
jmp 0x1000ba2f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e300
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001542d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
cmp dword [ebp + 8], 0
je 0x1000e36c
push 0x10016e28
lea ecx, [ebp - 0x24]
call fcn.10006b70
mov dword [ebp - 4], 0
push str._x32_
lea ecx, [ebp - 0x24]
call fcn.10009400
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.10009400
lea ecx, [ebp - 0x24]
call fcn.1000dfe0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100081f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10011770
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001554d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x100118ce
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x2c], eax
push 0xf
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 0
push 0
push 4
lea ecx, [ebp - 0x1c]
call fcn.100011b0
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], 0x1c
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100118f0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1001189c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x40]
cmp eax, dword [edx + 4]
jne 0x1001187e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x44], eax
je 0x1001187e
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
push eax
lea ecx, [ebp - 0x14]
call fcn.10001820
lea ecx, [ebp - 0x14]
call fcn.100089c0
test eax, eax
je 0x10011876
movzx edx, byte [ebp + 8]
test edx, edx
je 0x10011867
lea ecx, [ebp - 0x14]
call fcn.100089c0
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x10011876
lea ecx, [ebp - 0x14]
call fcn.100089c0
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [ebp - 0x14]
call fcn.100083f0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10011910
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x10011815
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp + 8]
mov byte [ecx + 8], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10001220
jmp 0x100118b0
mov dword [ebp - 4], 0xffffffff
jmp 0x100118c0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
push esi
push edi
mov edi, 0x40a200
push edi
mov dword [ebp - 4], 0x400
xor esi, esi
call fcn.004021a0
test eax, eax
pop ecx
jbe 0x401046
mov al, byte [esi + 0x40a200]
push edi
add al, byte [esi + 0x40a1cc]
sub al, 0x41
mov byte [ebp + esi - 0x20c], al
inc esi
call fcn.004021a0
cmp esi, eax
pop ecx
jb 0x401025
and byte [ebp + esi - 0x20c], 0
mov edi, 0x40a1c0
push edi
xor esi, esi
call fcn.004021a0
test eax, eax
pop ecx
jbe 0x401081
mov al, byte [esi + 0x40a1c0]
push edi
add al, byte [esi + 0x40a1b0]
sub al, 0x41
mov byte [ebp + esi - 0x8c], al
inc esi
call fcn.004021a0
cmp esi, eax
pop ecx
jb 0x401060
and byte [ebp + esi - 0x8c], 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x20c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4010af
push eax
push 0x50
jmp 0x4011ad
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x8c]
push 0
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x4010de
push eax
push 0x5b
jmp 0x4011ad
mov ecx, dword [ebp - 4]
lea eax, [ecx - 1]
cmp eax, 0x13
jae 0x4010f6
cmp eax, 0x1b
jbe 0x4010f6
push ecx
push 0x60
jmp 0x4011ad
push dword [ebp + 0x10]
lea eax, [ebp - 0x60c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x40a1a4
push eax
call fcn.00402150
add esp, 0x14
cmp eax, 1
je 0x401121
cmp eax, 2
jne 0x4011a3
mov edi, 0x40a18c
xor esi, esi
push edi
call fcn.004021a0
test eax, eax
pop ecx
jbe 0x401156
mov cl, byte [esi + 0x40a18c]
mov eax, esi
cdq
sub eax, edx
inc cl
sar eax, 1
inc esi
push edi
mov byte [ebp + eax - 0x10c], cl
inc esi
call fcn.004021a0
cmp esi, eax
pop ecx
jb 0x401133
lea eax, [ebp - 4]
and byte [esi + 0x40a18c], 0
push eax
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
push dword [ebp - 8]
call ebx
test eax, eax
je 0x401183
push eax
push 0x74
jmp 0x4011ad
lea eax, [ebp - 0x60c]
push 4
push eax
push dword [ebp + 0xc]
call fcn.00401e10
mov eax, dword [ebp + 0x10]
add esp, 0xc
push 3
mov dword [eax], 0xe333335e
pop eax
cmp eax, 3
je 0x4011c0
push dword [ebp - 4]
push 0x7c
push dword [0x40a034]
call fcn.00401dd0
add esp, 0xc
or eax, 0xffffffff
jmp 0x4011c2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401363
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
mov esi, dword [edi + 4]
mov edx, dword [edi + 8]
mov edi, dword [edi + 0xc]
mov dword [ebp + 0xc], edi
mov edi, dword [ebp + 8]
mov ebx, edi
dec edi
test ebx, ebx
je 0x4014b2
inc edi
mov dword [ebp - 8], edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 8
mov ebx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
mov ebx, dword [ebx]
xor ebx, edx
mov dword [ebp + 8], ebx
and ebx, 0xffff
xor ecx, dword [ebx + eax + 0x80]
xor esi, dword [ebx + eax + 0x84]
lea ebx, [ebx + eax + 0x80]
mov ebx, dword [ebp + 8]
shr ebx, 0x10
xor ecx, dword [eax + ebx + 0x80]
xor esi, dword [eax + ebx + 0x84]
mov ebx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
mov ebx, dword [ebx]
xor ebx, edi
mov dword [ebp + 8], ebx
and ebx, 0xffff
xor ecx, dword [ebx + eax + 0x10080]
xor esi, dword [ebx + eax + 0x10084]
lea ebx, [ebx + eax + 0x10080]
mov ebx, dword [ebp + 8]
shr ebx, 0x10
xor ecx, dword [eax + ebx + 0x10080]
xor esi, dword [eax + ebx + 0x10084]
mov ebx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
mov ebx, dword [ebx]
xor ebx, ecx
mov dword [ebp + 8], ebx
and ebx, 0xffff
xor edx, dword [ebx + eax + 0x80]
xor edi, dword [ebx + eax + 0x84]
lea ebx, [ebx + eax + 0x80]
mov ebx, dword [ebp + 8]
shr ebx, 0x10
xor edx, dword [eax + ebx + 0x80]
xor edi, dword [eax + ebx + 0x84]
mov ebx, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
mov ebx, dword [ebx]
xor ebx, esi
mov dword [ebp + 8], ebx
and ebx, 0xffff
xor edx, dword [ebx + eax + 0x10080]
xor edi, dword [ebx + eax + 0x10084]
lea ebx, [ebx + eax + 0x10080]
mov ebx, dword [ebp + 8]
shr ebx, 0x10
xor edx, dword [eax + ebx + 0x10080]
xor edi, dword [eax + ebx + 0x10084]
dec dword [ebp - 4]
jne 0x40139e
dec dword [ebp - 8]
mov ebx, ecx
mov ecx, edx
mov edx, ebx
mov ebx, esi
mov esi, edi
mov edi, ebx
jne 0x401394
jmp 0x4014b5
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], edi
mov dword [eax + 4], esi
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 8], edx
pop ebx
leave
ret
Function at 0x4019eb
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, 0x1000
mov esi, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [eax + 4]
xor ecx, esi
and ecx, dword [esp + 0x14]
mov ebx, ecx
xor ebx, esi
mov dword [eax], ebx
mov eax, edx
xor dword [eax], ecx
add eax, 4
dec edi
jne 0x4019f7
pop edi
pop esi
pop ebx
ret
Function at 0x406880
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x4340a0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x406a2d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x433fa0]
lea edi, [ecx*4 + 0x433fa0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x406a2d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4068ee
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x4068ff
push 2
push ebp
push eax
call fcn.00406ab0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x406a5e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4069a9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40695a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x406947
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40692a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406a4f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4069a5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x406926
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x406a1e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4069f2
cmp eax, 5
jne 0x4069db
mov dword [0x413b18], eax
mov dword [0x413b14], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004072e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x406a12
cmp byte [ebp], 0x1a
jne 0x406a12
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x413b14], 0x1c
jmp 0x406a37
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x413b14], 9
pop edi
pop esi
pop ebp
mov dword [0x413b18], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4069a5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406a8f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4069a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4069a9
Function at 0x10412822
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1044d11e
call fcn.1041f28d
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 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 - 0x38], 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.1041dd3a
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1041cba6
push ecx
mov ecx, esp
push eax
call fcn.1040ff52
call fcn.10412eb7
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 0x104128f9
and dword [ebp - 0x30], esi
lea eax, [ecx - 4]
mov byte [ebp - 0x24], 0
push dword [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.1040f4a1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1040fdfc
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.10410024
call fcn.104124a1
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 0x1041292c
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.SJBRCXCJCEOCKTXGDUYSISSBFGNUVK]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.1041dd3a
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x10412903
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
mov ecx, ebx
call fcn.1041dd3a
lea ecx, [ebp - 0x34]
call fcn.1041c9ec
lea ecx, [ebp - 0x1c]
call fcn.1041c9ec
lea ecx, [ebp + 0xc]
call fcn.1041c9ec
mov eax, ebx
call fcn.1041f237
ret
Function at 0x1041295b
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1044d174
call fcn.1041f28d
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edx
mov edi, ebx
mov dword [ebp - 0x20], 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 - 0x38], 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 - 0x21]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x21], dl
call fcn.1041dd3a
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.1041cba6
push ecx
mov ecx, esp
push eax
call fcn.1040ff52
call fcn.10412eb7
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 0x10412a32
and dword [ebp - 0x30], esi
lea eax, [ecx - 4]
mov byte [ebp - 0x20], 0
push dword [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.1040f4a1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1040fdfc
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.10410024
call fcn.104124a1
mov edx, dword [ebp - 0x1c]
add esp, 0xc
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
xor edi, edi
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
je 0x10412a6a
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.SJBRCXCJCEOCKTXGDUYSISSBFGNUVK]
cbw
movzx eax, ax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.1041de33
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x10412a3c
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.1041de33
lea ecx, [ebp - 0x34]
call fcn.1041c9ec
lea ecx, [ebp - 0x1c]
call fcn.1041c9ec
lea ecx, [ebp + 0xc]
call fcn.1041c9ec
mov eax, ebx
call fcn.1041f237
ret
Function at 0x10412e06
Capabilities:
Decode data using base64 via winapi

Disassembly:
push 0xc
mov eax, 0x1044d1a1
call fcn.1041f28d
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 0x10412e70
push dword [ebp - 0x14]
call fcn.1041ec97
push dword [ebp - 0x14]
mov ebx, eax
push 0
push ebx
call fcn.10421b80
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 0x10412e81
push ebx
call fcn.1041eca0
pop ecx
mov ecx, edi
call fcn.10412b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10412ea2
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 0x14]
push ebx
call fcn.10412f45
mov esi, eax
test esi, esi
je 0x10412e9b
mov ecx, edi
call fcn.10412b51
push ebx
call fcn.1041eca0
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1041709c
mov eax, esi
call fcn.1041f237
ret 8

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

Disassembly:
push 0xc
mov eax, 0x1044d1a1
call fcn.1041f28d
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 0x10412f32
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 0x10412ef4
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x10412f2a
push dword [ebp - 0x14]
mov ecx, esi
call fcn.1041de8a
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.1041cba6
push eax
push 1
push esi
push edi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10412f32
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.1041709c
mov eax, ebx
call fcn.1041f237
ret
Function at 0x10412f45
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x114
mov eax, 0x1044d1d1
call fcn.1041f28d
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.1041ec97
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0
push eax
call fcn.10421b80
push edi
push esi
push dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push esi
call fcn.1041e25f
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 0x10412fbf
push esi
call fcn.1041eca0
pop ecx
mov ecx, dword [ebp - 0x18]
call fcn.10412b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10413025
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.10415829
push dword [ebp - 0x120]
and dword [ebp - 4], 0
call fcn.104192c6
pop ecx
mov ecx, dword [ebp - 0x18]
push eax
push dword [ebp - 0x120]
call fcn.104191fd
lea eax, [ebp - 0x11c]
cmp dword [ebp - 0x120], eax
je 0x1041301c
push dword [ebp - 0x120]
call fcn.10428895
pop ecx
push esi
call fcn.1041eca0
pop ecx
xor eax, eax
call fcn.1041f237
ret 0xc
Function at 0x104159f1
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10c2572c]
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 0x10415a25
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10415b2a
push edi
mov edi, 0x94
push edi
call fcn.1041ec97
push edi
push ebx
push eax
mov dword [esi + 0x10], eax
call fcn.10421b80
mov eax, dword [esi + 0x10]
push 0x80
push 0x10802470
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.1041e25f
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 0x10415b0d
lea edi, [esi + 8]
push edi
push 0x800001
push 0x6602
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x10415b0d
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 0x10415b0d
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 0x10415b0d
push dword [ebp - 8]
call fcn.1041ec97
push dword [ebp - 8]
mov dword [esi + 0x14], eax
push 0
push eax
call fcn.10421b80
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 0x10415b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10415b29
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.1041eb59
mov esp, ebp
pop ebp
ret