joyce8/EMBER2024-capa huggingface dataset:
Function at 0x575940
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.00575c30
push 0
call fcn.00551b8e
push eax
call fcn.00584aa8
add esp, 8
mov dword [ebp - 4], 0
call fcn.00584a87
mov edi, dword [esi + 0x19c]
mov ecx, eax
sar ecx, 6
movzx eax, al
test cl, cl
movzx ebx, cl
cmove ebx, eax
mov eax, dword [esi + 0x1a4]
and eax, 0xfffd
mov dword [ebp - 0xc], ebx
or eax, 2
mov dword [ebp - 8], eax
call fcn.0057b050
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.0057b050
mov edx, dword [ebp - 4]
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 8]
mov dword [esi + 0x1a4], edi
mov eax, dword [eax + 4]
sar ecx, 8
xor cl, byte [ebp - 0xc]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 4], edx
cmp edx, 0xa
jl 0x575967
mov eax, dword [esi + 0x1a4]
mov ebx, dword [ebp + 8]
and eax, 0xfffd
mov edi, dword [esi + 0x19c]
or eax, 2
sar ebx, 0x10
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], eax
call fcn.0057b050
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.0057b050
movsx ecx, bl
xor ecx, edi
mov ebx, dword [ebp + 8]
and ecx, 0xff
shr edi, 8
sar ebx, 0x18
mov dword [ebp + 8], ebx
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 0xc]
mov dword [esi + 0x1a4], edi
mov eax, dword [eax + 4]
sar ecx, 8
xor cl, byte [ebp - 8]
mov byte [eax + 0xa], cl
mov eax, dword [esi + 0x1a4]
mov edi, dword [esi + 0x19c]
and eax, 0xfffd
or eax, 2
mov dword [ebp - 0xc], eax
call fcn.0057b050
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.0057b050
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
xor ecx, 1
imul ecx, dword [ebp - 0xc]
mov dword [esi + 0x1a4], edi
pop edi
mov eax, dword [eax + 4]
pop esi
sar ecx, 8
xor cl, byte [ebp + 8]
mov byte [eax + 0xb], cl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x575b50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x100]
test byte [eax + 0xc], 1
je 0x575c1f
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [esi + 0x6c], eax
jbe 0x575c1f
push ebx
push edi
lea esp, [esp]
mov ecx, dword [esi + 0x7c]
mov edi, dword [esi + 0x19c]
add ecx, eax
mov eax, dword [esi + 0x1a4]
and eax, 0xfffd
mov dword [ebp - 0xc], ecx
or eax, 2
mov bl, byte [ecx]
mov dword [ebp - 8], eax
call fcn.0057b050
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.0057b050
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor eax, 1
imul eax, dword [ebp - 8]
mov dword [esi + 0x1a4], edi
sar eax, 8
xor byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x6c]
jb 0x575b80
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x575c30
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [esi + 0x19c], 0x12345678
mov dword [esi + 0x1a0], 0x23456789
mov dword [esi + 0x1a4], 0x34567890
cmp dword [esi + 0x198], ecx
jbe 0x575cea
push ebx
push edi
jmp 0x575c70
mov eax, dword [esi + 0x194]
mov edi, dword [esi + 0x19c]
mov bl, byte [ecx + eax]
call fcn.0057b050
mov ecx, eax
movsx eax, bl
xor eax, edi
shr edi, 8
and eax, 0xff
mov eax, dword [ecx + eax*4]
xor eax, edi
mov edi, dword [esi + 0x1a4]
mov dword [esi + 0x19c], eax
movzx eax, al
add eax, dword [esi + 0x1a0]
imul ebx, eax, 0x8088405
inc ebx
mov dword [esi + 0x1a0], ebx
shr ebx, 0x18
call fcn.0057b050
movsx ecx, bl
xor ecx, edi
shr edi, 8
and ecx, 0xff
xor edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi + 0x1a4], edi
mov dword [ebp - 4], ecx
cmp ecx, dword [esi + 0x198]
jb 0x575c70
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5779e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp method.CFile.virtual_56

Function at 0x578b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp method.CFile.virtual_60
Function at 0x579220
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adb38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x618190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0x2e
lea ecx, [ebp - 0x20]
call fcn.0057ba50
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 1
push 0x2e
push dword [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.0057ce70
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [edi + 4], eax
movzx eax, word [ecx + 4]
mov word [edi + 8], ax
movzx eax, word [ecx + 6]
mov word [edi + 0xa], ax
movzx eax, word [ecx + 8]
mov word [edi + 0xc], ax
movzx eax, word [ecx + 0xa]
mov word [edi + 0xe], ax
movzx eax, word [ecx + 0xc]
mov word [edi + 0x10], ax
movzx eax, word [ecx + 0xe]
mov word [edi + 0x12], ax
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x18], eax
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x1c], eax
movzx eax, word [ecx + 0x1e]
movzx esi, word [ecx + 0x1c]
mov dword [ebp + 8], eax
movzx eax, word [ecx + 0x20]
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x22]
mov word [edi + 0x20], ax
movzx eax, word [ecx + 0x24]
mov word [edi + 0x22], ax
mov eax, dword [ecx + 0x26]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0x2a]
lea ecx, [ebp - 0x20]
mov dword [edi + 0x28], eax
call fcn.0057bc30
mov eax, dword [edi + 4]
cmp eax, dword [0x6195d0]
je 0x5792fd
xor bl, bl
jmp 0x57936a
mov eax, dword [ebx + 0x54]
lea ecx, [edi + 0x38]
push 0
push esi
mov dword [ebp - 0x14], eax
call fcn.0057bba0
push 1
push esi
push dword [edi + 0x3c]
mov ecx, ebx
call fcn.0057ce70
mov eax, dword [ebp + 8]
test ax, ax
je 0x57933e
movzx esi, ax
lea ecx, [edi + 0x2c]
push 0
push esi
call fcn.0057bba0
push 1
push esi
push dword [edi + 0x30]
mov ecx, ebx
call fcn.0057ce70
mov eax, dword [ebp - 0x10]
test ax, ax
je 0x579361
movzx esi, ax
lea ecx, [edi + 0x44]
push 0
push esi
call fcn.0057bba0
push 1
push esi
push dword [edi + 0x48]
mov ecx, ebx
call fcn.0057ce70
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 0x54], eax
sete bl
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0057baa0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5795f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adb38
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x618190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [eax + 0x34]
lea ecx, [ebp - 0x20]
mov esi, dword [eax + 0x40]
movzx eax, si
mov dword [ebp - 0x14], eax
add eax, 0x1e
movzx ebx, di
add eax, ebx
push 0
push eax
call fcn.0057ba50
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x6195d4]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xa]
mov word [eax + 4], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xc]
mov word [eax + 6], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0xe]
mov word [eax + 8], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0x10]
mov word [eax + 0xa], cx
mov eax, dword [ebp - 0x1c]
movzx ecx, word [edx + 0x12]
mov word [eax + 0xc], cx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x14]
mov dword [eax + 0xe], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x12], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x1c]
mov dword [eax + 0x16], ecx
mov eax, dword [ebp - 0x1c]
mov word [eax + 0x1a], si
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
push esi
mov word [eax + 0x1c], di
mov eax, dword [ebp - 0x1c]
push dword [edx + 0x3c]
add eax, 0x1e
push eax
call fcn.00558550
mov eax, dword [ebp - 0x10]
push ebx
push dword [eax + 0x30]
mov eax, dword [ebp - 0x1c]
add eax, 0x1e
add eax, esi
push eax
call fcn.00558550
add esp, 0x18
lea edi, [esi + 0x1e]
mov esi, dword [ebp + 8]
add edi, ebx
mov ecx, esi
push 1
push edi
push dword [ebp - 0x1c]
call fcn.0057d260
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x2c]
call fcn.0057bc30
mov eax, dword [esi + 0x54]
mov word [ebx + 0x20], ax
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [esi + 0x34]
sub ecx, edi
add eax, ecx
lea ecx, [ebp - 0x20]
mov dword [ebx + 0x28], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0057baa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x57a880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x24]
lea ecx, [ecx]
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x34]
add eax, 0xfffffefa
sub edx, dword [edi + 0x6c]
add eax, esi
sub edx, dword [edi + 0x64]
mov dword [ebp + 8], edx
cmp dword [edi + 0x64], eax
jb 0x57a90c
mov ecx, dword [edi + 0x30]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00558550
mov edx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], esi
sub dword [edi + 0x64], esi
sub dword [edi + 0x54], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x57a8df
sub eax, esi
jmp 0x57a8e1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x57a8d0
mov eax, dword [edi + 0x38]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x57a8ff
sub eax, esi
jmp 0x57a901
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x57a8f0
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x57a9c1
mov eax, dword [edi + 0x6c]
add eax, dword [edi + 0x64]
add eax, dword [edi + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x57a939
xor eax, eax
jmp 0x57a985
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x57a956
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.00580910
jmp 0x57a966
cmp eax, 2
jne 0x57a96f
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0057ad60
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.00558550
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x6c], eax
mov ebx, dword [edi + 0x6c]
cmp ebx, 3
jb 0x57a9ad
mov eax, dword [edi + 0x30]
add eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x50]
movzx edx, byte [eax]
mov dword [edi + 0x40], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x4c]
mov dword [edi + 0x40], edx
cmp ebx, 0x106
jae 0x57a9c1
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x57a890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x57ad6c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0057ad80
Function at 0x57beb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adcb1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x618190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CZipStorage.0
call fcn.0057bc60
mov dword [ebp - 4], 0
call fcn.0043c5a7
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x57bf0b
push 0x80004005
call fcn.00420690
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 1
call fcn.0057ba80
push 3
push 0x5e6de4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0x10000
mov dword [esi + 0x54], 0xffffffff
mov dword [esi + 0x20], 0
call fcn.004204e0
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

Function at 0x57bf70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adce6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x618190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CZipStorage.0
lea ecx, [esi + 0x40]
mov dword [ebp - 4], 1
call fcn.0057baa0
mov edx, dword [esi + 0x30]
or ecx, 0xffffffff
sub edx, 0x10
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x57bfcf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.0057bcc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x57ff20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
jne 0x57ff3c
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043b82a
add esp, 4
mov byte [ebp - 1], 1
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x57ff7d
push esi
mov byte [ebp - 1], al
call fcn.0043b833
mov al, byte [ebp - 1]
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x57ff85
xor ecx, ecx
jmp 0x57ff9f
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x57ff90
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.004204e0
push esi
call fcn.0043b833
mov al, byte [ebp - 1]
add esp, 4
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x57ffe0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae440
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x618190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
call fcn.00573e80
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.005800f0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x580073
lea eax, [ebp - 0x10]
push eax
call fcn.00575360
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
add esp, 4
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x580073
xor edi, edi
jmp 0x580085
mov edi, dword [ebp - 0x18]
imul edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0
imul edi, dword [ebp - 0x20]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5800a3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.0057f950
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5800d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x5800e7
xor al, al
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov al, 1
pop ebp
ret

Function at 0x580190
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
jne 0x5801b7
xor al, al
pop esi
pop ebp
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x5801d5
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov al, 1
pop edi
pop esi
pop ebp
ret
Function at 0x5804d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae498
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x618190]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00573e80
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.005800f0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, dword [ebp - 0x10]
cmp eax, 2
sete bl
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x580540
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0057f950
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5805d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x580910
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx ecx, si
shr esi, 0x10
test edi, edi
jne 0x58092c
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x580a2d
jmp 0x580940
mov edx, 0x15b0
cmp ebx, edx
cmovb edx, ebx
sub ebx, edx
mov dword [ebp + 0x10], ebx
cmp edx, 0x10
jl 0x5809f2
mov ebx, edx
shr ebx, 4
mov eax, ebx
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [edi]
add ecx, eax
movzx eax, byte [edi + 1]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 2]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 3]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 4]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 5]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 6]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 7]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 8]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 9]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xa]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xb]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xc]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xd]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xe]
add esi, ecx
add ecx, eax
movzx eax, byte [edi + 0xf]
add esi, ecx
add edi, 0x10
add ecx, eax
add esi, ecx
dec ebx
jne 0x580966
mov ebx, dword [ebp + 0x10]
test edx, edx
je 0x580a01
movzx eax, byte [edi]
inc edi
add ecx, eax
add esi, ecx
dec edx
jne 0x5809f6
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul esi
shr edx, 0xf
imul edx, edx, 0xffff000f
add esi, edx
test ebx, ebx
jne 0x580940
shl esi, 0x10
pop ebx
or esi, ecx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x58406a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x64b6c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x5a5015
lea edi, [esi - 0x1a4015]
mov dword [edi + 0x244430], 0x44491935
push edi
or ebp, 0xffffffff
jmp 0x64b6ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x64b6f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64b6e0
mov eax, 1
add ebx, ebx
jne 0x64b703
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x64b714
jne 0x64b733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64b733
dec eax
add ebx, ebx
jne 0x64b720
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x64b6f8
add ebx, ebx
jne 0x64b72f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x64b785
xor ecx, ecx
sub eax, 3
jb 0x64b74b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x64b7ba
sar eax, 1
mov ebp, eax
jmp 0x64b756
add ebx, ebx
jne 0x64b756
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64b724
inc ecx
add ebx, ebx
jne 0x64b764
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x64b724
add ebx, ebx
jne 0x64b771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x64b766
jne 0x64b782
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x64b766
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x64b7a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x64b796
jmp 0x64b6e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x64b7a4
add edi, ecx
jmp 0x64b6e6
pop esi
mov edi, esi
mov ecx, 0xbb31
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x64b7c2
cmp byte [edi], 0x2a
jne 0x64b7c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x64b7c7
lea edi, [esi + 0x249000]
mov eax, dword [edi]
or eax, eax
je 0x64b836
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24b000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x24b03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x64b7f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x24b044]
or eax, eax
je 0x64b830
mov dword [ebx], eax
add ebx, 4
jmp 0x64b811
call dword [esi + 0x24b040]
mov ebp, dword [esi + 0x24b048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x24b891]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x64b882
sub esp, 0xffffff80
jmp 0x4014a0