joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b194b
Capabilities:
Manually build aes constants

Disassembly:
movzx ax, byte [esi]
push 0xc5090680
mov cl, byte [esi + 2]
mov edx, 0x3b0edd36
lea esi, [edx + esi - 0x3b0edd34]
bt dx, 0xaa
rol edx, 0xb1
sal dword [esp], 0xa7
sal al, cl
lea ecx, [edx*2 - 0x19cb4bd9]
mov word [ecx + esi - 0x5b0da061], ax
mov ecx, dword [ebp + ecx - 0x5b0da061]
xadd word [esp], dx
xor byte [esp + 1], 0xba
ror edx, 0x81
lea ebp, [ebp + edx - 0x5d361ffc]
mov eax, edx
lea edx, [eax + eax*4 + 0x5db69025]
xor ecx, ebx
sub byte [esp + eax - 0x5d361fff], 0x39
neg al
neg ecx
dec ecx
ror ecx, 3
or edx, dword [esp + edx - 0x2fc53025]
not ecx
xor ebx, ecx
add edi, ecx
mov dword [esp + eax - 0x5d362000], edi
ret
bswap edx
pop eax
shr ecx, cl
dec cx
inc edx
rol edx, 1
movzx eax, cx
xor ebx, edx
neg ecx
add esi, edx
shl ax, 0xcf
add al, byte [ebp + eax]
mov edx, 0x5b2baebf
sar ecx, cl
lea ebp, [ebp + edx - 0x5b2baebe]
xor al, bl
not al
not cx
xor dx, 0x999e
dec al
jmp 0x100d4701
xor dx, dx
ror al, 1
xor al, 0xa5
xadd ecx, edx
dec al
not al
sub al, 0x8e
neg cx
ja 0x100edb26
rol ecx, cl
ror al, 1
sub al, 0x9d
xor bl, al
push ecx
inc ecx
lea eax, [esp + eax + 4]
or cl, 0x87
inc ecx
mov dl, byte [eax]
neg cl
sbb edi, 1
add ecx, ecx
dec dword [esp + ecx*2 - 0x55ffcd40]
mov word [edi + ecx*2 - 0x55ffcd40], dx
sar cx, 0x42
pop eax
jne fcn.100be73c
lea ebp, [ebp + eax*2 - 0x61b8b7ff]
movzx edx, byte [eax + ebp - 0x30dc5bff]
bt eax, eax
xor dl, bl
xor ax, 0x9e0e
ror al, 0xe1
dec eax
not dl
add al, ah
btr eax, 0x8b
neg dl
xor dl, 0x90
ror dl, 1
xor bl, dl
add edx, esp
mov byte [edx + eax*2 - 0x61b98b78], cl
sal eax, 0xcc
movsx edx, al
sal al, 0x63
lea ebp, [ebp + edx*2 - 4]
bts dx, ax
bswap eax
mov eax, dword [eax + ebp - 0xc05bcc]
push edx
xor eax, ebx
movzx ecx, byte [esp + edx - 1]
sub eax, edx
not eax
sal cx, cl
and dx, cx
dec eax
xor dword [esp + edx*4], 0x5d0eb7ae
bt dx, dx
adc byte [esp + edx + 3], cl
neg eax
xchg edx, ecx
rol eax, 1
dec cx
xor ebx, eax
call fcn.100917c8
jmp 0x1001f031

Function at 0x100ba894
Capabilities:
Parse pe header

Disassembly:
not ecx
mov dword [esp], ecx
add edi, 4
shl ecx, cl
xor edx, ebx
dec edx
mov eax, ecx
add byte [esp + 3], ch
neg ax
xor edx, 0x6b0dcb0d
inc byte [esp + 2]
neg edx
push ecx
not edx
inc word [esp + 2]
lea edx, [edx + ecx - 0x1f6148f3]
sar ax, 0xe3
xor word [esp + 2], ax
call fcn.10031fd5
movsx ecx, dl
bts ecx, edx
xor ebx, eax
add ebp, eax
movzx eax, cl
or eax, edx
mov eax, dword [esi]
or dl, 0x91
mov cl, byte [esi + 4]
shl dl, 3
shr dl, 0x41
shl dx, 0xe8
adc esi, 2
bts edx, 0x19
sal edx, 0xb6
sal eax, cl
dec dl
ror dx, 0x8c
mov dword [esi + edx - 0xff0], eax
call fcn.10086bfb

Function at 0x100c1b56
Capabilities:
Authenticate hmac

