joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037f0
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x41b024]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x138]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4039c5
push esi
push edi
mov edi, dword [ebx]
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 0
test edi, edi
jne 0x403849
mov edi, 0x4173a4
mov ecx, edi
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x403850
sub ecx, esi
mov esi, ecx
cmp esi, 0x3f
jl 0x40387e
lea ecx, [esi + 1]
push ecx
push 0
mov dword [ebp - 0xac], 0
call fcn.00408a91
add esp, 8
mov dword [ebp - 0xac], eax
push esi
push edi
push eax
call fcn.004087a7
mov edx, dword [ebp - 0xac]
add esp, 0xc
push str.SysConfig.ini
lea eax, [ebp - 0xac]
mov byte [esi + edx], 0
call fcn.00402430
mov eax, dword [ebp - 0xac]
push eax
push 0x63
lea ecx, [ebp - 0x68]
push ecx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebx]
lea eax, [ebp - 0x68]
push eax
push ecx
lea edx, [ebp - 0x130]
push str.__s_s___mini
lea edi, [ebp - 0x134]
mov dword [ebp - 0x134], edx
mov byte [ebp - 0x130], 0
call fcn.00402a00
lea edx, [ebp - 0xec]
push 8
mov eax, edx
push str.YYMusic3
push eax
mov dword [ebp - 0xf0], edx
mov byte [ebp - 0xec], 0
call fcn.004087a7
mov ecx, dword [ebp - 0xf0]
add esp, 0x18
push str._News
lea eax, [ebp - 0xf0]
mov byte [ecx + 8], 0
call fcn.00402430
mov edx, dword [ebx + 0x54]
push edx
lea eax, [ebp - 0xf0]
call fcn.00402430
mov edx, dword [ebp - 0x134]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403948
mov ecx, dword [ebp - 0x138]
sub eax, esi
push eax
mov eax, dword [ebp - 0xf0]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xf0]
lea ecx, [ebp - 0xec]
pop edi
pop esi
cmp eax, ecx
je 0x403993
push eax
call fcn.004087c1
add esp, 4
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
cmp eax, edx
je 0x4039ac
push eax
call fcn.004087c1
add esp, 4
mov eax, dword [ebp - 0xac]
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x4039c5
push eax
call fcn.004087c1
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040805e
mov esp, ebp
pop ebp
ret
Function at 0x493968
Capabilities:
Encode data using xor

Disassembly:
clc
jmp 0x49398e
arpl word [eax + 0x73], sp
push ds
pushal
jae 0x4939af
dec ebp
mov dl, 0x3c
pop edi
ficomp word [ebx]
call 0x6a5e3280
pop eax
bound eax, qword [edx]
dec eax
xor eax, 0x2f860a5
fst qword [0x482c9606]
dec ebx
jno 0x49398d
call fcn.004939c4
add dh, bl
cmpsb byte [esi], byte es:[edi]
lodsb al, byte [esi]
sub al, 0x28
sub ch, bh
xor esp, ebp
ret 0xcdfb
Function at 0x10002990
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068af0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x100029da
xor ecx, ecx
jmp 0x100029e9
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100029e0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.100027a0
cmp dword [ebp - 0x30], 0
sete bl
cmp dword [ebp - 0x2c], 0x10
jb 0x10002a0b
push dword [ebp - 0x40]
call fcn.100498af
add esp, 4
test bl, bl
je 0x10002a16
xor eax, eax
jmp 0x10002ac1
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x10002a4a
xor ecx, ecx
jmp 0x10002a59
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002a50
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.100027a0
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1000c8d0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x10002a87
push dword [ebp - 0x40]
call fcn.100498af
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.1000bae0
test eax, eax
jne 0x10002a9b
lea ecx, [ebp - 0x28]
call fcn.1000bd30
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x14], 0x10
jb 0x10002abf
push dword [ebp - 0x28]
call fcn.100498af
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret

Function at 0x10002ae0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068b28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x10089430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x10002b7e
cmp byte [esi], 0
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
jne 0x10002b31
xor ecx, ecx
jmp 0x10002b3f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002b36
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.100027a0
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.1000bd30
cmp dword [ebp - 0x10], 0x10
mov esi, eax
jb 0x10002b6b
push dword [ebp - 0x24]
call fcn.100498af
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, edi
call fcn.10002990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1000564b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x10005715
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
dec edi
jne 0x10005660
pop edi
test esi, esi
je 0x1000573a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x1007ae00]
dec esi
jne 0x10005720
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x10005750
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
and eax, 0xff
shr esi, 8
mov eax, dword [eax*4 + 0x1007ae00]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1007ae00]
mov dword [edi + 8], eax
pop edi
pop esi
ret

Function at 0x100057a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov bl, dl
mov edx, ecx
push edi
mov edi, dword [edx + 8]
mov esi, edi
mov ecx, dword [edx]
and esi, 0xfffd
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor bl, al
movsx eax, bl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x1007ae00]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, edi
shr edi, 8
and eax, 0xff
xor edi, dword [eax*4 + 0x1007ae00]
mov al, bl
mov dword [edx + 8], edi
pop edi
pop esi
pop ebx
ret
Function at 0x10005f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp byte [edi], 0
je 0x10005f56
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005f51
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x10005f7e
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x10005f67
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.1004c890
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
mov ecx, dword [ebp - 4]
xor edx, edx
pop edi
div ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret

Function at 0x10005fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
mov edi, 1
cmp byte [esi], 0
je 0x10005fe5
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10005fe0
mov byte [esi + 8], 1
mov edi, dword [ebp - 0xc]
jmp 0x10006012
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x10005ff6
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 5]
push eax
call fcn.1004c890
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x10006030
movzx eax, byte [ebp - 5]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x1000601d
cmp byte [esi + 8], 0
je 0x1000601d
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret
Function at 0x100060f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x10006139
cmp byte [edi + 1], 0
je 0x10006127
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1000613f
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], eax
cmp byte [edi], 0
push ebx
je 0x10006164
cmp byte [edi + 1], 0
je 0x1000615d
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x10006167
xor ebx, ebx
mov dword [ebp - 0x14], ebx
jmp 0x10006176
mov ebx, dword [edi + 0x1c]
mov eax, 0xffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, eax
jae 0x10006179
mov dword [ebp - 0x10], ebx
push esi
push 0x404
call fcn.1004a455
mov esi, eax
add esp, 4
test esi, esi
jne 0x100061a1
pop esi
pop ebx
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov eax, 4
mov dword [ebp - 0xc], 0xffffffff
cmp ecx, eax
jbe 0x100062a8
jmp 0x100061c0
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x20], edx
sub ebx, ecx
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x1000620a
cmp byte [edi + 1], 0
je 0x100062a8
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1000620d
mov dword [edi + 0x1c], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0x18], ebx
je 0x10006235
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10006230
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x1000625e
mov edx, dword [edi + 0x1c]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
jbe 0x10006248
mov ecx, dword [edi + 0x18]
sub ecx, edx
mov dword [ebp - 0x18], ecx
push ecx
mov ecx, dword [edi + 0x14]
add ecx, edx
push ecx
push esi
call fcn.1004c890
mov eax, dword [ebp - 0x18]
add esp, 0xc
add dword [edi + 0x1c], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x100062a8
lea eax, [ebx - 3]
test eax, eax
js 0x10006290
mov edi, edi
dec eax
cmp byte [eax + esi], 0x50
jne 0x1000628c
cmp byte [eax + esi + 1], 0x4b
jne 0x1000628c
cmp byte [eax + esi + 2], 5
jne 0x1000628c
cmp byte [eax + esi + 3], 6
je 0x100062c5
test eax, eax
jns 0x10006270
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x100062a8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
cmp eax, ecx
jb 0x100061c0
push esi
call fcn.1004a41d
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop esi
pop ebx
pop edi
call fcn.100498b4
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jmp 0x10006293
Function at 0x10007070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x1000710b
cmp dword [esi + 4], 0xffffffff
jne 0x1000710b
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100070a2
sub ecx, edx
mov al, byte [ecx + esi + 0x13f]
cmp al, 0x5c
je 0x100070cd
cmp al, 0x2f
je 0x100070cd
push 0x1007ab08
push 0x104
push edi
call fcn.1004a6bb
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.10005e70
add esp, 8
test eax, eax
jne 0x100070ec
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
call fcn.100062d0
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10007850
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x10007882
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10007882
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebx]
test al, al
je 0x10007943
push esi
mov esi, ebx
mov ecx, ebx
cmp al, 0x2f
je 0x10007899
cmp al, 0x5c
jne 0x1000789b
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x10007891
cmp esi, ebx
je 0x100078db
sub esi, ebx
lea eax, [ebp - 0x20c]
push esi
push ebx
push eax
call fcn.1004c890
add esp, 0xc
cmp esi, 0x104
jae 0x10007953
lea edx, [ebp - 0x20c]
mov byte [ebp + esi - 0x20c], 0
mov ecx, edi
call fcn.10007850
mov byte [ebp - 0x108], 0
pop esi
test edi, edi
je 0x1000790d
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100078f0
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.1004a4e7
add esp, 0xc
push ebx
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1004a6bb
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10007943
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret
call fcn.1004a250
int3
Function at 0x10008420
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x1000850d
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10008464
cmp dword [esi + 0x40], ebx
jae 0x10008464
push eax
call fcn.10049f64
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x1000847c
lea eax, [ebx + ebx]
push eax
call fcn.10048c87
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.1004c890
xor edx, edx
add esp, 0xc
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x1000850a
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x1007c5c0]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
and eax, 0xff
shr edx, 8
xor cl, bl
mov ebx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x1007c5c0]
mov dword [esi + 0x38], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jb 0x10008492
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1000854d
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x10008528
mov dword [esi + 0x14], 0x30000
jmp 0x10008580
push ebx
add ecx, edx
push edi
push ecx
call fcn.1004c890
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x10008579
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100498b4
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret 8
Function at 0x100089f0
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x170], eax
movdqu xmmword [eax], xmm0
push edi
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], 0
mov byte [eax + 0x1a], 0
mov dword [ebp - 0x168], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x16c], eax
xor esi, esi
jmp 0x10008a40
cmp ebx, 0x1a
jge 0x10008beb
mov ebx, 1
mov ecx, esi
shl ebx, cl
test eax, ebx
je 0x10008bcd
lea edi, [esi + 0x41]
push edi
push str._c:_
lea eax, [ebp - 0x28]
push 0x21
push eax
call fcn.1004a7e1
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x10008a84.40
jmp dword [eax*4 + 0x10008c00]
xor al, al
lea ecx, [ecx]
test bl, 1
jne 0x10008a9d
add al, 1
shr ebx, 1
cmp al, 0x1a
jl 0x10008a90
mov ebx, dword [ebp - 0x168]
add al, 0x41
mov ecx, dword [ebp - 0x170]
mov byte [ecx + ebx], al
inc ebx
mov dword [ebp - 0x168], ebx
jmp 0x10008bdb
push edi
push str.__c:
push 0x12b
lea eax, [ebp - 0x154]
push 0x12c
push eax
call fcn.1004a7c2
add esp, 0x14
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x154]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x174], eax
cmp eax, 0xffffffff
je case.0x10008a84.40
push 0x227
call fcn.10048c87
add esp, 4
mov dword [ebp - 0x164], 0
mov edi, eax
mov dword [ebp - 0x160], 0
lea eax, [ebp - 0x158]
push 0
push eax
push 0x227
push edi
push 0xc
lea eax, [ebp - 0x164]
mov dword [edi + 4], 0x227
push eax
push 0x2d1400
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10008b83
cmp dword [edi + 0x1c], 7
jne 0x10008b83
push ebx
call fcn.100089d0
mov ebx, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x170]
mov byte [ecx + ebx], al
inc ebx
mov dword [ebp - 0x168], ebx
jmp 0x10008b89
mov ebx, dword [ebp - 0x168]
push edi
call fcn.100498af
add esp, 4
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008bdb
xor al, al
test bl, 1
jne 0x10008a9d
add al, 1
shr ebx, 1
cmp al, 0x1a
jl 0x10008ba2
mov ebx, dword [ebp - 0x168]
add al, 0x41
mov ecx, dword [ebp - 0x170]
mov byte [ecx + ebx], al
inc ebx
mov dword [ebp - 0x168], ebx
jmp 0x10008bdb
mov ebx, dword [ebp - 0x168]
jmp 0x10008be1
mov ebx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x16c]
inc esi
cmp esi, 0x20
jb 0x10008a40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret 8
Function at 0x10008bd5
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x10089430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x170], eax
movdqu xmmword [eax], xmm0
push edi
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], 0
mov byte [eax + 0x1a], 0
mov dword [ebp - 0x168], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x16c], eax
xor esi, esi
jmp 0x10008a40
cmp ebx, 0x1a
jge 0x10008beb
mov ebx, 1
mov ecx, esi
shl ebx, cl
test eax, ebx
je 0x10008bcd
lea edi, [esi + 0x41]
push edi
push str._c:_
lea eax, [ebp - 0x28]
push 0x21
push eax
call fcn.1004a7e1
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x10008a84.40
jmp dword [eax*4 + 0x10008c00]
xor al, al
lea ecx, [ecx]
test bl, 1
jne 0x10008a9d
add al, 1
shr ebx, 1
cmp al, 0x1a
jl 0x10008a90
mov ebx, dword [ebp - 0x168]
add al, 0x41
mov ecx, dword [ebp - 0x170]
mov byte [ecx + ebx], al
inc ebx
mov dword [ebp - 0x168], ebx
jmp 0x10008bdb
push edi
push str.__c:
push 0x12b
lea eax, [ebp - 0x154]
push 0x12c
push eax
call fcn.1004a7c2
add esp, 0x14
mov byte [ebp - 0x29], 0
lea eax, [ebp - 0x154]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x174], eax
cmp eax, 0xffffffff
je case.0x10008a84.40
push 0x227
call fcn.10048c87
add esp, 4
mov dword [ebp - 0x164], 0
mov edi, eax
mov dword [ebp - 0x160], 0
lea eax, [ebp - 0x158]
push 0
push eax
push 0x227
push edi
push 0xc
lea eax, [ebp - 0x164]
mov dword [edi + 4], 0x227
push eax
push 0x2d1400
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10008b83
cmp dword [edi + 0x1c], 7
jne 0x10008b83
push ebx
call fcn.100089d0
mov ebx, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x170]
mov byte [ecx + ebx], al
inc ebx
mov dword [ebp - 0x168], ebx
jmp 0x10008b89
mov ebx, dword [ebp - 0x168]
push edi
call fcn.100498af
add esp, 4
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008bdb
xor al, al
test bl, 1
jne 0x10008a9d
add al, 1
shr ebx, 1
cmp al, 0x1a
jl 0x10008ba2
mov ebx, dword [ebp - 0x168]
add al, 0x41
mov ecx, dword [ebp - 0x170]
mov byte [ecx + ebx], al
inc ebx
mov dword [ebp - 0x168], ebx
jmp 0x10008bdb
mov ebx, dword [ebp - 0x168]
jmp 0x10008be1
mov ebx, dword [ebp - 0x168]
mov eax, dword [ebp - 0x16c]
inc esi
cmp esi, 0x20
jb 0x10008a40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100498b4
mov esp, ebp
pop ebp
ret 8