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

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov dword [esp + 0x10], eax
movzx eax, word [eax]
mov esi, dword [esp + 0x34]
mov dword [esp + 4], ecx
shr ax, 4
movzx ecx, ax
xor eax, 0x7f
movzx eax, ax
mov ecx, dword [esi + ecx*4]
mov eax, dword [esi + eax*4]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
movzx eax, word [edi + 2]
mov word [esp], ax
shr ax, 4
movzx ecx, ax
xor eax, 0x7f
test ebx, ebx
movzx eax, ax
mov ecx, dword [esi + ecx*4]
mov eax, dword [esi + eax*4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
je 0x465394
lea ebp, [edi + 4]
mov edi, edx
mov dword [esp], 0
shl edi, 4
nop
lea esi, [esi]
mov eax, dword [esp]
xor ebx, ebx
or eax, 8
nop
lea esi, [esi]
mov edx, eax
and eax, 1
shr edx, 1
neg eax
lea ecx, [ebp + edx*2]
and eax, 0x7ff
movzx ecx, word [ecx + edi]
xor eax, ecx
sar eax, 4
add ebx, dword [esi + eax*4]
cmp edx, 1
mov eax, edx
jne 0x465350
add ebx, dword [esp + 8]
mov eax, dword [esp]
mov ecx, dword [esp + 0x30]
mov dword [ecx + eax*4], ebx
add eax, 1
cmp eax, 8
mov dword [esp], eax
je 0x46539c
cmp dword [esp + 4], eax
jne 0x465340
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 4], 8
jbe 0x465394
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
lea ebp, [eax + 0x104]
mov eax, dword [esp + 0xc]
add eax, ebx
mov dword [esp + 8], eax
nop
lea esi, [esi]
mov eax, dword [esp]
xor ebx, ebx
sub eax, 8
or eax, 8
nop
lea esi, [esi]
mov edx, eax
and eax, 1
shr edx, 1
neg eax
lea ecx, [ebp + edx*2]
and eax, 0x7ff
movzx ecx, word [ecx + edi]
xor eax, ecx
sar eax, 4
add ebx, dword [esi + eax*4]
cmp edx, 1
mov eax, edx
jne 0x4653d0
add ebx, dword [esp + 8]
mov eax, dword [esp]
mov ecx, dword [esp + 0x30]
mov dword [ecx + eax*4], ebx
add eax, 1
cmp eax, 0x10
mov dword [esp], eax
je 0x46541c
cmp dword [esp + 4], eax
jne 0x4653c0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 4]
cmp eax, 0x10
jbe 0x465394
sub eax, 0x10
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0xc]
xor ebp, ebp
add edi, 0x204
add eax, ebx
mov dword [esp + 4], eax
lea esi, [esi]
mov eax, ebp
xor ebx, ebx
or ah, 1
mov esi, esi
lea edi, [edi]
mov ecx, eax
and eax, 1
shr ecx, 1
neg eax
movzx edx, word [edi + ecx*2]
and eax, 0x7ff
xor edx, eax
mov eax, ecx
sar edx, 4
add ebx, dword [esi + edx*4]
cmp ecx, 1
jne 0x465460
add ebx, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [eax + ebp*4 + 0x40], ebx
add ebp, 1
cmp dword [esp], ebp
jne 0x465450
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x465550
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
lea esi, [eax + 0x30f34]
sub esp, 0x21c
mov dword [esp + 0x10], eax
add eax, 0x32b68
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], 4
lea esi, [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
mov ebx, 0x7fffffff
xor ebp, ebp
movzx eax, byte [ecx + esi + 0x30734]
mov edx, eax
mov ecx, eax
sub ebx, eax
and edx, 1
shr ecx, 1
or edx, 2
sub ecx, 1
movzx edx, dl
shl edx, cl
sub esi, edx
add edx, ebx
test ecx, ecx
lea eax, [edx + edx]
mov dword [esp], eax
je 0x4655f3
mov ebx, 1
mov eax, dword [esp + 8]
mov edx, dword [esp]
add ebx, ebx
mov edi, esi
shr esi, 1
and edi, 1
add eax, ebx
or ebx, edi
movzx eax, word [eax + edx]
mov edx, edi
neg edx
and edx, 0x7ff
xor eax, edx
mov edx, dword [esp + 4]
sar eax, 4
add ebp, dword [edx + eax*4]
sub ecx, 1
jne 0x4655c0
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x1c], ebp
add eax, 1
mov dword [esp + 0xc], eax
add eax, 0xffffff80
jne 0x465580
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x31dc8]
lea edi, [eax + 0x32968]
lea esi, [eax + 0x319c8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], ecx
mov ebp, ecx
mov edi, eax
mov edx, dword [edi + 0x88]
xor eax, eax
test edx, edx
je 0x4656c8
mov dword [esp], esi
mov dword [esp + 8], edi
mov esi, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], ebp
mov ebp, eax
mov eax, ebp
xor ebx, ebx
or eax, 0x40
lea esi, [esi]
mov ecx, eax
and eax, 1
shr ecx, 1
neg eax
movzx edx, word [edi + ecx*2]
and eax, 0x7ff
xor edx, eax
mov eax, ecx
sar edx, 4
add ebx, dword [esi + edx*4]
cmp ecx, 1
jne 0x465660
mov eax, dword [esp]
mov dword [eax + ebp*4], ebx
mov eax, dword [esp + 8]
add ebp, 1
mov eax, dword [eax + 0x88]
cmp eax, ebp
ja 0x465652
cmp eax, 0xe
mov esi, dword [esp]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 8]
jbe 0x4656c8
mov eax, 0xe
lea esi, [esi]
mov edx, eax
shr edx, 1
sub edx, 5
shl edx, 4
add dword [esi + eax*4], edx
add eax, 1
cmp dword [edi + 0x88], eax
ja 0x4656b0
mov eax, dword [esi]
mov dword [ebp], eax
mov eax, dword [esi + 4]
mov dword [ebp + 4], eax
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, 4
movzx ecx, byte [edi + eax + 0x30734]
mov edx, dword [esp + eax*4 + 0x1c]
add edx, dword [esi + ecx*4]
mov dword [ebp + eax*4], edx
add eax, 1
cmp eax, 0x80
jne 0x4656e4
add esi, 0x100
add ebp, 0x200
sub dword [esp + 0xc], 0xffffff80
cmp esi, dword [esp + 0x18]
jne 0x46562d
mov eax, dword [esp + 0x10]
mov dword [eax + 0x80], 0
add esp, 0x21c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x46b240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x64]
test eax, eax
je 0x46b340
lea eax, [edi + 0x30f34]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x50]
mov eax, dword [edi + 0x2c]
lea ebx, [edi + 0x32c6c]
mov edx, 1
lea esi, [edi + 0x33074]
mov dword [esp + 8], ebx
xor ebx, ebx
shl edx, cl
sub eax, 1
test edx, edx
mov dword [edi + 0x378b8], eax
mov dword [edi + 0x33070], eax
je 0x46b32e
mov ebp, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov ecx, eax
mov eax, dword [esp + 8]
mov dword [esp], esi
mov edx, ebx
mov dword [esp + 4], ebp
add esi, 0x440
call fcn.004652d0
mov ecx, dword [edi + 0x33070]
mov dword [edi + ebx*4 + 0x37474], ecx
add ebx, 1
cmp dword [esp + 0xc], ebx
jne 0x46b2a0
mov ecx, dword [edi + 0x50]
mov eax, 1
shl eax, cl
test eax, eax
mov ebp, eax
je 0x46b32e
lea eax, [edi + 0x374b4]
mov dword [esp + 0xc], ebp
mov ecx, dword [edi + 0x378b8]
mov ebp, dword [esp + 0x10]
lea esi, [edi + 0x378bc]
xor ebx, ebx
mov dword [esp + 8], eax
nop
mov eax, dword [esp + 8]
mov dword [esp], esi
mov edx, ebx
mov dword [esp + 4], ebp
add esi, 0x440
call fcn.004652d0
mov ecx, dword [edi + 0x378b8]
mov dword [edi + ebx*4 + 0x3bcbc], ecx
add ebx, 1
cmp dword [esp + 0xc], ebx
jne 0x46b300
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
xor ebp, ebp
call fcn.00465550
lea edx, [edi + 0x32c4c]
lea eax, [edi + 0x30f34]
mov dword [esp + 0x28], edi
mov dword [esp + 8], edx
movzx edx, word [edi + 0x32c4e]
mov ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
nop
mov eax, ebp
mov edx, dword [esp + 8]
mov esi, ebp
and eax, 1
shr esi, 1
mov ecx, eax
neg eax
and esi, 1
or ecx, 2
and eax, 0x7ff
xor eax, dword [esp + 0xc]
movzx edx, word [edx + ecx*2]
mov edi, esi
neg edi
and edi, 0x7ff
sar eax, 4
xor edx, edi
mov edi, dword [ebx + eax*4]
lea eax, [ecx + ecx]
sar edx, 4
or eax, esi
mov esi, dword [esp + 8]
add edi, dword [ebx + edx*4]
mov edx, ebp
shr edx, 2
and edx, 1
movzx ecx, word [esi + eax*2]
add eax, eax
mov esi, edx
or eax, edx
mov edx, ebp
neg esi
shr edx, 3
and esi, 0x7ff
neg edx
xor ecx, esi
mov esi, dword [esp + 8]
and edx, 0x7ff
sar ecx, 4
add edi, dword [ebx + ecx*4]
movzx eax, word [esi + eax*2]
xor eax, edx
sar eax, 4
add edi, dword [ebx + eax*4]
mov eax, dword [esp + 0x28]
mov dword [eax + ebp*4 + 0x325c8], edi
add ebp, 1
cmp ebp, 0x10
jne 0x46b370
mov edi, eax
mov dword [eax + 0x84], 0
jmp 0x46b260
Function at 0x46ff40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov dword [0x855a04], 0x855a10
call fcn.0046ff00
test al, al
jne 0x46ff90
mov eax, dword [0x855a04]
mov eax, dword [eax]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Unsupported_Windows_version
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
lea esp, [ebp - 8]
mov eax, 2
pop ebx
pop esi
pop ebp
ret
lea ecx, [ebp - 0x18]
call fcn.004a7230
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004a7800
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.004a71c0
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x476140
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ecx, dword [esp + 8]
xor edx, edx
mov dword [ecx + 0x34], 0
mov byte [ecx + 0x1f], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
mov byte [ecx + 0x1e], 0
nop
mov eax, edx
mov ebx, edx
and eax, 1
shr ebx, 1
neg eax
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
and ebx, 1
neg ebx
shr eax, 1
and ebx, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor ebx, eax
mov eax, ebx
and ebx, 1
shr eax, 1
neg ebx
and ebx, 0xedb88320
xor eax, ebx
mov ebx, eax
and eax, 1
neg eax
shr ebx, 1
and eax, 0xedb88320
xor eax, ebx
mov dword [ecx + edx*4 + 0x60], eax
add edx, 1
cmp edx, 0x100
jne 0x476170
pop ebx
ret

Function at 0x478920
Capabilities:
Create thread

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov edx, eax
mov eax, dword [esp + 0x40]
mov dword [eax], edx
xor eax, eax
test edx, edx
je 0x478970
add esp, 0x3c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 1
test eax, eax
cmove eax, edx
add esp, 0x3c
ret
Function at 0x4a7290
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov esi, edx
mov edi, ecx
sub esp, 0x5c
mov ebx, dword [0x855a04]
mov eax, dword [ebx]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], 0x73233c
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [ebx]
mov dword [esp + 8], 9
mov dword [esp + 4], 1
mov dword [esp], str._Memory_
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esi, 0xfffff
lea ebx, [esp + 0x30]
adc edi, 0
shrd esi, edi, 0x14
shr edi, 0x14
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004ac600
cmp byte [esp + 0x30], 0
je 0x4a73de
xor edx, edx
jmp 0x4a7332
mov edx, eax
lea eax, [edx + 1]
cmp byte [ebx + eax], 0
jne 0x4a7330
cmp eax, 6
ja 0x4a739c
cmp edx, 5
mov byte [esp + 0x2f], 0x20
je 0x4a73f2
add edx, 3
mov byte [esp + 0x2e], 0x20
cmp edx, 7
je 0x4a73f8
cmp edx, 6
mov byte [esp + 0x2d], 0x20
je 0x4a73fe
cmp edx, 5
mov byte [esp + 0x2c], 0x20
je 0x4a7404
cmp edx, 4
mov byte [esp + 0x2b], 0x20
je 0x4a740a
cmp edx, 3
mov byte [esp + 0x2a], 0x20
je 0x4a7410
lea ebx, [esp + 0x29]
mov byte [esp + 0x29], 0x20
mov eax, dword [0x855a04]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov eax, dword [0x855a04]
mov eax, dword [eax]
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x73234b
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [esp + 0x2f], 0x20
mov byte [esp + 0x2e], 0x20
mov edx, 2
jmp 0x4a735f
lea ebx, [esp + 0x2f]
jmp 0x4a739c
lea ebx, [esp + 0x2e]
jmp 0x4a739c
lea ebx, [esp + 0x2d]
jmp 0x4a739c
lea ebx, [esp + 0x2c]
jmp 0x4a739c
lea ebx, [esp + 0x2b]
jmp 0x4a739c
lea ebx, [esp + 0x2a]
jmp 0x4a739c
Function at 0x4b37b0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
ret

Function at 0x4b37e0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
sub esp, 4
test eax, eax
setne al
add esp, 0x1c
ret

Function at 0x4b3800
Capabilities:
Move file

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
ret

Function at 0x4b3890
Capabilities:
Create directory

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
setne al
add esp, 0x1c
ret
Function at 0x4b38c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.004b4c00
cmp eax, 0xffffffff
je 0x4b38e1
test al, 0x10
jne 0x4b3a70
mov dword [esp], ebx
call fcn.004b7ee0
test al, al
mov byte [ebp - 0x69], al
je 0x4b3900
mov byte [ebp - 0x69], 0
movzx eax, byte [ebp - 0x69]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call fcn.004b8040
lea ecx, [ebp - 0x68]
mov dword [esp], ebx
mov dword [ebp - 0x70], eax
call fcn.00472990
lea ecx, [ebp - 0x68]
sub esp, 4
call fcn.00473300
test eax, eax
js 0x4b3944
mov ecx, dword [ebp - 0x64]
lea edx, [ecx - 1]
cmp edx, eax
jne 0x4b3944
cmp ecx, 1
je 0x4b3ae0
mov eax, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 0x64], edx
mov word [eax + edx*2], cx
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x5c]
mov dword [esp], eax
call fcn.00472a10
mov ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
sub esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x4b3a00
cmp ebx, dword [ebp - 0x58]
jge 0x4b3af0
mov eax, dword [ebp - 0x5c]
lea eax, [eax + ebx*2 + 2]
mov dword [esp], eax
call fcn.004b7680
lea ebx, [ebx + eax + 1]
test eax, eax
cmovs ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x68]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00473050
mov eax, dword [ebp - 0x68]
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x4b397d
nop
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4b39df
mov dword [esp], eax
call fcn.006e9860
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4b38f4
mov dword [esp], eax
call fcn.006e9860
movzx eax, byte [ebp - 0x69]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call edi
cmp eax, 0xb7
je 0x4b3a80
call edi
cmp eax, 0xb7
je 0x4b39d0
lea ecx, [ebp - 0x68]
call fcn.00473300
test eax, eax
mov ebx, eax
jle 0x4b39d0
cmp eax, 1
je 0x4b3a50
lea eax, [ebx + 1]
cmp dword [ebp - 0x70], eax
jae 0x4b39d0
cmp ebx, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
jae 0x4b3961
xor eax, eax
mov dword [ebp - 0x64], ebx
mov word [esi + ebx*2], ax
jmp 0x4b3961
mov eax, dword [ebp - 0x68]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x4b39d0
cmp ax, 0x2f
jne 0x4b3a25
jmp 0x4b39d0
mov byte [ebp - 0x69], 1
movzx eax, byte [ebp - 0x69]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.004b4bb0
lea ecx, [ebp - 0x28]
call fcn.00472910
lea ecx, [ebp - 0x50]
mov dword [esp], esi
call fcn.004b4c20
sub esp, 4
test al, al
jne 0x4b3ac0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4b3a09
mov dword [esp], eax
call fcn.006e9860
jmp 0x4b3a09
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x4b3ad2
mov dword [esp], eax
call fcn.006e9860
and esi, 0x10
je 0x4b3a09
jmp 0x4b397d
mov byte [ebp - 0x69], 1
jmp 0x4b39df
mov byte [ebp - 0x69], 1
jmp 0x4b39d0
Function at 0x4b3b40
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp], ebx
call fcn.004b4c00
cmp eax, 0xffffffff
je 0x4b3b5f
mov edx, eax
and edx, 0x11
cmp edx, 1
je 0x4b3b75
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub esp, 4
test eax, eax
setne al
add esp, 0x18
pop ebx
ret
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub esp, 8
test eax, eax
jne 0x4b3b5f
jmp 0x4b3b70
Function at 0x4b4050
Capabilities:
Get common file path

