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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ce44b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10205ac8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x14]
mov dword [ebx], 0x10045208
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov al, byte [edi + 4]
mov byte [ebx + 4], al
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
lea eax, [edi + 0x18]
push eax
call fcn.1006a900
mov dword [esi], 0x100446f8
add ebx, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
add edi, 0x30
mov dword [ebx], fcn.1006f350
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [ebx + 0x10], 1
mov dword [ebx + 0x14], 1
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov byte [ebp - 4], 1
cmp edi, ebx
je 0x100b2185
mov esi, dword [edi + 8]
test esi, esi
jne 0x100b20d8
xor edi, edi
jmp 0x100b20db
mov edi, dword [edi + 4]
mov eax, dword [ebx + 4]
test eax, eax
je 0x100b2102
cmp dword [ebx + 0x14], 1
jne 0x100b20f9
push dword [ebx + 8]
push 0
push eax
call fcn.101b66d0
mov eax, dword [ebx + 4]
add esp, 0xc
push eax
call fcn.101b44fe
add esp, 4
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov byte [ebx + 0x10], 1
test esi, esi
je 0x100b2151
push esi
call fcn.101b44f5
add esp, 4
mov dword [ebx + 4], eax
mov dword [ebx + 0xc], esi
mov dword [ebx + 8], esi
test edi, edi
je 0x100b213f
push esi
push edi
push eax
call fcn.101b6150
jmp 0x100b214e
cmp dword [ebx + 0x14], 1
jne 0x100b2151
push esi
push 0
push eax
call fcn.101b66d0
add esp, 0xc
mov esi, dword [ebx + 0x18]
cmp esi, dword [ebx + 0x1c]
je 0x100b2185
nop dword [eax]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100b217d
mov eax, dword [eax]
push 1
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x101fc4ac]
mov ecx, dword [ebp - 0x14]
call edi
add esi, 4
cmp esi, dword [ebx + 0x1c]
jne 0x100b2160
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0x10044744
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b3940
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ce6ba
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], 0
call fcn.10070db0
push 0
push 2
mov esi, dword [eax + 0x224]
mov ecx, esi
call dword [0x101fc4ac]
call esi
mov esi, eax
mov dword [ebp - 0x148], esi
test esi, esi
jne 0x100b39b9
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
jmp 0x100b3b0b
lea eax, [ebp - 0x148]
mov dword [ebp - 0x158], eax
push 0x124
lea eax, [ebp - 0x140]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.101b66d0
add esp, 0xc
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x100b3a1b
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebp - 0x14c], 1
mov dword [ebp - 4], 2
jmp 0x100b3af0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
call fcn.101963f0
mov ebx, eax
nop word [eax + eax]
cmp dword [ebp - 0x12c], ebx
jne 0x100b3aa5
mov edi, dword [ebp - 0x18]
cmp edi, dword [ebp - 0x14]
je 0x100b3a95
mov esi, dword [ebp - 0x13c]
mov dword [edi], esi
mov dword [edi + 4], 0
call fcn.10070db0
push esi
push 0
push 0x1fffff
mov esi, dword [eax + 0x238]
mov ecx, esi
call dword [0x101fc4ac]
call esi
mov dword [edi + 4], eax
add dword [ebp - 0x18], 8
jmp 0x100b3aa5
lea eax, [ebp - 0x13c]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.100b3600
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100b3a50
mov ebx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebp - 0x14c], 1
mov dword [ebp - 4], 6
call fcn.10070db0
push dword [ebp - 0x148]
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x101fc4ac]
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b4a00
mov esp, ebp
pop ebp
ret
Function at 0x100b65d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cec25
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov edi, dword [ebp + 0x10]
push eax
call fcn.100b5cf0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x100453d0
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x2c], 0
call fcn.100f0806
mov eax, dword [ebp - 0x2c]
add esp, 0x10
test eax, eax
je 0x100b66e4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
push eax
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
push 1
push esi
call fcn.100f0fa3
push dword [ebp - 0x2c]
call fcn.100f0d33
push dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x100453ec
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100f094b
mov edi, dword [edi + 0x24]
add esp, 0x24
test edi, edi
je 0x100b66ff
mov eax, dword [edi]
lea ecx, [ebp - 0x28]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101fc4ac]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
test eax, eax
je 0x100b66ad
push eax
call fcn.100f09e2
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 3
cmp eax, 0x10
jb 0x100b66c9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10074460
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b4a00
mov esp, ebp
pop ebp
ret
push 0x100453d4
lea ecx, [ebp - 0x3c]
call fcn.1006c270
push 0x101e1434
lea eax, [ebp - 0x3c]
push eax
call fcn.101b5d27
call fcn.1019f82a
int3
Function at 0x100b6bd0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cecd5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.101963f0
push eax
push 4
mov dword [ebp - 0x40], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
jne 0x100b6c35
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x100b6ce7
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
push ecx
push eax
mov dword [ebp - 0x38], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x100b6c68
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [ebp - 4], 1
jmp 0x100b6cde
xor esi, esi
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
xor ebx, ebx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 2
nop
cmp dword [ebp - 0x2c], edi
jne 0x100b6cb9
cmp esi, ebx
je 0x100b6ca6
mov eax, dword [ebp - 0x30]
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x18], esi
jmp 0x100b6cb9
lea eax, [ebp - 0x30]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.100b6820
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x3c]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100b6c90
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
mov dword [ebp - 4], 4
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b4a00
mov esp, ebp
pop ebp
ret
Function at 0x100c06c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x2c]
xor edx, edx
xor eax, eax
mov dword [esp + 4], 0x310030
mov dword [esp + 8], 0x330032
mov dword [esp + 0xc], 0x350034
mov dword [esp + 0x10], 0x370036
mov dword [esp + 0x14], 0x390038
mov dword [esp + 0x18], 0x420041
mov dword [esp + 0x1c], 0x440043
mov dword [esp + 0x20], 0x460045
test ebx, ebx
je 0x100c074c
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x30]
nop word [eax + eax]
movzx ecx, byte [eax + edi]
lea edx, [edx + 2]
shr ecx, 4
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 4], cx
movsx ecx, byte [eax + edi]
inc eax
and ecx, 0xf
movzx ecx, word [esp + ecx*2 + 0xc]
mov word [esi + edx*2 - 2], cx
cmp eax, ebx
jne 0x100c0720
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x100c0760
Capabilities:
Create directory

Disassembly:
sub esp, 0x28
mov eax, dword [0x10205ac8]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push 1
push eax
mov byte [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x100c07bb
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x100c07bb
lea eax, [esp + 0x10]
mov dword [esp + 4], 0xc
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov byte [esp + 0x24], 0
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x28]
test eax, eax
pop esi
setne al
xor ecx, esp
call fcn.101b4a00
add esp, 0x28
ret
Function at 0x100c1300
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cfe65
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x100458ac
push 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x100c14bb
mov dword [ebp - 0x38], edi
mov ebx, 0x10000
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x2c], ebx
call fcn.100f0090
mov esi, eax
add esp, 4
mov dword [ebp - 0x3c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x100c149c
jmp 0x100c138d
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
push 0
push 9
push edi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
test eax, eax
jne 0x100c13d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100c142c
mov ebx, dword [ebp - 0x24]
push ebx
push esi
mov dword [ebp - 0x2c], ebx
call fcn.100f1a24
add esp, 8
test eax, eax
jne 0x100c138d
push esi
call fcn.100ecdf4
add esp, 4
mov dword [ebp - 4], 3
jmp 0x100c1440
mov ebx, dword [ebp - 0x28]
mov edi, esi
add ebx, esi
cmp esi, ebx
jae 0x100c1387
lea eax, [edi + 0x38]
mov ecx, 0x100458b4
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100c1410
test dl, dl
je 0x100c140c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100c1410
add ecx, 2
add eax, 2
test dl, dl
jne 0x100c13f0
xor eax, eax
jmp 0x100c1415
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100c1421
cmp word [edi + 0x14], 0x1775
je 0x100c1469
add edi, dword [edi]
cmp edi, ebx
jb 0x100c13e2
jmp 0x100c1387
push esi
mov byte [ebp - 4], 4
call fcn.100ecdf4
add esp, 4
mov dword [ebp - 4], 5
push edi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov edi, dword [ebp - 0x34]
push edi
mov dword [ebp - 4], 0xffffffff
call fcn.100c14e0
add esp, 4
test al, al
jne 0x100c14bb
push edi
call fcn.100c1650
add esp, 4
jmp 0x100c14bd
push dword [edi + 0xc]
lea eax, [ebp - 0x20]
push 0x100458c0
push eax
call fcn.100c2ed0
lea edx, [ebp - 0x20]
add esp, 0xc
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100c1483
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
sub edx, edi
push edx
push eax
call fcn.10074240
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 6
test esi, esi
je 0x100c14ad
push esi
call fcn.100ecdf4
add esp, 4
push edi
mov dword [ebp - 4], 7
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b4a00
mov esp, ebp
pop ebp
ret
Function at 0x100c18c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cfedd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x1c]
push edx
push dword [0x101ff07c]
mov byte [ebp - 0x1d], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c1962
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov dword [edi], 0
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete bl
test eax, eax
jne 0x100c1950
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x100c1965
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b4a00
mov esp, ebp
pop ebp
ret
Function at 0x100c1a00
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cff1d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 0x10
jb 0x100c1a3f
mov eax, dword [edi]
mov byte [eax], 0
lea eax, [ebp - 0x1c]
push eax
push dword [0x101ff07c]
push 0
push 0x10045868
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100c1b3a
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x10045854
push esi
call ebx
mov ecx, dword [ebp - 0x18]
cmp ecx, 1
je 0x100c1a9a
cmp ecx, 2
jne 0x100c1b25
test eax, eax
jne 0x100c1b25
push eax
push dword [ebp - 0x14]
mov ecx, edi
call fcn.10075e30
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x100c1ab7
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x10045854
push dword [ebp - 0x1c]
call ebx
test eax, eax
jne 0x100c1b25
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 0x10
jb 0x100c1adc
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
lea ebx, [edx - 1]
add ebx, eax
mov eax, edi
cmp ecx, 0x10
jb 0x100c1aed
mov eax, dword [edi]
sub ebx, eax
mov ecx, 1
mov eax, edx
sub eax, ebx
cmp eax, ecx
cmovb ecx, eax
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x20], ecx
mov eax, edi
jb 0x100c1b0a
mov eax, dword [edi]
lea ecx, [eax + ebx]
mov eax, dword [ebp - 0x20]
sub edx, eax
add eax, ecx
mov dword [edi + 0x10], edx
sub edx, ebx
inc edx
push edx
push eax
push ecx
call fcn.101b6150
add esp, 0xc
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x10], 0
je 0x100c1b6a
push 0x13
push 0x10045a00
mov ecx, edi
call fcn.10074010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b4a00
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [ebp - 0x24]
call fcn.100be530
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.100be590
push 0x101e7cc4
lea eax, [ebp - 0x50]
push eax
call fcn.101b5d27
int3
Function at 0x100c28b0
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x10205ac8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, dword [ecx]
lea eax, [esp + 0x30]
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100c296d
mov ecx, dword [esp + 0x40]
xor edx, edx
cmp edx, ecx
jl 0x100c2951
mov eax, dword [esp + 0x3c]
jg 0x100c28f0
cmp edi, eax
jbe 0x100c2951
push 0
push 0
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100c296d
sub edi, dword [esp + 0x3c]
je 0x100c293c
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x200
cmp edi, 0x200
mov esi, edi
push 0
cmova esi, eax
lea eax, [esp + 0x48]
push eax
push esi
push 0x1020bd28
push ebx
call ebp
cmp dword [esp + 0x44], esi
jne 0x100c296d
mov eax, 0x200
sub edi, esi
jne 0x100c2912
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b4a00
add esp, 0x3c
ret 8
push 0
push 0
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100c296d
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100c293c
call sub.KERNEL32.dll_GetLastError
push eax
lea ecx, [esp + 0x40]
call fcn.100be530
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.100be590
push 0x101e7cc4
lea eax, [esp + 0x14]
push eax
call fcn.101b5d27
int3
Function at 0x100c2d10
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x10205ac8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x100c2d52
mov eax, dword [0x1020bf28]
test eax, eax
jne 0x100c2d40
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov ecx, 1
cmp ecx, eax
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x20
mov dword [ebx + 0xc], eax
cmp eax, 8
jb 0x100c2e75
cmp eax, 0x20
jae 0x100c2d75
pause
inc dword [ebx + 0xc]
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101b4a00
add esp, 0x3c
ret
jne 0x100c2e5a
push 7
call fcn.100c11e0
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
call eax
push 0xa
call fcn.100c11e0
add esp, 4
lea ecx, [esp + 4]
push ecx
call eax
test eax, eax
jne 0x100c2dbe
mov ecx, dword [esp + 0xc]
mov eax, 0xd1b71759
lea ecx, [ecx - 1]
mul ecx
shr edx, 0xd
jmp 0x100c2dff
mov eax, dword [esp + 0xc]
mov ecx, 0x5f5e100
push esi
push edi
push dword [esp + 0x10]
mul ecx
push dword [esp + 0x10]
mov edi, eax
mov esi, edx
push 0x38d7e
sub edi, 1
push 0xa4c67fff
sbb esi, 0
call fcn.101b4c60
add eax, 1
adc edx, 0
push edx
push eax
push esi
push edi
call fcn.101b4c60
pop edi
mov edx, eax
pop esi
lea eax, [edx + 1]
push 9
mov dword [ebx + 8], eax
call fcn.100c11e0
add esp, 4
lea ecx, [esp + 4]
push ecx
call eax
test eax, eax
jne 0x100c2e3a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
mov dword [ebx], eax
inc dword [ebx + 0xc]
mov dword [ebx + 4], ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101b4a00
add esp, 0x3c
ret
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
inc dword [ebx + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101b4a00
add esp, 0x3c
ret
cmp dword [ebx + 8], 0
jne 0x100c2e88
and al, 1
je 0x100c2ec6
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
test eax, eax
jne 0x100c2e75
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebx + 0xc]
mov ecx, dword [esp + 0x3c]
pop ebx
xor ecx, esp
call fcn.101b4a00
add esp, 0x3c
ret
push 9
call fcn.100c11e0
add esp, 4
lea ecx, [esp + 4]
push ecx
call eax
test eax, eax
jne 0x100c2ea7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
jmp 0x100c2eaf
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
sub eax, dword [ebx]
sbb ecx, dword [ebx + 4]
test ecx, ecx
jb 0x100c2e64
ja 0x100c2ebf
cmp eax, dword [ebx + 8]
jb 0x100c2e64
mov dword [ebx + 8], 0
push 1
jmp 0x100c2e6f
Function at 0x100c5fa0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d057d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], eax
call fcn.100e1b70
mov ebx, dword [esi]
add esp, 4
add ebx, 0xa
add ebx, eax
mov eax, 7
mov word [edi], ax
mov eax, dword [ebp - 0x24]
mov dword [edi + 2], ebx
add eax, 0xfffffffa
mov ecx, dword [esi + 0x30]
add edi, 6
push eax
push edi
call fcn.100c6ab0
mov ecx, dword [esi + 0x2c]
add edi, eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], edi
test ecx, ecx
je 0x100c60a8
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov eax, dword [ebp - 0x24]
sub eax, edi
add eax, dword [ebp - 0x28]
push eax
push dword [esi]
push edi
call fcn.100e1a40
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x3c]
add esp, 0x10
push eax
call fcn.100c6860
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.100b50f0
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.100c6df0
mov edx, dword [ebp - 0x38]
test edx, edx
je 0x100c6088
mov ecx, dword [ebp - 0x30]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.10087fd0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b4a00
mov esp, ebp
pop ebp
ret 8
call fcn.1019f82a
int3