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

Disassembly:
sub esp, 0xc8
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0xc4], eax
mov ecx, dword [esp + 0xe4]
mov eax, dword [esp + 0xd4]
push ebx
mov ebx, dword [esp + 0xe4]
push ebp
mov ebp, dword [esp + 0xe4]
push esi
mov esi, dword [esp + 0xe4]
push edi
mov edi, dword [esp + 0xdc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov ecx, esi
cmp esi, 0x40
jb 0x43a0b6
mov ecx, 0x40
push ecx
push eax
lea edx, [esp + 0x78]
push edx
call fcn.004e4090
mov edx, dword [esp + 0xec]
add esp, 0xc
lea eax, [esp + 0x50]
push eax
mov byte [esp + esi + 0x74], 0
mov byte [esp + esi + 0x75], 0
mov byte [esp + esi + 0x76], 0
mov byte [esp + esi + 0x77], 1
add esi, 4
push esi
lea ecx, [esp + 0x78]
push ecx
push edx
push edi
call fcn.00439eb0
mov eax, dword [esp + 0xf8]
dec eax
mov ecx, 8
lea esi, [esp + 0x50]
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, 0x10
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ecx
xor ebx, ebx
nop
mov eax, dword [esp + ebx + 0x24]
test eax, eax
jbe 0x43a1b1
mov ebp, eax
lea ebx, [ebx]
mov ecx, dword [esp + 0xe0]
lea edx, [esp + 0xb4]
push edx
mov edx, dword [esp + 0x18]
push 0x20
lea eax, [esp + 0x58]
push eax
push ecx
push edx
call fcn.00439eb0
mov ecx, 8
lea esi, [esp + 0xb4]
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x43a180
movzx ecx, byte [esp + eax + 0x50]
movzx edx, byte [esp + eax + 0x51]
xor byte [esp + eax + 0x30], cl
xor byte [esp + eax + 0x31], dl
movzx ecx, byte [esp + eax + 0x52]
movzx edx, byte [esp + eax + 0x53]
xor byte [esp + eax + 0x32], cl
xor byte [esp + eax + 0x33], dl
add eax, 4
cmp eax, 0x20
jb 0x43a180
sub ebp, 1
jne 0x43a140
mov edi, dword [esp + ebx + 0x18]
add ebx, 4
mov ecx, 8
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
cmp ebx, 0xc
jb 0x43a130
push 0x44
lea eax, [esp + 0x74]
push eax
call fcn.00464a50
push 0x20
lea ecx, [esp + 0x34]
push ecx
call fcn.00464a50
push 0x20
lea edx, [esp + 0x54]
push edx
call fcn.00464a50
push 0x20
lea eax, [esp + 0xb8]
push eax
call fcn.00464a50
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0xc8
ret 0x20
Function at 0x43af10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [esp + 0x34]
push esi
push edi
mov edi, dword [esp + 0x38]
cmp dword [edi], 2
jne 0x43afc1
mov eax, dword [edi + 4]
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x14]
push edx
push 0x20
push ebx
mov dword [esp + 0x20], eax
call fcn.00439eb0
xor edx, edx
mov dword [edi + 4], edx
mov eax, edx
lea esi, [edx - 2]
push ebp
jmp 0x43af60
movzx ebp, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
add ecx, ecx
add ecx, ecx
add ecx, ecx
shl ebp, cl
lea ecx, [esi - 1]
and ecx, 3
add ecx, ecx
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x15]
add ecx, ecx
shl ebp, cl
mov ecx, esi
and ecx, 3
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x16]
add ecx, ecx
add ecx, ecx
shl ebp, cl
lea ecx, [esi + 1]
and ecx, 3
add ecx, ecx
xor eax, ebp
movzx ebp, byte [esp + edx + 0x17]
add ecx, ecx
add ecx, ecx
shl ebp, cl
add edx, 4
add esi, 4
xor eax, ebp
cmp edx, 0x20
jb 0x43af60
mov dword [edi + 4], eax
pop ebp
cmp dword [edi], 3
jne 0x43afe4
lea eax, [esp + 0x10]
push eax
push 0x20
add edi, 4
push edi
push 0x20
push ebx
call fcn.00439eb0
mov ecx, 8
lea esi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x28
ret 8

Function at 0x43b470
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push 0xf0000040
push 1
xor esi, esi
push esi
push esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebp, dword [esp + 0x20]
test eax, eax
je 0x43b4bf
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
mov eax, dword [esp + 0xc]
push esi
push eax
sete bl
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test bl, bl
jne 0x43b522
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.004689a0
lea ecx, [esp + 0x14]
call fcn.00468980
mov esi, eax
mov edi, edx
call fcn.004e6fda
cdq
add esi, eax
adc edi, edx
xor ebx, ebx
test ebp, ebp
jbe 0x43b521
mov edi, edi
mov ecx, ebx
and ecx, 7
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov eax, esi
mov edx, edi
call fcn.004e6700
mov edx, dword [esp + 0x20]
mov cl, al
mov eax, dword [0x529914]
xor cl, bl
add cl, al
mov byte [ebx + edx], cl
inc eax
inc ebx
mov dword [0x529914], eax
cmp ebx, ebp
jb 0x43b4f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x43b710
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, edx
jbe 0x43b778
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp edx, ecx
jb 0x43b754
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
lea ebx, [ebx]
mov ebp, dword [edx + eax]
xor ebp, dword [eax]
inc ecx
mov dword [ebx + eax], ebp
add eax, 4
cmp ecx, dword [esi]
jbe 0x43b740
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
sub eax, dword [esi]
lea edx, [edi + ecx*4]
add eax, eax
add eax, eax
push eax
push edx
lea eax, [ebx + ecx*4]
push eax
call fcn.004e4090
mov ecx, dword [edi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], ecx
pop ebx
ret 0xc
jae 0x43b7c8
mov ebx, dword [esp + 0x14]
mov ecx, 1
cmp eax, ecx
jb 0x43b7a4
mov edx, edi
sub edx, esi
lea eax, [esi + 4]
sub ebx, esi
mov ebp, dword [eax + edx]
xor ebp, dword [eax]
inc ecx
mov dword [eax + ebx], ebp
add eax, 4
cmp ecx, dword [edi]
jbe 0x43b790
mov ebx, dword [esp + 0x14]
mov edx, dword [esi]
sub edx, dword [edi]
lea eax, [esi + ecx*4]
add edx, edx
add edx, edx
push edx
push eax
lea ecx, [ebx + ecx*4]
push ecx
call fcn.004e4090
mov edx, dword [esi]
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], edx
pop ebx
ret 0xc
test eax, eax
jbe 0x43b7e2
mov edx, edi
lea ecx, [esi + eax*4]
sub edx, esi
mov ebx, dword [ecx + edx]
xor ebx, dword [ecx]
jne 0x43b7e2
dec eax
sub ecx, 4
test eax, eax
ja 0x43b7d3
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test eax, eax
jbe 0x43b803
sub edi, esi
lea ecx, [esi + eax*4]
sub edx, esi
mov esi, dword [ecx + edi]
xor esi, dword [ecx]
dec eax
mov dword [ecx + edx], esi
sub ecx, 4
test eax, eax
ja 0x43b7f3
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x43b810
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x4c
push ebp
push esi
mov esi, dword [esp + 0x5c]
cmp dword [esi], 0
je 0x43b93a
mov ebp, dword [esp + 0x60]
mov eax, dword [ebp]
test eax, eax
je 0x43b93a
mov ecx, ebp
lea edx, [esp + 8]
sub ecx, edx
push edi
lea ebx, [ebx]
mov edi, dword [0x52991c]
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 0x43b840
mov edi, dword [esp + 0x5c]
push ebx
push 0x90
push eax
push edi
call fcn.004e4400
mov ebx, dword [esi]
add esp, 0xc
test ebx, ebx
je 0x43b8e7
mov ebp, dword [0x529918]
lea esp, [esp]
mov eax, dword [esi + ebx*4]
mov ecx, dword [0x52991c]
mov esi, dword [ecx + eax*4]
cmp esi, 0x7fff
je 0x43b8da
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
test eax, eax
je 0x43b8da
lea ecx, [ebx + eax]
lea edx, [edi + ecx*4 - 4]
jmp 0x43b8b0
mov ecx, dword [esp + eax*4 + 0x10]
cmp ecx, 0x7fff
je 0x43b8d2
add ecx, esi
cmp ecx, 0x7fff
jb 0x43b8cc
add ecx, 0xffff8001
mov ecx, dword [ebp + ecx*4]
xor dword [edx], ecx
dec eax
sub edx, 4
test eax, eax
jne 0x43b8b0
sub ebx, 1
mov esi, dword [esp + 0x64]
jne 0x43b880
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 0x43b917
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 0x43b900
cmp dword [edi], 0x11
jbe 0x43b931
mov dword [edi], 0x11
mov eax, dword [edi]
cmp dword [edi + eax*4], 0
jne 0x43b931
dec eax
mov dword [edi], eax
test eax, eax
jne 0x43b922
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 0x43b950
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 0x43ba35
mov ecx, dword [edi + eax*4]
push ebx
mov ebx, dword [0x52991c]
mov ecx, dword [ebx + ecx*4]
push esi
cmp ecx, 0x7fff
je 0x43b99b
add ecx, ecx
cmp ecx, 0x7fff
jb 0x43b988
add ecx, 0xffff8001
mov edx, dword [0x529918]
mov ecx, dword [edx + ecx*4]
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ecx
jmp 0x43b9a3
mov esi, dword [esp + 0x14]
mov dword [esi + eax*8 - 4], ebp
mov ecx, dword [edi]
sub ecx, 1
je 0x43b9e8
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 0x43b9de
add eax, eax
cmp eax, 0x7fff
jb 0x43b9ce
add eax, 0xffff8001
mov ebp, dword [0x529918]
mov eax, dword [ebp + eax*4]
mov dword [edx], eax
xor ebp, ebp
jmp 0x43b9e0
mov dword [edx], ebp
dec ecx
sub edx, 8
cmp ecx, ebp
jne 0x43b9b0
mov eax, dword [edi]
lea ecx, [eax + eax - 1]
cmp ecx, 0x11
mov dword [esi], ecx
jle 0x43ba13
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 0x43ba00
cmp dword [esi], 0x11
jbe 0x43ba2e
mov dword [esi], 0x11
mov edi, edi
mov eax, dword [esi]
cmp dword [esi + eax*4], ebp
jne 0x43ba2e
dec eax
mov dword [esi], eax
cmp eax, ebp
jne 0x43ba20
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 0x442380
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4f918b
mov eax, dword fs:[0]
push eax
mov eax, 0x5028
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x5024], eax
push ebx
push esi
push edi
mov eax, dword [0x514bc0]
xor eax, esp
push eax
lea eax, [esp + 0x5038]
mov dword fs:[0], eax
mov edi, dword [esp + 0x5048]
push 0x800
lea eax, [esp + 0x2038]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x442592
cmp eax, 0x800
jae 0x442592
push 0x800
lea ecx, [esp + 0x3038]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x442592
cmp eax, 0x800
jae 0x442592
lea edx, [esp + 0x2034]
push edx
call fcn.00451a10
mov ebx, eax
lea eax, [esp + 0x3034]
push eax
call fcn.00451a10
mov esi, eax
cmp word [esi], 0
je 0x442592
push esi
push ebx
call fcn.0046a940
test eax, eax
je 0x442592
push esi
push edi
call fcn.00451a10
push eax
call fcn.0046a940
test eax, eax
jne 0x442592
mov word [esp + 0x1034], ax
xor esi, esi
lea esp, [esp]
test ax, ax
jne 0x4424e2
push 0x800
push edi
lea ecx, [esp + 0x103c]
push ecx
call fcn.00467570
push esi
push str.rtmp_d
lea edx, [esp + 0x103c]
push edx
call fcn.00451a10
push eax
mov edx, 0x800
call fcn.00458640
add esp, 0xc
lea eax, [esp + 0x1034]
push eax
call fcn.00443cc0
test al, al
je 0x4424c6
xor eax, eax
mov word [esp + 0x1034], ax
jmp 0x4424ce
mov ax, word [esp + 0x1034]
add esi, 0x7b
cmp esi, 0x2710
jl 0x442470
test ax, ax
je 0x442592
push 0x800
push edi
lea ecx, [esp + 0x403c]
push ecx
call fcn.00467570
push 0x800
push ebx
lea edx, [esp + 0x403c]
push edx
call fcn.00451be0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [esp + 0x1034]
push eax
lea ecx, [esp + 0x4038]
push ecx
call esi
test eax, eax
je 0x442592
lea ecx, [esp + 0x10]
call fcn.004426b0
mov dword [esp + 0x5040], 0
push edi
xor bl, bl
call fcn.00443cc0
test al, al
jne 0x442552
push 0x12
push edi
lea ecx, [esp + 0x18]
call fcn.004428c0
mov bl, al
lea edx, [esp + 0x4034]
push edx
lea eax, [esp + 0x1038]
push eax
call esi
test bl, bl
je 0x44257a
lea ecx, [esp + 0x10]
call fcn.00442a00
lea ecx, [esp + 0x10]
call fcn.00442a60
mov dword [esp + 0x5040], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00442e00
mov al, 1
jmp 0x442594
xor al, al
mov ecx, dword [esp + 0x5038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5024]
xor ecx, esp
call fcn.004e34f4
add esp, 0x5034
ret 4
Function at 0x442730
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1010
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [esp + 0x1018]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1020]
push edi
mov edi, ecx
cmp byte [edi + 0x1c], 0
mov dword [esp + 0x14], esi
mov dword [edi + 0x1020], 0
jne 0x442778
test al, 4
jne 0x442778
xor cl, cl
jmp 0x44277a
mov cl, 1
mov edx, eax
shr edx, 1
and dl, 1
movzx ebp, dl
neg ebp
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
test al, 1
je 0x44279e
or ebp, 0x40000000
shr eax, 3
not eax
and eax, 1
mov dword [esp + 0x18], eax
test cl, cl
je 0x4427b5
or eax, 2
mov dword [esp + 0x18], eax
xor ebx, ebx
cmp byte [edi + 0x15], bl
push 0
setne bl
dec ebx
and ebx, 0x8000000
push ebx
push 3
push 0
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44283c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
push 0x800
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00452410
test al, al
je 0x44282b
mov edx, dword [esp + 0x18]
push 0
push ebx
push 3
push 0
push edx
push ebp
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x442826
mov dword [esp + 0x10], eax
cmp esi, 0xffffffff
jne 0x44283c
cmp dword [esp + 0x10], 2
jne 0x44283c
mov dword [edi + 0x1020], 1
cmp esi, 0xffffffff
setne bl
mov byte [edi + 0x12], 0
mov dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
test bl, bl
je 0x44286b
mov ecx, dword [esp + 0x14]
push 0x800
mov dword [edi + 4], esi
push ecx
add edi, 0x1e
push edi
call fcn.00467570
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x1010
ret 8
Function at 0x442b00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, ecx
test ebp, ebp
jne 0x442b19
pop esi
mov al, 1
pop ebp
add esp, 0x1c
ret 8
cmp dword [esi + 0xc], 1
jne 0x442b2a
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
push edi
jmp 0x442b34
mov ebp, dword [esp + 0x34]
xor edi, edi
xor bl, bl
mov dword [esp + 0x10], edi
cmp dword [esi + 0xc], edi
je 0x442b85
test ebp, ebp
jbe 0x442ba9
mov eax, ebp
sub eax, edi
cmp eax, 0x4000
jb 0x442b55
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 bl
test bl, bl
je 0x442ba9
add edi, 0x4000
cmp edi, ebp
jb 0x442b45
jmp 0x442ba1
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 4]
push edi
lea edx, [esp + 0x14]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
test bl, bl
jne 0x442c9b
cmp byte [esi + 0x14], 0
je 0x442c9b
cmp dword [esi + 0xc], 0
jne 0x442c9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
lea eax, [esi + 0x1e]
push eax
mov dword [esp + 0x1c], edx
call fcn.00443550
push edi
mov dword [esp + 0x20], eax
mov ebp, edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp ebp, eax
jb 0x442c3e
ja 0x442bfe
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x34]
jbe 0x442c3e
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, edi
sub edx, dword [esp + 0x34]
mov ecx, ebp
sbb ecx, eax
test ecx, ecx
jg 0x442c3e
jl 0x442c1b
cmp edx, 0xffffffff
ja 0x442c3e
mov ecx, dword [esp + 0x34]
add ecx, edi
adc eax, ebp
mov dword [esp + 0x28], eax
js 0x442c3e
jg 0x442c30
cmp ecx, 0xffffffff
jbe 0x442c3e
lea eax, [esi + 0x1e]
push eax
mov ecx, 0x52c138
call fcn.0043deb0
push 0
lea eax, [esi + 0x1e]
push eax
mov ecx, 0x52c138
call fcn.0043df10
test al, al
je 0x442c8b
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x34]
jae 0x442b30
test eax, eax
jbe 0x442b30
mov edi, dword [esi]
mov edx, dword [edi + 0x10]
push 0
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
xor ebx, ebx
sub eax, ecx
sbb edx, ebx
push edx
mov edx, dword [edi + 0xc]
push eax
mov ecx, esi
call edx
jmp 0x442b30
lea eax, [esi + 0x1e]
push eax
push 0
mov ecx, 0x52c138
call fcn.0043e150
pop edi
mov al, bl
pop ebx
mov byte [esi + 8], 1
pop esi
pop ebp
add esp, 0x1c
ret 8
Function at 0x442ea0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 1
push edi
cmp dword [esi + 0xc], ebp
jne 0x442ebc
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x442f66
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x442f15
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x442ef8
cmp eax, 3
jne 0x442f15
cmp edi, 0x4e20
jbe 0x442f15
push 0x4e20
push ebx
mov ecx, esi
call fcn.00442ea0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
cmp dword [esi + 0xc], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x442f31
call ebp
cmp eax, 0x6d
jne 0x442f31
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
cmp dword [esi + 0xc], 0
jne 0x442f5b
cmp edi, 0x8000
jbe 0x442f5b
call ebp
cmp eax, 0x21
jne 0x442f5b
push 0x8000
push ebx
mov ecx, esi
call fcn.00442ea0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x4434c0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push 0x800
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00452350
movzx edx, word [esp]
neg edx
sbb edx, edx
lea eax, [esp]
and edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x443526
cmp eax, 5
je 0x443526
xor eax, eax
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret 4
mov ecx, dword [esp + 0x1000]
xor ecx, esp
mov eax, 1
call fcn.004e34f4
add esp, 0x1004
ret 4

Function at 0x443550
Capabilities:
Get disk size

Disassembly:
mov eax, 0x101c
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1018], eax
mov eax, dword [esp + 0x1020]
push esi
push 0x800
lea ecx, [esp + 0x20]
push ecx
push eax
call fcn.00451cb0
lea edx, [esp + 0xc]
push edx
movzx edx, word [esp + 0x20]
xor esi, esi
lea eax, [esp + 0x18]
push eax
neg edx
lea ecx, [esp + 0xc]
sbb edx, edx
lea eax, [esp + 0x24]
push ecx
and edx, eax
push edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4435e7
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x10]
ja 0x4435e7
push 1
push esi
push esi
push eax
call fcn.004e4480
mov ecx, dword [esp + 4]
add eax, ecx
adc edx, esi
pop esi
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.004e34f4
add esp, 0x101c
ret 4
mov ecx, dword [esp + 0x101c]
pop esi
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.004e34f4
add esp, 0x101c
ret 4
Function at 0x443610
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1210
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x120c], eax
mov eax, dword [esp + 0x1214]
push 0x800
lea ecx, [esp + 0x210]
push ecx
push eax
call fcn.00452350
push 0x105
lea edx, [esp + 4]
push edx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x443714
mov ecx, 0x4fef94
lea eax, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44369a
test dx, dx
je 0x443696
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44369a
add eax, 4
add ecx, 4
test dx, dx
jne 0x443674
xor eax, eax
jmp 0x44369f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4436f8
mov ecx, 0x4fef88
lea eax, [esp]
jmp 0x4436b0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4436d6
test dx, dx
je 0x4436d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4436d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4436b0
xor eax, eax
jmp 0x4436db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4436f8
xor eax, eax
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.004e34f4
add esp, 0x1210
ret 4
mov eax, 1
mov ecx, dword [esp + 0x120c]
xor ecx, esp
call fcn.004e34f4
add esp, 0x1210
ret 4
mov ecx, dword [esp + 0x120c]
xor ecx, esp
xor al, al
call fcn.004e34f4
add esp, 0x1210
ret 4

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

Disassembly:
mov eax, 0x1004
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
push edi
mov edi, dword [esp + 0x1014]
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4437d1
push 0x800
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00452410
test al, al
je 0x4437cf
lea ecx, [esp + 0xc]
push ecx
call ebx
jmp 0x4437d1
mov eax, esi
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret 4

Function at 0x4437f0
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1004
call fcn.004e3510
mov eax, dword [0x514bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
push edi
push esi
call ebp
test eax, eax
setne bl
test bl, bl
jne 0x443850
push 0x800
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00452410
test al, al
je 0x443850
push edi
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
setne al
jmp 0x443852
mov al, bl
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e34f4
add esp, 0x1004
ret 8