joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ad52980
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x6ad52b44
pushal
mov esi, 0x6ad50015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x6ad529aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6ad529b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6ad529a0
mov eax, 1
add ebx, ebx
jne 0x6ad529c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6ad529b8
jne 0x6ad529d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6ad529b8
xor ecx, ecx
sub eax, 3
jb 0x6ad529e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6ad52a5a
mov ebp, eax
add ebx, ebx
jne 0x6ad529f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x6ad52a00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x6ad52a24
inc ecx
add ebx, ebx
jne 0x6ad52a10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6ad52a05
jne 0x6ad52a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6ad52a05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6ad52a44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6ad52a35
jmp 0x6ad529a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6ad52a44
add edi, ecx
jmp 0x6ad529a6
pop esi
mov edi, esi
mov ecx, 0x27
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6ad52a62
cmp byte [edi], 0
jne 0x6ad52a62
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 0x6ad52a67
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x6ad52ad6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6ad52a94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12054]
or eax, eax
je 0x6ad52ad0
mov dword [ebx], eax
add ebx, 4
jmp 0x6ad52ab1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6ad52b07
cmp al, 0xef
ja 0x6ad52afa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6ad52adc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6ad52ae9
mov ebp, dword [esi + 0x12058]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6ad52b3b
sub esp, 0xffffff80
jmp 0x6ad41310
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x439c6c
push 0x14
push 0x458bf0
call fcn.00439c90
push 1
call fcn.00439857
pop ecx
test al, al
jne 0x439b23
push 7
call fcn.00439f62
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00439822
mov byte [ebp - 0x24], al
mov eax, dword [0x78d6dc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x439b1c
test eax, eax
jne 0x439b8d
mov dword [0x78d6dc], ecx
push 0x44b37c
push 0x44b364
call fcn.004405ce
pop ecx
pop ecx
test eax, eax
je 0x439b70
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x439c66
push 0x44b360
push 0x44b30c
call fcn.00440572
pop ecx
pop ecx
mov dword [0x78d6dc], 2
jmp 0x439b92
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004399b1
pop ecx
call fcn.0043a24d
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x439bc2
push esi
call fcn.00439927
pop ecx
test al, al
je 0x439bc2
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00439c7b
call esi
call fcn.0043a253
mov esi, eax
cmp dword [esi], edi
je 0x439be0
push esi
call fcn.00439927
pop ecx
test al, al
je 0x439be0
push dword [esi]
call fcn.0043fa00
pop ecx
call fcn.0043a07d
movzx eax, ax
push eax
call fcn.0044051f
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0043a0b0
test al, al
jne 0x439c0b
push esi
call fcn.0043fa38
test bl, bl
jne 0x439c14
call fcn.0043f9db
push edi
push 1
call fcn.004399ce
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x439c66
call fcn.00439cd6
ret
call fcn.0043a149
jmp 0x439b04
Function at 0x401c67
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x401c9e
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401c91
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401d0c
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0x44ff60]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0x44ff60]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0x44ff60]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0x44ff60]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401d59
cmp ebx, 4
jne 0x401d5c
cmp edi, 6
jbe 0x401d5c
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x44ff60]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0x44ff60]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x44ff60]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0x44ff60]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x401cad
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402b94
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x402ba8
xor eax, eax
jmp 0x402bb7
lea ecx, [ebp - 0x10]
call fcn.00402b77
neg eax
sbb eax, eax
and eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x402bbb
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x45b008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402c04
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402c04
push 0xc00
call eax
test eax, eax
jne 0x402c9f
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402c9f
cmp eax, 0x104
ja 0x402c9f
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402c3b
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402c9e
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402c65
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402c5c
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402c58
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004393fe
mov esp, ebp
pop ebp
ret
Function at 0x406c51
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [ebp - 4], esi
cmova eax, ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x406d01
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x406ce0
mov ecx, edi
call fcn.00405d53
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x406cd2
cmp dword [esi + 0x5c], ebx
je 0x406cfc
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.00405d36
mov edi, eax
test edi, edi
jne 0x406d93
lea ecx, [ebx + 0x20]
call fcn.004089ba
mov edi, eax
test edi, edi
jne 0x406d93
lea ecx, [ebx + 0x1c]
call fcn.004089ba
mov edi, eax
test edi, edi
jne 0x406d93
push ebx
call fcn.00406a04
mov edi, eax
test edi, edi
je 0x406d93
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.00405d77
add ebx, 0x28
sub esi, 1
jne 0x406d81
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x406da7
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x406dbb
cmp dword [esi + 0x40], edx
jne 0x406dbb
cmp dword [esi + 0x3c], edx
jne 0x406dbb
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4080a6
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret
Function at 0x408579
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x38
pop eax
mov esi, dword [edi + 8]
and esi, 0x3f
mov byte [esi + edi + 0x40], 0x80
inc esi
cmp esi, eax
jbe 0x4085bc
push 0x40
pop ecx
cmp esi, ecx
je 0x4085ad
sub ecx, esi
lea eax, [edi + 0x40]
push ecx
add eax, esi
push 0
push eax
call fcn.0043a930
add esp, 0xc
push 1
lea edx, [edi + 0x40]
lea ecx, [edi + 0x20]
call dword [edi]
push 0x38
xor esi, esi
pop eax
sub eax, esi
push eax
lea eax, [edi + 0x40]
add eax, esi
push 0
push eax
call fcn.0043a930
mov ecx, dword [edi + 8]
lea esi, [edi + 0x20]
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x40]
shld eax, ecx, 3
add esp, 0xc
shl ecx, 3
bswap ecx
bswap eax
mov dword [edi + 0x7c], ecx
mov ecx, esi
push 1
mov dword [edi + 0x78], eax
call dword [edi]
push 4
pop edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea esi, [esi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x4085f5
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004080a6

Function at 0x40a61a
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, edx
mov ebx, ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a678
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a669
push dword [ebp + 8]
push edi
push eax
call fcn.0043a3b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40a669
xor esi, esi
mov bl, 1
jmp 0x40a66b
xor bl, bl
test esi, esi
je 0x40a67a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a67a
xor bl, bl
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x40a683
Capabilities:
Open clipboard

Disassembly:
push 0x20
mov eax, 0x4478de
call fcn.00446bc9
mov esi, edx
and dword [ebp - 4], 0
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [ebp - 0xd], bl
test bl, bl
je 0x40a74a
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40a74a
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea eax, [eax*2 + 2]
push eax
push 0xd
pop ecx
call fcn.0040a61a
push 0
mov edx, esi
lea ecx, [ebp - 0x20]
mov bh, al
call fcn.00409d3e
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
inc ecx
push ecx
mov ecx, eax
call fcn.0040a61a
push 1
test al, al
movzx ecx, bh
pop edi
cmovne ecx, edi
mov edx, esi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x2c]
push edi
call fcn.00409d3e
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00409179
push dword [ebp - 0x2c]
call fcn.0043940f
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
inc eax
pop ecx
push eax
push 7
pop ecx
call fcn.0040a61a
mov ecx, dword [ebp - 0x14]
test al, al
push dword [ebp - 0x20]
movzx ecx, cl
cmovne ecx, edi
mov dword [ebp - 0x14], ecx
call fcn.0043940f
pop ecx
jmp 0x40a74e
mov byte [ebp - 0x14], 0
test bl, bl
je 0x40a758
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, byte [ebp - 0x14]
call fcn.00446b92
ret
Function at 0x40b139
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x78ddd1], 0
push esi
mov esi, edx
jne 0x40b171
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004099e8
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043940f
pop ecx
test esi, esi
je 0x40b17d
mov al, 1
jmp 0x40b17f
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40b16b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b184
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x78ddd1], 0
jne 0x40b1ba
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043940f
pop ecx
test esi, esi
pop esi
je 0x40b1c5
mov al, 1
jmp 0x40b1c7
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x40b1b4
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b234
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x78ddd1], 0
jne 0x40b26c
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043940f
pop ecx
test esi, esi
pop esi
je 0x40b279
mov al, 1
jmp 0x40b27b
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40b266
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b27f
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x4479e3
call fcn.00446bc9
mov edi, ecx
cmp byte [0x78ddd1], 0
jne 0x40b2be
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004099e8
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043940f
pop ecx
test esi, esi
je 0x40b2cc
mov al, 1
jmp 0x40b312
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40b2b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b2dd
xor al, al
jmp 0x40b312
lea ecx, [ebp - 0x50]
call fcn.0040b712
lea ecx, [ebp - 0x28]
call fcn.004093d0
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040bad8
test al, al
je 0x40b307
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0043940f
pop ecx
mov al, bl
call fcn.00446b92
ret
Function at 0x40b467
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040ba91
cmp eax, 0xffffffff
je 0x40b494
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x40b494
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040b139
test al, al
je 0x40b4cd
cmp byte [0x78ddd1], 0
jne 0x40b4c2
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043940f
pop ecx
test esi, esi
je 0x40b4cd
mov al, 1
jmp 0x40b4cf
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x40b4bc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ba91
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x78ddd1], 0
jne 0x40bac3
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004099e8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043940f
pop ecx
mov eax, esi
pop esi
jmp 0x40bad4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c0f6
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x447b55
call fcn.00446bc9
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.00408bfc
cmp byte [0x78ddd1], 0
jne 0x40c1e2
mov ecx, ebx
call fcn.00408bfc
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
jne 0x40c13a
xor al, al
jmp 0x40c2ab
push edi
call fcn.00439517
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40c2a2
cmp edi, dword [ebp - 0x1c]
ja 0x40c2a2
lea ecx, [ebp - 0x30]
call fcn.00409105
mov byte [ebp - 4], 1
test edi, edi
je 0x40c1db
xor eax, eax
mov dword [ebp - 0x18], edi
inc eax
mov ecx, edi
mov dword [ebp - 0x14], eax
cmp byte [esi + eax - 1], 0
jne 0x40c1cc
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00409127
mov ebx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.00409a60
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00408ca7
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00408c68
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0043940f
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jne 0x40c182
mov edi, dword [ebp - 0x20]
cmp ebx, edi
jmp 0x40c296
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40c133
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00439517
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x40c2a2
cmp edi, dword [ebp - 0x20]
ja 0x40c2a2
lea ecx, [ebp - 0x30]
call fcn.004093d0
mov byte [ebp - 4], 4
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov ecx, ebx
mov dword [ebp - 0x14], ecx
test edi, edi
je 0x40c294
push 2
pop eax
mov dword [ebp - 0x18], eax
cmp word [esi + eax - 2], bx
jne 0x40c283
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.004094ae
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x1c], eax
call fcn.00408ca7
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push eax
call fcn.00408c68
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, dword [ebp - 0x14]
inc ecx
add eax, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
cmp ecx, edi
jb 0x40c24d
mov edx, dword [ebp - 0x1c]
cmp edx, edi
push dword [ebp - 0x30]
sete bl
call fcn.0043940f
pop ecx
push esi
call fcn.0043940f
mov al, bl
pop ecx
call fcn.00446b92
ret
Function at 0x40fdfe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
xor ebx, ebx
test eax, eax
je 0x40fe46
cmp dword [esp + 0x10], ebx
je 0x40fe46
mov edx, ebx
mov ecx, ebx
mov eax, dword [esp + 0x10]
shr eax, cl
and eax, 1
add edx, eax
inc ecx
cmp ecx, 0x20
jb 0x40fe33
jmp 0x40fe55
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x30]
mov eax, 0x40000000
mov dword [esi], edx
lea ecx, [esp + 0x10]
mov dword [esi + 4], edx
mov byte [esi + 8], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call fcn.0040d68c
mov byte [esi + 9], al
test al, al
je 0x40fed2
mov edi, dword [esp + 0x14]
mov eax, 0x70000000
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x40fea7
cmp ebx, eax
jbe 0x40feab
mov ebx, eax
xor edi, edi
push ecx
push ecx
push edi
push ebx
call fcn.0040fdad
shrd ebx, edi, 5
push 0
push 0x11
shr edi, 5
push edi
push ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.00446ea0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret