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

Disassembly:
sub esp, 0x120
mov eax, dword [0x10282800]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.102008da
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x101b3dbf
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10190b90
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.10188210
push esi
call dword [0x102823b8]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x101b3f1f
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x101b3e19
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10190b90
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.10188210
push 0
mov esi, 0x4d
call dword [0x102823b8]
add esp, 0x20
jmp 0x101b3f11
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x101b3e59
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10190b90
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.10188210
add esp, 0x1c
mov esi, 0x4d
jmp 0x101b3efd
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x101b3e87
jg 0x101b3e6d
cmp edi, 0x100000
jbe 0x101b3e87
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.10188210
add esp, 0xc
mov esi, 0x4d
jmp 0x101b3efd
lea eax, [edi + 1]
push eax
call dword [0x102823b4]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x101b3e9f
lea esi, [eax + 0x1b]
jmp 0x101b3efd
test edi, edi
je 0x101b3ee4
nop dword [eax]
nop word [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101b3f3c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101b3f38
add esi, eax
cmp esi, edi
jb 0x101b3eb0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.101b3b40
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x102823b8]
add esp, 4
push dword [esp + 0x20]
call fcn.101e912c
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101e3b75
add esp, 0x120
ret
mov edi, esi
jmp 0x101b3ee4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10190b90
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.10188210
add esp, 0x1c
mov esi, 0x4d
jmp 0x101b3efd
Function at 0x101bf5f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x102823b4]
mov esi, eax
add esp, 4
test esi, esi
jne 0x101bf61b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x101bf66a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x101bf672
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x101bf6e6
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x101bf6a0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x101bf715
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x10236156
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x10236157
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x101bf6f0
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x101bf720
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call sym.user32.dll_git_odb_object_id
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x102823b4]
mov esi, eax
add esp, 8
test esi, esi
je 0x101bf8a2
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x101bf7a2
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [ebp + 0xc]
add eax, dword [esi + 8]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x101bf816
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x101bf7d0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jae 0x101bf845
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x10236156
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x10236157
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x101bf820
push dword [esp + 0x30]
call sym.user32.dll_git_odb_object_id
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebp, dword [esi]
test edi, edi
jne 0x101bf870
mov edi, dword [ebp + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebp + 8]
push edi
call eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebp + 8]
push edi
call eax
push esi
call dword [0x102823b8]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x101bfa10
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
je 0x101bfa5b
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x101bfa21
pop edi
pop esi
pop ebx
ret
Function at 0x101c1670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x101c17f5
cmp dword [esi + 0x20], 0
je 0x101c17f5
cmp dword [esi + 0x24], 0
je 0x101c17f5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x101c17f5
cmp dword [eax], esi
jne 0x101c17f5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x101c16d5
cmp eax, 0x39
je 0x101c16d5
cmp eax, 0x45
je 0x101c16d5
cmp eax, 0x49
je 0x101c16d5
cmp eax, 0x5b
je 0x101c16d5
cmp eax, 0x67
je 0x101c16d5
cmp eax, 0x71
je 0x101c16d5
cmp eax, 0x29a
jne 0x101c17f5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x101c170e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x101c1730
call fcn.101c2270
jmp 0x101c1735
call fcn.101c43c0
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.101c4b60
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.101e5b40
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x102361ba]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x102361b8]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x102361bc]
mov dword [esi + 0x90], eax
movzx eax, word [ecx*4 + 0x102361be]
mov dword [esi + 0x7c], eax
xor eax, eax
pop edi
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x101c6b00
Capabilities:
Parse credit card information

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [esp + 8]
lea eax, [edx - 2]
cmp eax, 0xa
ja case.default.0x101c6b14
jmp dword [eax*4 + 0x101c6ca4]
cmp cl, 0x40
jne 0x101c6b26
mov eax, 4
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x101c6b32
cmp al, 0x7a
jbe 0x101c6b9c
cmp cl, 0x30
jl 0x101c6b3c
cmp cl, 0x39
jle 0x101c6b9c
cmp cl, 0x2d
je 0x101c6b9c
cmp cl, 0x5f
je 0x101c6b9c
cmp cl, 0x2e
je 0x101c6b9c
cmp cl, 0x21
je 0x101c6b9c
cmp cl, 0x7e
je 0x101c6b9c
cmp cl, 0x2a
je 0x101c6b9c
cmp cl, 0x27
je 0x101c6b9c
cmp cl, 0x28
je 0x101c6b9c
cmp cl, 0x29
je 0x101c6b9c
cmp cl, 0x25
je 0x101c6b9c
cmp cl, 0x3b
je 0x101c6b9c
cmp cl, 0x3a
je 0x101c6b9c
cmp cl, 0x26
je 0x101c6b9c
cmp cl, 0x3d
je 0x101c6b9c
cmp cl, 0x2b
je 0x101c6b9c
cmp cl, 0x24
je 0x101c6b9c
xor eax, eax
cmp cl, 0x2c
sete al
lea eax, [eax*2 + 1]
ret
mov eax, 3
ret
cmp cl, 0x5b
jne 0x101c6bad
mov eax, 5
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x101c6bb9
cmp al, 0x7a
jbe 0x101c6bfd
cmp cl, 0x30
jl 0x101c6bc3
cmp cl, 0x39
jle 0x101c6bfd
cmp cl, 0x2e
je 0x101c6bfd
cmp cl, 0x2d
je 0x101c6bfd
cmp cl, 0x5f
je 0x101c6bfd
mov eax, 1
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x101c6be4
cmp al, 0x7a
jbe 0x101c6bfd
cmp cl, 0x30
jl 0x101c6bee
cmp cl, 0x39
jle 0x101c6bfd
cmp cl, 0x2e
je 0x101c6bfd
cmp cl, 0x2d
je 0x101c6bfd
cmp cl, 0x5f
jne case.0x101c6b14.8
mov eax, 6
ret
cmp cl, 0x3a
jne case.default.0x101c6b14
mov eax, 0xb
ret
cmp cl, 0x5d
je 0x101c6c4c
cmp cl, 0x30
jl 0x101c6c1d
cmp cl, 0x39
jle 0x101c6c41
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x101c6c29
cmp al, 0x66
jbe 0x101c6c41
cmp cl, 0x3a
je 0x101c6c41
cmp cl, 0x2e
je 0x101c6c41
cmp edx, 7
jne case.default.0x101c6b14
cmp cl, 0x25
jne case.default.0x101c6b14
lea eax, [edx + 2]
ret
mov eax, 7
ret
cmp cl, 0x5d
jne case.0x101c6b14.9
mov eax, 8
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x101c6c5e
cmp al, 0x7a
jbe 0x101c6c8d
cmp cl, 0x30
jl 0x101c6c68
cmp cl, 0x39
jle 0x101c6c8d
cmp cl, 0x25
je 0x101c6c8d
cmp cl, 0x2e
je 0x101c6c8d
cmp cl, 0x2d
je 0x101c6c8d
cmp cl, 0x5f
je 0x101c6c8d
cmp cl, 0x7e
mov eax, 1
mov edx, 0xa
cmove eax, edx
ret
mov eax, 0xa
ret
mov al, 9
sub cl, 0x30
cmp al, cl
sbb eax, eax
and eax, 0xfffffff5
add eax, 0xc
ret
Function at 0x101c6f90
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov bl, byte [esp + 0xc]
push esi
cmp bl, 0x20
je case.default.0x101c6fc1
cmp bl, 0xd
je case.default.0x101c6fc1
cmp bl, 0xa
je case.default.0x101c6fc1
mov esi, dword [esp + 0xc]
lea eax, [esi - 0x14]
cmp eax, 0xb
ja case.default.0x101c6fc1
jmp dword [eax*4 + 0x101c71a8]
cmp bl, 0x2f
je 0x101c7038
cmp bl, 0x2a
je 0x101c7038
or bl, 0x20
sub bl, 0x61
cmp bl, 0x19
ja case.default.0x101c6fc1
pop esi
mov eax, 0x15
pop ebx
ret
mov al, bl
or al, 0x20
sub al, 0x61
cmp al, 0x19
jbe 0x101c71a3
cmp bl, 0x3a
jne case.default.0x101c6fc1
pop esi
mov eax, 0x16
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x101c6fc1
pop esi
mov eax, 0x17
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x101c6fc1
pop esi
mov eax, 0x18
pop ebx
ret
cmp bl, 0x40
je case.default.0x101c6fc1
cmp bl, 0x2f
jne 0x101c7040
pop esi
mov eax, 0x1b
pop ebx
ret
cmp bl, 0x3f
je 0x101c7103
cmp bl, 0x40
jne 0x101c7056
pop esi
mov eax, 0x1a
pop ebx
ret
mov al, bl
or al, 0x20
cmp al, 0x61
jb 0x101c7062
cmp al, 0x7a
jbe 0x101c70cb
cmp bl, 0x30
jl 0x101c706c
cmp bl, 0x39
jle 0x101c70cb
cmp bl, 0x2d
je 0x101c70cb
cmp bl, 0x5f
je 0x101c70cb
cmp bl, 0x2e
je 0x101c70cb
cmp bl, 0x21
je 0x101c70cb
cmp bl, 0x7e
je 0x101c70cb
cmp bl, 0x2a
je 0x101c70cb
cmp bl, 0x27
je 0x101c70cb
cmp bl, 0x28
je 0x101c70cb
cmp bl, 0x29
je 0x101c70cb
cmp bl, 0x25
je 0x101c70cb
cmp bl, 0x3b
je 0x101c70cb
cmp bl, 0x3a
je 0x101c70cb
cmp bl, 0x26
je 0x101c70cb
cmp bl, 0x3d
je 0x101c70cb
cmp bl, 0x2b
je 0x101c70cb
cmp bl, 0x24
je 0x101c70cb
cmp bl, 0x2c
je 0x101c70cb
cmp bl, 0x5b
je 0x101c70cb
cmp bl, 0x5d
jne case.default.0x101c6fc1
pop esi
mov eax, 0x19
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x1023a480], al
jne 0x101c71a3
test bl, bl
js 0x101c71a3
cmp bl, 0x23
je 0x101c713b
cmp bl, 0x3f
jne case.default.0x101c6fc1
pop esi
mov eax, 0x1c
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x1023a480], al
jne 0x101c7143
test bl, bl
js 0x101c7143
cmp bl, 0x23
je 0x101c713b
cmp bl, 0x3f
je 0x101c7143
pop esi
mov eax, 1
pop ebx
ret
pop esi
mov eax, 0x1e
pop ebx
ret
pop esi
mov eax, 0x1d
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x1023a480], al
jne 0x101c7173
test bl, bl
js 0x101c7173
cmp bl, 0x23
je 0x101c71a3
cmp bl, 0x3f
jne case.default.0x101c6fc1
pop esi
mov eax, 0x1f
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x1023a480], al
jne 0x101c71a3
test bl, bl
js 0x101c71a3
cmp bl, 0x23
je 0x101c71a3
cmp bl, 0x3f
jne case.default.0x101c6fc1
mov eax, esi
pop esi
pop ebx
ret
Function at 0x101e0b53
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x101e0b7a
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x101e0b7d
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.101e0b2f
pop esi
leave
ret 8

Function at 0x101e935f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x101e939e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101e939e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101e939e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x101e939e
cmp dword [ecx + 0x74], 0xe
jbe 0x101e939e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x101f586a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.101f5732
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x101f59d9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x101f59d9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101f598e
jg 0x101f58c6
test eax, eax
je 0x101f5984
push 1
push 0x1000
call fcn.10202e84
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x101f58e9
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101f597b
push 0x8000
push ebx
call fcn.10206ce5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x101f5912
jg 0x101f590d
cmp ecx, 0x1000
jb 0x101f5912
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.102006be
add esp, 0x10
cmp eax, 0xffffffff
je 0x101f5957
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x101f590d
jl 0x101f593e
test ecx, ecx
jne 0x101f58ff
push dword [ebp - 0xc]
push ebx
call fcn.10206ce5
push esi
call fcn.10202ee1
add esp, 0xc
xor ebx, ebx
jmp 0x101f59e7
cmp byte [edi + 0x24], 0
je 0x101f596e
cmp dword [edi + 0x20], 5
jne 0x101f596e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101f5979
mov ebx, dword [edi + 0x18]
jmp 0x101f597b
xor ebx, ebx
push esi
call fcn.10202ee1
pop ecx
jmp 0x101f59e7
test ecx, ecx
jg 0x101f5950
jl 0x101f598e
test eax, eax
jae 0x101f5950
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101f6845
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x101f59ae
cmp byte [edi + 0x1c], 0
je 0x101f5950
jmp 0x101f59df
push ebx
call fcn.101f5f02
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101f5950
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101f59e7
cmp byte [edi + 0x1c], 0
je 0x101f59e4
mov ebx, dword [edi + 0x18]
jmp 0x101f59e7
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.101f6845
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101f64a2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10282800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x101f64e5
call fcn.101eb44b
mov dword [eax], 0xf
call fcn.101eb45e
mov dword [eax], 0xd
call fcn.101e909f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101e3b75
leave
ret
test eax, eax
jne 0x101f64ec
inc eax
jmp 0x101f64d9
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x101f64d7
xor eax, eax
cmp ecx, 1
setne al
jmp 0x101f64d9

Function at 0x101f778c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.101e4630
mov eax, dword [0x10282800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.10203b93
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x101f77ce
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x101f792a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.101e3e90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1028f230]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.101f6827
mov ecx, dword [esi*4 + 0x1028f230]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x101f7923
cmp eax, dword [ecx + edi + 0x24]
jne 0x101f7923
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101f7923
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.101f6827
add esp, 0x14
test edx, edx
jl 0x101f7923
jg 0x101f7899
test eax, eax
jb 0x101f7923
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x101f7923
jl 0x101f78b3
cmp dword [ebp - 0x1008], eax
ja 0x101f7923
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x101f78d1
test ebx, ebx
je 0x101f790a
cmp ecx, edi
jae 0x101f790a
mov al, byte [ecx]
cmp al, 0xd
jne 0x101f78eb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x101f78f7
cmp byte [ecx + 1], 0xa
jne 0x101f78f7
inc ecx
jmp 0x101f78f7
movzx eax, al
movsx eax, byte [eax + 0x102829a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x101f78d1
cmp edx, ebx
jne 0x101f78d1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x101f7928
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.101e3b75
leave
ret
Function at 0x101fb520
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10282800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x102518d8
push esi
call fcn.10206f40
pop ecx
pop ecx
test eax, eax
jne 0x101fb54e
xor al, al
jmp 0x101fb5cb
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.101fb255
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x101fb588
push dword [ebp - 0x210]
call fcn.101e912c
xor al, al
jmp 0x101fb5c9
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x101fb58e
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x101fb5ae
push edx
call fcn.101fb457
pop ecx
test al, al
je 0x101fb579
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x101fb5bc
mov bl, 1
push dword [ebp - 0x210]
call fcn.101e912c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.101e3b75
leave
ret