joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101846e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1023d776
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0xa8]
push 0x64
xor ebx, ebx
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.10228aa0
add esp, 0xc
cmp esi, ebx
lea edi, [esp + 0x30]
mov ecx, esi
jl 0x101847da
call fcn.10184cd0
cmp byte [esp + 0x30], 0x80
mov dword [esp + 0x18], eax
jb 0x101848a6
lea ecx, [esp + 0x17]
add ebp, 0x14
push ecx
lea edi, [ebx + 1]
mov esi, ebp
mov byte [esp + 0x1b], bl
call fcn.101e5d60
mov dword [esp + 0x1c], vtable.C3303::ByteString.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
lea esi, [esp + 0x20]
mov dword [esp + 0xa4], ebx
call fcn.101e5d60
mov ebx, esi
mov esi, ebp
call fcn.101e61b0
mov dword [esp + 0xa0], 0xffffffff
mov esi, dword [esp + 0x28]
test esi, esi
je 0x101848b5
mov eax, dword [esp + 0x24]
push eax
push 0
push esi
call fcn.10228aa0
push esi
call fcn.1021b8de
add esp, 0x10
jmp 0x101848b5
neg ecx
call fcn.10184cd0
xor ecx, ecx
cmp eax, ebx
jle 0x101847ff
jmp 0x101847f0
mov dl, byte [esp + ecx + 0x30]
not dl
mov byte [esp + ecx + 0x30], dl
inc ecx
cmp ecx, eax
jl 0x101847f0
movzx edx, byte [esp + 0x30]
dec eax
xor ecx, ecx
cmp eax, ebx
jle 0x1018481f
jmp 0x10184810
movzx esi, byte [esp + ecx + 0x31]
shl edx, 8
inc ecx
or edx, esi
cmp ecx, eax
jl 0x10184810
lea ecx, [edx + 1]
lea edi, [esp + 0x30]
call fcn.10184cd0
cmp byte [esp + 0x30], 0x80
mov dword [esp + 0x18], eax
jae 0x101848a6
lea eax, [esp + 0x17]
add ebp, 0x14
push eax
mov edi, 1
mov esi, ebp
mov byte [esp + 0x1b], 0xff
call fcn.101e5d60
mov dword [esp + 0x1c], vtable.C3303::ByteString.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0xa0], edi
mov edi, dword [esp + 0x18]
push ecx
lea esi, [esp + 0x20]
call fcn.101e5d60
mov ebx, esi
mov esi, ebp
call fcn.101e61b0
mov dword [esp + 0xa0], 0xffffffff
mov esi, dword [esp + 0x28]
test esi, esi
je 0x101848b5
mov edx, dword [esp + 0x24]
push edx
jmp 0x101847c4
lea ecx, [esp + 0x30]
push ecx
mov edi, eax
lea esi, [ebp + 0x14]
call fcn.101e5d60
xor eax, eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.1022649a
add esp, 0x90
ret 4
Function at 0x101a1030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x102434e3
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov eax, dword [eax + 0x50]
xor ebx, ebx
xor ebp, ebp
cmp dword [eax + 0x64], ebx
jle 0x101a11c2
mov esi, vtable.C3303::ByteString.0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x84], str.ASN1Object
mov dword [esp + 0x88], 0x1025bd4e
mov byte [esp + 0x2d], bl
mov dword [esp + 0x30], 0xffffffff
mov byte [esp + 0x34], bl
mov dword [esp + 0x38], ebx
mov byte [esp + 0x78], bl
mov byte [esp + 0x79], bl
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x28], vtable.ASN1ObjectIdentifier.0
mov byte [esp + 0x2c], 6
push ebp
mov dword [esp + 0x98], ebx
call fcn.10186e40
mov ecx, dword [eax + 4]
cmp dword [eax + 8], ebx
jne 0x101a1118
mov eax, 0x1025bd4e
jmp 0x101a111b
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x28]
push 1
push ecx
push eax
mov eax, dword [edx + 8]
lea ecx, [esp + 0x34]
call eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x94], 1
call fcn.10197390
mov edi, eax
lea esi, [esp + 0x14]
call fcn.101e5f90
mov ecx, dword [esp + 0xa0]
mov eax, esi
call fcn.101e62f0
mov byte [esp + 0x94], bl
mov esi, dword [esp + 0x20]
test al, al
jne 0x101a11e0
cmp esi, ebx
je 0x101a1192
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
call fcn.10228aa0
push esi
call fcn.1021b8de
add esp, 0x10
mov dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.ASN1ObjectIdentifier.0
call fcn.1017c580
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 0x50]
inc ebp
cmp ebp, dword [eax + 0x64]
jl 0x101a1071
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 8
cmp esi, ebx
je 0x101a11f9
mov eax, dword [esp + 0x1c]
push eax
push ebx
push esi
call fcn.10228aa0
push esi
call fcn.1021b8de
add esp, 0x10
mov dword [esp + 0x94], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.ASN1ObjectIdentifier.0
call fcn.1017c580
mov al, 1
jmp 0x101a11c4
Function at 0x101db5c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x102405cb
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push esi
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
push 0x64
xor ebx, ebx
lea eax, [esp + 0x60]
mov esi, ecx
push ebx
push eax
mov dword [esi + 0x60], str.setGMTTime
call fcn.10228aa0
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0xe8]
xor eax, eax
lea edi, [esi + 0x68]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x30]
push edi
push eax
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esi + 0x70], ebx
call fcn.102286d8
add esp, 0x14
test eax, eax
je 0x101db6eb
mov dword [esp + 0x10], vtable.C3303::ByteString.0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xd0], ebx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
push str._d_represents_a_date_before_midnight__January_1__1970
lea eax, [esp + 0x1c]
call fcn.101e6de0
mov edi, dword [esp + 0x28]
add esp, 0xc
cmp edi, ebx
je 0x101db69e
mov eax, edi
cmp dword [esp + 0x14], ebx
jne 0x101db6a3
mov eax, 0x1025bd4e
mov ecx, dword [esi + 0x5c]
push eax
mov eax, dword [esi + 0x60]
push 1
push str.m_GMTTime
push eax
push ecx
push 0x78
push esi
mov ecx, str......._srcASN1ASN1GeneralizedTime.cpp
call fcn.1017d420
mov dword [esp + 0xd0], 0xffffffff
cmp edi, ebx
je 0x101db6e4
mov edx, dword [esp + 0x18]
push edx
push ebx
push edi
call fcn.10228aa0
push edi
call fcn.1021b8de
add esp, 0x10
mov eax, 1
jmp 0x101db730
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push eax
inc ecx
push ecx
add edx, 0x76c
push edx
push str._04d_02d_02d_02d_02d_02dZ
lea edx, [esp + 0x78]
call fcn.100d6b40
add esp, 0x1c
add esi, 0x14
push esi
lea edx, [esp + 0x60]
call fcn.101e5eb0
xor eax, eax
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.1022649a
add esp, 0xc4
ret 8
Function at 0x101e7d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, eax
lea edx, [eax + 1]
jmp 0x101e7d20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101e7d20
sub eax, edx
je 0x101e7d37
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x101e7d41
pop esi
mov eax, 1
pop ebp
ret 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101e7d46
sub eax, edx
cmp eax, 0x100
jb 0x101e7d60
pop esi
mov eax, 2
pop ebp
ret 4
push ebx
push esi
lea ebx, [ebp + 4]
push pe_nt_image_headers32
push ebx
call fcn.10226818
mov eax, ebx
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101e7d78
sub eax, edx
lea esi, [eax - 1]
push edi
test esi, esi
jl 0x101e7dfd
lea esp, [esp]
cmp byte [ebx + esi], 0x2f
jne 0x101e7d9a
test esi, esi
jne 0x101e7da1
sub esi, 1
jns 0x101e7d90
jmp 0x101e7df9
lea eax, [esi + 1]
push eax
push ebx
lea edi, [ebp + 0x104]
push pe_nt_image_headers32
push edi
call fcn.102268d1
mov eax, edi
add esp, 0x10
mov byte [esi + ebp + 0x105], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101e7dc7
sub eax, edx
add eax, 0xa
cmp eax, 0x100
jbe 0x101e7de6
pop edi
pop ebx
pop esi
mov eax, 3
pop ebp
ret 4
push str.temp__.___
push pe_nt_image_headers32
push edi
call fcn.102293a0
add esp, 0xc
test esi, esi
jg 0x101e7e16
push str.temp__.___
push pe_nt_image_headers32
add ebp, 0x104
push ebp
call fcn.10226818
add esp, 0xc
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
ret 4
Function at 0x101e8560
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax + 4]
mov dword [esp + 4], ebx
test ebx, ebx
jne 0x101e857f
mov eax, dword [esp + 0x10]
mov dword [eax], ebx
mov dword [eax + 4], ebx
xor eax, eax
pop ebx
pop ecx
ret
mov eax, 0xaaaaaaab
mul ebx
shr edx, 1
push ebp
lea ebp, [edx*4]
lea ecx, [edx + edx*2]
mov edx, ebx
sub edx, ecx
je 0x101e859c
add ebp, 4
add ebp, 1
mov eax, 1
je 0x101e85a8
mov eax, ebp
push esi
push edi
push eax
call fcn.10226586
mov edi, eax
add esp, 4
test edi, edi
jne 0x101e85c2
lea eax, [edi + 1]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x20]
push edi
push ebp
call fcn.101e88e0
add esp, 8
test eax, eax
jne 0x101e86da
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x18]
mov ebp, dword [eax]
xor edx, edx
test ebx, ebx
jbe 0x101e86d5
movzx eax, byte [ebp]
inc edx
mov ecx, edx
inc ebp
inc edx
cmp ecx, ebx
jae 0x101e86b0
movzx ecx, byte [ebp]
mov esi, edx
inc ebp
inc edx
cmp esi, ebx
jae 0x101e8670
movzx esi, byte [ebp]
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi], bl
mov ebx, ecx
and eax, 3
shl eax, 4
shr ebx, 4
or ebx, eax
movzx eax, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov ebx, dword [esp + 0x10]
mov byte [edi + 1], al
inc edi
and ecx, 0xf
add ecx, ecx
mov eax, esi
add ecx, ecx
shr eax, 6
or ecx, eax
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
inc edi
mov byte [edi], cl
and esi, 0x3f
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
inc edi
mov byte [edi], al
inc ebp
inc edi
cmp edx, ebx
jb 0x101e85f1
mov byte [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi], dl
mov edx, ecx
and eax, 3
shl eax, 4
inc edi
shr edx, 4
or edx, eax
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi], al
inc edi
and ecx, 0xf
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi], cl
inc edi
mov byte [edi], 0x3d
inc edi
mov byte [edi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, eax
shr edx, 2
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi], cl
and eax, 3
inc edi
shl eax, 4
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edi], dl
inc edi
mov byte [edi], 0x3d
inc edi
mov byte [edi], 0x3d
inc edi
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x101e86e0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ebx, dword [esi + 4]
test ebx, ebx
jne 0x101e8703
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi]
push edi
lea edi, [ebx + ebx*2]
mov cl, 0x3d
shr edi, 2
cmp byte [eax + ebx - 1], cl
jne 0x101e871e
dec ebx
dec edi
cmp byte [eax + ebx - 1], cl
jne 0x101e871e
dec ebx
dec edi
mov eax, 1
test ebx, ebx
je 0x101e8729
mov eax, ebx
push eax
call fcn.10226586
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x101e8744
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
mov ecx, dword [esi]
push ebx
push ecx
push eax
call fcn.10228b20
add esp, 0xc
mov eax, 1
test edi, edi
je 0x101e875c
mov eax, edi
push ebp
push eax
call fcn.10226586
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x101e8784
mov edx, dword [esp + 0x10]
push edx
lea esi, [eax + 1]
call fcn.102264a9
add esp, 4
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x1c]
push ebp
push edi
call fcn.101e88e0
mov esi, eax
add esp, 8
test esi, esi
je 0x101e87ad
mov edx, dword [esp + 0x10]
push edx
call fcn.102264a9
add esp, 4
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
xor esi, esi
mov dword [eax], ebp
mov dword [eax + 4], edi
test ebx, ebx
jbe 0x101e8806
mov al, byte [ecx]
cmp al, 0x2f
jne 0x101e87cb
mov byte [ecx], 0x3f
jmp 0x101e87fc
cmp al, 0x2b
jne 0x101e87d4
mov byte [ecx], 0x3e
jmp 0x101e87fc
mov dl, al
sub dl, 0x30
cmp dl, 9
ja 0x101e87e2
add al, 4
jmp 0x101e87fa
mov dl, al
sub dl, 0x61
cmp dl, 0x19
ja 0x101e87f0
sub al, 0x47
jmp 0x101e87fa
sub al, 0x41
cmp al, 0x19
ja 0x101e88bb
mov byte [ecx], al
inc esi
inc ecx
cmp esi, ebx
jb 0x101e87c0
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + 4]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax]
xor edx, edx
cmp ebp, 2
jbe 0x101e8877
add ebp, 0xfffffffe
test ebp, ebp
jbe 0x101e8874
lea edx, [ebp - 1]
mov eax, 0xaaaaaaab
mul edx
mov edi, edx
shr edi, 1
inc edi
lea edx, [edi + edi*2]
nop
mov al, byte [ecx]
movzx ebx, byte [ecx + 1]
inc ecx
shr bl, 4
and bl, 3
add al, al
add al, al
or bl, al
mov byte [esi], bl
mov al, byte [ecx]
movzx ebx, byte [ecx + 1]
inc ecx
shr bl, 2
and bl, 0xf
shl al, 4
or bl, al
mov byte [esi + 1], bl
mov al, byte [ecx]
movzx ebx, byte [ecx + 1]
inc esi
inc ecx
shl al, 6
and bl, 0x3f
inc esi
or bl, al
mov byte [esi], bl
inc esi
inc ecx
sub edi, 1
jne 0x101e8830
add ebp, 2
cmp edx, ebp
jae 0x101e88a6
mov al, byte [ecx]
mov bl, byte [ecx + 1]
inc ecx
shr bl, 4
add al, al
add al, al
and bl, 3
or bl, al
inc edx
mov byte [esi], bl
inc esi
cmp edx, ebp
jae 0x101e88a6
mov al, byte [ecx + 1]
mov cl, byte [ecx]
shr al, 2
and al, 0xf
shl cl, 4
or al, cl
mov byte [esi], al
mov edx, dword [esp + 0x10]
push edx
call fcn.102264a9
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.102264a9
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x101e9080
Capabilities:
Create directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1023ec1b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, edx
mov eax, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101e90d0
sub eax, edx
jne 0x101e90e5
mov eax, 1
jmp 0x101e928f
xor ebp, ebp
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101e924f
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101e9110
sub eax, edx
cmp eax, 0x200
jb 0x101e912a
mov eax, 3
jmp 0x101e928f
push edi
lea eax, [esp + 0x38]
push 0x200
push eax
call fcn.10226818
lea eax, [esp + 0x40]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101e9144
sub eax, edx
dec eax
cmp eax, ebp
jl 0x101e9242
mov cl, byte [esp + eax + 0x34]
cmp cl, 0x5c
je 0x101e9169
cmp cl, 0x2f
je 0x101e9169
sub eax, 1
jns 0x101e9156
cmp eax, ebp
jle 0x101e9242
mov byte [esp + eax + 0x34], 0
mov dword [esp + 0x18], vtable.C3303::ByteString.0
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x38]
mov dword [esp + 0x244], ebp
call fcn.101e5eb0
mov ebx, dword [esp + 0x24]
cmp ebx, ebp
je 0x101e91b3
mov edi, ebx
cmp dword [esp + 0x1c], ebp
jne 0x101e91b8
mov edi, 0x1025bd4e
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 1
cmp dword [esp + 0x1c], esi
jle 0x101e91f4
lea esp, [esp]
mov bl, byte [esi + edi]
cmp bl, 0x2f
je 0x101e91dd
cmp bl, 0x5c
jne 0x101e91e9
push 0
push edi
mov byte [esi + edi], 0
call ebp
mov byte [esi + edi], bl
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x101e91d0
mov ebx, dword [esp + 0x24]
push 0
push edi
call ebp
mov dword [esp + 0x240], 0xffffffff
test ebx, ebx
je 0x101e921e
mov edx, dword [esp + 0x20]
push edx
push 0
push ebx
call fcn.10228aa0
push ebx
call fcn.1021b8de
add esp, 0x10
mov eax, dword [esp + 0x2c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x101e9249
mov eax, 5
jmp 0x101e928f
mov ebx, dword [esp + 0x30]
xor ebp, ebp
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x101e9261
cmp ecx, ebp
jne 0x101e9266
mov eax, 0x1025bd4e
push ebp
lea edx, [esp + 0x18]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x101e9287
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
jmp 0x101e928f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1022649a
add esp, 0x230
ret
Function at 0x101e92c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101e92c7
sub eax, esi
jne 0x101e92da
mov eax, 1
pop esi
pop ecx
ret
push ebx
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101e9304
pop ebx
mov eax, 2
pop esi
pop ecx
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x101e9326
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 3
pop esi
pop ecx
ret
test edi, edi
jne 0x101e9341
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
call fcn.101e6450
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
push ebp
lea esi, [edi + 1]
push esi
call fcn.1021b8a4
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x101e9364
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 4]
pop ebp
pop edi
pop ebx
pop esi
pop ecx
ret
push esi
push 0
push ebp
call fcn.10228aa0
add esp, 0xc
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101e9396
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop ebx
mov eax, 5
pop esi
pop ecx
ret
cmp edi, dword [esp + 0x10]
je 0x101e93ae
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop ebx
mov eax, 6
pop esi
pop ecx
ret
mov esi, dword [esp + 0x18]
push ebp
call fcn.101e5d60
push ebp
call fcn.1021b8de
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop ebx
xor eax, eax
pop esi
pop ecx
ret
Function at 0x101e9780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1023dbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x102a8930]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov esi, dword [eax + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x101e97bf
cmp dword [eax + 4], ebx
je 0x101e97bf
mov dword [esp + 0x18], esi
jmp 0x101e97cb
mov dword [esp + 0x18], 0x1025bd4e
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x101e97e4
mov ecx, dword [edi + 4]
push ecx
push ebx
push eax
call fcn.10228aa0
add esp, 0xc
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
xor edi, edi
mov dword [esp + 0x1c], vtable.C3303::ByteString.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
xor ebp, ebp
cmp dword [edx + 4], ebx
jle 0x101e991f
jmp 0x101e9824
mov esi, dword [esp + 0x18]
mov al, byte [esi + ebp]
test al, al
js 0x101e9834
mov byte [esp + 0x14], al
jmp 0x101e98e9
mov cl, al
and cl, 0xe0
cmp cl, 0xc0
jne 0x101e9854
mov dl, byte [esi + ebp + 1]
and dl, 0x3f
shl al, 6
add dl, al
mov byte [esp + 0x14], dl
inc ebp
jmp 0x101e98e9
mov cl, al
and cl, 0xf0
cmp cl, 0xe0
jne 0x101e98e4
mov dl, byte [esi + ebp + 1]
mov cl, dl
and cl, 0xc0
cmp cl, 0x80
jne 0x101e98e4
mov cl, byte [esi + ebp + 2]
mov bl, cl
and bl, 0xc0
cmp bl, 0x80
jne 0x101e98e2
and al, 0xf
movzx ax, al
and dl, 0x3f
shl ax, 6
movzx dx, dl
add ax, dx
and cl, 0x3f
movzx cx, cl
shl ax, 6
add ax, cx
movzx eax, ax
lea edx, [eax + 0x5400]
mov ecx, 0x2ba3
cmp dx, cx
ja 0x101e98d6
movzx edx, ax
and edx, 0x800000ff
jns 0x101e98c6
dec edx
or edx, 0xffffff00
inc edx
shr eax, 8
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], al
add ebp, 2
jmp 0x101e98ed
mov byte [esp + 0x14], 0x3f
mov byte [esp + 0x15], 0
jmp 0x101e98ed
xor ebx, ebx
mov byte [esp + 0x14], 0x3f
mov byte [esp + 0x15], bl
lea eax, [esp + 0x14]
push eax
mov edi, 2
lea esi, [esp + 0x20]
call fcn.101e5d60
mov ebx, esi
mov esi, dword [esp + 0x44]
call fcn.101e61b0
mov ecx, dword [esp + 0x40]
inc ebp
xor ebx, ebx
cmp ebp, dword [ecx + 4]
jl 0x101e9820
mov edi, dword [esp + 0x28]
mov dword [esp + 0x38], 0xffffffff
cmp edi, ebx
je 0x101e9940
mov edx, dword [esp + 0x24]
push edx
push ebx
push edi
call fcn.10228aa0
push edi
call fcn.1021b8de
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret