joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413e80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x413faa
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x413faa
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x4599c4]
lea edx, [ecx + eax*4]
sub eax, 1
mov edx, dword [esp + edx + 0xc]
mov edx, dword [edi + edx*4]
mov dword [esp + eax*4 + 0x10], edx
jne 0x413eb0
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.0043e880
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x413f57
mov ebp, dword [0x4599c0]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x4599c4]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x413f4a
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x413f4a
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x413f20
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x413f42
add ecx, esi
cmp ecx, 0x7fff
jb 0x413f3c
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x413f20
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x413ef0
mov ebp, dword [esp + 0x68]
mov edx, dword [esi]
mov eax, dword [ebp]
lea ecx, [edx + eax - 1]
cmp ecx, 0x11
mov dword [edi], ecx
pop ebx
jle 0x413f87
lea eax, [edi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
nop
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], 0
sub eax, 4
sub edx, 1
jne 0x413f70
cmp dword [edi], 0x11
jbe 0x413fa1
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x413fa1
dec eax
mov dword [edi], eax
test eax, eax
jne 0x413f92
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0xc
mov ecx, dword [esp + 0x58]
pop esi
mov dword [ecx], 0
pop ebp
add esp, 0x4c
ret 0xc
Function at 0x413fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
xor ebp, ebp
cmp eax, ebp
je 0x4140a5
mov ecx, dword [edi + eax*4]
push ebx
mov ebx, dword [0x4599c4]
mov ecx, dword [ebx + ecx*4]
push esi
cmp ecx, 0x7fff
je 0x41400b
add ecx, ecx
cmp ecx, 0x7fff
jb 0x413ff8
add ecx, 0xffff8001
mov edx, dword [0x4599c0]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ecx
jmp 0x414013
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ebp
mov ecx, dword [edi]
sub ecx, 1
je 0x414058
lea edx, [esi + ecx*8 - 4]
mov edi, edi
mov dword [edx + 4], ebp
mov eax, dword [edi + ecx*4]
mov eax, dword [ebx + eax*4]
cmp eax, 0x7fff
je 0x41404e
add eax, eax
cmp eax, 0x7fff
jb 0x41403e
add eax, 0xffff8001
mov ebp, dword [0x4599c0]
mov eax, dword [ebp + eax*4]
mov dword [edx], eax
xor ebp, ebp
jmp 0x414050
mov dword [edx], ebp
dec ecx
sub edx, 8
cmp ecx, ebp
jne 0x414020
mov eax, dword [edi]
lea ecx, [eax + eax - 1]
cmp ecx, 0x11
mov dword [esi], ecx
jle 0x414083
lea eax, [esi + ecx*4 - 0x38]
lea edx, [ecx - 0x11]
lea esp, [esp]
mov ecx, dword [eax + 0x38]
xor dword [eax - 0xc], ecx
xor dword [eax], ecx
mov dword [eax + 0x38], ebp
sub eax, 4
sub edx, 1
jne 0x414070
cmp dword [esi], 0x11
jbe 0x41409e
mov dword [esi], 0x11
mov edi, edi
mov eax, dword [esi]
cmp dword [esi + eax*4], ebp
jne 0x41409e
dec eax
mov dword [esi], eax
cmp eax, ebp
jne 0x414090
pop esi
pop ebx
pop edi
pop ebp
ret 8
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], ebp
pop ebp
ret 8
Function at 0x4161e0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, 0xff
jne 0x4161f6
cmp byte [esi + 8], 0
je 0x41624e
mov eax, edi
sub eax, 1
je 0x416209
sub eax, 1
je 0x416234
sub eax, 0xfd
jne 0x416212
cmp dword [0x45d404], 0
jne 0x416218
mov dword [0x45d404], edi
inc dword [0x45d408]
call fcn.0041a950
cmp byte [esi + 0xa], 0
je 0x41622e
call fcn.004359d0
push edi
call fcn.0043fd59
mov eax, dword [0x45d404]
test eax, eax
je 0x416242
cmp eax, 1
jne 0x416218
mov dword [0x45d404], 2
jmp 0x416218
pop edi
pop esi
ret 4

Function at 0x416340
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4599cc], 0
push esi
mov esi, ecx
jne 0x41636e
mov eax, dword [esp + 8]
push eax
push 0xce4
call fcn.00430700
push eax
push 0
push esi
call fcn.004160a0
add esp, 0x10
mov ecx, esi
call fcn.00416260
mov eax, dword [0x45d404]
test eax, eax
je 0x41637c
cmp eax, 1
jne 0x416386
mov dword [0x45d404], 2
inc dword [0x45d408]
call fcn.0041a950
cmp byte [esi + 0xa], 0
pop esi
je 0x41639d
call fcn.004359d0
push 2
call fcn.0043fd59
int3

Function at 0x416400
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
call fcn.00416260
mov eax, dword [esp + 8]
push eax
push 0xe5a
call fcn.00430700
push eax
push 0
push esi
call fcn.004160a0
inc dword [0x45d408]
add esp, 0x10
mov dword [0x45d404], 5
call fcn.0041a950
cmp byte [esi + 0xa], 0
pop esi
je 0x416444
call fcn.004359d0
push 5
call fcn.0043fd59
int3

Function at 0x4164c0
Capabilities:
Terminate process

Disassembly:
cmp byte [0x4599cc], 0
push esi
mov esi, ecx
jne 0x4164ee
mov eax, dword [esp + 8]
push eax
push 0xce2
call fcn.00430700
push eax
push 0
push esi
call fcn.004160a0
add esp, 0x10
mov ecx, esi
call fcn.00416260
mov eax, dword [0x45d404]
test eax, eax
je 0x4164fc
cmp eax, 1
jne 0x416506
mov dword [0x45d404], 2
inc dword [0x45d408]
call fcn.0041a950
cmp byte [esi + 0xa], 0
pop esi
je 0x41651d
call fcn.004359d0
push 2
call fcn.0043fd59
int3
Function at 0x4165b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
mov ebx, dword [esp + 0x40c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x41c]
mov ebp, ecx
test ebx, ebx
je 0x4165e5
cmp byte [ebx], 0
je 0x4165e5
mov esi, ebx
jmp 0x4165e7
xor esi, esi
push edi
push 0xd0c
call fcn.00430700
push eax
push esi
call fcn.004127e0
add esp, 0xc
call fcn.00411e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x41667d
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416611
sub eax, edx
push edi
mov esi, eax
call fcn.00427ec0
test al, al
jne 0x41664d
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416640
sub eax, edx
lea esi, [esi + eax + 1]
cmp esi, 0x104
jbe 0x41667d
test ebx, ebx
je 0x416662
cmp byte [ebx], 0
je 0x416662
mov esi, ebx
jmp 0x416664
xor esi, esi
push 0x104
push 0xe6e
call fcn.00430700
push eax
push esi
call fcn.004127e0
add esp, 0xc
mov ecx, ebp
call fcn.00416260
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043e366
add esp, 0x404
ret 8

Function at 0x4166c0
Capabilities:
Terminate process

Disassembly:
push esi
push 0xce6
mov esi, ecx
call fcn.00430700
push eax
push 0
push esi
call fcn.004160a0
inc dword [0x45d408]
add esp, 0xc
mov dword [0x45d404], 8
call fcn.0041a950
cmp byte [esi + 0xa], 0
pop esi
je 0x4166fa
call fcn.004359d0
push 8
call fcn.0043fd59
int3

Function at 0x416710
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0xce0
mov esi, ecx
call fcn.00430700
push eax
push 0
push esi
call fcn.004160a0
add esp, 0x10
mov ecx, esi
call fcn.00416260
mov eax, dword [0x45d404]
test eax, eax
je 0x416743
cmp eax, 1
jne 0x41674d
mov dword [0x45d404], 2
inc dword [0x45d408]
call fcn.0041a950
cmp byte [esi + 0xa], 0
pop esi
je 0x416764
call fcn.004359d0
push 2
call fcn.0043fd59
int3

Function at 0x416770
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push esi
push eax
push 0xcde
mov esi, ecx
call fcn.00430700
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.004160a0
add esp, 0x10
mov ecx, esi
call fcn.00416260
inc dword [0x45d408]
mov dword [0x45d404], 5
call fcn.0041a950
cmp byte [esi + 0xa], 0
pop esi
je 0x4167b9
call fcn.004359d0
push 5
call fcn.0043fd59
int3

