joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bde7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push edi
jne 0x44be19
mov ax, word [esi]
mov word [ebp - 0xc], ax
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x5c
mov word [ebp - 6], bx
mov dword [ebp + 0x10], eax
push 0x209
lea ecx, [ebp - 4]
call fcn.0043fdb8
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 8
push edi
push str.Device_
mov word [eax], bx
call fcn.0043af58
add esp, 0xc
test al, al
jne 0x44be72
push 0xc
push edi
push str.DosDevices_
call fcn.0043af58
add esp, 0xc
test al, al
jne 0x44be72
cmp word [edi], bx
je 0x44be76
cmp word [edi + 2], bx
je 0x44be76
push 0x3a
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x44be76
or dword [ebp + 0x14], 1
push 0xb
push edi
push 0x4b6d2c
call fcn.0043af58
mov ebx, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
add esp, 0xc
test al, al
je 0x44be9a
and dword [ebp + 0x14], 0xfffffffe
cmp byte [ebp + 0x18], 0
jne 0x44bec1
cmp byte [ebp + 0x18], 0
je 0x44beac
xor eax, eax
mov ax, word [esi]
push eax
call fcn.0043d3e8
pop ecx
push edi
push esi
push dword [ebp + 0x14]
call ebx
mov esi, eax
test esi, esi
jne 0x44bed2
cmp byte [ebp + 0x18], al
jl 0x44bf1e
mov byte [ebp + 0x18], al
push 0x208
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x44befa
cmp byte [ebp + 0x18], 0
jle 0x44bf1e
push 0x208
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x44bf1e
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
or eax, 0xe
push eax
call ebx
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
cmp byte [ebp + 0x18], 0
mov esi, eax
jl 0x44bf1e
test esi, esi
jne 0x44bf1e
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0x18], 0xff
jmp 0x44be9a
lea ecx, [ebp - 4]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44c9c3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov esi, 0x200
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0049a8f0
and dword [ebp - 0xc], 0
push esi
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
call fcn.0043d51a
cmp eax, esi
pop ecx
pop ecx
jl 0x44c9ff
mov esi, eax
mov dword [ebp - 8], esi
jmp 0x44ca02
mov dword [ebp - 8], esi
lea eax, [esi + esi + 0x200]
push eax
lea ecx, [ebp - 4]
call fcn.0043fc43
mov edi, dword [ebp - 4]
push 0
push dword [ebp + 0x10]
add edi, 0x200
push dword [ebp + 0xc]
and edi, 0xfffffe00
push dword [ebp + 8]
lea ebx, [edi + esi]
call fcn.0043ae64
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x44cadd
cmp edx, dword [ebp + 0x10]
jne 0x44cadd
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44cadd
push esi
push ebx
push edi
call fcn.00413203
mov esi, dword [ebp + 0x18]
add esp, 0xc
cmp esi, 1
jne 0x44ca85
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x1ce]
push eax
call fcn.00413203
add esp, 0xc
dec esi
push 0
push dword [ebp + 0x10]
neg esi
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xffff55ab
add esi, 0xaa55
mov word [ebx + 0x1fe], si
call fcn.0043ae64
add esp, 0x10
cmp eax, dword [ebp + 0xc]
jne 0x44cadd
cmp edx, dword [ebp + 0x10]
jne 0x44cadd
push dword [ebp - 8]
push ebx
push edi
call fcn.0044006c
add esp, 0xc
test eax, eax
jne 0x44cadd
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 4]
call fcn.00439cfd
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x44cfb9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.0043fddf
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0043fdb8
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x44d08e
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x44d08e
and dword [ebp - 4], 0xfffffffc
jmp 0x44d08e
test edx, edx
jl 0x44d093
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x44d08b
cmp dword [ebp - 8], 0
je 0x44d05d
movsx ax, cl
push eax
call fcn.00499e9a
test eax, eax
pop ecx
je 0x44d08b
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x44d071
mov ax, word [ebp + 0xc]
test ax, ax
je 0x44d071
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x44d08b
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x44d023
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x44d2a8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
and word [eax], 0
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x44d2eb
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x44d2e4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00448401
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret
Function at 0x44db21
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
movzx esi, word [ebp + 0x1c]
lea eax, [esi - 1]
cdq
push edi
not eax
not edx
push 0xa0000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.0043fc43
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
add edi, 0x20000
xor ebx, ebx
and edi, 0xfffe0000
cmp dword [ebp + 0x1c], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
jne 0x44db9c
mov dword [ebp + 0x18], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp + 0x14], ebx
jl 0x44dc8f
jle 0x44dc86
cmp dword [ebp + 0x18], ebx
jne 0x44dbc2
mov eax, dword [ebp - 8]
cdq
cmp dword [ebp + 0x14], edx
jl 0x44dbc2
jg 0x44db98
cmp dword [ebp + 0x10], eax
jbe 0x44dbc2
xor cl, cl
jmp 0x44dbc4
mov eax, dword [ebp + 0x18]
cdq
add eax, ecx
adc edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, esi
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0049cbd0
mov dword [ebp - 8], eax
jmp 0x44db74
mov cl, 1
cmp dword [ebp + 0x14], ebx
jl 0x44dbdb
jg 0x44dbd4
cmp dword [ebp + 0x10], 0x10000000
jbe 0x44dbdb
mov esi, 0x10000000
jmp 0x44dbde
mov esi, dword [ebp + 0x10]
cmp cl, bl
mov edx, dword [ebp + 0xc]
mov eax, esi
je 0x44dc52
movzx esi, word [ebp + 0x1c]
sub esi, dword [ebp + 0x18]
cmp ebx, dword [ebp + 0x14]
jl 0x44dbfd
jg 0x44dbfa
cmp esi, dword [ebp + 0x10]
jbe 0x44dbfd
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0043ae64
add esp, 0x10
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [ebp + 0x1c]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
add eax, edi
push eax
mov dword [ebp - 0x10], edi
call fcn.00413203
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0043ae64
movzx eax, word [ebp + 0x1c]
add esp, 0x1c
mov edx, edi
jmp 0x44dc5c
cmp dword [ebp + 0x1c], ebx
je 0x44dc5c
and esi, dword [ebp - 0x28]
mov eax, esi
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], ebx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x44db83
jl 0x44dc8f
cmp dword [ebp + 0x10], ebx
ja 0x44db83
lea ecx, [ebp - 0xc]
call fcn.00439cfd
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ed7d
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x92], 0
jne 0x44ed95
test byte [ecx + 9], 0xf
jne 0x44ed95
pop ebp
jmp fcn.0044ec85
pop ebp
jmp fcn.0044dca2

Function at 0x44ed9b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x44ee5e
cmp esi, edi
je 0x44edc1
mov dword [ebp - 4], esi
jmp 0x44edc7
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp word [eax], di
mov esi, eax
je 0x44ee57
push ebx
mov ebx, esi
jmp 0x44eddd
cmp ax, 0x3d
je 0x44ede7
inc esi
inc esi
mov ax, word [esi]
cmp ax, di
jne 0x44edd7
cmp dword [ebp + 0xc], edi
je 0x44ee04
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
push 0xffffffffffffffff
sar eax, 1
push eax
lea eax, [esi + 2]
push eax
push ebx
call fcn.00413db1
jmp 0x44ee47
mov edi, esi
sub edi, ebx
sar edi, 1
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.004483b6
mov ecx, dword [ebp - 4]
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 8]
call fcn.0040fd4e
test eax, eax
jne 0x44ee39
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push edi
lea eax, [esi + 2]
push eax
push ebx
call fcn.00413db1
lea ecx, [ebp - 8]
call fcn.00439cfd
xor edi, edi
jmp 0x44ee47
inc esi
inc esi
cmp word [esi], di
jne 0x44ee45
inc esi
inc esi
cmp word [esi], di
jne 0x44edd3
mov eax, dword [ebp - 0xc]
pop ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop edi
pop esi
leave
ret
Function at 0x44f176
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00447c10
cmp dword [ebp + 8], 0
pop ecx
mov ebx, eax
jge 0x44f1f0
and word [ebp - 0xc], 0
and word [ebp - 2], 0
lea eax, [ebp - 8]
push eax
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x2a
mov word [ebp - 0x14], 0x20
mov word [ebp - 0x12], si
mov word [ebp - 0x10], 0x3a
mov word [ebp - 0xe], 0x2c
mov word [ebp - 8], si
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x44f1e0
cmp ebx, 2
je 0x44f1f0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4c9048
call fcn.0044bf2d
pop ebx
leave
ret
Function at 0x44fd56
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
xor edi, edi
cmp ebx, esi
mov dword [ebp - 4], esi
jne 0x44fdff
cmp dword [ebp + 0xc], esi
jne 0x44fd80
mov eax, 0x80070057
jmp 0x44fef5
cmp dword [0x4c93ec], esi
jle 0x44fef3
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44fdc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x44fef5
jmp 0x44ff1c
push esi
lea eax, [ebp + 8]
push eax
push dword [0x4c93ec]
push dword [0x4c9be8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4c9be8]
cmp eax, esi
mov dword [0x4c93ec], esi
je 0x44fdf4
call fcn.00439c48
mov dword [0x4c9be8], esi
jmp 0x44fef3
cmp dword [ebp + 0x10], esi
push esi
je 0x44ff0e
push dword [ebp + 0x10]
call fcn.004146ff
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x44ff1c
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
sub edi, dword [ebx]
sub eax, dword [ebx + 4]
cmp edi, esi
mov dword [ebp - 0x10], eax
jle 0x44fefa
cmp eax, esi
jle 0x44fefa
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [0x4c8e90]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [0x4c8e94]
cmp edi, dword [ebp - 8]
jne 0x44fe6d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x44fefa
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.0043f69c
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x44ff1c
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp + 8], esi
call dword [0x4c8e6c]
push 2
push dword [ebp + 8]
call dword [0x4c8ea0]
push dword [ebp - 0x10]
push edi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x4c8e70]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0044fa0f
add esp, 0xc
cmp ebx, esi
mov edi, eax
je 0x44fee5
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 4], esi
je 0x44fef3
push dword [ebp - 4]
call dword [0x4c8e68]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push 1
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0044fa0f
add esp, 0xc
mov edi, eax
jmp 0x44fee5
push ebx
call fcn.0043f69c
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
jne 0x44fecb
xor eax, eax
inc eax
jmp 0x44fef5
Function at 0x461e1f
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00441f45
lea eax, [ebp + 8]
push eax
call fcn.00439c95
pop ecx
push 5
lea ecx, [ebp - 0xc]
call fcn.0043fdb8
push 0x14
lea ecx, [ebp - 4]
call fcn.0043fdb8
push 2
lea eax, [ebp + 8]
push eax
xor edi, edi
push 0x4b8140
mov dword [ebp - 8], edi
call fcn.00441bc4
add esp, 0xc
push 1
push 0x2c
pop esi
movzx ebx, al
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00451235
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call fcn.004429d8
mov eax, dword [ebp + 8]
add esp, 0xc
cmp word [eax], si
jne 0x461eb3
add dword [ebp + 8], 2
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00451235
push edi
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004429d8
add esp, 0xc
mov eax, dword [ebp + 8]
cmp word [eax], si
jne 0x461edc
add dword [ebp + 8], 2
push esi
lea eax, [ebp - 8]
push eax
push 1
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00451235
push eax
call fcn.00442c25
add esp, 0xc
mov eax, dword [ebp - 0xc]
cmp word [eax], di
jne 0x461eee
mov esi, 0x80070057
jmp 0x461fc5
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 4]
jne 0x461eff
cmp ebx, edi
jne 0x461eff
cmp word [eax], di
je 0x461ee4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.0043fddf
mov eax, dword [ebp - 4]
push eax
lea esi, [eax + esi*2 + 8]
mov dword [ebp - 0x10], edi
call fcn.00411f27
push dword [ebp - 0xc]
mov edi, eax
call fcn.00411f27
pop ecx
pop ecx
xor ecx, ecx
cmp ebx, ecx
mov dword [ebp + 8], eax
jne 0x461f4c
cmp dword [ebp - 8], ecx
jne 0x461f4c
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
jmp 0x461f6f
cmp dword [ebp - 8], 2
je 0x461f77
cmp ebx, ecx
jne 0x461f77
push edi
call fcn.00499edd
neg eax
sbb eax, eax
neg eax
push eax
push edi
push dword [ebp + 8]
call fcn.0043ddc5
add esp, 0x10
test eax, eax
je 0x461fbd
xor eax, eax
jmp 0x461fc3
cmp word [edi], cx
jne 0x461f85
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x461f6f
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 8]
push eax
push 0x208
push edi
call fcn.004404f6
push esi
push dword [ebp + 8]
mov word [esi], 0x5c
mov word [esi + 2], 0x3f
mov word [esi + 4], 0x3f
mov word [esi + 6], 0x5c
call fcn.0043dcc1
add esp, 0x18
jmp 0x461f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00439cfd
lea ecx, [ebp - 0xc]
call fcn.00439cfd
lea ecx, [ebp - 0x1c]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x46c433
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [ebp + 0x24]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov ebx, eax
and eax, 2
and ebx, 1
mov dword [ebp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0xb4
cmp esi, eax
jle 0x46c463
mov esi, eax
xor eax, eax
xor edx, edx
cmp dword [ebp + 0x24], edx
mov ecx, 0xba
lea edi, [ebp - 0x2f8]
mov dword [ebp - 0x2fc], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 0x288], 0x40
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xcc], edx
je 0x46c4b7
mov dword [ebp - 0xcc], 0x40000000
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2e4], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x25c]
push eax
call fcn.00413203
and word [ebp + esi*2 - 0x25c], 0
add esp, 0xc
mov esi, 0x4c97dc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4c8bd0
push 0x10000
lea eax, [ebp - 0x2fc]
push eax
push 0x46ba56
push 0x20000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [ebp + 0x1c], eax
je 0x46c547
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x24], 0x270f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
jne 0x46c547
push 0
call edi
dec dword [ebp + 0x24]
jns 0x46c522
jmp 0x46c53c
push 1
call edi
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 0x260], eax
je 0x46c538
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
je 0x46c57d
cmp esi, edi
je 0x46c588
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0x14]
mov ecx, 0x4c9048
call fcn.00414c28
cmp esi, edi
je 0x46c588
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0xcc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f969
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4c9c14
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
call fcn.0045024b
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [esp + 0x20], ebx
je 0x46f9ae
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46f9ae
push 0
push edi
inc ebx
call ebp
push dword [esp + 0x1c]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
test ebx, ebx
je 0x46f9c2
push 5
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x20], 0
je 0x46f9da
push 1
push edi
call fcn.00499062
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x48e42b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 0x40
push edi
jae 0x48e43e
xor eax, eax
jmp 0x48e5f4
push ebx
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x5a4d
je 0x48e450
xor eax, eax
jmp 0x48e5f3
push esi
mov esi, dword [ebx + 0x3c]
lea eax, [esi + 0xf8]
cmp dword [ebp + 0xc], eax
jl 0x48e5f0
add esi, ebx
cmp dword [esi], 0x4550
jne 0x48e5f0
mov ax, word [esi + 0x16]
test ah, 0x20
jne 0x48e5f0
test al, 2
je 0x48e5f0
cmp word [esi + 0x14], 0xe0
jne 0x48e5f0
lea edi, [esi + 0xf8]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0048b0ac
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test eax, eax
mov dword [ecx], eax
je 0x48e5f0
mov ecx, dword [esi + 0x54]
mov dword [ebp + 0xc], ecx
movzx ecx, word [esi + 6]
test ecx, ecx
jle 0x48e4d8
lea edx, [edi + 0x14]
mov esi, dword [edx]
test esi, esi
je 0x48e4d2
cmp esi, dword [ebp + 0xc]
jae 0x48e4d2
mov dword [ebp + 0xc], esi
add edx, 0x28
dec ecx
jne 0x48e4c4
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x40
push 0x1000
push eax
push ecx
call esi
test eax, eax
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
jne 0x48e513
mov eax, dword [ebp + 0x1c]
push 0x40
push 0x1000
push dword [eax]
push 0
call esi
test eax, eax
mov dword [edi], eax
je 0x48e5f0
push dword [ebp + 0xc]
push ebx
push dword [edi]
call fcn.004131b9
mov eax, dword [edi]
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp + 0x14]
add eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
add eax, 0xf8
mov dword [edx], eax
mov ecx, dword [ecx]
mov ebx, dword [ecx + 0x38]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x54]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
add esp, 0xc
mov esi, eax
imul esi, ebx
add esi, dword [edi]
xor eax, eax
cmp word [ecx + 6], ax
mov dword [ebp - 4], eax
jbe 0x48e5eb
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x48e576
mov esi, dword [edi]
add esi, ecx
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x48e5ba
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 8]
push ecx
push eax
push esi
call fcn.004131b9
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, ebx
mov ecx, dword [eax + 0x10]
add esp, 0xc
cmp dword [eax + 8], ecx
jae 0x48e5ba
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
lea eax, [ecx + eax - 1]
xor edx, edx
div dword [ebp - 8]
imul eax, dword [ebp - 8]
jmp 0x48e5d0
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + 8]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
imul eax, ecx
add dword [ebp + 0xc], 0x28
add esi, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x48e566
xor eax, eax
inc eax
jmp 0x48e5f2
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x499e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x499eb8
cmp ax, 0x42
je 0x499eb8
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x49a04c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
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_CreateProcessW]
pop ebp
ret