Disassembly:
push edi
push esi
xor edx, edx
push ebx
xor ecx, ecx
sub esp, 0x220
mov esi, dword [esp + 0x230]
lea edi, [esp + 0x14]
mov eax, dword [esi]
mov dword [esi + 4], 0
mov word [eax], dx
mov word [esp + 0x14], cx
mov dword [esp + 4], edi
mov dword [esp], 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
mov ebx, eax
mov ecx, esi
mov dword [esp], edi
sub ebx, 1
call fcn.00472ad0
sub esp, 4
cmp ebx, 0x103
setbe al
add esp, 0x220
pop ebx
pop esi
pop edi
ret

Function at 0x4b4c00
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
add esp, 0x1c
ret
Function at 0x4b5e70
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x24
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub esp, 8
cmp eax, 0xffffffff
mov ebx, eax
je 0x4b5ec0
mov eax, dword [ebp - 0xc]
mov ecx, ebx
xor ebx, ebx
mov edx, eax
xor eax, eax
add eax, ecx
mov ecx, dword [ebp + 8]
adc edx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b5e93
xor eax, eax
jmp 0x4b5eaf

Function at 0x4b62f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [esp + 0xc], edx
mov edx, 0x400000
cmp eax, 0x400000
cmova eax, edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sub esp, 0x14
test eax, eax
setne al
mov dword [edx], ecx
leave
ret 0xc

