joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4266a8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov al, byte [0x4e7480]
test al, al
jne 0x426719
mov dword [esp], 0x4e7480
call fcn.004d5a00
test eax, eax
je 0x426719
mov dword [esp], 0x4ee206
lea esi, [ebp - 0x30]
mov ecx, esi
call fcn.004bfb6c
push edx
mov ecx, 0x4e9840
mov dword [esp], esi
call fcn.004aa690
push eax
mov ecx, esi
call fcn.004bbce0
mov dword [esp], 0x4d6a48
call fcn.004013f0
mov dword [esp], 0x4e7480
call fcn.004d5ad0
jmp 0x426719
mov al, byte [0x4e7488]
test al, al
jne 0x426782
mov dword [esp], 0x4e7488
call fcn.004d5a00
test eax, eax
je 0x426782
mov ecx, 0x4e9840
call fcn.004aa920
mov dword [0x4ea220], eax
mov edx, 1
mov eax, dword [edx*4 + 0x4ea21c]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [edx*4 + 0x4ea220], eax
inc edx
cmp edx, 0x270
jne 0x426746
mov dword [0x4eabe0], 0x270
mov dword [esp], 0x4e7488
call fcn.004d5ad0
mov esi, dword [ebp + 0xc]
sub esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4267d3
mov ecx, 0x4ea220
inc esi
call fcn.004b6c38
mov edx, eax
mulx ebx, ecx, esi
mov edi, ecx
cmp ecx, esi
jae 0x4267cf
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
xor edx, edx
dec eax
div esi
cmp edi, edx
jae 0x4267cf
mov ecx, 0x4ea220
mov dword [ebp - 0x3c], edx
call fcn.004b6c38
mov edx, esi
mulx ebx, ecx, eax
mov edx, dword [ebp - 0x3c]
mov edi, ecx
jmp 0x4267b0
mov eax, ebx
jmp 0x426800
mov ecx, 0x4ea220
call fcn.004b6c38
jmp 0x426800
add eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42a79c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x7c
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x6c], edx
mov edi, dword [ebx + eax + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x58], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [edi + 0x24]
xor edi, edi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x4c]
cmp edi, dword [eax + 0x18]
jae 0x42a8b6
mov eax, dword [ebp - 0x5c]
add eax, ebx
mov ecx, dword [eax + edi*4]
add ecx, ebx
mov dword [esp], ecx
lea ecx, [ebp - 0x30]
call fcn.004bfb6c
lea ecx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call fcn.004bfb6c
push eax
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
test esi, esi
je 0x42a884
test edx, edx
je 0x42a881
mov al, byte [eax]
mov ecx, 1
sub ecx, esi
mov byte [ebp - 0x61], al
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x50], eax
add eax, edx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
cmp edx, esi
jb 0x42a881
mov ecx, dword [ebp - 0x70]
add edx, ecx
je 0x42a881
mov dword [esp + 8], edx
movsx edx, byte [ebp - 0x61]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memchr
mov edx, eax
test eax, eax
je 0x42a881
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x54]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x74], edx
call sub.msvcrt.dll_memcmp
mov edx, dword [ebp - 0x74]
test eax, eax
jne 0x42a877
mov eax, dword [ebp - 0x50]
mov esi, edx
sub esi, eax
jmp 0x42a884
lea eax, [edx + 1]
mov edx, dword [ebp - 0x68]
sub edx, eax
jmp 0x42a82c
or esi, 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004bbce0
lea ecx, [ebp - 0x30]
call fcn.004bbce0
inc esi
je 0x42a8b0
lea eax, [edi + edi]
mov edi, dword [ebp - 0x60]
add eax, ebx
movzx eax, word [eax + edi]
mov edi, dword [ebp - 0x58]
lea eax, [ebx + eax*4]
add ebx, dword [eax + edi]
mov eax, ebx
jmp 0x42a8cc
inc edi
jmp 0x42a7ca
xor eax, eax
jmp 0x42a8cc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42a8d4
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ecx, 0x1f
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x94]
mov edi, ebx
sub esp, 0xdc
mov byte [ebp - 0x98], 0
mov esi, dword [0x4e8930]
mov dword [ebp - 0xac], 0x43627053
mov dword [ebp - 0xa8], 0x61717074
mov dword [ebp - 0xa4], 0x7f4f726b
mov dword [ebp - 0xa0], 0x6a647859
mov dword [ebp - 0x9c], 0x516a6264
rep stosd dword es:[edi], eax
mov ecx, 0x14
mov edi, 0x17
mov eax, ecx
xor edx, edx
div edi
xor byte [ebp + ecx - 0xc0], dl
inc ecx
cmp ecx, 0x28
jne 0x42a93a
mov dword [ebp - 0xb3], 0x43574447
mov ecx, 6
mov word [ebp - 0xaf], 0x4d53
mov byte [ebp - 0xad], 0
mov eax, ecx
mov edi, 7
xor edx, edx
div edi
xor byte [ebp + ecx - 0xb9], dl
inc ecx
cmp ecx, 0xc
jne 0x42a96c
lea eax, [ebp - 0xb3]
lea edi, [ebp - 0xac]
call fcn.0042aa74
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
xor esi, esi
push edx
push edx
mov dword [esp], ebx
call eax
lea eax, [ebp - 0x90]
push ecx
mov ecx, edi
mov dword [esp], eax
call fcn.004bfb6c
push ebx
mov eax, dword [ebp - 0xac]
xor ebx, ebx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xc0], eax
add edx, eax
mov dword [ebp - 0xcc], edx
mov edx, dword [ebp - 0xc0]
cmp dword [ebp - 0xcc], edx
je 0x42aa34
mov eax, dword [ebp - 0xc0]
mov al, byte [eax]
cmp al, 0x2d
je 0x42aa2c
mov edx, 0x24
imul ecx, esi, 0x24
mulx esi, ebx, ebx
mov dword [ebp - 0xc4], esi
add dword [ebp - 0xc4], ecx
movsx ecx, al
mov dword [ebp - 0xc8], ebx
lea ebx, [ecx - 0x30]
cmp al, 0x60
jle 0x42aa1b
lea ebx, [ecx - 0x57]
mov esi, ebx
sar esi, 0x1f
add ebx, dword [ebp - 0xc8]
adc esi, dword [ebp - 0xc4]
inc dword [ebp - 0xc0]
jmp 0x42a9d5
mov ecx, edi
call fcn.004bbce0
mov eax, ebx
mov edx, esi
neg eax
adc edx, 0
mov dword [ebp - 0xc0], eax
neg edx
mov dword [ebp - 0xbc], edx
fild qword [ebp - 0xc0]
jns 0x42aa60
fadd dword [0x4ee258]
fstp qword [ebp - 0xc0]
fld qword [ebp - 0xc0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42aa74
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov dword [ebp - 0x468], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
lea edx, [eax + 0x14]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x460], edx
mov dword [ebp - 0x45c], eax
mov edx, dword [ebp - 0x460]
cmp dword [ebp - 0x45c], edx
je 0x42ac09
lea edx, [ebp - 0x428]
xor eax, eax
mov ecx, 0x82
mov edi, edx
lea ebx, [ebp - 0x458]
lea esi, [ebp - 0x440]
rep stosd dword es:[edi], eax
mov ecx, 0x82
lea edi, [ebp - 0x220]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x45c]
mov edi, dword [sym.imp.msvcrt.dll_wcscpy_s]
mov eax, dword [eax + 0x20]
mov dword [esp + 4], 0x104
mov dword [esp], edx
mov dword [esp + 8], eax
call edi
mov eax, dword [ebp - 0x468]
mov ecx, ebx
mov dword [esp], eax
call fcn.004bfb6c
push eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0042863c
mov eax, dword [ebp - 0x440]
mov dword [esp + 4], 0x104
mov dword [esp + 8], eax
lea eax, [ebp - 0x220]
mov dword [esp], eax
call edi
mov ecx, esi
lea edi, [ebp - 0x428]
lea esi, [ebp - 0x220]
call fcn.004c0130
mov ecx, ebx
call fcn.004bbce0
mov ebx, dword [sym.imp.msvcrt.dll__wcslwr_s]
mov dword [esp], esi
mov dword [esp + 4], 0x104
call ebx
mov dword [esp], edi
mov dword [esp + 4], 0x104
call ebx
mov dword [esp], 0x4ee157
call sub.msvcrt.dll_atoi
mov dword [esp], edi
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [ebp - 0x464], eax
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x4ee157
mov esi, eax
call sub.msvcrt.dll_atoi
mov edi, eax
mov eax, dword [ebp - 0x464]
sub eax, esi
cmp eax, edi
jb 0x42abf3
mov dword [esp], 0x4ee157
call sub.msvcrt.dll_atoi
lea ecx, [edi + edi]
lea ecx, [ebp + ecx - 0x428]
cmp eax, esi
jae 0x42abdc
mov dx, word [ebp + eax*2 - 0x220]
cmp word [ecx + eax*2], dx
jne 0x42abf0
inc eax
jmp 0x42abc7
cmp esi, eax
jne 0x42abf0
mov dword [esp], 0x4ee159
call sub.msvcrt.dll_atoi
mov ebx, eax
jmp 0x42abf3
inc edi
jmp 0x42aba5
mov eax, dword [ebp - 0x45c]
test ebx, ebx
je 0x42ac02
mov eax, dword [eax + 0x10]
jmp 0x42ac29
mov eax, dword [eax]
jmp 0x42aa9b
xor eax, eax
jmp 0x42ac29
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x42dba0
Capabilities:
Create directory

Disassembly:
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x10
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x42dbd8
call fcn.004b6d40
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
cmp edi, 0x11
je 0x42dc00
call fcn.004b6d50
mov dword [ebx], edi
mov dword [ebx + 4], eax
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0048cb10
cmp al, 2
jne 0x42dbe5
xor eax, eax
jmp 0x42dbf1
Function at 0x4313d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov dword [ecx], 0x6c736567
mov dword [ecx + 4], 0x34366866
mov dword [ecx + 8], 0x66656c29
mov ebp, esp
mov byte [ecx + 0xc], 0
push esi
mov esi, 0xd
push ebx
mov ebx, 0xc
mov eax, ebx
xor edx, edx
div esi
xor byte [ecx + ebx - 0xc], dl
inc ebx
cmp ebx, 0x18
jne 0x4313f7
pop ebx
pop esi
pop ebp
ret

Function at 0x43140c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov dword [ecx], 0x7064737f
mov dword [ecx + 4], 0x622b3630
mov word [ecx + 8], 0x646b
mov ebp, esp
mov byte [ecx + 0xa], 0
push esi
mov esi, 0xb
push ebx
mov ebx, 0xa
mov eax, ebx
xor edx, edx
div esi
xor byte [ecx + ebx - 0xa], dl
inc ebx
cmp ebx, 0x14
jne 0x431432
pop ebx
pop esi
pop ebp
ret