Disassembly:
dec eax
bswap eax
xor ebx, eax
mov dword [esp], ecx
add ebp, eax
call fcn.10009b57
mov ecx, 0xa788a782
ror cl, cl
movzx eax, cl
movzx cx, byte [esi + eax - 0xa0]
sar eax, 0x47
mov edx, eax
mov dl, byte [esi + eax*2]
bt ax, ax
sal eax, 0xb0
lea esi, [esi + eax - 0xfffe]
or ax, 0xb8a3
or cl, dl
push eax
cbw
jmp 0x100e4ea7
not cl
push eax
call fcn.1003de74
Function at 0x100e7bc4
Capabilities:
Encode data using base64

Disassembly:
mov dword [esp + eax*4], ebp
lea ecx, [edx - 0x576e4157]
shl edx, 0x59
mov edx, 0
and ax, cx
mov edi, esi
lea eax, [eax + edi*2 + 0x7d95961e]
mov dword [esp + eax - 0x7d95f25e], edx
bswap ecx
sar ecx, cl
bt esi, 0xbd
mov edi, dword [esp + eax - 0x7d95f23e]
setb al
neg ecx
xchg cx, ax
lea edi, [edi + eax - 0x628e4ce1]
not cl
setns cl
xor edi, 0x36a12b2e
bswap edi
dec si
not edi
and ecx, eax
adc edi, edx
mov dword [esp + eax - 0x7d954153], ebx
movsx ebx, al
neg al
dec al
mov dword [esp + eax - 0x7d954170], ebp
movzx ebp, bx
not ebp
mov esi, esp
jae 0x1003ff54
sub eax, ebp
lea ecx, [eax + esi - 0x7d9542c0]
je 0x100d5c64
mov esp, ecx

Function at 0x1010c370
Capabilities:
Encode data using base64

Disassembly:
sbb dl, 1
dec ax
xchg cx, ax
add cx, ax
ror dl, 1
sar ecx, cl
btr eax, ecx
neg dl
sal eax, cl
shr ecx, cl
xor dl, 0xd
inc dl
neg dl
not ecx
xor bl, dl
add ecx, eax
lea edi, [edi + eax*4 - 0x400266e2]
setbe al
cwde
mov word [edi], dx
bt eax, 0x3f
add ax, ax
jne fcn.100095dd
mov esi, dword [esi + edx*2 - 8]
or dx, word [esp + edx*2 - 2]
inc al
pop ecx
pop edx
pop eax
ja fcn.10026704
or ecx, ecx
adc ebp, eax
lea eax, [edx + edx*4 + 0x2d13eba6]
lea edx, [eax + edx*2 - 0x7bf9677e]
movzx edx, byte [esi + ecx*2 - 0x13bf6646]
btr ecx, eax
lea esi, [eax + esi - 0x2d1396b4]
shl eax, cl
and eax, 0xd500b99d
cbw
xor dl, bl
sub dl, 0xbe
ror eax, cl
dec ecx
not dl
neg ecx
jle 0x100268e4
mov eax, 0xeea8aebe
mov edx, dword [edi]
mov ecx, eax
lea ecx, [ecx + 0x5c1a2e85]
mov cl, byte [edi + ecx - 0x4ac2dd3f]
add edi, 6
not eax
bt eax, eax
mov byte [edx + eax*4 - 0x455d4504], cl
or ax, ax
mov ecx, dword [eax + esi - 0x11575141]
lea esi, [esi + eax - 0x1157513d]
cwde
xor ecx, ebx
sar eax, 0x70
ror ecx, 2
sub eax, 0x7700be1e
bswap ecx
not ecx
sbb ecx, 0x68bb610a
neg eax
movzx edx, al
inc eax
not ecx
shl edx, 0xe2
shr dl, 0xe6
sbb ecx, 0x8a99a68b
xor ebx, ecx
sal dl, 0xa6
cdq
adc ebp, ecx
xadd al, dl
jmp ebp
Function at 0x4032dd
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x42f5b9
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x444158]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x7c]
lea ecx, [ebp + 0x58]
xor ebx, ebx
mov dword [ebp - 0x10], esi
push 0x432508
mov dword [ebp - 4], ebx
mov dword [ebp], ebx
call fcn.00401ca2
xor edi, edi
lea ecx, [ebp + 0x40]
inc edi
push 0x432510
mov dword [ebp - 4], edi
call fcn.00401ca2
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00409651
push eax
lea eax, [ebp + 0x58]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 0x40]
push eax
push esi
call fcn.0040bf17
add esp, 0x14
lea ecx, [ebp + 0x10]
mov dword [ebp], edi
call fcn.004030eb
lea ecx, [ebp + 0x40]
call fcn.004030eb
lea ecx, [ebp + 0x58]
mov byte [ebp - 4], bl
call fcn.004030eb
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x403389
mov eax, dword [esi]
push eax
lea ecx, [ebp + 0x28]
call fcn.00401ca2
lea eax, [ebp + 0x28]
mov dword [ebp - 4], 4
push eax
call fcn.0040c632
pop ecx
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], bl
call fcn.004030eb
push str.D:_A__FA___BA_
lea ecx, [ebp - 0xc4]
call fcn.00401ed9
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x20]
call fcn.00408478
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 7
call fcn.00402821
push ebx
lea ecx, [ebp - 0x20]
call fcn.00408727
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040872a
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4033ff
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x403437
lea ecx, [ebp - 0x20]
call fcn.00403058
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00410737
add ebp, 0x74
leave
ret
push 0x24
push str._anonymous_namespace::createSecureDirectory
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u401_683_install_src_windows_wrappers_wrapper4wrapper_wrapper4wrapper.cpp
lea ecx, [ebp + 0x64]
call fcn.00401d7d
push eax
push 0x4325e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x432608
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x14], esp
push esi
call fcn.00401c86
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 8
call fcn.00401f3d
mov byte [ebp - 4], 9
push 0x4325f4
mov ecx, eax
call fcn.004011b2
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.00401396
mov ecx, eax
call fcn.004011b2
push eax
lea ecx, [ebp + 0x4c]
call fcn.00407da2
push eax
lea eax, [ebp + 4]
mov byte [ebp - 4], 0xb
push eax
call fcn.00401962
add esp, 0xc
lea eax, [ebp + 4]
push 0x441054
push eax
call fcn.00413602
int3
Function at 0x409651
Capabilities:
Get common file path

