joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003e63
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1104
call fcn.1001eb40
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x7fe
push esi
mov word [esp + 0x114], ax
xor ebx, ebx
lea eax, [esp + 0x116]
push ebx
push eax
call fcn.1001ed20
add esp, 0xc
xor eax, eax
push esi
mov word [esp + 0x914], ax
lea eax, [esp + 0x916]
push ebx
push eax
call fcn.1001ed20
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [eax + 8], ebx
mov esi, 0x400
push esi
lea eax, [esp + 0x114]
push eax
push dword [edi]
mov dword [esp + 0x18], ebx
call fcn.10002ec0
add esp, 0xc
test eax, eax
jne 0x10003eef
push dword [edi + 4]
push 7
call fcn.10002439
pop ecx
pop ecx
jmp 0x1000405c
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, esi
jae 0x10003f13
lea eax, [esp + 0x910]
push eax
push esi
call ebx
lea eax, [esp + 0x910]
mov dword [esp + 0xc], eax
push dword [edi + 0xc]
lea eax, [esp + 0x114]
push dword [edi + 8]
push dword [esp + 0x14]
push 0
push dword [edi + 0x10]
push eax
push 0
push 2
push dword [0x1003e6bc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x10003f46
xor eax, eax
inc eax
jmp 0x1000405e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x10003f82
test ebx, ebx
je 0x10003f82
cmp dword [0x1003e6d0], 1
jne 0x10003f82
push dword [esp + 0xc]
lea eax, [esp + 0x114]
push eax
mov ebx, edi
call fcn.10003d56
pop ecx
pop ecx
jmp 0x1000405e
call esi
cmp eax, 0x57
jne 0x10003fa1
mov eax, dword [edi + 8]
cmp dword [eax], 0x48
jne 0x10003fa1
test ebx, ebx
je 0x10003fa1
call esi
push eax
push dword [edi]
push 0x4a
jmp 0x10004054
call esi
cmp eax, 3
jne 0x1000404d
mov edx, dword [edi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x10003fb3
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x1000404d
push str.sysnative
push edx
call fcn.100170d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10004047
push ebx
lea eax, [esp + 0x14]
push 0
push eax
call fcn.1001ed20
mov eax, dword [str.system32]
mov dword [esi], eax
mov eax, dword [0x1002f5a4]
mov dword [esi + 4], eax
add esp, 0xc
add esi, 9
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004003
sub eax, ecx
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.1001db30
lea eax, [esp + 0x1c]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004022
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x14]
push eax
dec esi
push esi
call fcn.1001db30
add esp, 0xc
push edi
call fcn.10003e63
jmp 0x10003f7c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push dword [edi]
push 0x29
call fcn.10002467
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004065
Capabilities:
Create process on windows

Disassembly:
push ecx
mov eax, dword [0x1003e6bc]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x100040c8
cmp dword [esi + 0x14], edi
jne 0x100040c8
push dword [esi + 0xc]
push dword [esi + 8]
push edi
push edi
push dword [esi + 0x10]
push 1
push edi
push edi
push dword [esi]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x100040f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x100040b5
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x100040b5
push esi
call fcn.10003e63
pop ecx
jmp 0x100040f4
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10002467
add esp, 0xc
xor eax, eax
jmp 0x100040f4
push dword [esi + 0xc]
push dword [esi + 8]
push edi
push edi
push dword [esi + 0x10]
push 1
push edi
push edi
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x100040f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x100040bc
xor eax, eax
inc eax
pop edi
pop ebx
pop ecx
ret

Function at 0x100040f8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
test byte [esi + 0x10], 4
push edi
jne 0x10004157
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124c
test eax, eax
je 0x10004157
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.10004065
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xc]
call fcn.10003c02
pop ecx
test eax, eax
mov eax, dword [esi + 0xc]
pop ecx
jne 0x1000414a
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x1000415c
push dword [eax + 4]
call fcn.1000c01a
pop ecx
mov eax, edi
jmp 0x1000415c
call fcn.10004065
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004161
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
push 0xa000
call fcn.10006f84
pop ecx
mov edi, eax
mov ebx, 0x4000
push ebx
push edi
mov dword [ebp - 0x1c], edi
call fcn.10007086
mov esi, 0x400
push esi
push edi
mov dword [ebp - 8], eax
call fcn.10007086
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.10007086
push esi
push edi
mov dword [ebp - 0x14], eax
call fcn.10007086
push esi
push edi
mov dword [ebp - 0xc], eax
call fcn.10007086
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1001ed20
mov dword [ebp - 0x68], edi
mov edi, dword [ebp + 0x1c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x34
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push ebx
push dword [ebp - 8]
xor edi, edi
push dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], ax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x60], edi
call fcn.10002ec0
add esp, 0xc
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10002ec0
add esp, 0xc
push esi
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10002ec0
add esp, 0xc
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10002ec0
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
push edi
push edi
call ebx
cmp eax, esi
jae 0x10004252
push dword [ebp - 4]
push esi
call ebx
mov eax, dword [ebp - 4]
jmp 0x10004255
mov eax, dword [ebp - 0x18]
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x68]
push ecx
push eax
mov eax, dword [ebp + 0x18]
push edi
or eax, 0x8000400
push eax
push dword [ebp - 8]
push edi
push 1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10004285
xor edi, edi
inc edi
jmp 0x100042a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push str._s_as__s_s:__d
push 0x35
call fcn.100024ac
add esp, 0x18
push dword [ebp - 0x1c]
call fcn.10006fcf
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004457
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
cmp dword [0x1003de2c], edi
jne 0x10004479
push 0x80004
call fcn.10017001
pop ecx
mov dword [0x1003de2c], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x1003de2c]
mov dword [ecx], eax
mov ebx, dword [esi + 4]
cmp ebx, dword [ebp + 8]
jbe 0x100044b8
mov ebx, dword [ebp + 8]
jmp 0x100044b8
push dword [esi + 8]
mov eax, dword [0x1003de2c]
push ebx
lea eax, [eax + edi + 4]
push 1
push eax
call fcn.1001833c
add esp, 0x10
test eax, eax
je 0x100044be
add edi, eax
sub ebx, eax
sub dword [esi + 4], eax
test ebx, ebx
ja 0x10004495
jmp 0x100044c2
and dword [esi + 4], 0
push 8
add edi, 4
push edi
push dword [0x1003de2c]
call fcn.100012d0
add esp, 0xc
call fcn.100044e0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100045a3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push eax
call fcn.10006fff
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.10001683
lea eax, [ebp - 0x20]
push eax
call fcn.10007018
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100016d3
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x1002f5c0
push eax
call fcn.10001726
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001788
push eax
lea eax, [ebp - 0x10]
call fcn.10001785
push eax
call fcn.100012d0
lea eax, [ebp - 0x10]
push eax
call fcn.10001765
add esp, 0x10
leave
ret

Function at 0x1000461b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x100046fc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006f84
pop ecx
mov esi, 0x2000
mov edi, eax
push esi
push edi
call fcn.10007086
mov ebx, eax
push esi
push edi
mov dword [ebp - 8], ebx
call fcn.10007086
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10006fff
add esp, 0x1c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.1000712a
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.1000712a
add esp, 0x10
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10004779
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10002439
pop ecx
pop ecx
push edi
call fcn.10006fcf
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004785
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.10006f84
pop ecx
mov esi, 0x2000
mov edi, eax
push esi
push edi
call fcn.10007086
mov ebx, eax
push esi
push edi
mov dword [ebp - 8], ebx
call fcn.10007086
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10006fff
add esp, 0x1c
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.1000712a
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.1000712a
add esp, 0x10
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10004800
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10002439
pop ecx
pop ecx
push edi
call fcn.10006fcf
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000480c
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
push esi
push edi
mov esi, 0x4000
push esi
call fcn.10017001
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001ed20
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.10006fff
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.10007018
pop ecx
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.1000712a
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.10001683
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.100016d3
push esi
push 0x1002f5cc
push ebx
call fcn.10018468
add esp, 0x24
test eax, eax
jne 0x1000489e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x1002f5d0
push esi
push ebx
call fcn.10017767
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x1002f530
push eax
call fcn.10001726
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100048ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10002467
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001788
push eax
lea eax, [ebp - 0x10]
call fcn.10001785
push eax
call fcn.100012d0
add esp, 0xc
push ebx
call fcn.10016f24
pop ecx
jmp 0x100049e5
push ebx
call fcn.10016f24
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test byte [ebp - 0x170], 0x10
je 0x10004968
lea eax, [ebp - 0x144]
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1e]
push eax
lea eax, [ebp - 0x10]
push str.D_t0_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.10001726
add esp, 0x24
jmp 0x100049ac
mov ecx, dword [ebp - 0x154]
lea edx, [ebp - 0x144]
push edx
movzx edx, word [ebp - 0x14]
push edx
movzx edx, word [ebp - 0x16]
mov eax, dword [ebp - 0x150]
push edx
movzx edx, word [ebp - 0x18]
push edx
movzx edx, word [ebp - 0x20]
push edx
movzx edx, word [ebp - 0x1a]
push edx
movzx edx, word [ebp - 0x1e]
push edx
push ecx
push eax
lea eax, [ebp - 0x10]
push str.F_t_I64d_t_02d__02d__02d__02d:_02d:_02d_t_s_n
push eax
call fcn.10001726
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10004906
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.10001788
push eax
lea eax, [ebp - 0x10]
call fcn.10001785
push eax
call fcn.100012d0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
call fcn.10001765
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100049f4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push edi
push 0
push 0
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x10004a12
xor eax, eax
jmp 0x10004a33
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x10004a0e
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.1001ed20
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x10004fa6
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
push dword [ebp + 0x28]
call fcn.1000c716
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1001ed20
and dword [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x100000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
and dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x28]
mov dword [ebp - 0x48], 0x101
push dword [ebp + 0x24]
call fcn.1000b46f
add esp, 0x10
test eax, eax
je 0x10005094
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0x20]
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x28]
push dword [ebp + 0xc]
lea edx, [ebp - 0x28]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100053dc
add esp, 0x14
cmp dword [ebp + 8], 0
jbe 0x10005077
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.1000619f
pop ecx
pop ecx
push dword [ebp + 0x20]
lea esi, [ebp - 0x28]
push dword [ebp - 8]
push dword [ebp - 0xc]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.10005dd3
add esp, 0x1c
push dword [ebp + 0x28]
call fcn.1000c738
pop ecx
pop edi
pop esi
leave
ret
Function at 0x100055e0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
push str.NtQueueApcThread
xor ebx, ebx
push str.ntdll
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x10005709
lea eax, [ebp - 0x18]
push eax
push dword [esi + 8]
push dword [esi]
call fcn.1000555a
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x10005709
push ebx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x10005709
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005709
mov eax, dword [ebp - 0x28]
cmp eax, dword [esi + 8]
jne 0x100056a9
push dword [ebp - 0x2c]
call fcn.1000c216
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100056a9
push ebx
push ebx
push edi
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.1000c2c9
pop ecx
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000567d
push dword [ebp + 8]
call fcn.1000c2c9
pop ecx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x10005709
cmp dword [ebp - 4], 0x10
jne 0x10005709
cmp dword [ebp - 0xc], ebx
jne 0x1000570f
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [esi]
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
pop edi
pop ebx
leave
ret
xor eax, eax
inc eax
jmp 0x1000570b
Function at 0x10005b65
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push esi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.1001ed20
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10005ba8
xor eax, eax
jmp 0x10005c64
cmp dword [ebp - 0x94], 5
jne 0x10005bc4
cmp dword [ebp - 0x90], 2
jne 0x10005bc4
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10005ba1
push ebx
push edi
push 0x4c
push esi
push 0x40
pop ebx
call fcn.1000bd3c
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp edi, esi
je 0x10005c3f
push 0x149
push esi
call fcn.1000bd3c
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x10005c3f
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10035820
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10035870
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 4]
lea esi, [ebx + 0x129]
and dword [esi + 0x18], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push esi
push ebx
mov dword [esi + 0x10], eax
call edi
test eax, eax
jne 0x10005c30
push 5
jmp 0x10005c39
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10005c43
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10005c62
push esi
call fcn.1000c01a
mov esi, 0x4000
push esi
call fcn.1000beae
push esi
mov edi, ebx
call fcn.1000beae
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10006048
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x100060a2
or eax, 0xffffffff
jmp 0x100060aa
cmp dword [ebp - 4], 0x80000
jae 0x100060a7
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, 0x80000
sub eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp + 0xc], eax
jmp 0x1000605e
cmp dword [ebp - 8], esi
ja 0x10006074
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x10006772
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
add edi, 0x3a98
call esi
cmp eax, edi
jae 0x100067e2
xor eax, eax
push eax
push 0x100000
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000680d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x100067cf
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x100067da
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10006791
jmp 0x100067e5
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x1000680d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x10006800
push 4
call fcn.10002497
jmp 0x1000686d
call esi
push eax
push 0x14
call fcn.10002439
pop ecx
jmp 0x1000686d
push 0
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x10006839
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10002439
pop ecx
pop ecx
jmp 0x10006860
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.100069e3
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.100063ab
add esp, 0x24
test eax, eax
jne 0x1000686e
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
call fcn.1000c2c9
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006883
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
xor esi, esi
test edi, edi
jle 0x100068bd
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100068c6
cmp dword [ebp - 4], 0
je 0x100068c6
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x10006892
cmp esi, edi
jne 0x100068c6
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x100068c3

Function at 0x100068cb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
xor eax, eax
inc eax
cmp dword [ebp + 0x10], esi
jle 0x10006914
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x100068ee
mov eax, 0x2000
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006912
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x100068dd
jmp 0x10006914
xor eax, eax
pop esi
leave
ret