joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5197da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
mov dword [ebp - 0x10c], esi
push edi
push 0
push eax
call fcn.0042a970
add esp, 0xc
mov dword [ebp - 0x10c], edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 2
push str.CommercialId
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesDataCollection
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00420965
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004297f5
leave
ret

Function at 0x51985a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
mov dword [ebp - 0x10c], esi
push edi
push 0
push eax
call fcn.0042a970
add esp, 0xc
mov dword [ebp - 0x10c], edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0x10002
push str.BuildLabEx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.00420965
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004297f5
leave
ret
Function at 0x51a21a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x128
mov eax, 0x6293b1
call fcn.00429868
mov edi, ecx
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x134], edi
xor eax, eax
mov dword [edi], vtable.Microsoft::Applications::Events::PlatformAbstraction::DeviceInformationImpl.0
push 0xf
pop ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ebx
mov dword [ebp - 4], eax
mov byte [edi + 4], al
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.005372aa
lea esi, [edi + 0x68]
xor ecx, ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebx
mov byte [esi], cl
lea ebx, [edi + 0x80]
push 0xf
pop eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
mov byte [ebx], cl
add edi, 0x98
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov byte [edi], cl
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 5
mov dword [eax + 0xb0], ecx
call fcn.0051a5d7
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x1c], eax
lea eax, [ebp - 0x128]
push eax
call fcn.0051a678
pop ecx
push eax
mov ecx, esi
call fcn.0045934d
lea ecx, [ebp - 0x128]
call fcn.005031b2
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.0042a970
mov dword [ebp - 0x12c], esi
mov esi, dword [str.Unknown_Manufacturer]
push esi
call fcn.00608890
add esp, 0x10
mov ecx, ebx
push eax
push esi
call fcn.0045b13a
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push str.SystemManufacturer
push str.SYSTEMCurrentControlSetControlSystemInformation
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x51a35a
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.00420965
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.004712ed
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call fcn.005031b2
cmp dword [0x6c33bc], 4
jl 0x51a386
cmp dword [ebx + 0x14], 0x10
jb 0x51a36b
mov ebx, dword [ebx]
call fcn.005076a0
push ebx
push str.Device_Manufacturer_s
call fcn.005078bc
push eax
push 4
call fcn.00507b1e
add esp, 0x10
mov esi, dword [str.Unknown_Model]
push esi
mov dword [ebp - 0x12c], 0x100
call fcn.00608890
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0045b13a
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push str.SystemProductName
push str.SYSTEMCurrentControlSetControlSystemInformation
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x51a404
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.00420965
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.004712ed
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call fcn.005031b2
cmp dword [0x6c33bc], 4
jl 0x51a430
cmp dword [edi + 0x14], 0x10
jb 0x51a415
mov edi, dword [edi]
call fcn.005076a0
push edi
push str.Device_Model_s
call fcn.005078bc
push eax
push 4
call fcn.00507b1e
add esp, 0x10
call fcn.0051a53c
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x20], eax
mov eax, ecx
call fcn.00429817
ret 4
Function at 0x51a5d7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
pop edi
sub eax, 0
je 0x51a618
sub eax, 5
je 0x51a614
sub eax, 1
je 0x51a60f
sub eax, 3
je 0x51a60f
xor eax, eax
leave
ret
push 2
pop eax
leave
ret
push 3
jmp 0x51a611
xor eax, eax
inc eax
leave
ret