Function at 0x416810
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0xd0e
mov esi, ecx
call fcn.00430700
push eax
push 0
call fcn.004127e0
add esp, 0xc
call fcn.00411e50
mov ecx, esi
call fcn.00416260
inc dword [0x45d408]
mov dword [0x45d404], 6
call fcn.0041a950
cmp byte [esi + 0xa], 0
pop esi
je 0x41685a
call fcn.004359d0
push 6
call fcn.0043fd59
int3
Function at 0x419b80
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44a40b
mov eax, dword fs:[0]
push eax
mov eax, 0x24c4
call fcn.0043ece0
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x24c0], eax
push ebx
push esi
push edi
mov eax, dword [0x4537b0]
xor eax, esp
push eax
lea eax, [esp + 0x24d4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24e4]
mov esi, dword [esp + 0x24e8]
lea ecx, [esp + 0xc24]
call fcn.004361c0
lea ecx, [esp + 0xc48]
call fcn.004361c0
lea ecx, [esp + 0xc6c]
call fcn.004361c0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push edi
call fcn.0041d390
test al, al
je 0x419d9b
cmp byte [esp + 0x10], 0
je 0x419d9b
cmp byte [esp + 0xc90], 0
je 0x419d9b
lea ecx, [esp + 0xc90]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00427280
push eax
call fcn.00435200
test eax, eax
je 0x419d9b
lea eax, [esp + 0xc90]
push eax
push edi
call fcn.00427280
push eax
call fcn.00435200
test eax, eax
jne 0x419d9b
xor esi, esi
lea ecx, [ecx]
push 0x400
push edi
lea ecx, [esp + 0x1cd8]
push ecx
call fcn.00435240
push esi
push str.rtmp_d
lea edx, [esp + 0x1cd8]
push edx
call fcn.00427280
push eax
call fcn.0043e375
add esp, 0xc
push 0
lea eax, [esp + 0x1cd4]
push eax
call fcn.0041b1f0
test al, al
je 0x419cad
add esi, 0x7b
cmp esi, 0x2710
jl 0x419c60
push 0
lea ecx, [esp + 0x1cd4]
push ecx
call fcn.0041b1f0
test al, al
jne 0x419d9b
push 0x400
push edi
lea edx, [esp + 0x20d8]
push edx
call fcn.00435240
lea eax, [esp + 0x10]
push eax
call fcn.00427280
lea ecx, [esp + 0x20d0]
push ecx
mov esi, eax
call fcn.00427280
mov cl, byte [esi]
mov byte [eax], cl
inc esi
inc eax
test cl, cl
jne 0x419cf0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea edx, [esp + 0x1cd0]
push edx
lea eax, [esp + 0x20d4]
push eax
call esi
test eax, eax
je 0x419d9b
lea ecx, [esp + 0x10b0]
call fcn.0041a0d0
push 0
push edi
mov dword [esp + 0x24e4], 0
xor bl, bl
call fcn.0041b1f0
test al, al
jne 0x419d52
push 1
push 0
push edi
lea ecx, [esp + 0x10bc]
call fcn.0041a620
mov bl, al
lea ecx, [esp + 0x20d0]
push ecx
lea edx, [esp + 0x1cd4]
push edx
call esi
test bl, bl
je 0x419d80
lea ecx, [esp + 0x10b0]
call fcn.0041a150
lea ecx, [esp + 0x10b0]
call fcn.0041a200
lea ecx, [esp + 0x10b0]
mov dword [esp + 0x24dc], 0xffffffff
call fcn.0041a490
mov al, 1
jmp 0x419d9d
xor al, al
mov ecx, dword [esp + 0x24d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24c0]
xor ecx, esp
call fcn.0043e366
add esp, 0x24d0
ret 8
Function at 0x41a4c0
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
cmp byte [esi + 0x16], 0
push edi
mov dword [esi + 0xc18], 0
mov al, 1
jne 0x41a4dc
mov al, byte [esp + 0x1c]
cmp byte [esp + 0x20], 0
mov dword [esp + 0x1c], 0x80000000
je 0x41a4f3
mov dword [esp + 0x1c], 0xc0000000
mov ebp, 1
test al, al
je 0x41a501
mov ebp, 3
xor eax, eax
cmp byte [esi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.0041dc30
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x41a542
test ebx, ebx
je 0x41a542
cmp word [ebx], 0
je 0x41a542
mov ecx, dword [esp + 0x1c]
push 0
push edi
push 3
push 0
push ebp
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [esp + 0x14]
jmp 0x41a55a
mov edx, dword [esp + 0x1c]
push 0
push edi
push 3
push 0
push ebp
mov ebp, dword [esp + 0x28]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41a576
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41a576
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne al
mov byte [esi + 0x12], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [esp + 0x1c], al
test al, al
je 0x41a5e7
mov dword [esi + 4], edi
test ebx, ebx
je 0x41a5a9
push ebx
lea eax, [esi + 0x418]
push eax
call fcn.00436890
jmp 0x41a5b2
xor ecx, ecx
mov word [esi + 0x418], cx
lea edx, [esi + 0x17]
test ebp, ebp
je 0x41a5cc
mov eax, ebp
sub edx, ebp
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41a5c0
jmp 0x41a5d8
push 0x1000000
push edx
push ebx
call fcn.00436610
mov eax, dword [esi + 4]
push eax
mov ecx, esi
call fcn.0041a120
mov al, byte [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x41a760
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
push edi
mov edi, dword [esp + 0x14]
jne 0x41a787
cmp edi, 0x4e20
jbe 0x41a77c
mov edi, 0x4e20
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov ebx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a7f8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41a7d6
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x41a7bb
cmp eax, 3
jne 0x41a7d6
cmp edi, 0x4e20
jbe 0x41a7d6
push 0x4e20
push ebx
mov ecx, esi
call fcn.0041a760
pop edi
pop esi
pop ebx
ret 8
cmp dword [esi + 0xc], 1
jne 0x41a7ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x41a7ef
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret 8
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
Function at 0x41ab70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x28]
push esi
mov esi, ecx
test ebx, ebx
je 0x41ad76
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41abae
sub eax, 1
je 0x41aba3
sub eax, 1
jne 0x41abae
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebp
mov dword [esi + 4], eax
push edi
jmp 0x41abd0
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebp
push edi
jmp 0x41abd0
mov ebx, dword [esp + 0x34]
jmp 0x41abd0
cmp dword [esi + 0xc], 0
mov dword [esp + 0x10], 0
je 0x41ac24
xor edi, edi
test ebx, ebx
jbe 0x41ac49
mov eax, ebx
sub eax, edi
cmp eax, 0x4000
jb 0x41abf4
mov eax, 0x4000
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push eax
lea eax, [edi + edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x41ac49
add edi, 0x4000
cmp edi, ebx
jb 0x41abe4
jmp 0x41ac41
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x41ad70
cmp byte [esi + 0x14], 0
je 0x41ad70
cmp dword [esi + 0xc], 0
jne 0x41ad70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.0041a300
mov ebx, eax
lea eax, [esi + 0x17]
push eax
mov dword [esp + 0x2c], edx
call fcn.0041b0a0
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
mov ebp, dword [esp + 0x34]
jb 0x41acd2
ja 0x41ac9a
cmp dword [esp + 0x1c], ebp
jbe 0x41acd2
mov edi, dword [esp + 0x28]
mov edx, ebx
sub edx, ebp
mov ecx, edi
sbb ecx, eax
test ecx, ecx
jg 0x41acd2
jl 0x41acb1
cmp edx, 0xffffffff
ja 0x41acd2
mov ecx, ebp
add ecx, ebx
adc eax, edi
mov dword [esp + 0x18], eax
js 0x41acd2
jg 0x41acc4
cmp ecx, 0xffffffff
jbe 0x41acd2
lea eax, [esi + 0x17]
push eax
mov ecx, 0x45d404
call fcn.00416400
push 0
lea edi, [esi + 0x17]
push edi
mov ecx, 0x45d404
call fcn.00416450
test al, al
je 0x41ad60
mov eax, dword [esp + 0x10]
cmp eax, ebp
jae 0x41abc0
test eax, eax
jbe 0x41abc0
mov ecx, esi
call fcn.0041a300
mov ecx, dword [esp + 0x10]
xor ebx, ebx
sub eax, ecx
mov ecx, dword [esi + 4]
sbb edx, ebx
cmp ecx, 0xffffffff
je 0x41abc0
mov ebx, edx
push 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
sar ebx, 0x1f
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41abc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41abc0
cmp byte [esi + 0x14], 0
je 0x41abc0
push edi
mov ecx, 0x45d404
call fcn.004164c0
jmp 0x41abc0
lea eax, [esi + 0x17]
push eax
push 0
mov ecx, 0x45d404
call fcn.00416770
pop edi
mov byte [esi + 8], 1
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x41b020
Capabilities:
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
lea ecx, [esp]
push ecx
push eax
call fcn.00427170
movsx edx, byte [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x41b07c
cmp eax, 5
je 0x41b07c
xor eax, eax
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0043e366
add esp, 0x404
ret 4
mov ecx, dword [esp + 0x400]
xor ecx, esp
mov eax, 1
call fcn.0043e366
add esp, 0x404
ret 4

Function at 0x41b0a0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
mov esi, dword [esp + 0x434]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00427170
cmp dword [0x45bde0], 0
jne 0x41b0fd
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x41b0f0
push str.GetDiskFreeSpaceExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45bde0], eax
cmp dword [0x45bde0], 0
je 0x41b17e
push 0x400
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00427740
lea edx, [esp + 0x1c]
push edx
movsx edx, byte [esp + 0x30]
lea eax, [esp + 0x28]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x34]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [0x45bde0]
test eax, eax
je 0x41b17e
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x20]
ja 0x41b17e
push 1
push 0
push 0
push eax
call fcn.0043ef30
mov ecx, dword [esp + 4]
xor esi, esi
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0043e366
add esp, 0x42c
ret 4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
movsx eax, byte [esp + 0x34]
lea ecx, [esp + 0x14]
push ecx
neg eax
lea edx, [esp + 0x20]
sbb eax, eax
lea ecx, [esp + 0x38]
push edx
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x41b1cb
mov eax, 0x163e00
xor edx, edx
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0043e366
add esp, 0x42c
ret 4
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x42c]
mul dword [esp + 0x10]
pop esi
xor ecx, esp
call fcn.0043e366
add esp, 0x42c
ret 4

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

Disassembly:
call fcn.0041dc30
test eax, eax
je 0x41b21b
mov eax, dword [esp + 8]
test eax, eax
je 0x41b21b
cmp word [eax], 0
je 0x41b21b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret 8

Function at 0x41b2a0
Capabilities:
Get file attributes

Disassembly:
call fcn.0041dc30
test eax, eax
je 0x41b2c1
mov eax, dword [esp + 8]
test eax, eax
je 0x41b2c1
cmp word [eax], 0
je 0x41b2c1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
ret 8
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8
Function at 0x41b2d0
Capabilities:
Set file attributes

Disassembly:
call fcn.0041dc30
test eax, eax
je 0x41b2fb
mov eax, dword [esp + 8]
test eax, eax
je 0x41b2fb
cmp word [eax], 0
je 0x41b2fb
mov ecx, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret 0xc
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 0xc

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

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
lea edx, [eax + 1]
jmp 0x41b480
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b480
sub eax, edx
mov ebx, eax
cmp ebx, 6
ja 0x41b497
pop edi
xor eax, eax
pop ebx
ret 4
push ebp
push esi
call fcn.0043fde5
mov ebp, eax
lea eax, [ebx + edi - 6]
xor esi, esi
mov dword [esp + 0x14], eax
lea ebx, [ebx + edi - 4]
mov edi, edi
mov edx, dword [esp + 0x14]
lea ecx, [esi + ebp]
push ecx
push str._06u
push edx
call fcn.0043e375
add esp, 0xc
mov byte [ebx], 0x2e
call fcn.0041dc30
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41b4e5
cmp esi, 0x3e8
je 0x41b4ee
inc esi
jmp 0x41b4b0
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
ret 4
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret 4

Function at 0x41b500
Capabilities:
Move file

Disassembly:
mov eax, 0x1004
call fcn.0043ece0
mov eax, dword [0x4537b0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
mov ebp, dword [esp + 0x1018]
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1024]
call fcn.0041dc30
test eax, eax
je 0x41b57a
test esi, esi
je 0x41b54b
cmp word [esi], 0
jne 0x41b555
test edi, edi
je 0x41b57a
cmp word [edi], 0
je 0x41b57a
lea eax, [esp + 0x10]
push eax
push edi
push ebp
call fcn.00427240
push eax
lea ecx, [esp + 0x814]
push ecx
push esi
push ebx
call fcn.00427240
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x41b582
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
xor ecx, esp
call fcn.0043e366
add esp, 0x1004
ret 0x10