joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1023b06
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0xd40
lea eax, [ebp - 4]
push eax
call fcn.0101cfa6
mov esi, dword [ebp - 4]
mov edi, eax
test edi, edi
jne 0x1023c33
lea eax, [esi + 0x908]
and dword [eax], 0
lea edi, [esi + 0x914]
xor ebx, ebx
inc ebx
mov dword [eax + 8], edi
mov dword [eax + 4], 0x2000
lea ecx, [edi + 0x400]
or eax, ebx
cmp edi, ecx
jae 0x1023b5f
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0x80
lea eax, [esi + 0x808]
push eax
push 0x8ae
mov dword [esi + 0xd28], ebx
push dword [esi]
call edi
test eax, eax
jg 0x1023ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1023ba0
mov eax, 0x54f
mov edi, eax
jmp 0x1023c33
push 0x400
lea eax, [esi + 8]
push eax
push 0x8af
push dword [esi]
call edi
test eax, eax
jle 0x1023b91
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor eax, eax
push eax
push eax
push ebx
push eax
call edi
mov dword [esi + 0xd20], eax
xor eax, eax
cmp dword [esi + 0xd20], eax
je 0x1023b91
push eax
push eax
push ebx
push eax
call edi
mov dword [esi + 0xd24], eax
cmp dword [esi + 0xd20], 0
je 0x1023b91
lea eax, [esi + 0xd14]
push eax
xor eax, eax
push eax
push esi
push 0x1023a45
push eax
push eax
lea edi, [esi + 0xd1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
test eax, eax
je 0x1023b91
mov dword [esi + 0xd2c], ebx
push dword [esi + 0xd24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor esi, esi
xor edi, edi
test esi, esi
je 0x1023c3d
push esi
call fcn.01022ebc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10244e5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push edi
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push eax
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1024522
mov ebx, dword [ebp - 8]
cmp ebx, edi
jne 0x1024526
xor eax, eax
jmp 0x1024565
push esi
push ebx
push dword [ebp - 0xc]
call fcn.01024d7c
add dword [esi + 0x30], ebx
mov dword [esi + 0x5238], eax
adc dword [esi + 0x34], edi
cmp dword [esi + 0x5234], edi
jne 0x1024552
push dword [esi + 0x34]
push dword [esi + 0x30]
push dword [esi + 0x3c]
push dword [esi + 0x38]
jmp 0x1024557
push edi
push edi
push edi
push 0x64
add esi, 0x5130
push esi
call fcn.0102424a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0xc

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x1024d8d
or eax, 0xffffffff
jmp 0x1024dc2
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x5238]
not eax
je 0x1024dc2
push esi
movsx edx, byte [ecx]
dec dword [ebp + 0xc]
movzx esi, al
xor edx, esi
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x1030928]
inc ecx
cmp dword [ebp + 0xc], 0
jne 0x1024d9f
pop esi
not eax
pop ebp
ret 0xc
Function at 0x1025109
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov edi, 0x2000
push edi
mov dword [ebp - 0x14], eax
call sub.msvcrt.dll_malloc
xor ebx, ebx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x102514c
push 4
pop eax
jmp 0x1025213
push esi
xor esi, esi
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov edx, ecx
and edx, eax
cmp edx, 0xffffffff
je 0x102518a
cmp dword [ebp - 0x18], eax
jg 0x10251f5
jl 0x1025174
cmp esi, ecx
jae 0x10251f5
sub ecx, esi
sbb eax, dword [ebp - 0x18]
cmp eax, ebx
jg 0x102518a
jl 0x1025183
cmp ecx, edi
jae 0x102518a
mov eax, dword [ebp + 0x10]
sub eax, esi
jmp 0x102518c
mov eax, edi
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10251e5
cmp dword [ebp - 8], ebx
je 0x10251f5
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1025206
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x1025206
push dword [ebp - 0x14]
call fcn.01023eaa
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x98], ebx
jne 0x1025202
add esi, dword [ebp - 0xc]
adc dword [ebp - 0x18], ebx
jmp 0x1025152
push 0xb
pop esi
push dword [ebp - 0x10]
call fcn.0101be7e
pop ecx
mov eax, esi
jmp 0x1025212
push dword [ebp - 0x10]
call fcn.0101be7e
pop ecx
xor eax, eax
jmp 0x1025212
push 9
jmp 0x10251e7
push dword [ebp - 0x10]
call fcn.0101be7e
pop ecx
push 0xa
pop eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0x14

Function at 0x10253c9
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0xfde9
call dword [sym.imp.SHLWAPI.dll_Ordinal_216]
test eax, eax
jl 0x1025416
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1025416
xor eax, eax
inc eax
jmp 0x1025418
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0101bc5d
leave
ret 8

Function at 0x102542b
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
push 0xfde9
or esi, 0xffffffff
call dword [sym.imp.SHLWAPI.dll_Ordinal_216]
test eax, eax
jl 0x1025472
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101bc5d
leave
ret 4
Function at 0x10255a4
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_Ordinal_216]
push edi
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp + 0x10]
push 0x104
mov dword [ebp - 0x418], ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov edi, 0xfde9
push edi
call esi
xor ebx, ebx
test eax, eax
jl 0x1025611
push 0x104
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
push edi
call esi
mov dword [ebp - 0x420], ebx
test eax, eax
jge 0x102561b
mov dword [ebp - 0x420], 0xe
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x424], eax
mov edi, 0x80
cmp eax, ebx
je 0x1025684
mov eax, dword [ebp - 0x418]
push dword [eax + 0x5344]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
or dword [eax + 0x5344], 0xffffffff
push ebx
push ebx
push 1
push ebx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x102577a
push ebx
push edi
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x414]
push eax
call esi
mov dword [ebp - 0x41c], eax
cmp eax, 0xffffffff
jne 0x10256b0
push 0xa
call fcn.01023f4c
jmp 0x10257e4
push ebx
cmp dword [ebp - 0x424], ebx
je 0x1025707
push edi
push 2
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x428], eax
cmp eax, 0xffffffff
jne 0x102572c
push ebx
push edi
push 2
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call esi
mov dword [ebp - 0x428], eax
cmp eax, 0xffffffff
jne 0x102572c
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xf
jmp 0x10256a6
mov eax, dword [ebp - 0x418]
push ebx
push ebx
push dword [eax + 0x5344]
call fcn.01025228
mov eax, dword [ebp - 0x418]
mov eax, dword [eax + 0x5344]
mov dword [ebp - 0x428], eax
push dword [ebp - 0x418]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x428]
push dword [ebp - 0x41c]
call fcn.01025109
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x424], ebx
je 0x102576d
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x420], ebx
jne 0x10257bf
cmp dword [ebp - 0x424], ebx
je 0x10257de
push ebx
push edi
push 4
push ebx
push 1
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call esi
mov ecx, dword [ebp - 0x418]
mov dword [ecx + 0x5344], eax
cmp eax, 0xffffffff
jne 0x10257de
push 0xd
call fcn.01023f4c
mov dword [ebp - 0x420], eax
jmp 0x10257de
cmp dword [ebp - 0x424], ebx
jne 0x10257de
mov esi, dword [ebp - 0x418]
add esi, 0x5344
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0xc
Function at 0x1027b21
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 1
jl 0x1027bb9
jg 0x1027b57
cmp dword [ebp + 0x10], 0xffffffff
jbe 0x1027bb9
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x10], eax
jg 0x1027bd6
jl 0x1027b69
cmp edi, dword [ebp + 0x10]
jae 0x1027bd6
mov ecx, dword [ebp + 0x10]
sub ecx, edi
sbb eax, dword [ebp - 0x10]
mov esi, 0x8000
test eax, eax
jg 0x1027b85
jl 0x1027b80
cmp ecx, esi
jae 0x1027b85
mov esi, dword [ebp + 0x10]
sub esi, edi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push esi
add eax, edi
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1027bad
cmp dword [ebp - 8], esi
jne 0x1027bad
add edi, dword [ebp - 8]
adc dword [ebp - 0x10], 0
jmp 0x1027bb1
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x1027b5a
jmp 0x1027bd6
mov esi, dword [ebp + 0x10]
push edi
lea edx, [ebp - 8]
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1027bd3
cmp dword [ebp - 8], esi
je 0x1027bd6
mov dword [ebp - 0xc], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
pop edi
xor ecx, ebp
pop esi
call fcn.0101bc5d
leave
ret 0x10
Function at 0x102991b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x80], 0
push edi
push 2
pop edi
je 0x1029aee
push ebx
cmp dword [esi], 0
jne 0x1029ad3
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x4c]
movzx eax, byte [ecx + eax + 2]
mov edx, dword [esi + 0x6c]
shl edx, 5
xor eax, edx
mov edx, dword [esi + 0x54]
and eax, 0x3fff
mov dword [esi + 0x6c], eax
movzx eax, word [edx + eax*2]
mov edx, dword [esi + 0x50]
and ecx, 0x7fff
mov word [edx + ecx*2], ax
mov bx, word [esi + 0x74]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x54]
mov word [edx + ecx*2], bx
mov ebx, dword [esi + 0x78]
push 2
mov dword [esi + 0x70], edi
pop edi
test eax, eax
je 0x10299d0
mov ecx, dword [esi + 0x70]
cmp ecx, dword [esi + 0x88]
jae 0x10299d0
mov ecx, dword [esi + 0x74]
sub ecx, eax
cmp ecx, 0x7efa
ja 0x10299d0
push esi
push eax
call fcn.010296f8
mov edi, eax
mov eax, dword [esi + 0x80]
cmp edi, eax
jbe 0x10299bb
mov edi, eax
cmp edi, 3
jne 0x10299d0
mov eax, dword [esi + 0x74]
sub eax, dword [esi + 0x78]
cmp eax, 0x1000
jbe 0x10299d0
push 2
pop edi
mov eax, dword [esi + 0x70]
cmp eax, 3
jb 0x1029a6d
cmp edi, eax
ja 0x1029a6d
add eax, 0xfffffffd
push esi
push eax
mov eax, dword [esi + 0x74]
sub eax, ebx
dec eax
push eax
call fcn.01029fa1
mov ecx, dword [esi + 0x70]
xor edx, edx
inc edx
sub edx, ecx
add dword [esi + 0x80], edx
add ecx, 0xfffffffe
mov dword [esi + 0x70], ecx
inc dword [esi + 0x74]
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx ecx, byte [edx + ecx + 2]
mov edi, dword [esi + 0x6c]
mov ebx, dword [esi + 0x50]
shl edi, 5
xor ecx, edi
mov edi, dword [esi + 0x54]
and ecx, 0x3fff
mov dword [esi + 0x6c], ecx
mov cx, word [edi + ecx*2]
and edx, 0x7fff
mov word [ebx + edx*2], cx
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x54]
mov di, word [esi + 0x74]
mov word [edx + ecx*2], di
dec dword [esi + 0x70]
jne 0x1029a09
and dword [ebp - 4], 0
inc dword [esi + 0x74]
push 2
pop edi
test eax, eax
je 0x1029aab
push 0
push esi
call fcn.0102ac98
mov eax, dword [esi + 0x74]
mov dword [esi + 0x64], eax
jmp 0x1029aab
cmp dword [ebp - 4], 0
je 0x1029a9b
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx eax, byte [eax + ecx - 1]
push esi
push eax
push 0
call fcn.01029fa1
test eax, eax
je 0x1029aa2
push 0
push esi
call fcn.0102ac98
mov eax, dword [esi + 0x74]
mov dword [esi + 0x64], eax
jmp 0x1029aa2
mov dword [ebp - 4], 1
inc dword [esi + 0x74]
dec dword [esi + 0x80]
mov ebx, 0x106
jmp 0x1029abe
cmp dword [esi + 0x7c], 0
jne 0x1029ac6
push esi
call fcn.0102982f
cmp dword [esi + 0x80], ebx
jb 0x1029ab2
cmp dword [esi + 0x80], 0
jne 0x102993b
cmp dword [ebp - 4], 0
pop ebx
je 0x1029aee
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx eax, byte [eax + ecx - 1]
push esi
push eax
push 0
call fcn.01029fa1
push 1
push esi
call fcn.0102ac98
pop edi
pop esi
leave
ret 4
Function at 0x1029b01
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jge 0x1029b16
mov dword [ebp + 8], eax
push 9
pop ecx
cmp dword [ebp + 8], ecx
jle 0x1029b21
mov dword [ebp + 8], ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov dword [esi + 0x68], ebx
cmp dword [esi + 0x60], ebx
jne 0x1029b3b
mov dword [esi + 0x68], eax
mov dword [esi + 0x60], 0x10000
mov edi, 0x8000
cmp dword [esi + 0x4c], ebx
jne 0x1029b5e
push 2
push edi
call sub.msvcrt.dll_calloc
pop ecx
pop ecx
mov dword [esi + 0x4c], eax
cmp eax, ebx
jne 0x1029b5e
push esi
push 4
call fcn.01026256
cmp dword [esi + 0x50], ebx
jne 0x1029b91
push 2
push edi
call sub.msvcrt.dll_calloc
push 2
push 0x4000
mov dword [esi + 0x50], eax
call sub.msvcrt.dll_calloc
add esp, 0x10
mov dword [esi + 0x54], eax
cmp dword [esi + 0x50], ebx
je 0x1029b89
cmp eax, ebx
jne 0x1029b91
push esi
push 4
call fcn.01026256
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x1029c67
push edi
push ebx
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 8]
mov eax, ecx
shl eax, 3
movzx edx, word [eax + 0x1030152]
mov dword [esi + 0x88], edx
movzx edx, word [eax + 0x1030150]
mov dword [esi + 0x8c], edx
movzx edx, word [eax + 0x1030154]
mov dword [esi + 0x90], edx
movzx eax, word [eax + 0x1030156]
add esp, 0xc
mov dword [esi + 0x84], eax
cmp ecx, 1
jne 0x1029bf1
mov eax, dword [ebp + 0xc]
or word [eax], 4
jmp 0x1029bfd
cmp ecx, 9
jne 0x1029bfd
mov eax, dword [ebp + 0xc]
or word [eax], 2
push esi
push edi
push dword [esi + 0x4c]
mov dword [esi + 0x74], ebx
mov dword [esi + 0x64], ebx
call dword [esi + 0x5340]
mov dword [esi + 0x80], eax
cmp eax, ebx
jne 0x1029c27
mov dword [esi + 0x7c], 1
mov dword [esi + 0x80], ebx
jmp 0x1029c67
mov edi, 0x106
mov dword [esi + 0x7c], ebx
cmp eax, edi
jae 0x1029c46
cmp dword [esi + 0x7c], ebx
jne 0x1029c46
push esi
call fcn.0102982f
cmp dword [esi + 0x80], edi
jb 0x1029c33
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x6c], ebx
movzx ecx, byte [eax + ebx]
mov edx, dword [esi + 0x6c]
shl edx, 5
xor ecx, edx
and ecx, 0x3fff
inc ebx
mov dword [esi + 0x6c], ecx
cmp ebx, 2
jb 0x1029c4c
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x102bc98
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x80], 0
push edi
push 2
pop edi
je 0x102be60
push ebx
cmp dword [esi], 0
jne 0x102be45
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x4c]
movzx eax, byte [ecx + eax + 2]
mov edx, dword [esi + 0x6c]
shl edx, 5
xor eax, edx
mov edx, dword [esi + 0x5c]
and eax, 0x7fff
mov dword [esi + 0x6c], eax
mov eax, dword [edx + eax*4]
mov edx, dword [esi + 0x58]
and ecx, 0xffff
mov dword [edx + ecx*4], eax
mov ebx, dword [esi + 0x74]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x5c]
mov dword [edx + ecx*4], ebx
mov ebx, dword [esi + 0x78]
push 2
mov dword [esi + 0x70], edi
pop edi
test eax, eax
je 0x102bd49
mov ecx, dword [esi + 0x70]
cmp ecx, dword [esi + 0x88]
jae 0x102bd49
mov ecx, dword [esi + 0x74]
sub ecx, eax
cmp ecx, 0xffff
ja 0x102bd49
push esi
push eax
call fcn.0102ba55
mov edi, eax
mov eax, dword [esi + 0x80]
cmp edi, eax
jbe 0x102bd34
mov edi, eax
cmp edi, 3
jne 0x102bd49
mov eax, dword [esi + 0x74]
sub eax, dword [esi + 0x78]
cmp eax, 0x1000
jbe 0x102bd49
push 2
pop edi
mov eax, dword [esi + 0x70]
cmp eax, 3
jb 0x102bde2
cmp edi, eax
ja 0x102bde2
add eax, 0xfffffffd
push esi
push eax
mov eax, dword [esi + 0x74]
sub eax, ebx
dec eax
push eax
call fcn.0102b176
mov ecx, dword [esi + 0x70]
xor edx, edx
inc edx
sub edx, ecx
add dword [esi + 0x80], edx
add ecx, 0xfffffffe
mov dword [esi + 0x70], ecx
inc dword [esi + 0x74]
mov edx, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx ecx, byte [edx + ecx + 2]
mov edi, dword [esi + 0x6c]
mov ebx, dword [esi + 0x58]
shl edi, 5
xor ecx, edi
mov edi, dword [esi + 0x5c]
and ecx, 0x7fff
mov dword [esi + 0x6c], ecx
mov ecx, dword [edi + ecx*4]
and edx, 0xffff
mov dword [ebx + edx*4], ecx
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x5c]
mov edi, dword [esi + 0x74]
mov dword [edx + ecx*4], edi
dec dword [esi + 0x70]
jne 0x102bd82
and dword [ebp - 4], 0
inc dword [esi + 0x74]
push 2
pop edi
test eax, eax
je 0x102be20
push 0
push esi
call fcn.0102b974
mov eax, dword [esi + 0x74]
mov dword [esi + 0x64], eax
jmp 0x102be20
cmp dword [ebp - 4], 0
je 0x102be10
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx eax, byte [eax + ecx - 1]
push esi
push eax
push 0
call fcn.0102b176
test eax, eax
je 0x102be17
push 0
push esi
call fcn.0102b974
mov eax, dword [esi + 0x74]
mov dword [esi + 0x64], eax
jmp 0x102be17
mov dword [ebp - 4], 1
inc dword [esi + 0x74]
dec dword [esi + 0x80]
cmp dword [esi + 0x80], 0xfff6
jae 0x102be38
cmp dword [esi + 0x7c], 0
jne 0x102be38
push esi
call fcn.0102bb8b
cmp dword [esi + 0x80], 0
jne 0x102bcb8
cmp dword [ebp - 4], 0
pop ebx
je 0x102be60
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x4c]
movzx eax, byte [eax + ecx - 1]
push esi
push eax
push 0
call fcn.0102b176
push 1
push esi
call fcn.0102b974
pop edi
pop esi
leave
ret 4
Function at 0x102bf83
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
inc eax
cmp ecx, eax
mov dword [ebp + 8], ecx
jge 0x102bf98
mov dword [ebp + 8], eax
push 9
pop ecx
cmp dword [ebp + 8], ecx
jle 0x102bfa3
mov dword [ebp + 8], ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esi + 0x68], edi
mov ebx, 0x2fff6
cmp dword [esi + 0x60], edi
jne 0x102bfbe
mov dword [esi + 0x68], eax
mov dword [esi + 0x60], ebx
cmp dword [esi + 0x4c], edi
jne 0x102bfdb
push eax
push ebx
call sub.msvcrt.dll_calloc
pop ecx
pop ecx
mov dword [esi + 0x4c], eax
cmp eax, edi
jne 0x102bfdb
push esi
push 4
call fcn.01026256
cmp dword [esi + 0x58], edi
jne 0x102c017
push 4
push 0x10000
call sub.msvcrt.dll_calloc
push 4
push 0x8000
mov dword [esi + 0x58], eax
call sub.msvcrt.dll_calloc
add esp, 0x10
mov dword [esi + 0x5c], eax
cmp dword [esi + 0x58], edi
je 0x102c00a
cmp eax, edi
jne 0x102c017
push esi
push 4
call fcn.01026256
jmp 0x102c0e5
mov eax, dword [esi + 0x5c]
push 0x1fffc
mov dword [eax + 0x1fffc], edi
push edi
push dword [esi + 0x5c]
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 8]
mov eax, ecx
shl eax, 3
movzx edx, word [eax + 0x1030152]
mov dword [esi + 0x88], edx
movzx edx, word [eax + 0x1030150]
mov dword [esi + 0x8c], edx
movzx edx, word [eax + 0x1030154]
mov dword [esi + 0x90], edx
movzx eax, word [eax + 0x1030156]
add esp, 0xc
cmp ecx, 2
mov dword [esi + 0x84], eax
jg 0x102c07b
mov eax, dword [ebp + 0xc]
or word [eax], 4
jmp 0x102c087
cmp ecx, 8
jl 0x102c087
mov eax, dword [ebp + 0xc]
or word [eax], 2
push esi
push ebx
push dword [esi + 0x4c]
mov dword [esi + 0x74], edi
mov dword [esi + 0x64], edi
call dword [esi + 0x5340]
lea ecx, [esi + 0x80]
mov dword [ecx], eax
cmp eax, edi
jne 0x102c0af
mov dword [esi + 0x7c], 1
mov dword [ecx], edi
jmp 0x102c0e5
mov dword [esi + 0x7c], edi
cmp eax, 0xfff6
jae 0x102c0bf
push esi
call fcn.0102bb8b
mov ecx, dword [esi + 0x4c]
mov dword [esi + 0x6c], edi
xor eax, eax
movzx edx, byte [ecx + eax]
mov ebx, dword [esi + 0x6c]
shl ebx, 5
xor edx, ebx
and edx, 0x7fff
inc eax
mov dword [esi + 0x6c], edx
cmp eax, 2
jb 0x102c0c7
mov dword [esi + 0x78], edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x102c0f1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jl 0x102c15e
cmp eax, 0x1a
jg 0x102c15e
test eax, eax
jne 0x102c11b
call fcn.0102c419
push esi
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
xor esi, esi
call fcn.0102c532
test eax, eax
je 0x102c159
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x102c156
jbe 0x102c152
cmp eax, 4
jbe 0x102c152
cmp eax, 5
je 0x102c156
xor esi, esi
jmp 0x102c159
xor esi, esi
inc esi
mov eax, esi
pop esi
jmp 0x102c160
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0101bc5d
leave
ret 8
Function at 0x102c28a
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1030118]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
or dword [esi], 0xffffffff
cmp byte [ebx], 0
push edi
mov dword [ebp - 0x10c], eax
jne 0x102c2c5
push dword [ebp + 0x18]
push ebx
push dword [ebp + 8]
call fcn.0102c532
push ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.01022b69
lea eax, [ebp - 0x108]
push eax
push 1
call fcn.0102c68d
test eax, eax
jne 0x102c2fc
push 0x100536c
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.010257fa
push 0x1005384
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.010257fa
mov edi, dword [ebp - 0x10c]
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x102c359
test byte [edi], 0x10
je 0x102c33b
lea eax, [edi + 0x2c]
push eax
call fcn.0102c173
test eax, eax
je 0x102c36c
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x102c329
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x102c359
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [esi], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101bc5d
leave
ret 0x18
push ebx
push 1
call fcn.0102c68d
test eax, eax
jne 0x102c386
push 0x100536c
push dword [ebp + 0x18]
push ebx
call fcn.010257fa
add edi, 0x2c
push edi
push dword [ebp + 0x18]
push ebx
call fcn.010257fa
xor eax, eax
inc eax
jmp 0x102c35b