Function at 0x431448
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov dword [ecx], 0x6e626a45
mov dword [ecx + 4], 0x65416e64
mov dword [ecx + 8], 0x6c296376
mov ebp, esp
mov word [ecx + 0xc], 0x6665
mov byte [ecx + 0xe], 0
push esi
mov esi, 0x11
push ebx
mov ebx, 0xe
mov eax, ebx
xor edx, edx
div esi
xor byte [ecx + ebx - 0xe], dl
inc ebx
cmp ebx, 0x1c
jne 0x431475
pop ebx
pop esi
pop ebp
ret

Function at 0x43148c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov dword [ecx], 0x40766447
mov dword [ecx + 4], 0x62747771
mov dword [ecx + 8], 0x795a7d66
mov ebp, esp
mov dword [ecx + 0xc], 0x7c6b6e63
mov word [ecx + 0x10], 0x63
push esi
mov esi, 0x11
push ebx
mov ebx, 0x11
mov eax, ebx
xor edx, edx
div esi
xor byte [ecx + ebx - 0x11], dl
inc ebx
cmp ebx, 0x22
jne 0x4314bc
pop ebx
pop esi
pop ebp
ret

Function at 0x4314d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov dword [ecx], 0x61757d4d
mov dword [ecx + 4], 0x76536775
mov dword [ecx + 8], 0x7b62656a
mov ebp, esp
mov word [ecx + 0xc], 0x5d7a
mov byte [ecx + 0xe], 0
push esi
mov esi, 0x11
push ebx
mov ebx, 0xe
mov eax, ebx
xor edx, edx
div esi
xor byte [ecx + ebx - 0xe], dl
inc ebx
cmp ebx, 0x1c
jne 0x4314fd
pop ebx
pop esi
pop ebp
ret
Function at 0x431c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x4ee965
push ebx
sub esp, 0x9c
mov eax, dword [0x4ee964]
mov dword [ebp - 0x81], eax
mov eax, dword [0x4ee9c9]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.0040bc10
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
mov dword [ebp - 0x8c], edx
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.004dbbb8
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4eac10], 0
jne 0x431d56
mov byte [0x4eac10], 1
call fcn.004d57f0
test eax, eax
je 0x431d24
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0040ab00
mov dword [esp], 2
mov esi, dword [fcn.0041cad0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x431d14
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4ee3c5
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4dbaa8
jmp 0x4dbaa0
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x431cda
mov dword [esp], 2
call dword [0x4e7218]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x4dba9b
mov dword [esp], 2
call dword [0x4e7218]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x4f77e0
call fcn.004cac60
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.004d55a0
add esp, 0x18
pop ebx
ret
Function at 0x48c8c0
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.004897f0
test al, al
je 0x48c91b
cmp al, 0xff
je 0x48c928
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0048cb10
cmp al, 2
je 0x48c940
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
jne 0x48c952
mov eax, dword [ebx]
test eax, eax
jne 0x48c91b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004b6d40
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.004b6d40
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x48c91b
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
je 0x48c8f1
call fcn.004b6d40
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret

Function at 0x48c9c0
Capabilities:
Move file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0048cb10
cmp al, 0xff
je 0x48ca28
mov ecx, dword [ebx]
test ecx, ecx
jne 0x48ca1e
test al, al
jne 0x48ca40
mov dword [esp + 8], 3
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub esp, 0xc
test eax, eax
je 0x48ca90
call fcn.004b6d40
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call fcn.004b6d40
mov dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x48c9ec
mov dword [esp + 4], ebx
mov dword [esp], edi
mov dword [esp + 0x1c], eax
call fcn.0048cb10
mov edx, dword [ebx]
test edx, edx
jne 0x48ca1e
mov ecx, dword [esp + 0x1c]
cmp cl, 2
je 0x48ca78
cmp al, 2
jne 0x48c9ec
call fcn.004b6d50
mov dword [ebx], 0x14
mov dword [ebx + 4], eax
jmp 0x48ca1e
cmp al, 2
je 0x48c9ec
call fcn.004b6d50
mov dword [ebx], 0x15
mov dword [ebx + 4], eax
jmp 0x48ca1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 5
je 0x48cac0
call edi
mov dword [eax], 5
call fcn.004b6d50
mov esi, eax
call edi
mov eax, dword [eax]
mov dword [ebx + 4], esi
mov dword [ebx], eax
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call edi
mov dword [eax], 0xd
jmp 0x48caa9
Function at 0x493f70
Capabilities:
Get disk size

Disassembly:
push esi
push ebx
sub esp, 0x34
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x50]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
sub esp, 0x10
test eax, eax
je 0x494038
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, esi
or eax, ecx
je 0x493fec
mov eax, dword [esp + 0x44]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, esi
or eax, ecx
je 0x494003
mov eax, dword [esp + 0x48]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, esi
or eax, ecx
jne 0x494028
call fcn.004b6d40
mov dword [ebx], 0
mov dword [ebx + 4], eax
add esp, 0x34
pop ebx
pop esi
ret
mov eax, dword [esp + 0x4c]
mov dword [eax], esi
mov dword [eax + 4], ecx
jmp 0x494011
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004b6d40
mov dword [ebx], esi
mov dword [ebx + 4], eax
add esp, 0x34
pop ebx
pop esi
ret

Function at 0x498a70
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__fileno
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x498ab0
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x498a81
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x4aa920
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ecx + 4]
test eax, eax
je 0x4aa940
mov edx, dword [ecx]
mov dword [esp], edx
call eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea esi, [esp + 0x1c]
nop
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [edi + 8]
mov dword [esp], eax
call sub.msvcrt.dll__read
test eax, eax
jle 0x4aa980
add esi, eax
sub ebx, eax
jne 0x4aa950
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffff
jne 0x4aa98c
call ebp
cmp dword [eax], 4
je 0x4aa950
mov dword [esp], str.random_device_could_not_be_read
call fcn.004dbd58
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov dword [ecx], fcn.004aab70
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [eax - 4]
test eax, eax
mov eax, dword [ecx + 4]
jg 0x4aa9c8
mov dword [eax - 4], 1
ret 4
lock add dword [eax - 4], 1
ret 4
Function at 0x462f34
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0x462f8f
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0x462f54
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret

Function at 0x4744b9
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x30]
xchg dword [esp + 4], ecx
mov dword [esp + 4], ecx
mov ecx, dword [esp]
lea esp, [esp + 4]
add dword [esp], 0xfffffa64
xchg dword [esp], eax
push eax
mov eax, dword [esp + 4]
lea eax, [eax + 0x6f]
xchg dword [esp + 4], eax
mov dword [esp + 4], eax
mov eax, dword [esp]
lea esp, [esp + 4]
xchg dword [esp + 4], eax
lea ecx, [ecx]
xchg dword [esp], eax
push ebp
mov ebp, esp
leave
popfd
pushfd
add ebp, 0x2d
popfd
lea ebp, [ebp - 0x2d]
jmp 0x46e650
Function at 0x1001153f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10011557
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10011591
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10011579
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xffffffe7
jl 0x10011591
mov dword [ebp - 8], 0xfffffff6
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
jmp 0x1001156e
mov esp, ebp
pop ebp
ret

Function at 0x1001174a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10011770
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x10011778
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret
Function at 0x10014d1e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10014d38
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x10014d83
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10014d66
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10014d83
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017408
mov dword [eax], 1
jmp 0x10014d5b
mov esp, ebp
pop ebp
ret

Function at 0x100150fc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10015120
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001511e
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1001516b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1001514e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 3
jge 0x1001516b
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10017408
mov dword [eax], 0x43747c91
jmp 0x10015143
mov esp, ebp
pop ebp
ret

Function at 0x10016d39
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10016d94
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10016d75
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10016d92
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10017408
mov dword [eax], 0x8a137b18
jmp 0x10016d6a
jmp 0x10016dc7
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x10016dc7
push 0
push 0
push 0
push 0
push 0xcc2
push 1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret