joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4061b0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x24
push ebx
xor ebx, ebx
cmp ecx, 0x41
push esi
mov eax, str..PhysicalDrive_d
jl 0x4061ca
mov eax, str.._c:
push ecx
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40624d
mov eax, dword [esp + 0x34]
push edi
lea edx, [esp + 0x34]
push edx
push 0x200
push eax
call fcn.00401360
push 0
lea ecx, [esp + 0x38]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x10]
push edx
shl edi, 9
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, dword [esp + 0xc]
pop edi
jne 0x406246
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
add esp, 0x24
ret 0x10

Function at 0x406260
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x28
push ebx
xor ebx, ebx
cmp ecx, 0x41
push edi
mov eax, str..PhysicalDrive_d
jl 0x40627a
mov eax, str.._c:
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406300
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x44]
push eax
imul esi, eax
push edx
call fcn.00401350
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x40]
push 0
lea edx, [esp + 0x3c]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, dword [esp + 0x38]
pop esi
jne 0x4062f9
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0x28
ret 0x14

Function at 0x406310
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x24
push ebx
xor ebx, ebx
cmp ecx, 0x41
push esi
mov eax, str..PhysicalDrive_d
jl 0x40632a
mov eax, str.._c:
push ecx
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4063ad
mov eax, dword [esp + 0x34]
push edi
lea edx, [esp + 0x34]
push edx
push 0x200
push eax
call fcn.00401360
push 0
lea ecx, [esp + 0x38]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x10]
push edx
shl edi, 9
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [esp + 0xc]
pop edi
jne 0x4063a6
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
add esp, 0x24
ret 0x10
Function at 0x4063c0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x28
push ebx
xor ebx, ebx
cmp ecx, 0x41
push edi
mov eax, str..PhysicalDrive_d
jl 0x4063da
mov eax, str.._c:
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406460
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x44]
push eax
imul esi, eax
push edx
call fcn.00401350
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x40]
push 0
lea edx, [esp + 0x3c]
push edx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [esp + 0x38]
pop esi
jne 0x406459
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop ebx
add esp, 0x28
ret 0x14

Function at 0x406470
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
cmp ecx, 0x41
push ebp
push edi
mov edi, eax
mov eax, str..PhysicalDrive_d
jl 0x406486
mov eax, str.._c:
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406532
mov eax, dword [esp + 0x34]
push ebx
lea edx, [esp + 0xc]
push edx
push 0x200
push eax
call fcn.00401360
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x29
push 0xfe00
call fcn.00401170
mov ebx, eax
test ebx, ebx
je 0x40652a
push 0xfe00
push ebx
call fcn.00401a50
test edi, edi
jle 0x406524
push esi
lea ecx, [ecx]
push 0x7f
push edi
call fcn.00401380
push 0
lea edx, [esp + 0x18]
push edx
mov esi, eax
shl eax, 9
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, esi
test edi, edi
jg 0x406500
pop esi
push ebx
call fcn.004029d0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop ebp
add esp, 0x28
ret 4
Function at 0x4068a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x630
push ebx
push ebp
mov ebx, eax
push esi
lea eax, [esp + 0x24]
push eax
mov eax, edi
mov esi, ecx
xor ebp, ebp
call fcn.00406130
test eax, eax
je 0x406afc
lea ecx, [esp + 0x10]
push ecx
push 0x409700
push 1
call fcn.00401b30
mov ebp, eax
test ebp, ebp
je 0x4069da
push 0x600
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea edx, [esp + 0x44]
push edx
call fcn.00401a00
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ax, word [esp + 0x34]
mov cx, word [esp + 0x30]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x5c], esi
mov word [esp + 0x58], ax
mov word [esp + 0x5a], cx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
push 0x10
lea eax, [esp + 0x1c]
push eax
call fcn.00401990
mov ecx, esi
neg ecx
sbb cl, cl
and cl, 0xf0
test esi, esi
setne dl
mov dword [esp + 0x7f], eax
mov eax, dword [esp + 0x644]
mov byte [esp + 0x7c], cl
lea edx, [edx*8 + 0xf0]
mov byte [esp + 0x51], dl
test eax, eax
je 0x406969
push 0xb
push eax
lea eax, [esp + 0x8b]
push eax
call fcn.00401a00
mov eax, ebx
mov ecx, 1
shr eax, 0x15
cmp eax, ecx
jle 0x40697d
add ecx, ecx
cmp ecx, eax
jl 0x406977
push ecx
push 0x40
call fcn.00401380
movzx ecx, al
mov byte [esp + 0x49], al
xor edx, edx
mov eax, ebx
div ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xc], ecx
lea eax, [eax*4 + 0x1fc]
shr eax, 9
lea edx, [eax + eax]
mov dword [esp + 0x60], eax
mov eax, ebx
sub eax, edx
movzx edx, word [esp + 0x4a]
sub eax, edx
sub eax, ecx
xor edx, edx
div ecx
add eax, 2
cmp eax, 0xfff6
jge 0x4069e8
mov eax, dword [esp + 0x640]
push 0
push str.FAT328
push eax
call fcn.00401c10
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x630
ret 0xc
push 3
lea ecx, [esp + 0x40]
push ecx
push esi
push edi
call fcn.004061b0
push 3
lea edx, [esp + 0x40]
push edx
add esi, 6
push esi
push edi
call fcn.004061b0
mov ebx, dword [esp + 0x60]
push 0x200
lea eax, [esp + 0x40]
push eax
add esi, 0x1a
dec ebx
call fcn.00401a50
mov ecx, dword [esp + 0x648]
mov edx, dword [esp + 0x640]
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x409724
mov eax, 0xfffffff
push ecx
push edx
mov dword [esp + 0x48], 0xffffff8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call ebp
push 1
lea eax, [esp + 0x40]
push eax
push esi
push edi
call fcn.004061b0
inc esi
push esi
mov eax, ebx
mov ecx, edi
call fcn.00406470
mov ecx, dword [esp + 0x648]
mov edx, dword [esp + 0x640]
push 0x409704
push ecx
push edx
add esi, ebx
call ebp
push 1
lea eax, [esp + 0x40]
push eax
push esi
push edi
call fcn.004061b0
inc esi
push esi
mov eax, ebx
mov ecx, edi
call fcn.00406470
mov eax, dword [esp + 0x644]
add esi, ebx
test eax, eax
je 0x406ac8
push 0x20
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00401a00
push 1
lea edx, [esp + 0x40]
push edx
push esi
push edi
call fcn.004061b0
inc esi
dec dword [esp + 0xc]
mov eax, dword [esp + 0xc]
push esi
mov ecx, edi
call fcn.00406470
mov eax, dword [esp + 0x648]
mov ecx, dword [esp + 0x640]
push 0x40b1c4
push eax
push ecx
call ebp
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x630
ret 0xc
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x630
ret 0xc
Function at 0x406c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push esi
push edi
push 0x2b
push 0x1104
xor esi, esi
call fcn.00401170
mov edi, eax
test edi, edi
je 0x406d40
push ebx
push ebp
lea eax, [esp + 0x10]
push eax
push 0x409700
push 9
lea ebx, [edi + 0x104]
call fcn.00401b30
mov ebp, eax
test ebp, ebp
je 0x406d3e
mov ecx, dword [esp + 0x10]
push ecx
push 0xfff
call fcn.00401380
mov esi, eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push ebx
call fcn.00401a00
push ebp
mov byte [esi + ebx], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.UUID
push ebx
mov esi, ebx
xor ebp, ebp
call fcn.00401920
test eax, eax
jl 0x406d07
mov edx, dword [esp + 0x24]
mov ecx, edx
and ecx, 0xffff
shr edx, 0x10
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edx
jmp 0x406ccf
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push edx
push str._04X__04X
push edi
lea esi, [esi + eax + 5]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push esi
call fcn.00401a00
push str.UUID
push esi
inc ebp
call fcn.00401920
test eax, eax
jge 0x406cc7
test ebp, ebp
jne 0x406d18
mov edx, dword [esp + 0x1c]
push 0
push str.syslinux.cfg
push edx
call fcn.00401c10
mov eax, dword [esp + 0x20]
push eax
push str._c:SYSLINUX.CFG
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add esp, 0xc
push ecx
push ebx
push edx
call fcn.00405fc0
mov esi, eax
pop ebp
pop ebx
push edi
call fcn.004029d0
pop edi
mov eax, esi
pop esi
add esp, 8
ret 0xc

Function at 0x406d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push edi
push 0x2c
push 0x30c
xor ebx, ebx
call fcn.00401170
mov edi, eax
test edi, edi
je 0x406dc0
push esi
lea eax, [esp + 0xc]
push eax
push 0x409700
push 8
call fcn.00401b30
mov esi, eax
test esi, esi
je 0x406dbf
mov ecx, dword [esp + 0x18]
push ecx
push str._c:LIVEOSLDLINUX.SYS
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call fcn.00402a80
mov edx, dword [esp + 0xc]
push edx
push esi
lea ebx, [edi + 0x104]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00405fc0
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
push edi
call fcn.004029d0
pop edi
mov eax, ebx
pop ebx
pop ecx
ret 8
Function at 0x406dd0
Capabilities:
Manipulate boot configuration
Set file attributes

Disassembly:
sub esp, 8
push ebx
push edi
push 0x2d
xor ebx, ebx
push 0x30c
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call fcn.00401170
mov edi, eax
cmp edi, ebx
je 0x406f33
mov eax, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push eax
push str._c:BOOT.INI
push edi
lea esi, [edi + 0x104]
call ebp
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push edi
call fcn.00402cc0
mov ebx, eax
test ebx, ebx
jne 0x406e45
push edi
push str._s
push esi
call ebp
mov ecx, dword [esp + 0x28]
add esp, 0xc
push ebx
push esi
push ecx
call fcn.00401c10
jmp 0x406f31
push 0x208
push esi
push ebx
call fcn.00402380
test eax, eax
je 0x406e70
push esi
lea edx, [esp + 0x14]
push edx
call fcn.00402290
push 0x208
push esi
push ebx
call fcn.00402380
test eax, eax
jne 0x406e55
push ebx
call fcn.00402d70
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x406ea2
mov edi, edi
mov eax, dword [esp + 0x24]
push eax
lea ecx, [ebx + 8]
push ecx
call fcn.00401430
test eax, eax
je 0x406e9a
mov ebx, dword [ebx]
test ebx, ebx
jne 0x406e80
jmp 0x406ea2
test ebx, ebx
jne 0x406f20
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
push str._s__s_
push esi
call ebp
add esp, 0x10
push esi
lea ecx, [esp + 0x14]
push ecx
call fcn.00402290
push 0
push edi
call dword [sym.imp.KERNEL32.dll__lcreat]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406eed
push edi
push 0x409920
push esi
call ebp
mov edx, dword [esp + 0x28]
add esp, 0xc
push 0
push esi
push edx
call fcn.00401c10
jmp 0x406f31
mov esi, dword [esp + 0x10]
test esi, esi
je 0x406f19
cmp byte [esi + 8], 0
lea ecx, [esi + 8]
jne 0x406f0a
mov eax, dword [esi]
test eax, eax
je 0x406f13
cmp byte [eax + 8], 0x5b
jne 0x406f13
push 1
push ecx
push ebx
call fcn.00402480
mov esi, dword [esi]
test esi, esi
jne 0x406ef5
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
push 7
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
pop ebp
push edi
call fcn.004029d0
lea eax, [esp + 8]
push eax
call fcn.00402c90
mov eax, dword [esp + 0xc]
pop edi
pop ebx
add esp, 8
ret 0x10
Function at 0x407d50
Capabilities:
Create thread

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push 0
push 0
push 0
push 0
mov dword [esp + 0x18], 0xffffffff
mov dword [0x40b4f4], 0
call esi
push 0
push 0
push 0
push 0
mov dword [0x40bb10], eax
call esi
push 0x39
push 0x618
mov dword [0x40b1dc], eax
call fcn.00401170
mov esi, eax
test esi, esi
je 0x407ee0
push 0x3a
push 0x618
call fcn.00401170
mov edi, eax
test edi, edi
je 0x407ee0
mov eax, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push edi
call ebp
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [edi + 0x30c]
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push 0
push edi
push 0x407d20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea ecx, [esp + 0xc]
mov edi, eax
push ecx
push edi
call ebp
cmp dword [esp + 0xc], 0x103
jne 0x407ec6
lea esp, [esp]
push ebx
call fcn.004024f0
test eax, eax
jne 0x407e36
push 4
push 0x409ce8
push ebx
call fcn.00401c10
cmp eax, 6
jne 0x407e36
mov dword [0x40b4f4], 1
mov edx, dword [0x40bb10]
push 0x12c
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407e6f
mov eax, dword [0x40b1d4]
push eax
push 0x40b4f8
push ebx
call fcn.00401c10
mov ecx, dword [0x40b1dc]
push ecx
mov dword [0x40b1d4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x40b1d0]
mov eax, dword [0x40b1e0]
push edx
push 0x64
push eax
call fcn.00401300
mov ecx, dword [0x40b1e4]
mov edx, dword [0x40b1d8]
push eax
push 0x40b1e8
push ecx
push edx
push str._d__d__s___d___
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push esi
push 0x66
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [esp + 0xc]
push eax
push edi
call ebp
cmp dword [esp + 0xc], 0x103
je 0x407e10
push 0x40b1c4
push 0x66
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
pop ebp
jmp 0x407ee6
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x40bb10]
push ecx
call edi
mov edx, dword [0x40b1dc]
push edx
call edi
push esi
call fcn.004029d0
xor eax, eax
cmp dword [esp + 8], eax
pop edi
sete al
pop esi
add esp, 8
ret 8
Function at 0x407f10
Capabilities:
Get disk information

Disassembly:
sub esp, 0x9c
mov eax, dword [esp + 0xa0]
push ebx
push ebp
push esi
push edi
push 0x64
push eax
call fcn.004025f0
push 0x409d0c
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], 0x41
mov edi, edi
test byte [esp + 0x10], 1
je 0x408078
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
cmp edi, 3
je 0x407f76
cmp edi, 2
jne 0x408078
movsx eax, byte [esp + 0x1c]
cmp eax, 0x41
mov dword [esp + 0x14], 0
jl 0x407fa6
lea ecx, [esp + 0x14]
push ecx
push 0
lea ebx, [esp + 0x20]
call fcn.00406060
test eax, eax
jl 0x408078
mov ebx, dword [esp + 0x14]
jmp 0x407fc6
lea edx, [esp + 0x44]
push edx
call fcn.00406130
test eax, eax
je 0x408078
mov ebx, dword [esp + 0x54]
imul ebx, dword [esp + 0x50]
imul ebx, dword [esp + 0x44]
test ebx, ebx
je 0x408078
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x5c]
push edx
call fcn.00401ac0
push 0x409d08
lea eax, [esp + 0x60]
push eax
call ebp
lea ecx, [esp + 0x5c]
push ecx
call fcn.00401970
push 0
push 0
push 0
push 0
push 0
push 0x104
mov esi, eax
push esi
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp byte [esi], 0
jne 0x408037
mov eax, 0x409d00
cmp edi, 3
je 0x40802f
mov eax, 0x409cf8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x409cf4
lea eax, [esp + 0x60]
push eax
call ebp
lea ecx, [esp + 0x5c]
push ecx
call fcn.00401970
mov edi, eax
mov eax, ebx
call fcn.00405f30
push 0x29
lea edx, [esp + 0x60]
push edx
call fcn.004012e0
mov ecx, dword [esp + 0xb0]
push 0
lea eax, [esp + 0x60]
push eax
push 0x64
push ecx
call fcn.00402610
mov al, byte [esp + 0x1c]
sar dword [esp + 0x10], 1
inc al
cmp al, 0x5a
mov byte [esp + 0x1c], al
jle 0x407f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 4
Function at 0x401700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x42200c]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword fs:[0x2c]
push esi
push edi
mov dword [esp + 0x30], 0x2e434b5a
mov ecx, dword [eax]
mov eax, dword [0x4bf0fc]
cmp eax, dword [ecx + 4]
jle 0x40177a
push 0x4bf0fc
call fcn.004037a9
add esp, 4
cmp dword [0x4bf0fc], 0xffffffff
jne 0x40177a
movaps xmm0, xmmword [0x41fab0]
mov eax, dword [esp + 0x30]
push 0x4190c0
movups xmmword [0x4bee64], xmm0
mov dword [0x4bee74], eax
call fcn.00403aeb
add esp, 4
push 0x4bf0fc
call fcn.0040375f
add esp, 4
cmp byte [0x4bee77], 0
je 0x4017ae
movups xmm0, xmmword [0x4bee64]
mov eax, 0x10
movaps xmm1, xmmword [str.................kcrm_K_ZmA_ZA]
pxor xmm1, xmm0
movups xmmword [0x4bee64], xmm1
xor byte [eax + 0x4bee64], 0x2e
inc eax
cmp eax, 0x14
jb 0x4017a1
push 1
mov edx, 0x4bee64
lea ecx, [esp + 0x24]
call fcn.004011e0
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x34]
add esp, 4
cmp dword [esp + 0x34], 0x10
cmovae ecx, edx
mov dword [esp + 0x1c], ecx
cmp eax, 9
jb 0x40186e
add eax, 0xfffffff8
add eax, ecx
mov dword [esp + 0x18], eax
sub eax, ecx
push eax
push 0x46
push ecx
call fcn.00418ed0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40186a
nop
mov ecx, edi
mov edx, str.Fail_safe
mov esi, 5
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x401821
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401810
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x401848
cmp esi, 0xfffffffd
je 0x401844
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x401848
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x401848
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x401848
xor eax, eax
jmp 0x40184d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4018a1
mov eax, dword [esp + 0x18]
inc edi
sub eax, edi
push eax
push 0x46
push edi
call fcn.00418ed0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x401800
mov edx, dword [esp + 0x20]
or edi, 0xffffffff
mov ecx, dword [esp + 0x34]
cmp edi, 0xffffffff
setne al
mov byte [esp + 0x17], al
cmp ecx, 0x10
jb 0x4018b9
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4018ab
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4018ca
jmp 0x4018ab
sub edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x401871
push ecx
push edx
call fcn.00403b00
mov al, byte [esp + 0x1f]
add esp, 8
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.00403689
mov esp, ebp
pop ebp
ret
call fcn.00409209
int3
Function at 0x4018d0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x5c
mov eax, dword [0x42200c]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword fs:[0x2c]
movaps xmm0, xmmword [0x41fa00]
push esi
movups xmmword [esp + 0x10], xmm0
mov esi, dword [eax]
movaps xmm0, xmmword [0x41f9d0]
mov eax, dword [0x4bee60]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x40], 0xe535a42
movaps xmm0, xmmword [0x41fa50]
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 0x4b484f5d
mov dword [esp + 0x48], 0x5a41414c
mov byte [esp + 0x4c], 0x2e
cmp eax, dword [esi + 4]
jle 0x40197a
push 0x4bee60
call fcn.004037a9
add esp, 4
cmp dword [0x4bee60], 0xffffffff
jne 0x40197a
lea eax, [esp + 0x10]
mov ecx, 0x4beea4
push eax
call fcn.00402fe0
push 0x419100
call fcn.00403aeb
add esp, 4
push 0x4bee60
call fcn.0040375f
add esp, 4
cmp byte [0x4beee0], 0
je 0x4019bd
movaps xmm1, xmmword [str.................kcrm_K_ZmA_ZA]
xor eax, eax
nop dword [eax]
movups xmm0, xmmword [eax + 0x4beea4]
pxor xmm0, xmm1
movups xmmword [eax + 0x4beea4], xmm0
add eax, 0x10
cmp eax, 0x30
jb 0x401990
cmp eax, 0x3d
jae 0x4019bd
nop
xor byte [eax + 0x4beea4], 0x2e
inc eax
cmp eax, 0x3d
jb 0x4019b0
push 1
mov edx, 0x4beea4
lea ecx, [esp + 0x14]
call fcn.004011e0
mov edx, dword [esp + 0x28]
add esp, 4
cmp edx, 0x10
jb 0x401a06
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4019fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b14
push edx
push ecx
call fcn.00403b00
add esp, 8
mov eax, dword [0x4bee9c]
mov dword [esp + 0x30], 0x4c4b484f
mov dword [esp + 0x34], 0x2e5a4141
cmp eax, dword [esi + 4]
jle 0x401a7d
push 0x4bee9c
call fcn.004037a9
add esp, 4
cmp dword [0x4bee9c], 0xffffffff
jne 0x401a7d
movaps xmm0, xmmword [0x41fa10]
movups xmmword [0x4bf100], xmm0
push 0x4190e0
movaps xmm0, xmmword [0x41faa0]
movups xmmword [0x4bf110], xmm0
movq xmm0, qword [esp + 0x34]
movq qword [0x4bf120], xmm0
call fcn.00403aeb
add esp, 4
push 0x4bee9c
call fcn.0040375f
add esp, 4
cmp byte [0x4bf127], 0
je 0x401abd
movaps xmm1, xmmword [str.................kcrm_K_ZmA_ZA]
xor eax, eax
nop
movups xmm0, xmmword [eax + 0x4bf100]
pxor xmm0, xmm1
movups xmmword [eax + 0x4bf100], xmm0
add eax, 0x10
cmp eax, 0x20
jb 0x401a90
cmp eax, 0x28
jae 0x401abd
nop
xor byte [eax + 0x4bf100], 0x2e
inc eax
cmp eax, 0x28
jb 0x401ab0
push 1
mov edx, 0x4bf100
lea ecx, [esp + 0x14]
call fcn.004011e0
mov edx, dword [esp + 0x28]
add esp, 4
cmp edx, 0x10
jb 0x401b02
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401af8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401b14
push edx
push ecx
call fcn.00403b00
add esp, 8
mov ecx, dword [esp + 0x5c]
mov al, 1
pop esi
xor ecx, esp
call fcn.00403689
mov esp, ebp
pop ebp
ret
call fcn.00409209
int3
Function at 0x402b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41906b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x42200c]
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
call fcn.00401700
test al, al
jne 0x402bc1
call fcn.00401b20
jmp 0x402caa
call fcn.004018d0
xor edx, edx
nop dword [eax + eax]
mov eax, edx
and eax, 3
jmp dword [eax*4 + 0x402fd0]
xor eax, eax
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.00403689
mov esp, ebp
pop ebp
ret