joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023d70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x620], eax
push esi
push edi
xor edi, edi
cmp dword [0x10054220], edi
mov esi, ecx
je 0x10023db8
push 0xffffffffffffffff
push edi
mov eax, 0x1005420c
call fcn.100020a0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x624
ret
push 0x20a
lea eax, [esp + 0xe]
push edi
push eax
mov word [esp + 0x14], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x10023ea3
push 0x410
lea edx, [esp + 0x21a]
push edi
push edx
mov word [esp + 0x21e], di
mov word [esp + 0x220], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x10023e65
cmp eax, edi
je 0x10023e65
push esi
lea edx, [esp + 0x218]
mov word [esp + eax*2 + 0x218], di
call fcn.10001f60
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x624
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10023e70
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
push edx
call fcn.100025e0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x624
ret
mov ecx, dword [esp + 0x628]
pop edi
pop esi
xor ecx, esp
xor al, al
call fcn.1003ec9d
add esp, 0x624
ret

Function at 0x10023ec0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
push 0x20a
lea eax, [esp + 0x12]
push 0
push eax
mov ebx, ecx
mov edi, edx
mov word [esp + 0x18], 0
call sub.MSVCR80.dll_memset
mov eax, 8
add esp, 0xc
cmp dword [edi + 0x18], eax
jb 0x10023f0c
mov edi, dword [edi + 4]
jmp 0x10023f0f
add edi, 4
cmp dword [ebx + 0x18], eax
jb 0x10023f19
mov ebx, dword [ebx + 4]
jmp 0x10023f1c
add ebx, 4
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jbe 0x10023f74
lea eax, [esp + 0xc]
mov word [esp + 0x216], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10023f40
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
call fcn.100025e0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebx
xor ecx, esp
xor al, al
call fcn.1003ec9d
add esp, 0x210
ret
Function at 0x100240a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x420
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
mov edi, ecx
call fcn.10001fc0
push 0x410
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push 0
push 0
call esi
test eax, eax
jne 0x10024101
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x420
ret
cmp eax, 0x208
jae 0x100240e8
lea ecx, [esp + 8]
push ecx
push 0x209
call esi
test eax, eax
je 0x100240e8
cmp eax, 0x208
jae 0x100240e8
push edi
lea edx, [esp + 0xc]
mov word [esp + 0x41c], 0
call fcn.10001f60
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.1003ec9d
add esp, 0x420
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x100419f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x10054020]
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.100020a0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.10024150
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x10024797
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100247ba
cmp dword [esp + 0x20], esi
jb 0x100247b6
mov eax, dword [esp + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x100247cf
cmp dword [esp + 0x20], esi
jb 0x100247cd
mov ecx, dword [esp + 0xc]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x2c
ret
Function at 0x100247f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x100419f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x10054020]
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.100020a0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.10024150
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x10024867
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002488e
test al, 0x10
jne 0x1002488e
cmp dword [esp + 0x20], esi
jb 0x1002488a
mov eax, dword [esp + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x100248a3
cmp dword [esp + 0x20], esi
jb 0x100248a1
mov ecx, dword [esp + 0xc]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x2c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x100419f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x10054020]
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.100020a0
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.10024150
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x10024937
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1002495e
test al, 0x10
je 0x1002495e
cmp dword [esp + 0x20], esi
jb 0x1002495a
mov eax, dword [esp + 0xc]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x10024973
cmp dword [esp + 0x20], esi
jb 0x10024971
mov ecx, dword [esp + 0xc]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x2c
ret
Function at 0x10024990
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x1002499e
mov eax, dword [esi]
jmp 0x100249a0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100249cd
and eax, 0xfffffffe
cmp eax, 0xffffffff
je 0x100249cd
and eax, 0xffffb1af
cmp dword [edi + 0x18], 8
jb 0x100249c3
mov ecx, dword [esi]
jmp 0x100249c5
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x100249d5
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x10024e80
Capabilities:
Move file

Disassembly:
mov edx, 8
cmp dword [eax + 0x18], edx
jb 0x10024e8f
mov eax, dword [eax + 4]
jmp 0x10024e92
add eax, 4
cmp dword [ecx + 0x18], edx
jb 0x10024ead
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 0x10024ed0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10042138
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x14]
xor edi, edi
test eax, eax
mov dword [esp + 0x10], eax
jbe 0x10024fef
lea ebp, [ebx + 4]
cmp edi, dword [ebx + 0x14]
jbe 0x10024f20
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, 8
cmp dword [ebx + 0x18], esi
jb 0x10024f2f
mov eax, dword [ebp]
jmp 0x10024f31
mov eax, ebp
cmp word [eax + edi*2], 0x2f
je 0x10024f5a
cmp edi, dword [ebx + 0x14]
jbe 0x10024f43
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [ebx + 0x18], esi
jb 0x10024f4d
mov eax, dword [ebp]
jmp 0x10024f4f
mov eax, ebp
cmp word [eax + edi*2], 0x5c
jne 0x10024fe2
push edi
push ebx
xor ecx, ecx
lea esi, [esp + 0x1c]
call fcn.10002070
xor esi, esi
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x28], esi
je 0x10024fb5
lea ecx, [esp + 0x14]
push ecx
call fcn.10024720
add esp, 4
test al, al
jne 0x10024fb5
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x10024f93
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10024fb5
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x10024fd1
mov edx, dword [esp + 0x18]
push edx
jmp 0x10024fc9
mov dword [esp + 0x3c], 0xffffffff
cmp dword [esp + 0x2c], 8
jb 0x10024fd1
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x10024f15
push ebx
call fcn.10024720
add esp, 4
test al, al
jne 0x1002501b
cmp dword [ebx + 0x18], 8
jb 0x10025007
mov eax, dword [ebx + 4]
jmp 0x1002500a
lea eax, [ebx + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1002501b
xor al, al
jmp 0x10025024
push ebx
call fcn.100248c0
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1003ec9d
add esp, 0x30
ret

Function at 0x10025410
Capabilities:
Create directory

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x10025428
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 0x10025440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100432d8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10054020]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push esi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
push 2
push 0x10048cf0
mov eax, esi
call fcn.100156a0
cmp eax, 0xffffffff
jne 0x100254ac
cmp dword [esi + 0x18], 8
jb 0x10025496
mov esi, dword [esi + 4]
jmp 0x10025499
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x10025511
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], eax
mov word [esp + 0x38], ax
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x70], eax
call fcn.100289d0
add esp, 8
cmp dword [esp + 0x4c], 8
mov bl, al
jb 0x1002550f
mov eax, dword [esp + 0x38]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
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.1003ec9d
mov esp, ebp
pop ebp
ret
Function at 0x10025aa0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [eax]
test eax, eax
jne 0x10025aab
xor al, al
pop ecx
ret
cmp dword [eax], 0xffffffff
je 0x10025aa7
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 0x10025ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10025ad5
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.1003fb20
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 0x10025fa0
Capabilities:
Clear file content

Disassembly:
mov eax, dword [ecx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
add eax, 1
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x10040d7e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x3c]
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]
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [edi + 0x24], ebx
mov byte [edi + 0x28], bl
mov eax, 7
mov dword [edi + 0x44], eax
mov dword [edi + 0x40], ebx
mov word [edi + 0x30], bx
mov byte [esp + 0x34], 1
push ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
push 0x10047a94
lea esi, [esp + 0x18]
mov byte [edi + 8], bl
mov dword [edi + 0x18], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x1c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.100025e0
mov byte [esp + 0x34], 2
cmp dword [edi + 0x24], ebx
lea esi, [ebx + 8]
jne 0x10026bcc
cmp dword [esp + 0x24], ebx
jne 0x10026b90
xor eax, eax
jmp 0x10026b9e
cmp dword [esp + 0x28], esi
mov eax, dword [esp + 0x14]
jae 0x10026b9e
lea eax, [esp + 0x14]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
push 0xffffffffffffffff
mov byte [edi + 0x28], al
push ebx
lea ecx, [edi + 0x2c]
lea eax, [esp + 0x18]
call fcn.100020a0
cmp dword [esp + 0x28], esi
jb 0x10026bdf
mov ecx, dword [esp + 0x14]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
Function at 0x10027010
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x10040458
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x100270d0
lea edi, [eax + 0x20]
test edi, edi
mov dword [esp + 0x14], edi
je 0x1002705a
mov eax, dword [edi]
test eax, eax
je 0x1002705a
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x100270bf
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 0x10026c00
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 0x100270e6
push 0xffffffffffffffff
push ebx
call ebp
sub eax, 1
jne 0x100270b7
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov esi, dword [esi + 8]
call fcn.10026e50
test edi, edi
je 0x100270d0
mov edi, dword [edi]
test edi, edi
je 0x100270d0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 0x100270ff
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]
cmp eax, 0xffffffff
je 0x100270a4
test edi, edi
je 0x10027122
mov edi, dword [edi]
test edi, edi
je 0x10027122
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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 0x10028a70
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x100403b9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10054020]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
mov esi, ecx
xor ebx, ebx
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 0x10028c30
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 0x10028b6a
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
jmp 0x10028b30
movzx ebx, byte [esp + edi + 0x18]
cmp ebx, dword [0x1005423c]
jbe 0x10028b43
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [0x10054240], 0x10
mov eax, dword [0x1005422c]
jae 0x10028b56
mov eax, 0x1005422c
mov bl, byte [eax + ebx]
call fcn.10015350
add edi, 1
cmp edi, 4
jl 0x10028b30
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x38], ebx
jne 0x10028acc
cmp edi, ebx
je 0x10028c30
cmp edi, 3
jge 0x10028b97
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 0x10028c18
mov edi, edi
movzx ebx, byte [esp + ebp + 0x18]
cmp ebx, dword [0x1005423c]
jbe 0x10028bf3
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp dword [0x10054240], 0x10
mov eax, dword [0x1005422c]
jae 0x10028c06
mov eax, 0x1005422c
mov bl, byte [eax + ebx]
call fcn.10015350
add ebp, 1
lea eax, [edi + 1]
cmp ebp, eax
jl 0x10028be0
cmp edi, 3
jge 0x10028c30
mov ebp, 3
sub ebp, edi
mov bl, 0x3d
call fcn.10015350
sub ebp, 1
jne 0x10028c24
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 0x10028cc0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov eax, 0x8000
cmp dword [esp + 0x18], eax
push ebp
push edi
jbe 0x10028cd5
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor ebx, ebx
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [esi + 0x20], ebx
je 0x10028ddb
cmp eax, ebx
je 0x10028ddb
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0xc], ecx
jae 0x10028ddb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
mov ebp, eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10028d4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10028d62
mov ecx, dword [esp + 0x10]
push 1
push ebx
push ebx
push ecx
call fcn.1003fb20
xor ecx, ecx
add eax, edi
adc edx, ecx
jmp 0x10028d66
xor eax, eax
xor edx, edx
push ebx
push ebp
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
lea eax, [esi + 4]
push ebx
mov word [ecx + 4], bx
call fcn.100020a0
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp eax, ebx
jne 0x10028ddb
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi]
add eax, ecx
push eax
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
add dword [esp + 0xc], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
cmp eax, ebx
jne 0x10028d13
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
pop edi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x10029180
Capabilities:
Get file size

Disassembly:
push ecx
mov edx, dword [ecx]
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100291ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100291ae
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.1003fb20
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 0x10029230
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov ebx, eax
mov edi, ecx
mov dword [esi], 0
cmp ebx, 0x10000
mov eax, ebx
jbe 0x10029253
mov eax, 0x10000
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push edi
push eax
mov dword [esp + 0x20], 0
call ebp
mov ecx, dword [esp + 0xc]
test eax, eax
setne al
add dword [esi], ecx
test al, al
je 0x1002928f
test ecx, ecx
je 0x10029286
add edi, ecx
sub ebx, ecx
jne 0x10029244
pop edi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 4
pop edi
pop ebp
xor al, al
pop ebx
pop ecx
ret 4