joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019b870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x101e75a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], esi
mov word [esp + 0x14], si
call fcn.10007880
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.1019eff0
mov eax, dword [esp + 0x10]
add esp, 4
cmp dword [esp + 0x20], 8
jae 0x1019b8e3
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1019b913
test al, 0x10
je 0x1019b913
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1019b90f
mov eax, dword [esp + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x1019b931
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x1019b92f
mov ecx, dword [esp + 0xc]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov word [esp + 0xc], si
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 7
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.101d19cc
add esp, 0x2c
ret

Function at 0x1019bc30
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x1019bc3f
mov eax, dword [eax + 4]
jmp 0x1019bc42
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x1019bc5d
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
neg eax
sbb eax, eax
add eax, 1
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__wrename]
add esp, 8
neg eax
sbb eax, eax
add eax, 1
ret
Function at 0x1019bc80
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x101f2418
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [edi + 0x14]
xor ebp, ebp
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x10], eax
jbe 0x1019bd9b
lea ebx, [edi + 4]
cmp esi, dword [edi + 0x14]
jbe 0x1019bcd2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 8
jb 0x1019bcdc
mov eax, dword [ebx]
jmp 0x1019bcde
mov eax, ebx
cmp word [eax + esi*2], 0x2f
je 0x1019bd07
cmp esi, dword [edi + 0x14]
jbe 0x1019bcf0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [edi + 0x18], 8
jb 0x1019bcfa
mov eax, dword [ebx]
jmp 0x1019bcfc
mov eax, ebx
cmp word [eax + esi*2], 0x5c
jne 0x1019bd8e
push esi
lea eax, [esp + 0x18]
push eax
push edi
xor ecx, ecx
call fcn.1000f690
mov dword [esp + 0x3c], ebp
cmp dword [esp + 0x28], ebp
je 0x1019bd61
lea edx, [esp + 0x14]
push edx
call fcn.1019b690
add esp, 4
test al, al
jne 0x1019bd61
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x1019bd3f
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1019bd61
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x1019bd7d
mov eax, dword [esp + 0x18]
push eax
jmp 0x1019bd75
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x1019bd7d
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x1019bcc7
push edi
call fcn.1019b690
add esp, 4
test al, al
jne 0x1019bdbe
cmp dword [edi + 0x18], 8
jb 0x1019bdb3
mov eax, dword [edi + 4]
jmp 0x1019bdb6
lea eax, [edi + 4]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.1019b870
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.101d19cc
add esp, 0x30
ret
Function at 0x1019e130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e7548
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], vtable.RC::RCBuffer_char_.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], vtable.RC::RCDynamicBuffer_char_.0
lea eax, [esp + 0xc]
push eax
push ecx
mov esi, edx
mov dword [esp + 0x30], ebx
call fcn.1019dfb0
test al, al
je 0x1019e206
cmp dword [esp + 0x18], ebx
jbe 0x1019e1bb
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1019e1a0
sub eax, esi
mov esi, dword [ebp + 8]
sar eax, 1
push eax
push edx
call fcn.10007a00
jmp 0x1019e1c3
mov eax, dword [ebp + 8]
call fcn.1000bb60
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc], vtable.RC::RCDynamicBuffer_char_.0
mov dword [esp + 0xc], vtable.RC::RCBuffer_char_.0
je 0x1019e1f0
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x14], ebx
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xc], vtable.RC::RCDynamicBuffer_char_.0
mov dword [esp + 0xc], vtable.RC::RCBuffer_char_.0
je 0x1019e233
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x14], ebx
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1019f3d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101e7511
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0xc], ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov dword [esp + 0x10], esi
mov word [esi + 4], bx
mov dword [esp + 0x74], ebx
mov edi, 1
xor eax, eax
lea edx, [esp + 0x30]
mov dword [esp + 0xc], edi
call fcn.1019ea50
mov dword [esp + 0x74], edi
mov eax, dword [esp + 0x44]
cmp eax, ebx
lea edi, [ebx + 0x10]
je 0x1019f4db
cmp dword [esp + 0x48], edi
mov ecx, dword [esp + 0x34]
jae 0x1019f455
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.101a4940
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x84], 2
call fcn.1019e440
add esp, 0x10
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov byte [esp + 0x7c], 3
call fcn.10007880
mov byte [esp + 0x74], 2
cmp dword [esp + 0x2c], 8
jb 0x1019f4a2
mov edx, dword [esp + 0x18]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x74], 1
cmp dword [esp + 0x64], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
jb 0x1019f4cb
mov eax, dword [esp + 0x50]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
mov byte [esp + 0x74], bl
cmp dword [esp + 0x48], edi
jb 0x1019f4f2
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
mov eax, esi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.101d19cc
add esp, 0x6c
ret

Function at 0x1019f620
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
test eax, eax
jne 0x1019f62b
xor al, al
pop ecx
ret
cmp dword [eax], 0xffffffff
je 0x1019f627
mov edx, dword [eax]
push esi
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1019f655
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1019f655
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.101d25c0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret

Function at 0x1019f950
Capabilities:
Create directory

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x1019f968
mov eax, dword [eax + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
ret
Function at 0x1019f980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101fbe9a
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push esi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
push 2
push 0x10241ac8
xor edx, edx
mov eax, esi
call fcn.100de8c0
cmp eax, 0xffffffff
jne 0x1019f9ee
cmp dword [esi + 0x18], 8
jb 0x1019f9d8
mov esi, dword [esi + 4]
jmp 0x1019f9db
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x1019fa22
lea edx, [esp + 0xc]
push edx
call fcn.101a27a0
mov eax, edx
push eax
push esi
mov dword [esp + 0x70], 0
call fcn.101a44e0
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov bl, al
mov dword [esp + 0x6c], 0xffffffff
call fcn.101a2810
mov al, bl
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.101d19cc
mov esp, ebp
pop ebp
ret

Function at 0x101a1050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101e0840
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
push eax
mov dword [edi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ebp, [edi + 0x24]
xor ebx, ebx
push ebp
mov dword [esp + 0x3c], ebx
call fcn.101a0c40
mov byte [esp + 0x38], 1
or eax, 0xffffffff
push ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
push 0x1022fcf8
lea esi, [esp + 0x1c]
mov byte [edi + 8], bl
mov dword [edi + 0x18], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x1c], ebx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.10007a00
mov byte [esp + 0x38], 2
cmp dword [ebp], ebx
lea esi, [ebx + 8]
jne 0x101a1130
cmp dword [esp + 0x28], ebx
jne 0x101a10f4
xor eax, eax
jmp 0x101a1102
cmp dword [esp + 0x2c], esi
mov eax, dword [esp + 0x18]
jae 0x101a1102
lea eax, [esp + 0x18]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
push 0xffffffffffffffff
mov byte [ebp + 4], al
push ebx
lea ecx, [ebp + 8]
lea eax, [esp + 0x1c]
call fcn.10007880
mov byte [esp + 0x38], 1
cmp dword [esp + 0x2c], esi
jb 0x101a1148
mov ecx, dword [esp + 0x18]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x101a1630
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x101d66d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
xor ebx, ebx
cmp edi, ebx
je 0x101a16a1
add edi, 0x20
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x101a1678
mov eax, dword [edi]
cmp eax, ebx
je 0x101a1678
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 8]
cmp dword [eax + 4], ebx
jne 0x101a16b7
cmp edi, ebx
mov dword [esp + 0x20], 0xffffffff
je 0x101a16a1
mov edi, dword [edi]
cmp edi, ebx
je 0x101a169d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], ebx
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 1
lea ebx, [esi + 4]
push ebx
call ebp
mov ecx, dword [esi + 8]
add ecx, 0xc
push ecx
push 4
push esi
push 0x101a1180
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
mov edx, dword [esi + 8]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 8]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x101a1742
push 0xffffffffffffffff
push ebx
call ebp
sub eax, 1
jne 0x101a1703
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov esi, dword [esi + 8]
call fcn.101a1320
mov dword [esp + 0x20], 0xffffffff
test edi, edi
je 0x101a172c
mov edi, dword [edi]
test edi, edi
je 0x101a1724
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, eax
mov byte [ecx + 8], 1
mov eax, dword [esi + 8]
add eax, 0x24
mov eax, dword [eax]
test eax, eax
je 0x101a175b
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [esi + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x101a1782
call fcn.101a1610
mov esi, dword [esi + 8]
call fcn.101a1320
mov dword [esp + 0x20], ebx
jmp 0x101a1713
test edi, edi
mov dword [esp + 0x20], ebx
je 0x101a179f
mov edi, dword [edi]
test edi, edi
je 0x101a1797
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], 0
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x101a23f0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [eax + 4]
test eax, eax
mov dword [esp], 0
je 0x101a2434
test ecx, ecx
je 0x101a2434
cmp dword [eax], 0xffffffff
je 0x101a2434
push 0
lea edx, [esp + 4]
push edx
push 1
mov dword [esp + 0xc], 0
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101a2434
cmp dword [esp], 1
jne 0x101a2434
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x101a2440
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
xor eax, eax
push ebx
xor ebx, ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ebx
mov dword [esi], ebx
mov word [esp + 9], ax
mov byte [esp + 0xb], al
mov eax, dword [esi + 4]
cmp eax, ebx
mov byte [esp + 8], bl
mov dword [esp + 0xc], ebx
je 0x101a25b8
cmp dword [eax], 0xffffffff
je 0x101a25b8
push ebx
lea ecx, [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101a25b8
cmp dword [esp + 0xc], 1
jne 0x101a25b8
lea ecx, [esp + 9]
mov eax, esi
call fcn.101a23f0
test al, al
je 0x101a25b8
lea ecx, [esp + 0xa]
mov eax, esi
call fcn.101a23f0
test al, al
je 0x101a24d5
lea ecx, [esp + 0xb]
mov eax, esi
call fcn.101a23f0
test al, al
mov cl, 1
jne 0x101a24d7
mov cl, bl
mov al, byte [esp + 8]
mov dl, 0xff
cmp al, dl
jne 0x101a252e
cmp byte [esp + 9], 0xfe
jne 0x101a25ac
cmp cl, bl
je 0x101a2515
cmp byte [esp + 0xa], bl
jne 0x101a2515
cmp byte [esp + 0xb], bl
jne 0x101a2515
mov ecx, dword [esp + 8]
mov dword [esi], 4
mov dword [esi + 8], 0xc
mov dword [esi + 0x14], ecx
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 8]
mov dword [esi], 2
mov dword [esi + 8], 9
mov dword [esi + 0x14], ecx
pop ebx
add esp, 0xc
ret
cmp al, 0xfe
jne 0x101a2551
cmp byte [esp + 9], dl
jne 0x101a25ac
mov ecx, dword [esp + 8]
mov dword [esi], 2
mov dword [esi + 8], 8
mov dword [esi + 0x14], ecx
pop ebx
add esp, 0xc
ret
cmp al, 0xef
jne 0x101a257c
cmp byte [esp + 9], 0xbb
jne 0x101a25ac
cmp byte [esp + 0xa], 0xbf
jne 0x101a25ac
mov ecx, dword [esp + 8]
mov dword [esi], 3
mov dword [esi + 8], 6
mov dword [esi + 0x14], ecx
pop ebx
add esp, 0xc
ret
cmp al, bl
jne 0x101a25ac
cmp byte [esp + 9], bl
jne 0x101a25ac
cmp byte [esp + 0xa], 0xfe
jne 0x101a25ac
cmp byte [esp + 0xb], dl
jne 0x101a25ac
mov ecx, dword [esp + 8]
mov dword [esi], 4
mov dword [esi + 8], 0xb
mov dword [esi + 0x14], ecx
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 8]
mov dword [esi + 8], ebx
mov dword [esi], ebx
mov dword [esi + 0x14], ecx
pop ebx
add esp, 0xc
ret
Function at 0x101a25e0
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101dd3a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, 0x100000
cmp dword [esp + 0x30], eax
jbe 0x101a2615
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
xor edi, edi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [esi + 0x20], edi
je 0x101a272a
cmp eax, edi
je 0x101a272a
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x10], ecx
jae 0x101a272a
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x14]
mov ebp, eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101a268c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101a26a2
mov ecx, dword [esp + 0x14]
push 1
push edi
push edi
push ecx
call fcn.101d25c0
xor ecx, ecx
add eax, ebx
adc edx, ecx
jmp 0x101a26a6
xor eax, eax
xor edx, edx
push edi
push ebp
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x40], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], edi
lea eax, [esi + 4]
push edi
mov word [ecx + 4], di
call fcn.10007880
mov dword [esp + 0x50], edi
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
add eax, 0x18
mov dword [esp + 0x50], 0xffffffff
call edx
cmp eax, edi
jne 0x101a272a
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esi]
add edx, eax
push edx
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
neg eax
sbb eax, eax
add dword [esp + 0x10], edx
and eax, 0x7fffbffb
add eax, 0x80004005
cmp eax, edi
jne 0x101a2653
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov dword [ecx], edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x101a4940
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x101dd349
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov esi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x20], esi
mov byte [esi + 4], bl
xor edi, edi
cmp dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], 1
je 0x101a4b00
mov al, byte [ebp]
sub dword [esp + 0x38], 1
mov byte [esp + edi + 0x14], al
add edi, 1
add ebp, 1
cmp edi, 3
jne 0x101a4a3a
mov al, byte [esp + 0x14]
mov cl, al
shr cl, 2
mov dl, al
mov al, byte [esp + 0x15]
and dl, 3
mov byte [esp + 0x18], cl
shl dl, 4
mov cl, al
shr cl, 4
add dl, cl
mov byte [esp + 0x19], dl
mov dl, al
mov al, byte [esp + 0x16]
and dl, 0xf
add dl, dl
mov cl, al
add dl, dl
shr cl, 6
add dl, cl
and al, 0x3f
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], al
xor edi, edi
nop
movzx ebx, byte [esp + edi + 0x18]
cmp ebx, dword [0x1029fee0]
jbe 0x101a4a13
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [0x1029fee4], 0x10
mov eax, dword [0x1029fed0]
jae 0x101a4a26
mov eax, 0x1029fed0
mov bl, byte [eax + ebx]
call fcn.101a0490
add edi, 1
cmp edi, 4
jl 0x101a4a00
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jne 0x101a49a0
cmp edi, ebx
je 0x101a4b00
cmp edi, 3
jge 0x101a4a67
mov edx, 3
sub edx, edi
push edx
lea eax, [esp + edi + 0x18]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov cl, byte [esp + 0x14]
mov al, cl
shr al, 2
mov byte [esp + 0x18], al
mov al, byte [esp + 0x15]
mov dl, al
and cl, 3
shl cl, 4
shr dl, 4
add cl, dl
and al, 0xf
mov byte [esp + 0x19], cl
mov cl, byte [esp + 0x16]
add al, al
mov dl, cl
add al, al
shr dl, 6
add al, dl
mov byte [esp + 0x1a], al
and cl, 0x3f
lea eax, [edi + 1]
xor ebp, ebp
cmp eax, ebx
mov byte [esp + 0x1b], cl
jle 0x101a4ae8
mov edi, edi
movzx ebx, byte [esp + ebp + 0x18]
cmp ebx, dword [0x1029fee0]
jbe 0x101a4ac3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [0x1029fee4], 0x10
mov eax, dword [0x1029fed0]
jae 0x101a4ad6
mov eax, 0x1029fed0
mov bl, byte [eax + ebx]
call fcn.101a0490
add ebp, 1
lea eax, [edi + 1]
cmp ebp, eax
jl 0x101a4ab0
cmp edi, 3
jge 0x101a4b00
mov ebp, 3
sub ebp, edi
mov bl, 0x3d
call fcn.101a0490
sub ebp, 1
jne 0x101a4af4
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x101a4b20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0x20a
lea eax, [esp + 0xa]
push 0
push eax
mov esi, ecx
mov word [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x105
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x101a4bb2
lea eax, [esp + 4]
mov word [esp + 0x20e], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x101a4b80
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 8]
push edx
call fcn.10007a00
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.101d19cc
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor al, al
call fcn.101d19cc
add esp, 0x210
ret

Function at 0x101a4bd0
Capabilities:
Set file attributes

Disassembly:
and ecx, 0xffffb1af
cmp dword [eax + 0x18], 8
jb 0x101a4bed
mov eax, dword [eax + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
add eax, 4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x101a4c00
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x101a4c0f
mov eax, dword [eax + 4]
jmp 0x101a4c12
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x101a4c28
mov ecx, dword [ecx + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
ret