joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435310
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47ab48]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x435350
cmp byte [ebx], 0xa
jne 0x435350
or byte [eax + edi + 0x28], 4
jmp 0x435355
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x435453
mov al, byte [edx]
cmp al, 0x1a
je 0x435435
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x435384
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4353a9
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4353b3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x435366
jmp 0x435453
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435430
cmp dword [ebp - 0xc], 0
je 0x435430
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47ab48]
test byte [eax + edi + 0x28], 0x48
je 0x43540a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4353f5
mov byte [esi], dl
jmp 0x435406
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47ab48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x435453
cmp byte [ebp - 1], 0xa
jne 0x435419
cmp esi, ebx
jne 0x435419
mov byte [esi], 0xa
jmp 0x435452
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004318b4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x435453
mov byte [esi], 0xd
jmp 0x435452
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47ab48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43544f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x435453
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43545c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47ab48]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43549f
cmp word [esi], dx
jne 0x43549f
or byte [edi + eax + 0x28], 4
jmp 0x4354a4
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4355f7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4355d7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4354e6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43551c
cmp eax, edx
jae 0x435528
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4354be
jmp 0x4355f7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4355d3
cmp dword [ebp - 0x14], 0
je 0x4355d3
mov eax, dword [ebx*4 + 0x47ab48]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4355ab
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x435574
mov word [esi], cx
jmp 0x4355a7
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47ab48]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47ab48]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47ab48]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4355f7
pop ebx
cmp word [ebp - 4], bx
jne 0x4355bc
cmp esi, dword [ebp + 0xc]
jne 0x4355bc
mov word [esi], bx
jmp 0x4355f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004318b4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4355f7
push 0xd
jmp 0x4355f0
mov ecx, dword [ebx*4 + 0x47ab48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4355ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4355f7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4389ff
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
shr edi, 2
xor ebp, ebp
mov eax, edi
xor ebx, ebx
shr eax, 1
inc ebp
add eax, 3
mov ecx, ebx
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x438a30
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x438a23
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [esp + 0x14], eax
test ebx, ebx
jne 0x438a99
movzx eax, dl
mov ebx, edi
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebp
add ebp, ebp
or edx, ecx
test ebp, 0x100
pop eax
cmovne ebp, eax
jmp 0x438ae6
cmp ebx, 4
jne 0x438aea
cmp edi, 6
jbe 0x438aea
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [esp + 0x14]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x438a40
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4398f6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x43990a
xor eax, eax
jmp 0x439927
call fcn.0043999f
push 7
pop edx
cmp eax, edx
jb 0x439906
lea ecx, [ebp - 0x10]
call fcn.00439987
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x439937
Capabilities:
Check os version

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x439a7e
push str.SetDefaultDllDirectories
push 0x46c050
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x439a7e
push 0xc00
call eax
test eax, eax
jne 0x439b19
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x439b19
cmp eax, 0x104
ja 0x439b19
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x439ab5
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x439b18
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x439adf
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x439ad6
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 0x439ad2
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418942
mov esp, ebp
pop ebp
ret
Function at 0x43db01
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
xor ebp, ebp
xor eax, eax
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ebx
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, ebx
mov dword [esi + 0x78], ebp
cmova eax, ebx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], ebp
mov dword [esi + 0x38], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x84], ebp
mov dword [esi + 0x58], ebp
cmp eax, dword [esi + 0x20]
je 0x43dba5
lea edi, [esi + 0xc8]
cmp dword [edi + 8], ebp
je 0x43db86
mov ecx, edi
call fcn.0043d8da
add edi, 0x28
sub ebx, 1
jne 0x43db7a
cmp dword [esi + 0x5c], ebp
je 0x43dba0
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
mov dword [esi + 0x5c], ebp
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ebp
mov dword [esi + 0xa0], ebp
mov dword [esi + 0xa4], ebp
mov dword [esi + 0xa8], ebp
mov dword [esi + 0xac], ebp
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
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.0043d937
mov edi, eax
test edi, edi
jne 0x43dc22
lea ecx, [ebx + 0x20]
call fcn.0043f8d9
mov edi, eax
test edi, edi
jne 0x43dc22
lea ecx, [ebx + 0x1c]
call fcn.0043f8d9
mov edi, eax
test edi, edi
jne 0x43dc22
push ebx
call fcn.0043cc64
mov edi, eax
test edi, edi
je 0x43dc22
mov ecx, esi
mov dword [esi + 0x44], ebp
call fcn.0043d889
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x43dc36
mov dword [esi + 0x40], eax
cmp dword [esi + 0x38], ebp
jne 0x43dc48
cmp dword [esi + 0x40], ebp
jne 0x43dc48
cmp dword [esi + 0x3c], ebp
jne 0x43dc48
mov dword [esi + 0x44], ebp
pop edi
xor ecx, ecx
cmp dword [esi + 0x44], ebp
pop esi
pop ebp
cmovne eax, ecx
pop ebx
ret

Function at 0x43dd11
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, ecx
push 4
pop ecx
mov esi, dword [edi + 8]
mov eax, dword [edi + 0x24]
movzx edx, byte [esi + 1]
mov dword [edi + 0x20], eax
add edx, ecx
mov eax, dword [edi]
add word [eax + 2], cx
mov byte [esi + 1], dl
cmp edx, 0x7c
jbe 0x43dd3c
mov ecx, edi
call fcn.0043dea3
mov ecx, edi
pop edi
pop esi
jmp fcn.0043e0c1
Function at 0x43dd45
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 8]
mov esi, dword [ebx]
movzx ecx, byte [edi + 1]
movzx edx, word [esi + 2]
lea eax, [ecx + ecx]
cmp edx, eax
sbb eax, eax
add ecx, 4
neg eax
add dword [ebx + 0x20], eax
mov dword [ebx + 0x14], eax
lea eax, [edx + 4]
mov word [esi + 2], ax
mov byte [edi + 1], cl
cmp ecx, 0x7c
jbe 0x43dd7f
mov ecx, ebx
call fcn.0043dea3
pop edi
pop esi
mov ecx, ebx
pop ebx
jmp fcn.0043ddeb

Function at 0x43ddeb
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [ecx + 8]
movzx edx, word [eax + 4]
movzx eax, word [eax + 2]
shl edx, 0x10
or edx, eax
cmp dword [ecx + 0xc], 0
jne 0x43de0c
cmp edx, dword [ecx + 0x40]
jbe 0x43de0c
mov dword [ecx], edx
mov dword [ecx + 4], edx
ret
jmp fcn.0043e0c1
Function at 0x43f030
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x38
pop ebp
mov esi, dword [edi + 8]
and esi, 0x3f
mov byte [esi + edi + 0x40], 0x80
inc esi
cmp esi, ebp
jbe 0x43f071
push 0x40
pop ecx
cmp esi, ecx
je 0x43f065
sub ecx, esi
lea eax, [edi + 0x40]
push ecx
add eax, esi
push 0
push eax
call fcn.0041d600
add esp, 0xc
push 1
lea edx, [edi + 0x40]
lea ecx, [edi + 0x20]
call dword [edi]
xor esi, esi
sub ebp, esi
lea eax, [edi + 0x40]
push ebp
add eax, esi
push 0
push eax
call fcn.0041d600
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 0x43f0aa
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
jmp 0x43f45e

Function at 0x43f452
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x478ab0]
mov dword [ecx], eax
jmp 0x43f45e
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 0x43f925
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
mov esi, ecx
push edx
push edi
push edi
call fcn.00421724
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x43f94f
call fcn.0043f8c8
mov edi, eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x441457
Capabilities:
Open clipboard

Disassembly:
push 0x1c
mov eax, 0x45b2fa
call fcn.00436cce
mov esi, edx
and dword [ebp - 4], 0
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x441515
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x441515
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea eax, [eax*2 + 2]
push eax
push 0xd
pop ecx
call fcn.00441527
push 0
mov edx, esi
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00440e47
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc ecx
push ecx
mov ecx, eax
call fcn.00441527
push 1
pop edi
test al, al
movzx ebx, bl
push edi
mov edx, esi
lea ecx, [ebp - 0x28]
cmovne ebx, edi
call fcn.00440e47
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004405ff
push dword [ebp - 0x28]
call fcn.00418953
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc eax
pop ecx
push eax
push 7
pop ecx
call fcn.00441527
push dword [ebp - 0x1c]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.00418953
pop ecx
jmp 0x441517
xor bl, bl
lea ecx, [ebp - 0xd]
call fcn.00441590
mov al, bl
call fcn.00436ca8
ret
Function at 0x441527
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
mov esi, edx
call fcn.00443df6
test al, al
je 0x44157d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x44157d
push dword [ebp + 8]
push esi
push eax
call fcn.0041db70
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push edi
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x44157d
mov dword [ebp - 4], ebx
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00443dd9
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x442096
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x344
lea ebp, [esp - 4]
mov eax, dword [0x47800c]
xor eax, ebp
mov dword [ebp + 0x344], eax
push 0x10
mov eax, 0x45b422
call fcn.00436cce
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 4], ebx
mov edi, 0x114
mov word [eax], cx
cmp byte [0x47ae71], cl
jne 0x442129
lea eax, [ebp + 0x22c]
mov byte [ebp + 0x22c], bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x442122
cmp eax, edi
jae 0x442122
lea edx, [ebp + 0x22c]
mov byte [ebp + 0x340], bl
lea ecx, [ebp - 0x1c]
call fcn.0043fdc9
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00440b46
push dword [ebp - 0x1c]
call fcn.00418953
mov al, 1
jmp 0x4421c3
xor al, al
jmp 0x4421c4
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
je 0x442122
cmp esi, edi
jae 0x44215d
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.00440ab1
mov al, 1
jmp 0x4421c4
lea ecx, [ebp - 0x1c]
call fcn.00440a8d
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x14]
jbe 0x44217a
push esi
lea ecx, [ebp - 0x1c]
call fcn.00440533
mov edi, dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x4421bb
xor eax, eax
mov word [edi + esi*2], ax
mov eax, ebx
cmp word [edi], bx
je 0x44219f
inc eax
cmp word [edi + eax*2], bx
jne 0x442198
mov dword [ebp - 0x18], eax
cmp eax, ecx
jne 0x4421bb
lea eax, [esi - 1]
cmp eax, ecx
jne 0x4421bb
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.00440b46
mov bl, 1
push edi
call fcn.00418953
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.00418942
lea esp, [ebp + 0x348]
pop ebp
ret
Function at 0x4421f2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.004430c2
cmp eax, 0xffffffff
je 0x44221f
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x44221f
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.00442551
test al, al
je 0x442258
cmp byte [0x47ae71], 0
jne 0x44224d
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.0043fdf8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00418953
pop ecx
test esi, esi
je 0x442258
mov al, 1
jmp 0x44225a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x442247
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4423a4
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x45b47d
call fcn.00436cce
mov edi, ecx
cmp byte [0x47ae71], 0
jne 0x4423e3
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0043fdf8
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00418953
pop ecx
test esi, esi
je 0x4423f1
mov al, 1
jmp 0x442437
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4423dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x442402
xor al, al
jmp 0x442437
lea ecx, [ebp - 0x50]
call fcn.00442ca3
lea ecx, [ebp - 0x28]
call fcn.00440a8d
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00442cc4
test al, al
je 0x44242c
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00418953
pop ecx
mov al, bl
call fcn.00436ca8
ret

Function at 0x44243d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47ae71], 0
jne 0x442475
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0043fdf8
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00418953
pop ecx
test esi, esi
pop esi
je 0x442482
mov al, 1
jmp 0x442484
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x44246f
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4424f1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47ae71], 0
jne 0x442527
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0043fdf8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00418953
pop ecx
test esi, esi
pop esi
je 0x442532
mov al, 1
jmp 0x442534
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x442521
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x442551
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47ae71], 0
push esi
mov esi, edx
jne 0x442589
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.0043fdf8
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00418953
pop ecx
test esi, esi
je 0x442595
mov al, 1
jmp 0x442597
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x442583
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4425fb
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x45b4e3
call fcn.00436cce
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.004014c7
cmp byte [0x47ae71], 0
jne 0x4426e7
mov ecx, ebx
call fcn.004014c7
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 0x44263f
xor al, al
jmp 0x4427b0
push edi
call fcn.00418a5b
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 0x4427a7
cmp edi, dword [ebp - 0x1c]
ja 0x4427a7
lea ecx, [ebp - 0x30]
call fcn.00440996
mov byte [ebp - 4], 1
test edi, edi
je 0x4426e0
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 0x4426d1
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00440ba4
mov ebx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x3c]
call fcn.0043fd9a
mov edi, eax
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401572
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00401533
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.00418953
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 0x442687
mov edi, dword [ebp - 0x20]
cmp ebx, edi
jmp 0x44279b
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 0x442638
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418a5b
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 0x4427a7
cmp edi, dword [ebp - 0x20]
ja 0x4427a7
lea ecx, [ebp - 0x30]
call fcn.00440a8d
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 0x442799
push 2
pop eax
mov dword [ebp - 0x18], eax
cmp word [esi + eax - 2], bx
jne 0x442788
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00440ab1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x1c], eax
call fcn.00401572
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push eax
call fcn.00401533
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 0x442752
mov edx, dword [ebp - 0x1c]
cmp edx, edi
push dword [ebp - 0x30]
sete bl
call fcn.00418953
pop ecx
push esi
call fcn.00418953
mov al, bl
pop ecx
call fcn.00436ca8
ret