Disassembly:
push 0x38
mov eax, 0x430386
call fcn.004107aa
mov eax, dword [ebp + 8]
mov edi, 0x104
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
call fcn.004106f4
mov ebx, eax
mov dword [ebp - 0x40], ebx
lea esi, [ebx + 0x104]
push esi
push ebx
mov dword [ebp - 0x38], esi
call fcn.0040845c
add esp, 0xc
mov dword [ebp - 0x3c], esi
and dword [ebp - 4], 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, ebx
cmp eax, 0x104
jbe 0x4096c3
lea ecx, [ebp - 0x2d]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004083b1
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
sub eax, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp - 0x38]
mov edi, ebx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401ca2
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push ebx
mov byte [ebp - 4], 1
call fcn.0040dd53
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004030eb
test edi, edi
je 0x409719
sub esi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], esi
cmp esi, 0x1000
jb 0x409710
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402af7
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
pop ecx
pop ecx
push esi
push edi
call fcn.00410724
pop ecx
pop ecx
mov eax, ebx
call fcn.00410759
ret

Function at 0x409b05
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00413a30
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
sete al
leave
ret

Function at 0x40b2a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x444158]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x40b2fe
cmp byte [esi + 0x3d], bl
je 0x40b2fe
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40b337
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x40b30f
sub eax, 1
je 0x40b312
dec eax
sub eax, 1
jne 0x40b337
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410737
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40b32f
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004189a6
add esp, 0x10
cmp edi, eax
jne 0x40b337
cmp byte [esi + 0x3d], bl
sete al
jmp 0x40b300
xor al, al
jmp 0x40b300
Function at 0x40b96a
Capabilities:
Copy file

Disassembly:
push 0x184
mov eax, 0x43068a
call fcn.004107aa
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov bl, byte [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
push eax
mov byte [ebp - 0x50], bl
call fcn.0040cd14
and dword [ebp - 4], 0
push 0
push eax
call fcn.0040bd34
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
add esp, 0x10
call fcn.004030eb
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x40b9b4
mov edx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x40b9be
mov ecx, dword [edi]
movzx eax, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
push edx
push ecx
call ebx
test eax, eax
je 0x40baac
xor ebx, ebx
push ebx
call fcn.0040ef1f
mov ecx, eax
call fcn.0040f188
test al, al
je 0x40baa6
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
push esi
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402bfe
sub esp, 0x18
mov dword [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x50], esp
push edi
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402bfe
push 1
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 8
call fcn.00401bbf
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 9
push str.Copied__
push eax
call fcn.004011c7
pop ecx
pop ecx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call fcn.00401396
mov esi, eax
push str.__file_to__
push esi
call fcn.004011c7
pop ecx
pop ecx
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00401396
mov esi, eax
push 0x432d90
push esi
call fcn.004011c7
pop ecx
pop ecx
push esi
push str.FileUtils::copyFile
push 0x212
push 0x434798
push ebx
call fcn.0040ef1f
mov ecx, eax
call fcn.00403d0c
lea ecx, [ebp - 0xf8]
call fcn.00402821
call fcn.00410759
ret
push 0x20f
push str.FileUtils::copyFile
push 0x434798
lea ecx, [ebp - 0x60]
call fcn.00401d7d
push eax
push 0x4325e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x432608
push dword [ebp - 0x50]
mov ebx, 0x43480c
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
push esi
call fcn.00401c86
push ebx
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x54], esp
push edi
call fcn.00401c86
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 2
call fcn.00401f3d
mov byte [ebp - 4], 3
push str.CopyFile_
mov ecx, eax
call fcn.004011b2
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00401396
mov ecx, eax
call fcn.004011b2
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00401396
mov ecx, eax
call fcn.004011b2
mov ecx, eax
call fcn.00409bd5
mov ecx, eax
call fcn.004011b2
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407da2
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
push eax
call fcn.00401962
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x441054
push eax
call fcn.00413602
int3
Function at 0x40bb7d
Capabilities:
Create directory

Disassembly:
push 0xe8
mov eax, 0x4306f7
call fcn.004107aa
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmovae eax, dword [ebp + 8]
push esi
push eax
call ebx
test eax, eax
je 0x40bc7d
xor ebx, ebx
push ebx
call fcn.0040ef1f
mov ecx, eax
call fcn.0040f188
test al, al
je 0x40bc54
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00402bfe
push 1
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 1
call fcn.00401bbf
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 2
push 0x434810
push eax
call fcn.004011c7
pop ecx
pop ecx
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call fcn.00401396
mov esi, eax
push 0x4348c8
push esi
call fcn.004011c7
pop ecx
pop ecx
push esi
push 0x4348d4
push 0x1e8
push 0x434798
push ebx
call fcn.0040ef1f
mov ecx, eax
call fcn.00403d0c
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], bl
call fcn.00402821
test edi, edi
je 0x40bc97
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040dd53
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00405425
lea ecx, [ebp - 0x28]
call fcn.004030eb
jmp 0x40bc97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x40bca5
lea eax, [ebp + 8]
push eax
call fcn.0040d2ce
pop ecx
test al, al
je 0x40bca5
lea ecx, [ebp + 8]
call fcn.004030eb
call fcn.00410759
ret
push 0x1f1
push 0x4348d4
push 0x434798
lea ecx, [ebp - 0x5c]
call fcn.00401d7d
push eax
push 0x4325e4
push edi
push ebx
push 0x432608
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00401c86
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.00401f3d
mov byte [ebp - 4], 6
push 0x4325f4
mov ecx, eax
call fcn.004011b2
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00401396
mov ecx, eax
call fcn.004011b2
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407da2
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 8
push eax
call fcn.00401962
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x441054
push eax
call fcn.00413602
int3
Function at 0x40c40b
Capabilities:
Delete directory

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb8
push ebx
push esi
mov esi, dword [ebp + 0x78]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40c425
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne cl
xor ebx, ebx
mov byte [ebp + 0x7b], cl
test eax, eax
je 0x40c4ff
push ebx
call fcn.0040ef1f
mov ecx, eax
call fcn.0040f188
test al, al
je 0x40c4fc
push esi
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.00402bfe
push 1
lea ecx, [ebp - 0x48]
call fcn.00401bbf
lea eax, [ebp - 0x48]
push 0x4349e0
push eax
call fcn.004011c7
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00401193
mov eax, dword [ebp + 0x64]
add esp, 0x10
cmp eax, 0x10
jb 0x40c4c4
mov ecx, dword [ebp + 0x50]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x40c4bb
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.00402af7
mov eax, dword [ebp + 0x6c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.00410724
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push 0x4348c8
push eax
call fcn.004011c7
pop ecx
pop ecx
lea eax, [ebp - 0x48]
push eax
push 0x434a8c
push 0x2ab
push 0x434798
push ebx
call fcn.0040ef1f
mov ecx, eax
call fcn.00403d0c
lea ecx, [ebp - 0x48]
call fcn.00402821
mov cl, byte [ebp + 0x7b]
test cl, cl
jne 0x40c516
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040da1a
add esp, 4
test al, al
je 0x40c518
mov bl, 1
pop esi
mov al, bl
pop ebx
add ebp, 0x70
leave
ret
Function at 0x40c967
Capabilities:
Delete file

Disassembly:
push 0x98
mov eax, 0x4308e1
call fcn.00410777
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40c983
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40ca30
xor edi, edi
push edi
call fcn.0040ef1f
mov ecx, eax
call fcn.0040f188
test al, al
je 0x40ca2c
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
mov dword [ecx], edi
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00402bfe
push 1
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], edi
call fcn.00401bbf
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 1
push 0x4349e0
push eax
call fcn.004011c7
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.00401396
mov esi, eax
push 0x434824
push esi
call fcn.004011c7
pop ecx
pop ecx
push esi
push 0x4349ec
push 0x278
push 0x434798
push edi
call fcn.0040ef1f
mov ecx, eax
call fcn.00403d0c
lea ecx, [ebp - 0xa4]
call fcn.00402821
mov al, 1
jmp 0x40ca3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040da1a
add esp, 4
call fcn.00410745
ret

Function at 0x40d160
Capabilities:
Get disk information

Disassembly:
push 0x58
mov eax, 0x430a2b
call fcn.004107aa
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x58]
and dword [ebp - 0x60], 0
push 0x43481c
call fcn.00401ca2
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push 0
xor ebx, ebx
push eax
inc ebx
push edi
mov dword [ebp - 0x60], ebx
call fcn.00407129
add esp, 0xc
lea esi, [edi + 0x10]
test al, al
je 0x40d1a7
mov byte [ebp - 0x59], bl
cmp dword [esi], ebx
jne 0x40d1ab
mov byte [ebp - 0x59], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004030eb
cmp byte [ebp - 0x59], 0
jne 0x40d29b
push 0x434820
lea ecx, [ebp - 0x58]
call fcn.00401ca2
lea ecx, [ebp - 0x58]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x60], eax
call fcn.004030eb
mov eax, dword [ebp - 0x60]
cmp dword [esi], eax
jae 0x40d1eb
push 3
pop eax
jmp 0x40d29d
xor ecx, ecx
mov dword [ebp - 0x14], 0xf
push eax
mov dword [ebp - 0x28], ecx
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push edi
call fcn.004066c6
push 0x43481c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00408bdc
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x40d257
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
cmp eax, 0x1000
jb 0x40d24e
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00402af7
mov eax, dword [ebp - 0x64]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x60]
push eax
push ecx
call fcn.00410724
pop ecx
pop ecx
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 0
je 0x40d290
sub eax, 1
je 0x40d290
sub eax, 1
je 0x40d28c
sub eax, 1
je 0x40d28c
sub eax, 1
je 0x40d293
sub eax, 1
je 0x40d290
sub eax, 1
jne 0x40d290
xor ebx, ebx
jmp 0x40d293
push 2
pop ebx
lea ecx, [ebp - 0x40]
call fcn.004030eb
mov eax, ebx
call fcn.00410759
ret
Function at 0x40d2ce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40d2da
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d2ed
test al, 0x10
je 0x40d2ed
mov al, 1
ret
xor al, al
ret

Function at 0x40d2f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40d2fc
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x40e20b
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
test ebp, ebp
jg 0x40e225
jl 0x40e21c
test ebx, ebx
jne 0x40e225
xor eax, eax
xor edx, edx
jmp 0x40e2ea
cmp dword [esi + 0x38], 0
je 0x40e23b
push ebp
push ebx
push dword [esp + 0x1c]
call fcn.00404d5f
jmp 0x40e2ea
mov eax, dword [esi + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x40e281
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x40e281
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x18]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.004032c4
mov ecx, dword [esp + 0x1c]
add edi, esi
mov dword [esp + 0x24], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x40e289
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp dword [esi + 0x4c], 0
je 0x40e2e0
mov ecx, esi
call fcn.0040b456
mov ecx, dword [esp + 0x18]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x40e2cb
push dword [esi + 0x4c]
push eax
push 1
push ecx
call fcn.004183a0
mov ecx, dword [esp + 0x28]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x40e2e0
jmp 0x40e29c
test edx, edx
je 0x40e2e0
push dword [esi + 0x4c]
push edi
push 1
push ecx
call fcn.004183a0
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb ebp, 0
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc