joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100032c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100d4b57
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x100eb9a8
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.10004540
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.10005310
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x10101f58]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x10005310
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x100d391b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100b1752
push 4
mov dword [esp + 0x20], 0
call fcn.100b307d
mov edi, eax
add esp, 4
test edi, edi
je 0x1000538e
call fcn.100b1553
mov dword [edi], eax
call fcn.100b1381
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.100b16a3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10005383
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.100b16cb
jmp 0x10005390
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x10005d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d39f3
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov byte [esp + 0x14], 1
push 4
mov dword [esi + 0x5c], ebx
call fcn.100b307d
add esp, 4
cmp eax, ebx
je 0x10005dcd
mov dword [eax], ebx
jmp 0x10005dcf
xor eax, eax
push 0xc
mov dword [esi + 0x60], eax
call fcn.100b307d
add esp, 4
cmp eax, ebx
je 0x10005dea
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
jmp 0x10005dec
xor eax, eax
push ebx
mov ecx, esi
mov dword [esi + 0x64], eax
mov dword [esi + 0x58], ebx
call fcn.1000dd50
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x100075d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d3e59
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x100ff2f0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], 0x10102040
mov dword [0x10102040], ebx
mov dword [0x1010205c], 0xf
mov dword [0x10102058], ebx
mov byte [0x10102048], bl
push 0x104
lea eax, [esp + 0x31]
push ebx
mov dword [esp + 0x148], ebx
push eax
mov byte [esp + 0x38], bl
call fcn.100b4f00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10007664
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, 0x10102044
call fcn.10002cc0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
mov ecx, 0x10102044
mov byte [esp + 0x14], 0x5c
call fcn.10004350
inc eax
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x10102044
call fcn.10002df0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x10102044
mov byte [esp + 0x14c], 1
call fcn.10004180
cmp dword [esp + 0x28], 0x10
jb 0x100076d1
mov edx, dword [esp + 0x14]
push edx
call fcn.100b2ba3
add esp, 4
mov eax, 0x10102040
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.100b1bc4
add esp, 0x13c
ret
Function at 0x100097d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d3e59
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x100ff2f0]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], 0x10102018
mov dword [0x10102018], ebx
mov dword [0x10102034], 0xf
mov dword [0x10102030], ebx
mov byte [0x10102020], bl
push 0x104
lea eax, [esp + 0x31]
push ebx
mov dword [esp + 0x148], ebx
push eax
mov byte [esp + 0x38], bl
call fcn.100b4f00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10009864
sub eax, edx
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, 0x1010201c
call fcn.10002cc0
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
mov ecx, 0x1010201c
mov byte [esp + 0x14], 0x5c
call fcn.10004350
inc eax
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x1010201c
call fcn.10002df0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, 0x1010201c
mov byte [esp + 0x14c], 1
call fcn.10004180
cmp dword [esp + 0x28], 0x10
jb 0x100098d1
mov edx, dword [esp + 0x14]
push edx
call fcn.100b2ba3
add esp, 4
mov eax, 0x10102018
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.100b1bc4
add esp, 0x13c
ret
Function at 0x10009a00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100d4ade
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100ff2f0]
xor eax, esp
mov dword [esp + 0x74], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x9c]
xor ebx, ebx
cmp dword [ebp], ebx
jne 0x10009a69
push 0x28
call fcn.100b307d
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x94], ebx
cmp eax, ebx
je 0x10009a64
push eax
call fcn.10011c00
jmp 0x10009a66
xor eax, eax
mov dword [ebp], eax
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
mov dword [esp + 0x94], 1
call fcn.100142e0
lea esi, [esp + 0x50]
call fcn.10001ca0
mov esi, eax
mov byte [esp + 0x94], 2
call fcn.100142e0
mov eax, dword [eax]
push eax
mov ecx, esi
lea edi, [esp + 0x38]
call fcn.10013680
push eax
lea eax, [ebp + 4]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xa4], 3
call fcn.100096d0
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xa0], 4
call fcn.10004180
mov esi, 0x10
cmp dword [esp + 0x30], esi
jb 0x10009afc
mov edx, dword [esp + 0x1c]
push edx
call fcn.100b2ba3
add esp, 4
mov edi, 0xf
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [esp + 0x4c], esi
jb 0x10009b20
mov eax, dword [esp + 0x38]
push eax
call fcn.100b2ba3
add esp, 4
mov byte [esp + 0x94], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x68], esi
jb 0x10009b47
mov ecx, dword [esp + 0x54]
push ecx
call fcn.100b2ba3
add esp, 4
cmp dword [esp + 0x80], ebx
jbe 0x10009bcb
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x84], esi
jae 0x10009b61
lea eax, [esp + 0x70]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x10009b86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x10009bcb
mov edx, dword [ebp]
push edx
lea ecx, [esp + 0x70]
call fcn.10011d40
mov eax, dword [ebp]
cmp dword [eax + 0x24], ebx
je 0x10009bb3
call fcn.10007790
push eax
call fcn.10007800
jmp 0x10009bcb
mov eax, dword [esp + 0x70]
cmp dword [esp + 0x84], esi
jae 0x10009bc4
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x84], esi
jb 0x10009be1
mov ecx, dword [esp + 0x70]
push ecx
call fcn.100b2ba3
add esp, 4
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.100b1bc4
add esp, 0x84
ret 4
Function at 0x10009ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d4839
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [edi + 8], ecx
lea esi, [edi + 0xc]
mov dword [edi + 4], eax
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.10004180
lea ebp, [edi + 0x28]
mov dword [esp + 0x38], ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea ebx, [edi + 0x44]
xor eax, eax
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], eax
mov byte [ebx + 4], al
mov byte [esp + 0x38], 2
mov edx, dword [edi + 4]
mov dword [edi + 0x60], eax
mov eax, dword [edi + 8]
push eax
push esi
lea esi, [esp + 0x1c]
call fcn.10012c10
add esp, 8
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov byte [esp + 0x44], 3
call fcn.10004180
mov esi, 0x10
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], esi
jb 0x10009da2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.100b2ba3
add esp, 4
push 1
push 0xffffffffffffffff
push 0x100eb8dc
mov ecx, ebp
call fcn.10004350
push 0xffffffffffffffff
inc eax
push eax
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.10002df0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x44], 4
call fcn.10004180
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], esi
jb 0x10009deb
mov eax, dword [esp + 0x18]
push eax
call fcn.100b2ba3
add esp, 4
mov eax, dword [edi + 0x58]
add eax, 0xfffffffc
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
call fcn.10002df0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
mov byte [esp + 0x44], 5
call fcn.10004180
cmp dword [esp + 0x2c], esi
jb 0x10009e24
mov edx, dword [esp + 0x18]
push edx
call fcn.100b2ba3
add esp, 4
mov eax, edi
mov dword [edi], 0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
Function at 0x1000a560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d39f3
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
mov dword [esp + 0x14], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov byte [esp + 0x14], 1
push 4
mov dword [esi + 0x5c], ebx
call fcn.100b307d
add esp, 4
cmp eax, ebx
je 0x1000a5bd
mov dword [eax], ebx
jmp 0x1000a5bf
xor eax, eax
push 0xc
mov dword [esi + 0x60], eax
call fcn.100b307d
add esp, 4
cmp eax, ebx
je 0x1000a5da
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
mov dword [eax], ebx
jmp 0x1000a5dc
xor eax, eax
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
mov dword [esi + 0x58], ebx
call fcn.1000dd50
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x1000c150
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.100b44a4
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x1000c2c9
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 0x10
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0x1000c1a3
mov eax, dword [esi + 0x40]
jmp 0x1000c1a6
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.1000a780
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x1000c264
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x1000c1e8
cmp byte [edi], dl
jmp 0x1000c1ec
cmp word [edi], 0
sete dl
test edx, edx
je 0x1000c216
test eax, eax
je 0x1000c20f
cmp edi, eax
je 0x1000c20f
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.100b3c10
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x1000c1db
test eax, eax
je 0x1000c239
cmp edi, eax
je 0x1000c239
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.100b3c10
add esp, 0xc
test ebp, ebp
je 0x1000c264
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.1000a780
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x1000c2bb
test byte [esi + 4], 0x80
je 0x1000c2bb
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x1000c296
jmp 0x1000c280
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x1000c280
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.1000a780
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.1000bf90
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x1000cb80
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x1000cb9c
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x1000cc16
test edx, edx
jne 0x1000cbd5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b1b2e
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.100b6740
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000cbf2
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x1000cbe0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.1000a780
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.100b2d8d
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x1000cc3b
push edi
call fcn.100b2b98
add esp, 4
test bl, bl
je 0x1000cc7e
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 0x10
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, esp
jb 0x1000cc5b
mov eax, dword [esi + 0x40]
jmp 0x1000cc5e
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.1000a780
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.1000bf90
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x100122b0
Capabilities:
Get file size

Disassembly:
cmp dword [eax + 0x18], 0x10
jb 0x100122bb
mov eax, dword [eax + 4]
jmp 0x100122be
add eax, 4
push esi
push 0
push 0
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x100122f0
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x10012890
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100d422d
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100ff2f0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x39]
push ebx
mov dword [esp + 0x18], ebx
push eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x40], bl
call fcn.100b4f00
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ebp, [edi + 4]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [ebp], bl
lea eax, [esp + 0x34]
mov dword [esp + 0x240], ebx
mov dword [esp + 0x10], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10012921
sub eax, ecx
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call fcn.10002cc0
push 1
push 0x100eb8dc
mov ecx, edi
call fcn.10004f30
call fcn.100142e0
lea esi, [esp + 0x18]
call fcn.10012220
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov dword [esp + 0x24c], 1
call fcn.10004e30
mov byte [esp + 0x240], bl
cmp dword [esp + 0x30], 0x10
jb 0x10012984
mov eax, dword [esp + 0x1c]
push eax
call fcn.100b2ba3
add esp, 4
push edi
call fcn.10012300
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 4
test al, al
jne 0x100129a8
cmp dword [edi + 0x18], 0x10
jb 0x100129a2
mov eax, dword [ebp]
jmp 0x100129a4
mov eax, ebp
push ebx
push eax
call esi
push 1
push 0x100eb8dc
mov ecx, edi
call fcn.10004f30
push 0xf
push 0x100ee304
mov ecx, edi
call fcn.10004f30
push edi
call fcn.10012300
add esp, 4
test al, al
jne 0x100129e2
cmp dword [edi + 0x18], 0x10
jb 0x100129dc
mov eax, dword [ebp]
jmp 0x100129de
mov eax, ebp
push ebx
push eax
call esi
push 1
push 0x100eb8dc
mov ecx, edi
call fcn.10004f30
push 9
push str.LocalLogs
mov ecx, edi
call fcn.10004f30
push edi
call fcn.10012300
add esp, 4
test al, al
jne 0x10012a18
cmp dword [edi + 0x18], 0x10
jb 0x10012a14
mov ebp, dword [ebp]
push ebx
push ebp
call esi
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.100b1bc4
add esp, 0x234
ret
Function at 0x10012a50
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100d422d
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100ff2f0]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
mov eax, dword [0x100ff2f0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x39]
push ebx
mov dword [esp + 0x18], ebx
push eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x40], bl
call fcn.100b4f00
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x3c]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ebp, [edi + 4]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [ebp], bl
lea eax, [esp + 0x34]
mov dword [esp + 0x240], ebx
mov dword [esp + 0x10], 1
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10012ae1
sub eax, ecx
push eax
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call fcn.10002cc0
push 1
push 0x100eb8dc
mov ecx, edi
call fcn.10004f30
call fcn.100142e0
lea esi, [esp + 0x18]
call fcn.10012220
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov dword [esp + 0x24c], 1
call fcn.10004e30
mov byte [esp + 0x240], bl
cmp dword [esp + 0x30], 0x10
jb 0x10012b44
mov eax, dword [esp + 0x1c]
push eax
call fcn.100b2ba3
add esp, 4
push edi
call fcn.10012300
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 4
test al, al
jne 0x10012b68
cmp dword [edi + 0x18], 0x10
jb 0x10012b62
mov eax, dword [ebp]
jmp 0x10012b64
mov eax, ebp
push ebx
push eax
call esi
push 1
push 0x100eb8dc
mov ecx, edi
call fcn.10004f30
push 0xf
push 0x100ee304
mov ecx, edi
call fcn.10004f30
push edi
call fcn.10012300
add esp, 4
test al, al
jne 0x10012ba2
cmp dword [edi + 0x18], 0x10
jb 0x10012b9c
mov eax, dword [ebp]
jmp 0x10012b9e
mov eax, ebp
push ebx
push eax
call esi
push 1
push 0x100eb8dc
mov ecx, edi
call fcn.10004f30
push 0xa
push str.RemoteLogs
mov ecx, edi
call fcn.10004f30
push edi
call fcn.10012300
add esp, 4
test al, al
jne 0x10012bd8
cmp dword [edi + 0x18], 0x10
jb 0x10012bd4
mov ebp, dword [ebp]
push ebx
push ebp
call esi
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.100b1bc4
add esp, 0x234
ret