joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001710
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x8000c]
xor edi, edi
push edi
mov ecx, 0x80000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10001760
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x1000188a
call edi
push eax
mov eax, 4
jmp 0x100018cf
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x1000188a
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x1000178b
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x100017aa
cmp al, 0xc2
jne 0x100018c4
movzx ecx, byte [edi + esi + 0xd]
shl cx, 8
movzx ebx, cx
movzx ecx, byte [edi + esi + 0xe]
or ebx, ecx
mov cl, byte [edi + esi + 0x10]
cmp ebx, 4
jl 0x10001893
cmp ebx, 0x80000
jg 0x10001893
cmp ebx, dword [esi + 0x8000c]
jg 0x10001861
cmp al, 0xc1
jne 0x100017fd
mov dl, byte [edi + esi + 0xe]
mov byte [ebp - 4], dl
lea edx, [ebx - 3]
xor eax, eax
lea ecx, [edi + esi + 0xf]
test edx, edx
jle 0x10001829
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0xf]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 3]
cmp eax, edx
jl 0x100017e3
jmp 0x10001829
mov cl, byte [edi + esi + 0xf]
lea edx, [ebx - 4]
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [edi + esi + 0x10]
test edx, edx
jle 0x10001829
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0x10]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 4]
cmp eax, edx
jl 0x10001811
mov al, byte [ecx]
mov edx, dword [esi + 0x100014]
mov byte [ebp - 8], al
mov ecx, dword [ebp - 8]
push ebx
lea eax, [esi + edi + 0xc]
push eax
push ecx
call edx
sub dword [esi + 0x8000c], ebx
add esp, 0xc
add edi, ebx
cmp dword [esi + 0x8000c], 0
jg 0x10001775
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x1000188a
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x1000188a
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x1000188a
push eax
lea eax, [edi + esi + 0xc]
push eax
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, cl
push ecx
movzx edx, al
push ebx
push edx
mov eax, 6
call fcn.10015770
push eax
push 0
mov ecx, 0x10125568
call fcn.1000aff0
add esp, 0x14
call fcn.100016a0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + esi + 0xc]
push eax
mov eax, 5
call fcn.10015770
push eax
push 0
mov ecx, 0x10125568
call fcn.1000aff0
add esp, 0xc
call fcn.100016a0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001b70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x10001c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10001bc9
lea ebx, [esi + 0x80010]
mov eax, dword [esi + 0x100010]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001bd9
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10001b99
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10001c12
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, 0xa
call fcn.10015770
push eax
push 0
mov ecx, 0x10125568
call fcn.1000aff0
add esp, 0xc
call fcn.100016a0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001fc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0x20
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002020
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x10002006
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [esi + 4], 0
mov ecx, dword [esi + 8]
push ecx
call fcn.10016d6b
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10002027
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
push 0
lea edx, [ebp - 4]
push edx
push ecx
push eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x1000201a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10002b30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x100
push 0
push 0x112831a0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
nop
mov cl, byte [eax + str.r_jv]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x112831a0], cl
inc eax
cmp eax, 0x100
jb 0x10002b50
mov esi, dword [ebp + 8]
movzx edx, word [esi + 6]
movzx eax, byte [esi + 8]
push edx
push eax
push 0x112831a0
push 0
mov ecx, 0x10125568
call fcn.1000aff0
movzx ecx, word [esi + 6]
add esp, 0x10
cmp byte [esi + 8], 0
mov dword [0x11282b3c], ecx
mov dword [ebp - 4], 0
jbe 0x10002c4d
mov edi, dword [0x10125550]
lea ebx, [esi + 0xa]
nop
cmp ebx, edi
jae 0x10002bff
mov eax, dword [0x1012554c]
cmp eax, ebx
ja 0x10002bff
mov ecx, ebx
sub ecx, eax
mov eax, 0x7e07e07f
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [0x10125554]
jne 0x10002bea
mov ecx, 0x1012554c
call fcn.10003400
mov edi, dword [0x10125550]
mov eax, esi
shl eax, 6
add eax, dword [0x1012554c]
add eax, esi
test edi, edi
je 0x10002c2b
mov esi, eax
jmp 0x10002c1d
cmp edi, dword [0x10125554]
jne 0x10002c17
mov ecx, 0x1012554c
call fcn.10003400
mov edi, dword [0x10125550]
test edi, edi
je 0x10002c2e
mov esi, ebx
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [0x10125550]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
add edi, 0x41
mov dword [0x10125550], edi
movzx edx, byte [esi + 8]
inc eax
add ebx, 0x41
mov dword [ebp - 4], eax
cmp eax, edx
jl 0x10002bb0
pop edi
pop esi
mov dword [0x11282b2c], 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002c60
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x112831a0
mov esi, eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + str.r_jj]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x112831a0], cl
inc eax
cmp eax, 0x100
jb 0x10002c80
movzx edx, byte [esi + 4]
push edx
push 0x112831a0
push 0
mov ecx, 0x10125568
call fcn.1000aff0
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xd
ja case.0x10002cc0.11
jmp dword [eax*4 + 0x10002d60]
add esi, 5
push esi
push 2
mov eax, 0x1012f668
call fcn.10013e70
add esp, 8
pop esi
ret
push 0x3c
push 0
push 0x11282a6c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xf1
push 0xc1
mov eax, 0x404b90
mov ecx, 0x11282a6c
call eax
push 2
mov edx, 0x4050d0
mov ecx, 0x11282a6c
call edx
push 2
mov eax, 0x4050d0
mov ecx, 0x11282a6c
call eax
push 0
push 1
mov ecx, 0x11282a6c
call dword [0x11282ab0]
push 0x3c
push 0
push 0x11282a6c
call sub.MSVCR100.dll_memset
add esp, 0xc
pop esi
ret
mov ecx, 0x15
call fcn.1000b340
push eax
push 2
mov eax, 0x1012f668
call fcn.10013e70
add esp, 8
pop esi
ret
Function at 0x10002da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x11282b54], 1
push edi
je 0x10002e48
mov ecx, dword [0x1012551c]
mov dword [0x11282b1c], ebx
mov dword [0x11282b20], ebx
mov dword [0x11282b24], ebx
mov dword [0x11282b28], ebx
mov dword [0x11282b2c], ebx
mov dword [0x11282b30], ebx
mov dword [0x11282b34], ebx
mov dword [0x11282b38], ebx
mov dword [0x11282b3c], ebx
cmp ecx, dword [0x10125520]
je 0x10002e0c
mov dword [0x10125520], ecx
mov ecx, dword [0x1012552c]
cmp ecx, dword [0x10125530]
je 0x10002e20
mov dword [0x10125530], ecx
mov ecx, dword [0x1012553c]
cmp ecx, dword [0x10125540]
je 0x10002e34
mov dword [0x10125540], ecx
mov ecx, dword [0x1012554c]
cmp ecx, dword [0x10125550]
je 0x10002e48
mov dword [0x10125550], ecx
mov dword [0x1012f3cc], ebx
mov dword [0x1012f3d4], ebx
mov word [ebp - 0x3c], 0x38c1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x10002e6e
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x1012f3bc]
mov edx, dword [str.1.7.0]
mov byte [ebp - 0x3a], al
mov eax, dword [0x11282b54]
mov dword [ebp - 0x38], eax
mov eax, dword [0x1001f8c4]
mov byte [ebp - 0x39], bl
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
call fcn.10014020
push 0x100
mov esi, eax
push ebx
mov ecx, 9
lea edi, [ebp - 0x28]
push 0x112831a0
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x1001e570]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x112831a0], cl
inc eax
cmp eax, 0x100
jb 0x10002ec0
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x30]
push eax
push ecx
push edx
push 0x112831a0
push ebx
mov ecx, 0x10125568
call fcn.1000aff0
movzx ecx, byte [ebp - 0x3b]
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
mov edx, 0x100253b8
call fcn.10001900
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018e16
mov esp, ebp
pop ebp
ret
Function at 0x10003cb0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ecx
mov eax, dword [0x1012fe54]
test eax, eax
je 0x10003d5e
mov ecx, dword [eax]
cmp ecx, dword [0x1012fe68]
jne 0x10003cd7
mov dl, byte [0x1012fe6c]
cmp dl, byte [eax + 4]
je 0x10003d5e
push 0x100
push 0
push 0x112831a0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x1001d570]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x112831a0], cl
inc eax
cmp eax, 0x100
jb 0x10003cf0
push 0x112831a0
push 0
mov ecx, 0x10125568
call fcn.1000aff0
xor eax, eax
add esp, 8
push eax
mov dword [0x11282e48], eax
mov dword [0x11282e4c], eax
mov dword [0x11282e50], eax
mov dword [0x11282e54], eax
mov dword [0x11282e58], eax
mov dword [0x11282e5c], eax
mov dword [0x11282e60], eax
mov dword [0x11282e64], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]
mov eax, dword [0x1012fe50]
test eax, eax
je 0x10003d83
mov edx, dword [eax]
cmp edx, dword [0x1012fe60]
jne 0x10003d7c
mov cl, byte [0x1012fe64]
cmp cl, byte [eax + 4]
je 0x10003d83
mov eax, 0x10
jmp 0x10003da6
mov eax, dword [0x1012fe4c]
test eax, eax
je 0x10003dc0
mov edx, dword [eax]
cmp edx, dword [0x1012fe58]
jne 0x10003da1
mov cl, byte [0x1012fe5c]
cmp cl, byte [eax + 4]
je 0x10003dc0
mov eax, 0x11
call fcn.10015770
push eax
push 0
mov ecx, 0x10125568
call fcn.1000aff0
add esp, 8
call fcn.10015a20
pop ecx
ret
Function at 0x10009a60
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xf0
xor ecx, ecx
jmp 0x10009a70
mov al, byte [edi + ecx + 0x79ddc0fb]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x1e
jb 0x10009a70
mov byte [esi + 0x1e], 0
mov eax, esi
ret

Function at 0x10009a90
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x82
xor ecx, ecx
jmp 0x10009aa0
mov al, byte [edi + ecx + 0x2e62e9b2]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x19
jb 0x10009aa0
mov byte [esi + 0x19], 0
mov eax, esi
ret

Function at 0x10009ac0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 9
xor ecx, ecx
jmp 0x10009ad0
mov al, byte [edi + ecx - 0x7bd60ae8]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0x1a
jb 0x10009ad0
mov byte [esi + 0x1a], 0
mov eax, esi
ret

Function at 0x10009d00
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x7f
xor ecx, ecx
jmp 0x10009d10
mov al, byte [edi + ecx + 0x7b9bf7eb]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xb
jb 0x10009d10
mov byte [esi + 0xb], 0
mov eax, esi
ret

Function at 0x10009d30
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xf3
xor ecx, ecx
jmp 0x10009d40
mov al, byte [edi + ecx - 0x2b8b1aec]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xc
jb 0x10009d40
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x10009d60
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0xae
xor ecx, ecx
jmp 0x10009d70
mov al, byte [edi + ecx - 0x37b821da]
xor al, dl
inc edx
mov byte [ecx + esi], al
inc ecx
and edx, 0xff
cmp ecx, 0xe
jb 0x10009d70
mov byte [esi + 0xe], 0
mov eax, esi
ret
Function at 0x1000aed0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10125780]
push ebx
push esi
push edi
test eax, eax
js 0x1000afd9
cmp eax, 1
jge 0x1000afd9
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x1012556c
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x10125780], eax
push edi
mov dword [esi], 1
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0xc
cmp dword [esi], 0
je 0x1000afd9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xe]
movzx ecx, word [ebp - 0x12]
movzx edx, word [ebp - 0x14]
push eax
push ecx
push edx
push edi
lea ebx, [esi + 0x110]
push str.._s_04d__02d__02d.log
push ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x1000afb4
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000afd9
mov ecx, dword [esi + 0x210]
push ecx
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018e16
mov esp, ebp
pop ebp
ret
Function at 0x1000aff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x1000b1e7
cmp eax, dword [ecx + 0x218]
jge 0x1000b1e7
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x1000b1e7
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x812]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
cmp ecx, dword [esi + 0x104]
jne 0x1000b076
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x1000b076
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x1000b133
mov ecx, dword [esi + 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x812]
movzx ecx, word [ebp - 0x816]
movzx edx, word [ebp - 0x818]
push eax
push ecx
push edx
mov dword [esi + 0x10c], edx
lea edx, [esi + 4]
push edx
lea edi, [esi + 0x110]
push str.._s_04d__02d__02d.log
push edi
mov dword [esi + 0x104], eax
mov dword [esi + 0x108], ecx
call ebx
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x210], eax
cmp eax, 0xffffffff
jne 0x1000b0fd
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000b133
mov eax, dword [esi + 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call dword [sym.imp.MSVCR100.dll_vsprintf_s]
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call sub.MSVCR100.dll_memset
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
lea eax, [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x810]
push ecx
push edx
push eax
lea ecx, [ebp - 0x408]
push str._02d:_02d:_02d__s_r_n
push ecx
call ebx
lea eax, [ebp - 0x408]
add esp, 0x40
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b1c0
mov ecx, dword [esi + 0x210]
sub eax, edx
push 0
lea edx, [ebp - 0x81c]
push edx
push eax
lea eax, [ebp - 0x408]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10018e16
mov esp, ebp
pop ebp
ret
Function at 0x1000b490
Capabilities:
Create process on windows
Encode data using xor
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x580
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x560]
push 0
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x208
lea edx, [ebp - 0x358]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1000b689
push 0x104
lea eax, [ebp - 0x560]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x1000b682
lea ecx, [ebp - 0x358]
push ecx
lea ecx, [ebp - 0x560]
call fcn.10013ae0
add esp, 4
test al, al
je 0x1000b682
push 0x40
lea edx, [ebp - 0x48]
push 0
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea esi, [ebp - 0x560]
mov word [ebp - 0x57c], 0x5325
mov byte [ebp - 0x57a], 0
call fcn.10013d80
push eax
lea eax, [ebp - 0x57c]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x358]
call fcn.1000ac60
test al, al
jne 0x1000b612
mov ecx, 0xdd
xor eax, eax
nop
mov dl, byte [eax + 0x10020058]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x578], dl
inc eax
and ecx, 0xff
cmp eax, 0x16
jb 0x1000b590
push ebx
lea eax, [ebp - 0x578]
push eax
lea ecx, [ebp - 0x150]
push ecx
mov byte [ebp - 0x562], 0
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea eax, [ebp - 0x150]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
lea ecx, [ebp - 0x48]
call fcn.1000ad90
test al, al
jne 0x1000b64c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 2
lea ecx, [ebp - 0x48]
call fcn.10002f20
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
call fcn.10003b00
test al, al
jne 0x1000b682
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 5
lea ecx, [ebp - 0x48]
call fcn.10002f20
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.10018e16
mov esp, ebp
pop ebp
ret
Function at 0x1000b830
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019b5b
mov eax, dword fs:[0]
push eax
sub esp, 0xc40
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0xc48], ebx
mov dword [ebp - 0xc44], ebx
mov dword [ebp - 0xc40], ebx
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc48]
mov dword [ebp - 4], ebx
call fcn.10015850
add esp, 4
mov word [ebp - 0xc34], 0xac2
mov byte [ebp - 0xc32], 0xc
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x1000b8ab
dec eax
or eax, 0xffffff00
inc eax
mov esi, dword [ebp - 0xc48]
mov byte [ebp - 0xc31], al
mov eax, dword [ebp - 0xc44]
sub eax, esi
sar eax, 2
mov byte [ebp - 0xc30], 0x17
mov dword [ebp - 0xc4c], eax
mov dword [ebp - 0xc2c], eax
cmp eax, ebx
jbe 0x1000b967
lea ecx, [ebp - 0x728]
mov dword [ebp - 0xc38], ecx
lea esp, [esp]
cmp ebx, 0x14
jge 0x1000b967
mov eax, dword [esi + ebx*4]
push 0x104
lea edx, [ebp - 0x11c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [esi + ebx*4]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov edi, dword [ebp - 0xc38]
mov eax, dword [ebp - 0xc38]
add edi, 0xfffffb00
mov ecx, 0x10
lea esi, [ebp - 0x11c]
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov ecx, 0x10
lea esi, [ebp - 0x224]
inc ebx
add eax, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc48]
mov dword [ebp - 0xc38], eax
cmp ebx, dword [ebp - 0xc4c]
jb 0x1000b8f0
lea eax, [ebp - 0xc34]
push eax
mov ecx, 0xa0c
mov edx, 0x100253b8
call fcn.10001900
test esi, esi
je 0x1000b98b
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret 4