joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026426
Capabilities:
Get file size

Disassembly:
push 0x24
mov eax, 0x10087bb0
call fcn.1006301c
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002649f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x38]
push eax
push eax
push dword [ebp + 0xc]
mov dword [ecx], eax
push 0x10001850
push dword [ebp + 0x34]
push dword [ebp + 0x30]
call fcn.100631a3
add esp, 0x18
push 5
pop eax
jmp 0x1002650e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100264d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x38]
push eax
push eax
push ebx
push esi
push 0x100017d8
push dword [ebp + 0x34]
mov dword [ecx], eax
push dword [ebp + 0x30]
call fcn.100631a3
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002649a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x2c]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x24]
mov eax, dword [ecx]
push dword [ebp + 0x28]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ebx
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [eax + 0x28]
mov eax, dword [ebp - 0x14]
call fcn.100630d0
ret 0x34
Function at 0x1002ffe5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x880c
call fcn.10062090
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [ebp - 0x880c], ecx
mov dword [ebp - 0x8808], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10030039
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100300c1
push esi
mov esi, 0x8800
push esi
lea eax, [ebp - 0x8804]
push edi
push eax
call fcn.100620c0
add esp, 0xc
push edi
lea eax, [ebp - 0x8808]
push eax
push esi
lea eax, [ebp - 0x8804]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1003007e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x100300c0
cmp dword [ebp - 0x8808], esi
je 0x1003008d
mov esi, 0x3e4
jmp 0x10030073
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
pop ecx
mov edi, 0x100018d0
lea esi, [ebp - 0x803]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100300ad
push 0xd
pop eax
jmp 0x100300c0
mov edi, dword [ebp - 0x880c]
push 8
pop ecx
lea esi, [ebp - 0x7dc]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10062074
leave
ret 8
Function at 0x1003412c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x10002650
lea edi, [ebp - 0x604]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3f7
mov dword [ebp - 0x60c], eax
lea eax, [ebp - 0x5fb]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.100620c0
mov eax, ebx
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10034178
lea edi, [ebp - 0x604]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10034188
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov bl, 0x41
mov esi, 0x1ff
push esi
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x608], bl
mov byte [ebp - 0x607], 0x3a
mov byte [ebp - 0x606], 0
mov byte [ebp - 0x204], 0
call fcn.100620c0
add esp, 0xc
push esi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x10034220
lea ecx, [ebp - 0x204]
lea eax, [ebp - 0x604]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10034217
test dl, dl
je 0x10034213
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10034217
inc eax
inc eax
inc ecx
inc ecx
test dl, dl
jne 0x100341f9
xor eax, eax
jmp 0x1003421c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003423b
inc bl
cmp bl, 0x5a
jle 0x100341a7
push 0x11
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10062074
leave
ret 0xc
mov edx, dword [ebp - 0x60c]
lea eax, [ebp - 0x608]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1003424b
xor eax, eax
jmp 0x1003422a
Function at 0x100366c3
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x1008382a
push 0x58
push 0x100922e0
call fcn.100647f4
mov dword [ebp - 0x1c], 0x78
xor edi, edi
mov dword [ebp - 0x28], edi
or dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 4], 1
push 4
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x10083872
mov dword [ebp - 0x1c], 0x57
jmp 0x100839ef
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x10083866
call fcn.10082d5e
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x100839ef
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.10082f6a
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x100839ef
push esi
push dword [ebp - 0x20]
call fcn.100833a6
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x100839ef
push dword [ebp - 0x20]
call fcn.10083302
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x100839ef
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, edi
jne 0x100838ea
mov dword [ebp - 0x1c], 0xe
jmp 0x100839ef
push edi
push 0x80
push 1
push edi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x10083919
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x100839ef
mov esi, dword [esi]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], ebx
cmp byte [ebp + 0x14], 1
jne 0x1008395b
push esi
lea eax, [ebp - 0x68]
push eax
call fcn.10083e48
push edi
lea eax, [ebp - 0x2c]
push eax
push 0x2c
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1008390b
cmp dword [ebp - 0x2c], 0x2c
je 0x1008395b
mov dword [ebp - 0x1c], 0x3e4
jmp 0x100839ef
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], esi
jae 0x100839ec
cmp esi, edi
je 0x10083980
mov eax, esi
sub eax, dword [ebp - 0x30]
push 0x64
pop ecx
mul ecx
push edi
push esi
push edx
push eax
call fcn.10063260
jmp 0x10083982
xor eax, eax
push dword [ebp + 0x20]
push eax
push 1
call dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x1008399b
mov dword [ebp - 0x1c], 0x4c7
jmp 0x100839ef
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x10]
jae 0x100839a8
mov ebx, eax
mov dword [ebp - 0x38], ebx
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call fcn.10083248
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x100839ef
push edi
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1008390b
cmp dword [ebp - 0x2c], ebx
jne 0x1008394f
mov eax, dword [ebp + 0x10]
sub dword [ebp - 0x30], eax
add dword [ebp - 0x34], eax
jmp 0x1008395e
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call fcn.100839fb
jmp 0x10083a54
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.10064839
ret 0x1c
Function at 0x100366d3
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x10083a6b
push 0x2c
push 0x10092308
call fcn.100647f4
mov dword [ebp - 0x1c], 0x78
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x34], esi
or dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
je 0x10083aaf
mov dword [ebp - 0x1c], 0x57
jmp 0x10083c0b
push dword [ebp + 8]
call fcn.100827f2
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x10083c0b
push esi
push 0x80
push 3
push esi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, 0xffffffff
jne 0x10083af2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x10083c0b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10083ae4
sub ebx, 0x2c
push esi
push esi
push 0x2c
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10083ae4
cmp eax, 0x2c
je 0x10083b25
mov dword [ebp - 0x1c], 0x19
jmp 0x10083c0b
mov edi, dword [ebp + 0x10]
push edi
call fcn.10062b5c
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, esi
jne 0x10083b42
mov dword [ebp - 0x1c], 0xe
jmp 0x10083c0b
call fcn.10082d5e
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x10083c0b
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.10083512
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x10083c0b
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x30], ebx
jae 0x10083c08
cmp ebx, esi
je 0x10083b97
mov eax, ebx
sub eax, dword [ebp - 0x24]
push 0x64
pop ecx
mul ecx
push esi
push ebx
push edx
push eax
call fcn.10063260
jmp 0x10083b99
xor eax, eax
push dword [ebp + 0x18]
push eax
push 1
call dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x10083bb2
mov dword [ebp - 0x1c], 0x4c7
jmp 0x10083c0b
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x10]
jae 0x10083bbf
mov edi, eax
mov dword [ebp - 0x38], edi
push esi
lea eax, [ebp - 0x34]
push eax
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10083ae4
cmp dword [ebp - 0x34], edi
je 0x10083be7
mov dword [ebp - 0x1c], 0x3e4
jmp 0x10083c0b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x28]
call fcn.100836e7
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x10083c0b
mov eax, dword [ebp + 0x10]
sub dword [ebp - 0x24], eax
add dword [ebp - 0x30], eax
jmp 0x10083b75
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
call fcn.10083c17
jmp 0x10083c6a
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.10064839
ret 0x18

Function at 0x10036733
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100827f2

Function at 0x1003676b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10082b6c
Function at 0x10036c7c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100791ff

Function at 0x10036c8c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10079778

Function at 0x10036c9c
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10079d00

Function at 0x10036cac
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007a1f8

Function at 0x10036ff6
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.10062090
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.100620c0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push eax
call fcn.10062055
add esp, 0x18
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10062074
leave
ret

Function at 0x1003730c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
push 0x1008e3b0
call fcn.100647f4
mov dword [ebp - 0x24], 0x78
mov dword [ebp - 0x1c], 4
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 1
cmp byte [0x1009c318], 1
je 0x100373b6
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push 0x10002938
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100373af
lea eax, [ebp - 0x1c]
push eax
push 0x1009c31c
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x10002928
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
mov eax, 0x104
mov dword [ebp - 0x1c], eax
push eax
push ebx
mov edi, str.C:StarBurn.log
push edi
call fcn.100620c0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0x10002918
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x1009c318], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
call fcn.100373cd
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x24]
jmp 0x100373f8
mov eax, esi
call fcn.10064839
ret

Function at 0x10037405
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
xor eax, eax
xor edx, edx
push edi
movzx esi, byte [edx + ecx]
movzx edi, ax
shr edi, 8
shl eax, 8
xor esi, edi
xor ax, word [esi*2 + 0x10097750]
inc edx
cmp edx, 0xa
movzx eax, ax
jl 0x10037413
mov edx, eax
shr edx, 8
not dl
not al
pop edi
mov byte [ecx + 0xa], dl
mov byte [ecx + 0xb], al
pop esi
pop ebp
ret 4
Function at 0x10038971
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x10088dd3
call fcn.10062fe4
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [0x1009c314]
push dword [0x1009c310]
call fcn.100385d5
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [esi], 0x10002c8c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
jne 0x10038a00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
cmp eax, ebx
je 0x100389ed
push esi
push dword [ebp + 8]
push 0x10002c38
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x18
jmp 0x100389ef
xor eax, eax
mov dword [ebp + 8], eax
push 0x1008bdb8
lea eax, [ebp + 8]
push eax
call fcn.1006330f
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10038a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x10038a54
push 0x1010
call fcn.10062b5c
pop ecx
cmp eax, ebx
je 0x10038a46
push dword [ebp + 8]
push 0x10002cf0
push dword [ebp + 8]
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], ebx
jmp 0x100389f2
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
mov byte [esi + 0x20], bl
mov eax, esi
call fcn.100630d0
ret 4

Function at 0x10038a6f
Capabilities:
Get file size

Disassembly:
push 8
mov eax, 0x10088dd3
call fcn.10062fe4
mov esi, ecx
mov dword [ebp - 0x14], esi
push dword [0x1009c314]
push dword [0x1009c310]
call fcn.100385d5
xor ebx, ebx
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [esi], 0x10002c8c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
jne 0x10038afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
cmp eax, ebx
je 0x10038aeb
push esi
push dword [ebp + 8]
push 0x10002d40
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x18
jmp 0x10038aed
xor eax, eax
mov dword [ebp + 8], eax
push 0x1008bdb8
lea eax, [ebp + 8]
push eax
call fcn.1006330f
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10038b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x10038b52
push 0x1010
call fcn.10062b5c
pop ecx
cmp eax, ebx
je 0x10038b44
push dword [ebp + 8]
push 0x10002cf0
push dword [ebp + 8]
push 5
push eax
call fcn.10037a50
add esp, 0x14
mov ebx, eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], ebx
jmp 0x10038af0
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edi
mov byte [esi + 0x20], bl
mov eax, esi
call fcn.100630d0
ret 4
Function at 0x10038b94
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
push ebx
mov esi, ecx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
jmp 0x10038be6
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x10038c2d
cmp byte [esi + 0x20], 0
je 0x10038c2d
sub dword [ebp - 4], eax
push 0xa
add ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push dword [ebp - 4]
add eax, ebx
push eax
push dword [esi + 0x24]
call edi
test al, al
jne 0x10038bbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1010
mov esi, eax
call fcn.10062b5c
pop ecx
test eax, eax
je 0x10038c1a
push esi
push 0x10002d98
push esi
push 5
push eax
call fcn.10037a50
add esp, 0x14
jmp 0x10038c1c
xor eax, eax
mov dword [ebp + 0x10], eax
push 0x1008bdb8
lea eax, [ebp + 0x10]
push eax
call fcn.1006330f
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10041cc9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
movzx eax, byte [edx]
movzx ecx, byte [edx + 2]
shl eax, 8
push ebx
push esi
movzx esi, byte [edx + 1]
or eax, esi
mov esi, ecx
shl eax, 8
and esi, 0xfffffffc
or eax, esi
or eax, 4
and ecx, 7
add eax, eax
or eax, ecx
push edi
mov ecx, eax
mov edi, eax
shr ecx, 8
mov esi, 0xff
and edi, esi
movzx edi, byte [edi + 0x10098650]
and ecx, esi
movzx ecx, byte [ecx + 0x10098650]
shl edi, 8
or ecx, edi
mov edi, eax
shr edi, 0x10
and edi, esi
movzx esi, byte [edi + 0x10098650]
and dword [ebp - 4], 0
shl ecx, 8
shr eax, 0x18
or ecx, esi
add ecx, ecx
or ecx, eax
movzx eax, byte [edx + 4]
movzx ebx, byte [eax + 0x10098650]
movzx eax, byte [edx + 3]
movzx eax, byte [eax + 0x10098650]
shl ebx, 9
or ebx, eax
mov eax, dword [ebp + 8]
lea esi, [eax + 1]
mov edx, esi
or ebx, 0x100
sub edx, eax
mov eax, dword [ebp + 0xc]
lea eax, [edx + eax - 1]
mov dword [ebp + 8], eax
mov eax, ecx
shr eax, 0xc
mov edx, ecx
shr edx, 4
xor al, dl
mov edx, ecx
shr edx, 3
xor al, dl
xor al, cl
mov byte [ebp + 0x13], al
mov eax, ebx
shr eax, 0xe
and al, 7
xor al, bl
mov dl, al
shl dl, 3
xor dl, al
shl dl, 3
xor al, dl
movzx edx, al
shl edx, 9
shr ebx, 8
xor ebx, edx
mov dl, byte [ebp + 0x13]
movzx edi, dl
not dl
not al
movzx edx, dl
add edx, dword [ebp - 4]
shl edi, 0x11
shr ecx, 8
movzx eax, al
add eax, edx
xor ecx, edi
dec esi
dec dword [ebp + 8]
mov byte [esi], al
sar eax, 8
cmp dword [ebp + 8], 0
mov dword [ebp - 4], eax
jg 0x10041d6f
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10041de2
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
sub edi, ecx
mov dword [ebp - 4], 4
lea eax, [edx + 4]
sub ecx, edx
movzx ebx, byte [eax]
lea esi, [ecx + eax]
movzx edx, byte [esi + edi]
xor edx, ebx
movzx ebx, byte [edx + 0x10098450]
movzx edx, byte [ebp + 0xc]
xor ebx, edx
mov dl, byte [ebx + 0x10098550]
xor dl, byte [ebp - 8]
dec dword [ebp - 4]
mov byte [esi], dl
movzx edx, byte [eax]
dec eax
cmp dword [ebp - 4], 0
mov dword [ebp - 8], edx
jge 0x10041e07
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x10041e47
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
sub esi, edi
mov dword [ebp - 4], 4
lea eax, [ecx + 4]
sub edi, ecx
movzx ebx, byte [eax]
lea ecx, [edi + eax]
movzx edx, byte [ecx + esi]
xor edx, ebx
movzx ebx, byte [edx + 0x10098450]
movzx edx, byte [ebp + 0xc]
xor ebx, edx
movzx edx, byte [ebx + 0x10098550]
xor edx, dword [ebp - 8]
dec dword [ebp - 4]
mov dl, byte [edx + 0x10098350]
mov byte [ecx], dl
movzx ecx, byte [eax]
dec eax
cmp dword [ebp - 4], 0
mov dword [ebp - 8], ecx
jge 0x10041e6c
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10041eb3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edx, edx
mov dword [ebp - 0x3c], eax
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], dl
stosd dword es:[edi], eax
push 7
mov esi, ecx
lea edi, [ebp - 0x13]
mov byte [ebp - 0x14], dl
stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x34], dl
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 5
lea eax, [ebx + 9]
xor edi, edi
pop ecx
mov dl, byte [edi + 0x10098328]
xor dl, byte [eax]
dec eax
mov byte [ebp + edi - 8], dl
dec edi
dec ecx
jne 0x10041ef9
lea eax, [ebp - 0xc]
push eax
push 0x1e
lea eax, [ebp - 0x17]
push eax
mov ecx, esi
call fcn.10041cc9
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x1009832c]
mov byte [ebp - 0x38], al
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
lea eax, [ebp - 0x1b]
push eax
mov ecx, esi
call fcn.10041de2
mov al, byte [ebp - 0xc]
xor byte [ebp - 8], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.10041de2
mov al, byte [ebp - 0x14]
xor byte [ebp - 0x10], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x25]
push eax
mov ecx, esi
call fcn.10041e47
mov al, byte [ebp - 0xc]
xor byte [ebp - 8], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x2a]
push eax
mov ecx, esi
call fcn.10041e47
mov al, byte [ebp - 0x14]
xor byte [ebp - 0x10], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x2f]
push eax
mov ecx, esi
call fcn.10041de2
mov al, byte [ebp - 0xc]
push dword [ebp - 0x3c]
xor byte [ebp - 8], al
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.10041de2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10062074
leave
ret 0xc

Function at 0x100422bb
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
xor esi, esi
lea ebx, [ecx + 0x300c]
mov dword [ebp - 0x10], 2
and dword [ebp - 4], 0
lea eax, [esi + 0x10098d80]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x2b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor edi, edi
add eax, esi
inc edi
shl eax, 8
lea eax, [eax + ecx + 0x300c]
mov byte [ebx], 0
mov dword [ebp - 0x18], eax
movzx eax, byte [edi + 0x10098c50]
mov ecx, dword [ebp - 8]
movzx ecx, byte [ecx]
add eax, ecx
cdq
mov ecx, 0xff
idiv ecx
mov ecx, dword [ebp - 0x18]
mov al, byte [edx + 0x10098b50]
mov byte [ecx + edi], al
inc edi
mov eax, 0x100
cmp edi, eax
jb 0x10042307
inc dword [ebp - 4]
add ebx, eax
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x100422ec
add esi, 0x2b
dec dword [ebp - 0x10]
jne 0x100422d8
pop edi
pop esi
pop ebx
leave
ret