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

Disassembly:
push 0xf8
mov eax, 0x10063f15
call fcn.1004adf3
mov dword [ebp - 0x48], ecx
push ecx
push ecx
push edx
lea ecx, [ebp - 0x104]
call fcn.1001335b
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
jmp 0x10012846
xor ebx, ebx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov esi, dword [eax + 0x10]
jb 0x10012717
mov edx, dword [eax]
mov dword [ebp - 0x4c], edx
jmp 0x1001271c
mov edx, eax
mov dword [ebp - 0x4c], eax
test esi, esi
je 0x10012782
mov ecx, dword [ebp - 0x1c]
cmp ebx, ecx
jae 0x10012782
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [eax + ecx*2]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x50], ecx
cmovae eax, dword [ebp - 0x2c]
lea edi, [eax + ebx*2]
cmp edi, ecx
jae 0x10012782
test esi, esi
je 0x10012765
mov eax, edx
mov ecx, esi
movzx edx, word [edi]
cmp word [eax], dx
je 0x1001275e
add eax, 2
dec ecx
jne 0x10012751
xor eax, eax
test eax, eax
jne 0x10012771
mov ecx, dword [ebp - 0x50]
add edi, 2
cmp edi, ecx
jae 0x10012782
mov edx, dword [ebp - 0x4c]
jmp 0x10012746
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
sub edi, eax
sar edi, 1
jmp 0x10012785
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x10012826
cmp edi, ebx
jbe 0x1001281e
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
je 0x100127da
mov ecx, 0x368
call fcn.1000c28f
mov ecx, 0x1e6
mov esi, eax
call fcn.1000c304
cmp eax, esi
jle 0x100127da
mov ecx, 0x247
call fcn.1000c238
mov ecx, 0xb7
mov esi, eax
call fcn.1000c2c8
cmp eax, esi
jl 0x100127da
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, edi
mov byte [ebp - 4], 2
sub eax, ebx
lea edx, [ebp - 0x44]
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10011cb0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push eax
call fcn.100130aa
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.10003109
lea ebx, [edi + 1]
jmp 0x10012704
cmp ebx, dword [ebp - 0x1c]
jae 0x10012846
lea edx, [ebp - 0x2c]
push 0xffffffffffffffff
push ebx
mov ecx, edx
call fcn.10011cb0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
call fcn.100130aa
mov eax, dword [ebp - 0x104]
lea ecx, [ebp - 0x104]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call fcn.1000f84c
movzx eax, ax
lea edx, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x104]
call fcn.10018680
pop ecx
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x10012702
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10003109
lea ecx, [ebp - 0x104]
call fcn.10011ba2
call fcn.1004ada2
ret
Function at 0x1001d297
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10065235
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10088740]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x10088740]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x1001d3d1
cmp byte [ebx + 0x45], 0
je 0x1001d3d1
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x1001d2f7
xor al, al
jmp 0x1001d3d3
xor eax, eax
mov dword [esp + 0x2c], 0xf
push eax
push 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
call fcn.1001935a
and dword [esp + 0x40], 0
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1001d35c
dec eax
je 0x1001d360
dec eax
dec eax
je 0x1001d3be
xor bl, bl
jmp 0x1001d3c0
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x1001d39f
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.10049155
add esp, 0x10
cmp esi, eax
jne 0x1001d358
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
cmp byte [ebx + 0x45], 0
je 0x1001d3be
test esi, esi
jne 0x1001d322
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.10002fc7
jmp 0x1001d31a
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.1000146d
mov al, bl
jmp 0x1001d3d3
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10046c1a
mov esp, ebp
pop ebp
ret
Function at 0x1001dcc3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x10088740]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, edx
push 0x206
push eax
mov word [ebp - 0x214], ax
mov edi, ecx
lea eax, [ebp - 0x212]
push eax
call fcn.1004ac10
add esp, 0xc
lea eax, [ebp - 0x214]
mov ebx, 0x104
push ebx
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x214]
push eax
call fcn.10020ebe
test esi, esi
je 0x1001ddf3
cmp esi, ebx
jne 0x1001dd3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1001ddf3
mov ecx, edi
call fcn.10020ef6
test al, al
je 0x1001ddf3
cmp byte [ebp + 8], 0
je 0x1001ddef
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
test eax, eax
je 0x1001dda1
mov ecx, 0x112
call fcn.1000c304
movss xmm0, dword [0x10079f40]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
call fcn.1000c361
comiss xmm2, xmm0
jbe 0x1001dda1
mov ecx, 0x1d2
call fcn.1000c256
mov ecx, 0x137
mov esi, eax
call fcn.1000c342
cmp eax, esi
jle 0x1001dda1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea eax, [ebp - 0x434]
mov ecx, edi
push eax
call fcn.10002ec4
cmp dword [eax + 0x14], 8
jb 0x1001ddb7
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x41c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push 0
push 1
lea ecx, [ebp - 0x434]
mov esi, eax
call fcn.10003109
lea eax, [esi - 1]
cmp eax, 0x102
ja 0x1001ddf3
lea eax, [ebp - 0x41c]
mov ecx, edi
push eax
call fcn.10020ebe
mov al, 1
jmp 0x1001ddf5
xor al, al
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10046c1a
mov esp, ebp
pop ebp
ret

Function at 0x1001de06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10088740]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
xor ebx, ebx
mov esi, edx
push ecx
mov edi, ecx
mov dword [ebp - 0x214], ebx
call fcn.1002cb53
pop ecx
lea edx, [ebp - 0x214]
mov ecx, eax
call fcn.1001e7f4
pop ecx
test al, al
jne 0x1001de49
xor al, al
jmp 0x1001df0d
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.1004ac10
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
mov eax, dword [edi]
push ebx
push dword [ebp - 0x214]
or eax, 0x4000
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x214]
test eax, eax
setns bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x1001deef
call dword [sym.imp.KERNEL32.dll_GetACP]
test eax, eax
je 0x1001de42
mov ecx, 0x1ec
call fcn.1000c342
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x1007a00c]
jb 0x1001de42
mov ecx, 0x10f
call fcn.1000c28f
movss xmm0, dword [0x10079edc]
movd xmm5, eax
cvtdq2ps xmm5, xmm5
call fcn.1000c3a4
comiss xmm0, xmm5
jbe 0x1001de42
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x1001de42
lea eax, [ebp - 0x210]
push eax
call fcn.1000213a
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.10003401
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10046c1a
mov esp, ebp
pop ebp
ret
Function at 0x1001e078
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10088740]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.1004ac10
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x1001e18b
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
je 0x1001e127
movss xmm0, dword [0x10079f3c]
call fcn.1000c3a4
mov ecx, 0x1a4
movss dword [ebp - 0x124], xmm0
call fcn.1000c256
movss xmm0, dword [ebp - 0x124]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1001e127
mov ecx, 0x17d
call fcn.1000c2c8
movss xmm0, dword [0x10079fdc]
movd xmm2, eax
cvtdq2ps xmm2, xmm2
call fcn.1000c361
comiss xmm2, xmm0
jbe 0x1001e127
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov eax, dword [ebp - 0x11c]
sub eax, 5
je 0x1001e170
dec eax
je 0x1001e146
sub eax, 4
jne 0x1001e18b
cmp dword [ebp - 0x118], eax
jne 0x1001e18b
push 7
jmp 0x1001e152
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1001e155
push 3
pop eax
jmp 0x1001e18d
cmp eax, 1
jne 0x1001e15e
push 4
jmp 0x1001e152
cmp eax, 2
jne 0x1001e167
push 5
jmp 0x1001e152
cmp eax, 3
jne 0x1001e18b
push 6
jmp 0x1001e152
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x1001e17f
xor eax, eax
inc eax
jmp 0x1001e18d
push 2
pop eax
cmp ecx, 1
je 0x1001e18d
cmp ecx, eax
je 0x1001e18d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10046c1a
mov esp, ebp
pop ebp
ret
Function at 0x1001e50e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xd4
mov eax, 0x1006547c
call fcn.1004adf3
mov esi, dword [ebp + 8]
mov ebx, 0x10000000
push edx
push 0x67
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1001e726
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1001e726
push edi
push 0x10000000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push ebx
shr edi, 1
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x1001e726
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], ebx
jb 0x1001e57b
mov eax, dword [esi]
jmp 0x1001e57d
mov eax, esi
mov byte [eax], bl
lea eax, [ecx + edi*2]
push eax
push ecx
mov ecx, esi
call fcn.1000fd0e
push str._1Nx_3I_Z45_81tpHVDGk70AiKx__MNJyf
lea ecx, [ebp - 0x74]
call fcn.100013a0
lea edx, [ebp - 0x74]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x5c]
call fcn.1000c456
push ebx
push 1
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.1000146d
mov edi, dword [ebp - 0x4c]
lea eax, [edi + 1]
cmp dword [esi + 0x10], eax
jb 0x1001e717
push edi
push ebx
lea eax, [ebp - 0x8c]
mov ecx, esi
push eax
call fcn.10012e65
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008040
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x44]
call fcn.10008040
mov byte [ebp - 4], 5
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xa8], bl
cmovae edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
mov eax, edx
push dword [ebp - 0xa8]
cmovae ecx, dword [ebp - 0x2c]
sub eax, ecx
push eax
call fcn.1002178d
cmp dword [ebp - 0x30], 0x10
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x44]
mov byte [ebp - 0xa8], bl
cmovae edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], 0x10
mov eax, edx
push dword [ebp - 0xa8]
cmovae ecx, dword [ebp - 0x44]
sub eax, ecx
push eax
call fcn.1002178d
add esp, 0x10
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.1000bbd5
test al, al
je 0x1001e6f3
mov eax, dword [esi + 0x10]
mov ecx, esi
sub eax, edi
push eax
push edi
lea eax, [ebp - 0x74]
push eax
call fcn.10012e65
push eax
mov ecx, esi
call fcn.1000191b
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.1000146d
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xe0]
call fcn.1003367a
push esi
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.10033833
mov edx, esi
lea ecx, [ebp - 0xa4]
call fcn.10031d74
push eax
mov ecx, esi
call fcn.1000191b
push ebx
push 1
lea ecx, [ebp - 0xa4]
call fcn.1000146d
lea ecx, [ebp - 0xc0]
call fcn.10008b70
lea ecx, [ebp - 0xe0]
call fcn.1000e7eb
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.1000146d
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000146d
push ebx
push 1
lea ecx, [ebp - 0x8c]
call fcn.1000146d
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.1000146d
mov al, 1
jmp 0x1001e728
xor al, al
call fcn.1004ada2
ret
Function at 0x1002b3f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push edi
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
cmp dword [edx + 0x14], 8
mov edi, dword [ecx + 0x10]
jb 0x1002b414
mov edx, dword [edx]
push eax
call fcn.1002ae8a
push eax
push edi
push 0
push edx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
mov dword [esi + 0x28], eax
test eax, eax
pop edi
sete al
pop esi
pop ebp
ret 8

Function at 0x1002b438
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x10067bfc
call fcn.1004adc0
mov edx, ecx
mov dword [ebp - 0x14], edx
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
lea edi, [ebx + 4]
mov eax, dword [edi + 4]
sub eax, dword [edi]
jne 0x1002b4f3
cmp dword [esi + 0x14], 8
jb 0x1002b46b
mov eax, dword [esi]
jmp 0x1002b46d
mov eax, esi
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebx + 0x10]
push 0
push ecx
push 0
push eax
push dword [edx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1002b4cc
xor eax, eax
mov esi, 0x10078714
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov ecx, ebx
lea eax, [ebp - 0x28]
push eax
call fcn.1002adf3
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], esi
call fcn.100083fa
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x28], ecx
xor al, al
jmp 0x1002b580
cmp dword [ebx + 0x10], 1
je 0x1002b4dd
cmp dword [ebx + 0x10], 2
je 0x1002b4dd
mov eax, dword [ebp - 0x10]
jmp 0x1002b4e8
mov eax, dword [ebp - 0x10]
test al, 1
je 0x1002b4e8
inc eax
mov dword [ebp - 0x10], eax
push eax
mov ecx, edi
call fcn.1002b92e
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 4]
sub eax, dword [edi]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], eax
jb 0x1002b508
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
jmp 0x1002b50b
mov dword [ebp + 0xc], esi
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.1002ae8a
push eax
lea eax, [ebx + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [edx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x28], ecx
cmp ecx, 0xea
je 0x1002b543
mov edx, dword [edi + 4]
sub edx, dword [edi]
cmp edx, dword [ebp - 0x10]
jae 0x1002b579
push dword [ebp - 0x10]
mov ecx, edi
call fcn.1002b92e
cmp dword [esi + 0x14], 8
jb 0x1002b555
mov esi, dword [esi]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.1002ae8a
push eax
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 0x14]
push eax
push 0
push esi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
mov dword [ebx + 0x28], ecx
xor eax, eax
test ecx, ecx
sete al
call fcn.1004ad8e
ret 8
Function at 0x1002fac0
Capabilities:
Create process on windows

Disassembly:
push 0x10c
mov eax, 0x10068573
call fcn.1004adf3
mov dword [ebp - 0xd8], edx
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0xdc], ebx
call fcn.100307e3
test al, al
jne 0x1002fb18
xor ecx, ecx
mov byte [ebp - 0xd1], 1
call fcn.10030877
test al, al
jne 0x1002fb08
mov ecx, 0x100
call fcn.10030877
test al, al
je 0x1002fb11
call fcn.100307e3
test al, al
je 0x1002fb1e
xor al, al
jmp 0x1002fd02
mov byte [ebp - 0xd1], bl
push esi
lea ecx, [ebp - 0x58]
call fcn.10008070
lea eax, [ebp - 0xb8]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.10002ef7
mov byte [ebp - 4], 1
cmp dword [eax + 0x10], ebx
jne 0x1002fb57
push 0x10076ce0
lea ecx, [ebp - 0xd0]
call fcn.10002e3f
xor ebx, ebx
inc ebx
jmp 0x1002fb88
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x58]
call fcn.10002ef7
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 3
push ecx
mov ecx, eax
mov dword [ebp - 0xdc], 2
call fcn.10002ede
push 6
pop ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.10002e70
mov dword [ebp - 4], 4
test bl, 4
je 0x1002fbaf
push 0
push 1
lea ecx, [ebp - 0x88]
and ebx, 0xfffffffb
call fcn.10003109
test bl, 2
je 0x1002fbc6
push 0
push 1
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffffd
call fcn.10003109
test bl, 1
je 0x1002fbdd
xor ebx, ebx
lea ecx, [ebp - 0xd0]
push ebx
push 1
call fcn.10003109
jmp 0x1002fbdf
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 7
call fcn.10003109
cmp dword [ebp - 0x18], 0
jne 0x1002fbfb
mov edi, ebx
jmp 0x1002fc06
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
push str.82LTbb
lea ecx, [ebp - 0x70]
call fcn.10002e3f
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.1000c43d
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10003109
push 0x38
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.1004ac10
add esp, 0xc
mov dword [ebp - 0x118], 0x3c
cmp byte [ebp - 0xd1], 0
mov dword [ebp - 0x114], 0x40
mov dword [ebp - 0x110], ebx
je 0x1002fc75
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x10c], eax
jmp 0x1002fc7b
mov dword [ebp - 0x10c], ebx
cmp dword [esi + 0x14], 8
jb 0x1002fc83
mov esi, dword [esi]
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x108], esi
cmp dword [eax + 0x14], 8
jb 0x1002fc97
mov eax, dword [eax]
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x100], edi
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf8], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [ebp - 0xe0]
lea ecx, [ebp - 0x40]
test eax, eax
push 0
push 1
setne bl
call fcn.10003109
test esi, esi
je 0x1002fce8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10003109
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.10003109
mov al, bl
call fcn.1004ada2
ret
Function at 0x10031ea1
Capabilities:
Encode data using base64

Disassembly:
push 0x20
mov eax, 0x1006894d
call fcn.1004adc0
mov dword [ebp - 0x20], ecx
xor ebx, ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 0x14], 0xf
sub eax, esi
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x1c], esi
mov byte [ecx], bl
mov dword [ebp - 4], ebx
mov edi, ebx
mov dword [ebp - 0x28], 1
je 0x10032034
push 3
pop esi
mov ecx, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x24], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x10], al
inc edi
mov dl, byte [ebp - 0xf]
inc ecx
mov dword [ebp - 0x1c], ecx
mov ch, byte [ebp - 0xe]
mov cl, byte [ebp - 0x10]
mov byte [ebp - 0x17], ch
mov byte [ebp - 0x16], dl
mov byte [ebp - 0x15], cl
cmp edi, esi
jne 0x10031f7b
mov esi, dword [ebp - 0x20]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x14], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x13], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], al
cmp dword [0x100896fc], 0x10
mov ecx, 0x100896e8
movzx eax, byte [ebp + edi - 0x14]
cmovae ecx, dword [0x100896e8]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
push 1
call fcn.10002fc7
inc edi
cmp edi, 4
jl 0x10031f41
mov dl, byte [ebp - 0x16]
mov edi, ebx
mov cl, byte [ebp - 0x15]
mov ch, byte [ebp - 0x17]
push 3
pop esi
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x10031ee3
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x10032034
mov eax, edi
cmp edi, esi
jge 0x10031fb1
cmp eax, esi
jae 0x1003203d
mov byte [ebp + eax - 0x10], bl
inc eax
cmp eax, esi
jl 0x10031f99
mov ch, byte [ebp - 0xe]
mov dl, byte [ebp - 0xf]
mov cl, byte [ebp - 0x10]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x14], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x13], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x11], ch
lea eax, [edi + 1]
mov byte [ebp - 0x12], dl
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x1003201f
mov esi, dword [ebp - 0x20]
mov edi, eax
cmp dword [0x100896fc], 0x10
mov ecx, 0x100896e8
movzx eax, byte [ebp + ebx - 0x14]
cmovae ecx, dword [0x100896e8]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
push 1
call fcn.10002fc7
inc ebx
cmp ebx, edi
jl 0x10031fee
mov edi, dword [ebp - 0x1c]
push 3
pop esi
cmp edi, esi
jge 0x10032034
sub esi, edi
mov ecx, dword [ebp - 0x20]
push 0x3d
push 1
call fcn.10002fc7
dec esi
jne 0x10032025
mov eax, dword [ebp - 0x20]
call fcn.1004ad8e
ret
call fcn.10049e0a
int3
Function at 0x100321fa
Capabilities:
Encrypt data using dpapi
Get disk information

Disassembly:
push 0x44
mov eax, 0x100689bd
call fcn.1004adf3
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x38], 1
jb 0x10032230
mov ecx, dword [edx]
jmp 0x10032232
mov ecx, edx
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x10032313
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
je 0x100322a9
mov ecx, 0x258
call fcn.1000c28f
mov ecx, 0x10e
mov esi, eax
call fcn.1000c2c8
cmp esi, eax
jge 0x100322a9
mov ecx, 0x117
call fcn.1000c238
movss xmm0, dword [0x10079f14]
movd xmm5, eax
cvtdq2ps xmm5, xmm5
call fcn.1000c3a4
comiss xmm0, xmm5
jb 0x100322a9
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
push dword [ebp - 0x34]
call fcn.10032375
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x48]
push dword [ebp - 0x30]
push esi
call fcn.1004a560
add esp, 0xc
mov dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push dword [ebp - 0x3c]
push dword [ebp - 0x44]
push esi
call fcn.1003245d
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.1000191b
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000146d
test esi, esi
je 0x10032313
push esi
call fcn.10046c15
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
call fcn.1004ada2
ret

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

Disassembly:
push ebp
mov ebp, esp
or dword [ecx + 0x1384], 0xffffffff
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x10032b91
pop edi
pop esi
mov dword [ecx], ebx
mov eax, ecx
pop ebx
pop ebp
ret 4