Function at 0x51aecb
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6264f5
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6c2008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.Microsoft::Applications::Events::PlatformAbstraction::WorkerThread.0
call fcn.0051b1a0
lea ecx, [edi + 0xa8]
call fcn.0051ae77
lea esi, [edi + 0xa0]
mov ecx, esi
call fcn.0051b5f3
push 0xc
push dword [esi]
call fcn.0047da66
pop ecx
pop ecx
lea esi, [edi + 0x98]
mov ecx, esi
call fcn.0051b5f3
push 0xc
push dword [esi]
call fcn.0047da66
lea esi, [edi + 0x3c]
lea eax, [esi + 0x30]
push eax
call fcn.004eee9b
push esi
call fcn.004ec685
lea eax, [edi + 0xc]
push eax
call fcn.004ec685
add esp, 0x14
cmp dword [edi + 8], 0
jne 0x51af68
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
call fcn.004334b8
int3
Function at 0x51c040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [edi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x51c191
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov esi, 0x3ff
mov ecx, eax
cmp dword [edi], edx
je 0x51c191
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x51c0bf
lea eax, [ecx + 0x2400]
cmp ax, si
ja 0x51c1a0
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x51c0dc
mov dl, bl
xor eax, eax
jmp 0x51c10c
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, si
ja 0x51c0ae
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x51c0b1
mov edx, ebx
cmp ebx, 0x800
jae 0x51c0f1
shr edx, 6
xor eax, eax
or dl, 0xc0
inc eax
jmp 0x51c10c
cmp ebx, 0x10000
jae 0x51c103
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x51c10b
shr edx, 0x12
or dl, 0xf0
push 3
pop eax
movzx esi, cl
mov ecx, dword [ebp - 0xc]
xor esi, 1
add esi, esi
mov dword [ebp - 8], eax
cmp eax, 3
cmovb esi, eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [edi]
inc esi
cmp eax, esi
jl 0x51c191
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
jne 0x51c142
cmp ecx, 3
jae 0x51c149
mov eax, dword [edi]
mov byte [eax], dl
inc dword [edi]
dec esi
test esi, esi
jle 0x51c168
imul ecx, ecx, 6
mov eax, dword [edi]
sub ecx, 6
mov edx, ebx
dec esi
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [eax], dl
inc dword [edi]
test esi, esi
jg 0x51c150
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x51c069
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x51c199
Function at 0x533e15
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp dword [ebx + 0x10], eax
je 0x533f85
cmp dword [ebx + 0x10], 0x20
jne 0x533f85
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov edi, ecx
mov dword [ebp - 0x20], ecx
movlpd qword [ebp - 0xc], xmm0
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x533e73
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.005347f6
pop ecx
cmp al, 0xff
je 0x533f85
mov ecx, dword [ebp - 0x18]
shl ecx, 4
movzx eax, al
add ecx, eax
inc edi
mov dword [ebp - 0x18], ecx
cmp edi, 8
jl 0x533e69
jmp 0x533ecc
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x533ea6
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.005347f6
pop ecx
cmp al, 0xff
je 0x533f85
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
movzx eax, al
add cx, ax
inc edi
movzx ecx, cx
mov dword [ebp - 0x1c], ecx
cmp edi, 0xc
jl 0x533e9c
jmp 0x533f03
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x533edd
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.005347f6
pop ecx
cmp al, 0xff
je 0x533f85
mov ecx, dword [ebp - 0x20]
shl ecx, 4
movzx eax, al
add cx, ax
inc edi
movzx ecx, cx
mov dword [ebp - 0x20], ecx
cmp edi, 0x10
jl 0x533ed3
xor al, al
mov cl, 1
mov byte [ebp - 0xd], al
mov byte [ebp - 0xe], cl
cmp edi, 0x20
jge 0x533f64
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov al, cl
xor al, 1
cmp dword [ebx + 0x14], 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
jb 0x533f2e
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.005347f6
pop ecx
mov cl, byte [ebp - 0xd]
shl cl, 4
add cl, al
cmp byte [ebp - 0xe], 1
mov byte [ebp - 0xd], cl
je 0x533f58
mov edx, dword [ebp - 0x14]
xor al, al
mov byte [ebp - 0xd], al
mov byte [edx], cl
inc edx
mov dword [ebp - 0x14], edx
mov cl, byte [ebp - 0xf]
inc edi
mov byte [ebp - 0xe], cl
cmp edi, 0x20
jl 0x533f1d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x20]
mov word [esi + 6], ax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 0xc], ecx
jmp 0x533f8b
mov eax, dword [ebp - 0x14]
mov byte [eax], 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret
Function at 0x538d59
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x34
mov eax, 0x62c228
call fcn.00429868
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
call fcn.00420965
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.0051c595
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.005031b2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x538daa
test al, 0x10
jne 0x538daa
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.0050a485
mov al, bl
call fcn.00429817
ret
Function at 0x5508c3
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x5508d5
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x55091a
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x55098e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x550997
pop esi
ret

Function at 0x550f51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x550f68
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x582640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0
je 0x582697
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x88]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [edx + 0x88], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
xor eax, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x58272a
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x8c]
add ecx, 0x28
xor edx, edx
push edx
push ecx
call fcn.005ac3f0
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 4], 0
jne 0x5826f8
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
sub ecx, 1
xor esi, esi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x98]
cdq
push edx
push eax
push esi
push ecx
call fcn.004fe180
push edx
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.005ae0e0
add esp, 0x10
mov eax, 7
jmp 0x58274d
mov edx, 0x28
shl edx, 0
add edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov ecx, 0x20
mov edx, dword [ebp - 4]
mov word [edx + 0x1c], cx
mov eax, 1
mov ecx, dword [ebp - 4]
mov word [ecx + 0x1e], ax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
xor eax, eax
pop esi
add esp, 4
cmp ebp, esp
call fcn.0060cfcd
mov esp, ebp
pop ebp
ret
Function at 0x5bd180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [eax], 0
push 0
push 0x14
call fcn.005ac0c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5bd1be
mov eax, 7
jmp 0x5bd296
cmp dword [0x6c407c], 0
je 0x5bd1d8
push 0xc8
call fcn.005a2c60
add esp, 4
test eax, eax
je 0x5bd1ed
xor ecx, ecx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
jmp 0x5bd23d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x5bd360
push 0
push 0
call fcn.005fae0a
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x5bd23d
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
jne 0x5bd28c
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.0060cfcd
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov esi, esp
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov edi, esp
mov ecx, dword [ebp - 8]
call dword [0x6317ac]
cmp edi, esp
call fcn.0060cfcd
call dword [ebp - 8]
add esp, 4
cmp esi, esp
call fcn.0060cfcd
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
add esp, 8
cmp ebp, esp
call fcn.0060cfcd
mov esp, ebp
pop ebp
ret
Function at 0x5f6b70
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f6b80
Function at 0x604ee0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x67b938
push esi
call fcn.0044136a
pop ecx
pop ecx
test eax, eax
jne 0x604f0e
xor al, al
jmp 0x604f8b
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00604c17
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x604f48
push dword [ebp - 0x210]
call fcn.00433013
xor al, al
jmp 0x604f89
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x604f4e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x604f6e
push edx
call fcn.00604e16
pop ecx
test al, al
je 0x604f39
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x604f7c
mov bl, 1
push dword [ebp - 0x210]
call fcn.00433013
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004297f5
leave
ret

Function at 0x60909a
Capabilities:
Read file on windows

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

Function at 0x6090a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00608ecb
Function at 0x60949f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004fe480
mov eax, dword [0x6c2008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00443f73
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x6094e1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x60963d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004fe1c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6da3e8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0044a961
mov ecx, dword [esi*4 + 0x6da3e8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x609636
cmp eax, dword [edi + ecx + 0x24]
jne 0x609636
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x609636
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044a961
add esp, 0x14
test edx, edx
jl 0x609636
jg 0x6095ac
test eax, eax
jb 0x609636
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x609636
jl 0x6095c6
cmp dword [ebp - 0x1008], eax
ja 0x609636
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x6095e4
test ebx, ebx
je 0x60961d
cmp ecx, edi
jae 0x60961d
mov al, byte [ecx]
cmp al, 0xd
jne 0x6095fe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x60960a
cmp byte [ecx + 1], 0xa
jne 0x60960a
inc ecx
jmp 0x60960a
movzx eax, al
movsx eax, byte [eax + 0x6c2950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x6095e4
cmp edx, ebx
jne 0x6095e4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x60963b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004297f5
leave
ret
Function at 0x60c2b7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0060c233
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x60c42f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x60c42f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x60c3de
jg 0x60c310
test eax, eax
je 0x60c3d4
push 1
push 0x1000
call fcn.0043cbe4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x60c336
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x60c3cb
push 0x8000
push ebx
call fcn.004346b4
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x60c362
jg 0x60c35d
cmp ecx, 0x1000
jb 0x60c362
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00447537
add esp, 0x10
cmp eax, 0xffffffff
je 0x60c3a7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x60c35d
jl 0x60c38e
test ecx, ecx
jne 0x60c34f
push dword [ebp - 0xc]
push ebx
call fcn.004346b4
push esi
call fcn.0043c382
add esp, 0xc
xor edi, edi
jmp 0x60c440
cmp byte [edi + 0x24], 0
je 0x60c3be
cmp dword [edi + 0x20], 5
jne 0x60c3be
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x60c3c9
mov edi, dword [edi + 0x18]
jmp 0x60c3cb
xor edi, edi
push esi
call fcn.0043c382
pop ecx
jmp 0x60c440
test ecx, ecx
jg 0x60c3a0
jl 0x60c3de
test eax, eax
jae 0x60c3a0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044a97f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x60c401
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x60c3a0
jmp 0x60c438
push ebx
call fcn.0043fd43
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x60c3a0
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x60c440
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x60c43d
mov edi, dword [edi + 0x18]
jmp 0x60c440
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044a97f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret