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

Disassembly:
push 0xffffffffffffffff
push 0x101ec1f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
mov dword [0x102834e0], ebp
call edi
mov esi, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x102834e8], eax
lea eax, [esp + 0x14]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x24], ebp
call ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ebp
call fcn.100af020
push ebp
push ebp
push 0xc8
push esi
mov dword [esp + 0x34], ebp
call ebx
mov edx, dword [esp + 0x34]
xor ecx, ecx
push 0xffffffffffffffff
mov cx, word [edx + 0x12]
push ecx
lea ecx, [esp + 0x18]
call fcn.100af200
lea ecx, [esp + 0x10]
call fcn.100af1f0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.100af930
cmp esi, 0xffffffff
mov ebp, eax
je 0x1010d806
test ebp, ebp
je 0x1010d806
test ebx, ebx
je 0x1010d806
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1010d8bf
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x38], 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x38]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1010d826
mov dword [0x102834e0], 0xd
mov dword [0x102834e4], 0x222a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
jmp 0x1010d8bf
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x221d
call edi
mov dword [0x102834e8], eax
jmp 0x1010d8bf
lea ecx, [esp + 0x10]
call fcn.100af1f0
push eax
lea ecx, [esp + 0x14]
call fcn.100af930
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.1010e950
add esp, 0xc
test eax, eax
je 0x1010d8bf
lea ecx, [esp + 0x10]
call fcn.100af910
mov edi, eax
cmp word [edi], 1
jne 0x1010d8bf
xor edx, edx
xor ecx, ecx
mov dx, word [edi + 0xe]
mov cx, word [edi + 0xc]
imul edx, ecx
mov eax, dword [edi + 4]
add edx, 0x10
cmp eax, edx
jne 0x1010d8bf
mov ebx, dword [edi + 8]
mov dword [edi + 8], 0
push ebx
push eax
push edi
call fcn.100f1920
add esp, 0xc
mov dword [edi + 8], ebx
test eax, eax
je 0x1010d8bf
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.100af180
mov ecx, edi
call fcn.100af910
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], 1
mov dword [ecx], eax
add eax, 0x10
mov dword [edx], eax
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x1010d91f
mov dword [0x102834e0], 0xf
mov dword [0x102834e4], 0x2ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp]
mov dword [0x102834e8], eax
mov dword [esp + 0x14], 0xffffffff
call fcn.100af150
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp]
mov dword [esp + 0x14], 0xffffffff
call fcn.100af150
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x1010fab0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101ec258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x102834e0], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x102834e8], eax
lea eax, [esp + 0x10]
push 1
push eax
push ebp
push ebx
mov dword [esp + 0x20], ebp
call esi
push ebp
push ebp
push 0xc8
push ebx
mov dword [esp + 0x28], eax
call esi
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], ebp
call fcn.100af1f0
mov esi, dword [esp + 0x38]
push eax
push esi
mov dword [esi + 4], eax
mov dword [esi + 8], ebp
call fcn.100f1970
add esp, 8
cmp word [esi], 1
mov edi, eax
mov dword [esi + 8], edi
jne 0x1010fc26
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 0xe]
mov dx, word [esi + 0xc]
imul ecx, edx
mov eax, dword [esi + 4]
add ecx, 0x10
cmp eax, ecx
jne 0x1010fc26
push edi
push eax
push esi
mov dword [esi + 8], ebp
call fcn.100f1920
add esp, 0xc
cmp eax, ebp
mov dword [esi + 8], edi
je 0x1010fc26
lea ecx, [esp + 0x2c]
call fcn.100af020
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x28], ebp
call fcn.100af570
lea ecx, [esp + 0x2c]
call fcn.100af1f0
push eax
lea ecx, [esp + 0x30]
call fcn.100af930
mov ecx, dword [esp + 0x34]
push eax
push ecx
call fcn.1010e820
add esp, 0xc
cmp eax, ebp
je 0x1010fc94
lea ecx, [esp + 0x2c]
call fcn.100af1f0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.100af930
or edi, 0xffffffff
cmp ebx, edi
je 0x1010fc74
cmp eax, ebp
je 0x1010fc74
cmp esi, ebp
je 0x1010fc74
lea edx, [esp + 0x34]
push ebp
push edx
push esi
push eax
push ebx
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1010fc8a
mov dword [0x102834e0], 0xe
mov dword [0x102834e4], 0x223c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x2c]
call fcn.100af150
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push ebp
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
pop edi
pop esi
cmp eax, ebp
pop ebp
pop ebx
jne 0x1010fca1
mov dword [0x102834e0], 0x10
mov dword [0x102834e4], 0x336a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x2235
jmp 0x1010fc0e
mov dword [esp + 0x14], 1
jmp 0x1010fc19
mov dword [esp + 0x24], 0xffffffff
jmp 0x1010fc1d
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x1010fed0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101ec298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x102834e0], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x102834e8], eax
lea eax, [esp + 0x10]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
mov ecx, dword [esp + 0x30]
push ebp
push ebp
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 0x10]
push edx
push esi
call edi
lea ecx, [esp + 0x28]
xor ebx, ebx
call fcn.100af020
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x24], ebp
call fcn.100af570
lea ecx, [esp + 0x28]
call fcn.100af1f0
push eax
lea ecx, [esp + 0x2c]
call fcn.100af930
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.1010e820
add esp, 0xc
cmp eax, ebp
je 0x10110004
lea ecx, [esp + 0x28]
call fcn.100af1f0
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], eax
call fcn.100af930
cmp esi, 0xffffffff
je 0x1010ffce
cmp eax, ebp
je 0x1010ffce
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x1010ffce
lea edx, [esp + 0x34]
push ebp
push edx
push ecx
push eax
push esi
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1010ffef
mov dword [0x102834e0], 0xe
mov dword [0x102834e4], 0x223c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
jmp 0x10110004
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x2235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
jmp 0x10110004
lea ecx, [esp + 0x28]
call fcn.100af1f0
mov ecx, dword [esp + 0x30]
mov ebx, 1
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.100af150
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ebp
push edx
push eax
push esi
call edi
pop edi
pop esi
cmp ebx, ebp
pop ebp
pop ebx
jne 0x1011005b
mov dword [0x102834e0], 0x10
mov dword [0x102834e4], 0x33c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10111980
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x101ec2e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.100af020
xor edi, edi
push 1
push 0x10283440
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
call sub.MFC42u.DLL_CSingleLock::CSingleLock
mov ecx, 0x10283438
mov byte [esp + 0x34], 1
call fcn.100af1f0
test eax, eax
jbe 0x101119dc
push 0x10283438
lea ecx, [esp + 0x14]
call fcn.100af570
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 0
call sub.MFC42u.DLL_CSingleLock::Unlock
mov esi, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push 1
push eax
push edi
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
sub ebp, ebx
mov dword [esp + 0x1c], eax
push ebp
mov dword [esp + 0x1c], edi
call sub.MFC42u.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x10111b04
lea ecx, [esp + 0x10]
call fcn.100af1f0
cmp eax, ebp
mov dword [esp + 0x44], eax
jbe 0x10111a3b
mov dword [esp + 0x44], ebp
mov ecx, ebp
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x10111a7a
lea ecx, [esp + 0x10]
call fcn.100af910
mov ecx, dword [esp + 0x44]
mov esi, eax
mov eax, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push 0
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 0xffffffff
je 0x10111ad0
test ebp, ebp
je 0x10111ad0
lea edx, [esp + 0x3c]
push 0
push edx
push ebp
push ebx
push esi
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10111af1
mov dword [0x102834e0], 0xe
mov dword [0x102834e4], 0x223c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
jmp 0x10111af9
mov dword [0x102834e0], 1
mov dword [0x102834e4], 0x2235
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x102834e8], eax
jmp 0x10111af9
mov dword [esp + 0x18], 1
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor edi, edi
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.100af150
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x10112fd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x10283af0], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10283af8], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov esi, dword [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x10113014
mov ecx, 8
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
jmp 0x1011307d
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
push ebp
push ebp
push ebp
push esi
mov ebx, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x1011306e
lea ecx, [esp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x20
push edx
push esi
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1011306e
cmp dword [esp + 0x3c], 0x20
jne 0x1011306e
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
je 0x101130b1
lea ecx, [esp + 0x14]
push ecx
call fcn.10112b80
add esp, 4
test eax, eax
je 0x101130d0
mov ecx, dword [esp + 0x40]
mov eax, 1
test ecx, ecx
je 0x101130d2
mov bl, byte [esp + 0x1b]
xor edx, edx
cmp bl, 0xe
pop edi
setne dl
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x24
ret
mov dword [0x10283af0], 0xf
mov dword [0x10283af4], 0x2f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10283af8], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x10119240
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0x1c], edi
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
cmp eax, edi
jne 0x10119276
cmp ecx, edi
je 0x1011936c
xor esi, esi
xor edx, edx
or esi, eax
or ecx, edx
mov dword [esp + 0x20], ecx
ja 0x1011928d
cmp esi, 0x20
jbe 0x10119394
push ebx
push 0x200
call sub.MFC42u.DLL_operatornew
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x101193bc
mov ecx, 0x80
xor eax, eax
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x101192ce
cmp esi, 0x200
jbe 0x101192d3
mov esi, 0x200
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebx
push edi
push ecx
mov dword [esp + 0x2c], 0
call fcn.100f2700
add esp, 0x1c
test eax, eax
je 0x101193d2
cmp esi, dword [esp + 0x10]
jne 0x101193e8
add esi, esi
push esi
call sub.MFC42u.DLL_operatornew
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x101193fe
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
push ebp
mov dword [esp + 0x24], esi
call fcn.101a1320
test eax, eax
jne 0x10119414
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 0x20
cmp edx, eax
ja 0x1011942a
mov dword [esp + 0x18], 1
jmp 0x10119449
mov dword [0x10283af0], 0x1000b
mov dword [0x10283af4], 0x1098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10283af8], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x10283af0], 0x30
mov dword [0x10283af4], 0x10a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10283af8], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x10283af0], 0x21
mov dword [0x10283af4], 0x10a7
jmp 0x1011943e
mov dword [0x10283af0], 0xd
mov dword [0x10283af4], 0x10b4
jmp 0x1011943e
mov dword [0x10283af0], 0xd
mov dword [0x10283af4], 0x10ba
jmp 0x1011943e
mov dword [0x10283af0], 0x21
mov dword [0x10283af4], 0x10c4
jmp 0x1011943e
mov dword [0x10283af0], 0x2f
mov dword [0x10283af4], 0x10cd
jmp 0x1011943e
mov dword [0x10283af0], 0x30
mov dword [0x10283af4], 0x10d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10283af8], eax
test ebx, ebx
je 0x10119456
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
test ebp, ebp
pop ebx
je 0x10119464
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x10119d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101ec5f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
call fcn.10077860
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.10077860
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
mov byte [esp + 0x30], 1
call fcn.1011a2e0
mov esi, eax
mov eax, dword [esp + 0x40]
add esp, 0x1c
test eax, eax
je 0x10119dee
mov ecx, dword [esp + 4]
push 0x104
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x14], 0
call fcn.10078300
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10078300
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1011c760
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x102841ac]
sub esp, 0x218
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x1011c90b
mov ebp, dword [esp + 0x22c]
cmp ebp, esi
je 0x1011c90b
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push 0x102841b0
call ebx
add esp, 4
test eax, eax
je 0x1011c90b
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1a], eax
push ecx
mov dword [esp + 0x22], eax
mov word [esp + 0x1c], si
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], si
mov edx, dword [0x102841a8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x24]
and ecx, 0xffff
stosw word es:[edi], ax
mov eax, dword [esp + 0x28]
and edx, 0xffff
and eax, 0xffff
push eax
mov eax, dword [esp + 0x26]
push ecx
mov ecx, dword [esp + 0x26]
push edx
mov edx, dword [esp + 0x28]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str.__04d__02d__02d__02d:_02d:_02d____d_
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x24
push esi
push 0x80
push 4
push esi
push esi
push 0x10000000
push 0x102841b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1011c90b
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x10], 0
test eax, eax
jne 0x1011c88e
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x1c]
push 2
push edx
push esi
mov dword [esp + 0x28], 0xfeff
call edi
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x2c]
push eax
push ecx
call ebx
add esp, 4
lea edx, [esp + 0x30]
shl eax, 1
push eax
push edx
push esi
call edi
push ebp
call ebx
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x1011c8f4
lea eax, [esp + 0x10]
push 0
push eax
push ebp
call ebx
add esp, 4
shl eax, 1
push eax
push ebp
push esi
call edi
mov ecx, dword [esp + 0x14]
cmp word [ebp + ecx*2 - 2], 0xa
je 0x1011c8f4
lea edx, [esp + 0x10]
push 0
push edx
push 0x1026a988
call ebx
add esp, 4
shl eax, 1
push eax
push 0x1026a988
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
Function at 0x1011ca90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
mov esi, dword [esp + 0x1c]
cdq
and edx, 7
push edi
add eax, edx
mov edi, ecx
mov ebx, eax
sar ebx, 3
test esi, esi
je 0x1011cbb2
test ebx, ebx
jl 0x1011cbb2
jle 0x1011cb84
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.1011cf90
test ebx, ebx
jle 0x1011cb84
add esi, 6
mov ebp, ebx
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 6]
mov cl, byte [esi - 5]
shl eax, 0x18
shl ecx, 0x10
xor edx, edx
or eax, ecx
mov dh, byte [esi - 4]
xor ecx, ecx
mov cl, byte [esi - 3]
or eax, edx
or eax, ecx
xor edx, edx
mov dl, byte [esi - 1]
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 2]
mov ch, byte [esi]
shl eax, 0x18
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [esi + 1]
or eax, ecx
or eax, edx
mov ecx, edi
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1011d330
mov eax, dword [esp + 0x10]
add esi, 8
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov byte [esi - 0xe], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi - 0xd], dl
mov byte [esi - 0xc], cl
mov byte [esi - 0xb], al
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [esi - 0xa], dl
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esi - 9], cl
mov byte [esi - 8], dl
mov byte [esi - 7], al
dec ebp
jne 0x1011cadd
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
shl ebx, 3
sub ebp, ebx
test ebp, ebp
lea eax, [ebx + esi]
jle 0x1011cba3
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x1011cb96
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
Function at 0x1011cbc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov eax, ebp
mov esi, dword [esp + 0x1c]
cdq
and edx, 7
push edi
add eax, edx
mov edi, ecx
mov ebx, eax
sar ebx, 3
test esi, esi
je 0x1011cce2
test ebx, ebx
jl 0x1011cce2
jle 0x1011ccb4
mov eax, dword [esp + 0x1c]
push 1
push eax
call fcn.1011cf90
test ebx, ebx
jle 0x1011ccb4
add esi, 6
mov ebp, ebx
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 6]
mov cl, byte [esi - 5]
shl eax, 0x18
shl ecx, 0x10
xor edx, edx
or eax, ecx
mov dh, byte [esi - 4]
xor ecx, ecx
mov cl, byte [esi - 3]
or eax, edx
or eax, ecx
xor edx, edx
mov dl, byte [esi - 1]
mov dword [esp + 0x10], eax
xor eax, eax
xor ecx, ecx
mov al, byte [esi - 2]
mov ch, byte [esi]
shl eax, 0x18
shl edx, 0x10
or eax, edx
xor edx, edx
mov dl, byte [esi + 1]
or eax, ecx
or eax, edx
mov ecx, edi
mov dword [esp + 0x14], eax
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1011d330
mov eax, dword [esp + 0x10]
add esi, 8
mov ecx, eax
mov edx, eax
shr ecx, 0x18
mov byte [esi - 0xe], cl
mov ecx, eax
shr edx, 0x10
shr ecx, 8
mov byte [esi - 0xd], dl
mov byte [esi - 0xc], cl
mov byte [esi - 0xb], al
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [esi - 0xa], dl
mov edx, eax
shr ecx, 0x10
shr edx, 8
mov byte [esi - 9], cl
mov byte [esi - 8], dl
mov byte [esi - 7], al
dec ebp
jne 0x1011cc0d
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
shl ebx, 3
sub ebp, ebx
test ebp, ebp
lea eax, [ebx + esi]
jle 0x1011ccd3
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ebp
jne 0x1011ccc6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc