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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.10036310
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x7fe
push esi
mov word [ebp - 0x904], ax
xor ebx, ebx
lea eax, [ebp - 0x902]
push ebx
push eax
call fcn.100364f0
xor eax, eax
push esi
mov word [ebp - 0x1104], ax
lea eax, [ebp - 0x1102]
push ebx
push eax
call fcn.100364f0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov dword [eax + 8], ebx
mov edi, 0x400
push edi
lea eax, [ebp - 0x904]
push eax
push dword [esi]
mov dword [ebp - 4], ebx
call fcn.10002a5a
add esp, 0x24
test eax, eax
jne 0x10003fb2
push dword [esi + 4]
push 7
call fcn.10002216
pop ecx
pop ecx
jmp 0x10004129
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
call ebx
cmp eax, edi
jae 0x10003fd3
lea eax, [ebp - 0x1104]
push eax
push edi
call ebx
lea eax, [ebp - 0x1104]
mov dword [ebp - 4], eax
call fcn.100240c4
push dword [esi + 0xc]
lea eax, [ebp - 0x904]
push dword [esi + 8]
push dword [ebp - 4]
push 0
push dword [esi + 0x10]
push eax
push 0
push 2
push dword [0x100568a4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov edi, eax
call fcn.10024107
test edi, edi
je 0x10004010
xor eax, eax
inc eax
jmp 0x1000412b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp eax, 0x522
jne 0x1000404a
test ebx, ebx
je 0x1000404a
cmp dword [0x100568b8], 1
jne 0x1000404a
push dword [ebp - 4]
lea eax, [ebp - 0x904]
push eax
mov ebx, esi
call fcn.10003e2c
pop ecx
pop ecx
jmp 0x1000412b
call edi
cmp eax, 0x57
jne 0x10004069
mov eax, dword [esi + 8]
cmp dword [eax], 0x48
jne 0x10004069
test ebx, ebx
je 0x10004069
call edi
push eax
push dword [esi]
push 0x4a
jmp 0x10004121
call edi
cmp eax, 3
jne 0x1000411a
mov edx, dword [esi]
mov eax, edx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x1000407b
sub eax, ecx
mov ebx, 0x100
cmp eax, ebx
jae 0x1000411a
push str.sysnative
push edx
call fcn.1002e9d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10004114
push ebx
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.100364f0
mov eax, dword [str.system32]
mov dword [edi], eax
mov eax, dword [0x10047568]
mov dword [edi + 4], eax
add esp, 0xc
add edi, 9
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100040cd
sub eax, ecx
push eax
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.10035300
lea eax, [ebp - 0x104]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100040f0
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
dec edi
push edi
call fcn.10035300
push esi
call fcn.10003f35
add esp, 0x10
jmp 0x1000412b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push dword [esi]
push 0x29
call fcn.10002244
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004130
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x100568a4]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x10004192
cmp dword [esi + 0x14], edi
jne 0x10004192
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 0x100041bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x522
jne 0x1000417f
cmp dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], edi
je 0x1000417f
push esi
call fcn.10003f35
pop ecx
jmp 0x100041be
call ebx
push eax
push dword [esi]
push 0x29
call fcn.10002244
add esp, 0xc
xor eax, eax
jmp 0x100041be
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 0x100041bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push 0x30
jmp 0x10004186
xor eax, eax
inc eax
pop edi
pop ebx
ret

Function at 0x100041c1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, eax
test byte [esi + 0x10], 4
push edi
jne 0x10004221
push ebx
mov ebx, dword [esi]
lea edi, [ebp - 0xc]
call fcn.1000124b
pop ebx
test eax, eax
je 0x10004221
mov eax, dword [ebp - 0xc]
or dword [esi + 0x10], 4
mov dword [esi], eax
call fcn.10004130
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0xc]
call fcn.10003ca7
pop ecx
test eax, eax
mov eax, dword [esi + 0xc]
pop ecx
jne 0x10004214
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x10004226
push dword [eax + 4]
call fcn.10023808
pop ecx
mov eax, edi
jmp 0x10004226
call fcn.10004130
pop edi
pop esi
leave
ret
Function at 0x1000422a
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, 0x60
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
push 0xa000
call fcn.100072b2
mov edi, eax
mov esi, 0x4000
push esi
push edi
mov dword [ebp - 0x1c], edi
call fcn.1000746f
mov ebx, 0x400
push ebx
push edi
mov dword [ebp - 8], eax
call fcn.1000746f
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.1000746f
push ebx
push edi
mov dword [ebp - 0x14], eax
call fcn.1000746f
push ebx
push edi
mov dword [ebp - 0xc], eax
call fcn.1000746f
push 0x44
pop edi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.100364f0
mov dword [ebp - 0x60], 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, 0x38
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push esi
push dword [ebp - 8]
xor edi, edi
push dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x34], 0x101
mov word [ebp - 0x30], ax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x58], edi
call fcn.10002a5a
push ebx
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.10002a5a
push ebx
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call fcn.10002a5a
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.10002a5a
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0x30
push edi
push edi
call esi
cmp eax, ebx
jae 0x10004311
push dword [ebp - 4]
push ebx
call esi
mov eax, dword [ebp - 4]
jmp 0x10004314
mov eax, dword [ebp - 0x18]
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x60]
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 0x10004344
xor edi, edi
inc edi
jmp 0x10004363
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.1000228e
add esp, 0x18
mov esi, dword [ebp - 0x1c]
call fcn.100072fd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004503
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [0x10055ff4], ebx
jne 0x10004522
push 0x80004
call fcn.1002e8ff
pop ecx
mov dword [0x10055ff4], eax
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10055ff4]
mov dword [ecx], eax
mov edi, dword [esi + 4]
mov eax, 0x40000
cmp edi, eax
jbe 0x10004562
mov edi, eax
push dword [esi + 8]
mov eax, dword [0x10055ff4]
push edi
lea eax, [eax + ebx + 4]
push 1
push eax
call fcn.1002fc1c
add esp, 0x10
test eax, eax
je 0x10004568
add ebx, eax
sub edi, eax
sub dword [esi + 4], eax
test edi, edi
ja 0x1000453f
jmp 0x1000456c
and dword [esi + 4], 0
push 8
add ebx, 4
push ebx
push dword [0x10055ff4]
call fcn.100012c1
push fcn.100012c1
call fcn.1000458e
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x10004647
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.10007324
lea eax, [ebp - 0x10]
push 0x80
push eax
call fcn.10001371
lea eax, [ebp - 0x20]
push eax
call fcn.1000733d
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100013c1
add esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
push eax
lea eax, [ebp - 0x10]
push 0x10047584
push eax
call fcn.100014cb
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000152d
push eax
lea eax, [ebp - 0x10]
call fcn.1000152a
push eax
call fcn.100012c1
lea eax, [ebp - 0x10]
push eax
call fcn.1000150a
add esp, 0x10
leave
ret

Function at 0x100046bf
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 0x100047a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.100072b2
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.1000746f
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.1000746f
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10007324
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10007513
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10007513
add esp, 0x30
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10004819
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xd
call fcn.10002216
pop ecx
pop ecx
call fcn.100072fd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004823
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x4000
call fcn.100072b2
mov edi, 0x2000
mov esi, eax
push edi
push esi
call fcn.1000746f
mov ebx, eax
push edi
push esi
mov dword [ebp - 8], ebx
call fcn.1000746f
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.10007324
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10007513
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.10007513
add esp, 0x30
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1000489a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe
call fcn.10002216
pop ecx
pop ecx
call fcn.100072fd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100048a4
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.1002e8ff
push esi
mov ebx, eax
push 0
push ebx
call fcn.100364f0
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.10007324
lea eax, [ebp - 0x10]
push eax
call fcn.1000733d
mov edi, eax
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.10007513
lea eax, [ebp - 0x10]
push 0x200000
push eax
call fcn.10001371
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.100013c1
push esi
push 0x10047590
push ebx
call fcn.1002fd48
add esp, 0x44
test eax, eax
jne 0x1000492e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 2
push 0x10047594
push esi
push ebx
call fcn.1002f045
add esp, 0x10
push ebx
lea eax, [ebp - 0x10]
push 0x10047500
push eax
call fcn.100014cb
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 0x10004997
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x34
call fcn.10002244
add esp, 0xc
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000152d
push eax
lea eax, [ebp - 0x10]
call fcn.1000152a
push eax
call fcn.100012c1
push ebx
call fcn.1002e822
lea eax, [ebp - 0x10]
push eax
call fcn.1000150a
add esp, 0x14
jmp 0x10004a86
push ebx
call fcn.1002e822
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 0x10004a00
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.100014cb
add esp, 0x24
jmp 0x10004a44
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.100014cb
add esp, 0x2c
lea eax, [ebp - 0x170]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000499e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x16
lea eax, [ebp - 0x10]
call fcn.1000152d
push eax
lea eax, [ebp - 0x10]
call fcn.1000152a
push eax
call fcn.100012c1
lea eax, [ebp - 0x10]
push eax
call fcn.1000150a
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004a8b
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 0x10004aa9
xor eax, eax
jmp 0x10004aca
lea eax, [edi + 1]
cmp eax, dword [ebp + 0x10]
jae 0x10004aa5
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call fcn.100364f0
add esp, 0xc
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebp
ret

Function at 0x10004b2d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x10055ffc], edi
je 0x10004b4a
xor eax, eax
jmp 0x10004c66
push dword [0x1004e194]
xor esi, esi
inc esi
mov dword [0x10055ffc], esi
call sub.WS2_32.dll_ntohl
lea edx, [eax + 8]
mov dword [ebp - 8], edx
cmp edx, 0x4000
jbe 0x10004b76
push 0x51
call fcn.10002279
pop ecx
jmp 0x10004b43
push 8
pop ecx
cmp edx, ecx
jbe 0x10004b93
mov ebx, ecx
and ebx, 3
mov bl, byte [ebx + str.SSSSLLLLEEEEPPPPMMMMAAAASSSSKKKK]
xor byte [ecx + str.SSSSLLLLEEEEPPPPMMMMAAAASSSSKKKK], bl
inc ecx
cmp ecx, edx
jb 0x10004b7d
push esi
push eax
push 0x1004e198
lea esi, [ebp - 0x68]
call fcn.10001a8e
add esp, 0xc
test eax, eax
jne 0x10004bb6
push 0x51
call fcn.10002279
pop ecx
jmp 0x10004c44
lea ebx, [ebp - 0x68]
call fcn.10001e73
test eax, eax
jne 0x10004bcd
push dword [ebp - 0x1c]
call fcn.10004b18
pop ecx
jmp 0x10004ba9
push dword [ebp - 0x30]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x68]
push edi
push dword [ebp - 0x34]
mov dword [ebp - 4], esi
mov dword [0x1005600c], eax
call fcn.100364f0
mov ebx, dword [ebp - 0x60]
add esp, 0xc
push esi
push edi
push 0x20
lea esi, [ebp - 0xc]
pop edi
call fcn.100235e9
pop ecx
pop ecx
test eax, eax
jne 0x10004c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x52
call fcn.10002216
push dword [ebp - 4]
call fcn.10004b18
add esp, 0xc
and dword [ebp - 4], 0
jmp 0x10004c44
mov eax, dword [ebp - 0x14]
push fcn.10004b18
push 0
mov dword [0x10056000], eax
mov eax, dword [ebp - 0x18]
push 3
push eax
push dword [ebp - 4]
mov dword [0x10056004], eax
call fcn.10024c3d
add esp, 0x14
push 8
pop eax
cmp dword [ebp - 8], eax
jbe 0x10004c63
mov ecx, eax
and ecx, 3
mov cl, byte [ecx + str.SSSSLLLLEEEEPPPPMMMMAAAASSSSKKKK]
xor byte [eax + str.SSSSLLLLEEEEPPPPMMMMAAAASSSSKKKK], cl
inc eax
cmp eax, dword [ebp - 8]
jb 0x10004c4c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005183
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
push edi
push dword [ebp + 0x2c]
call fcn.100240d4
pop ecx
push 0x44
pop esi
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.100364f0
and dword [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0x24]
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 - 0x14]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
and dword [ebp - 0x38], 0
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x2c]
mov dword [ebp - 0x44], 0x101
push dword [ebp + 0x28]
call fcn.10023048
add esp, 0x10
test eax, eax
jne 0x10005224
push dword [ebp + 0x2c]
call fcn.100240f6
pop ecx
jmp 0x10005290
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0x20]
mov eax, dword [ebp - 0x1c]
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
push dword [ebp + 0x10]
lea edx, [ebp - 0x24]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100055d9
add esp, 0x14
cmp dword [ebp + 0xc], 0
jbe 0x1000525f
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.100063d3
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x34], eax
je 0x1000526a
or eax, 0xffffffff
push dword [ebp + 0x24]
lea esi, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
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.10005fc1
push dword [ebp + 0x2c]
call fcn.100240f6
add esp, 0x24
pop edi
pop esi
leave
ret
Function at 0x100057dd
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
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 esi, esi
push str.ntdll
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 0x1c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x10005904
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
push dword [ebx]
call fcn.10005756
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x10005904
push esi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 8], eax
cmp eax, esi
je 0x10005904
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005904
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebx + 8]
jne 0x100058a5
push dword [ebp - 0x2c]
call fcn.10023a04
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x100058a5
push esi
push esi
push edi
lea ecx, [edi + 0x10]
push ecx
push eax
call dword [ebp + 0xc]
mov edx, dword [ebp - 8]
call fcn.10023ab7
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000587a
mov edx, dword [ebp + 8]
call fcn.10023ab7
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
lea esi, [ebp - 4]
call fcn.10023e13
add esp, 0x10
test eax, eax
je 0x10005904
cmp dword [ebp - 4], 0x10
jne 0x10005904
cmp dword [ebp - 0xc], 0
jne 0x1000590a
push 0x10
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebx]
mov dword [ebp - 0xc], 1
call fcn.10023ea4
add esp, 0x10
xor eax, eax
pop edi
pop esi
leave
ret
xor eax, eax
inc eax
jmp 0x10005906
Function at 0x10005d3b
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.100364f0
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 0x10005d7e
xor eax, eax
jmp 0x10005e3a
cmp dword [ebp - 0x94], 5
jne 0x10005d9a
cmp dword [ebp - 0x90], 2
jne 0x10005d9a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10005d77
push ebx
push edi
push 0x4c
push esi
push 0x40
pop ebx
call fcn.1002352a
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 4], edi
cmp edi, esi
je 0x10005e15
push 0x149
push esi
call fcn.1002352a
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x10005e15
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x1004e010
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x1004e060
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 0x10005e06
push 5
jmp 0x10005e0f
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10005e19
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10005e38
push esi
call fcn.10023808
mov esi, 0x4000
push esi
call fcn.1002369c
push esi
mov edi, ebx
call fcn.1002369c
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000627d
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 0x100062d7
or eax, 0xffffffff
jmp 0x100062df
cmp dword [ebp - 4], 0x80000
jae 0x100062dc
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 0x10006293
cmp dword [ebp - 8], esi
ja 0x100062a9
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x100065d4
Capabilities:
Encode data using xor

Disassembly:
cmp byte [ecx], 0
mov eax, 0x62964ee9
je 0x100065f5
push esi
movzx edx, word [ecx]
mov esi, eax
movzx edx, dx
ror esi, 8
add esi, edx
inc ecx
xor eax, esi
cmp byte [ecx], 0
jne 0x100065df
pop esi
ret