Function at 0x4b6360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
jmp 0x4b638a
test edx, edx
je 0x4b63e0
add esi, edx
sub ebx, edx
je 0x4b63e0
lea eax, [ebp - 0x1c]
cmp ebx, 0x400000
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, 0x400000
cmovbe eax, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
mov edx, dword [ebp - 0x1c]
add dword [edi], edx
test eax, eax
jne 0x4b6380
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x4b6770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
jmp 0x4b679a
test edx, edx
je 0x4b67f0
add esi, edx
sub ebx, edx
je 0x4b67f0
lea eax, [ebp - 0x1c]
cmp ebx, 0x400000
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], eax
mov eax, 0x400000
cmovbe eax, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
mov edx, dword [ebp - 0x1c]
add dword [edi], edx
test eax, eax
jne 0x4b6790
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4b7310
Capabilities:
Get common file path

Disassembly:
push edi
push esi
mov esi, eax
push ebx
xor edx, edx
xor ecx, ecx
sub esp, 0x220
mov eax, dword [eax]
mov dword [esi + 4], 0
lea edi, [esp + 0x14]
mov word [eax], dx
mov word [esp + 0x14], cx
mov dword [esp + 4], edi
mov dword [esp], 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
sub esp, 8
mov ebx, eax
mov ecx, esi
mov dword [esp], edi
sub ebx, 1
call fcn.00472ad0
sub esp, 4
cmp ebx, 0x103
setbe al
add esp, 0x220
pop ebx
pop esi
pop edi
ret

Function at 0x4b99a0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x4c
lea eax, [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
sub esp, 4
mov eax, dword [esp + 0x30]
add esp, 0x4c
ret
Function at 0x4d5720
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov ebx, eax
mov esi, ecx
sub esp, 0x6c
mov eax, dword [eax]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x735436
mov edi, dword [esp + 0x80]
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Path:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov ecx, ebx
mov dword [esp], ebp
call fcn.00474070
sub esp, 4
mov dword [esp], eax
call fcn.00474030
test edi, edi
je 0x4d5823
lea ebp, [esp + 0x20]
mov ecx, ebp
call fcn.004712c0
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004d5590
mov eax, dword [ebx]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x735436
mov edi, dword [esp + 0x20]
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Size:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], ebx
call fcn.00474030
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4d5823
mov dword [esp], eax
call fcn.006e9860
test esi, esi
je 0x4d583f
lea edi, [esp + 0x18]
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
sub esp, 8
test eax, eax
jne 0x4d5850
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [esp + 0x20]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 1
mov dword [esp], edi
mov dword [esp + 4], esi
call fcn.004daaa0
test al, al
je 0x4d583f
mov eax, dword [ebx]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x735436
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp + 8], 0xa
mov dword [esp + 4], 1
mov dword [esp], str.Modified:
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], ebx
call fcn.00474030
jmp 0x4d583f