joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100042e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0xf
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x134]
mov edi, eax
push ecx
push edi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10004389
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [ebp - 0x138]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.100226da
add esp, 8
test eax, eax
jne 0x10004377
mov ecx, dword [ebp - 0x12c]
push ecx
push eax
push 1
call ebx
mov esi, eax
test esi, esi
je 0x10004377
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x12c], eax
je 0x10004377
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x134]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1000432d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002005a
mov esp, ebp
pop ebp
ret

Function at 0x100046c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100a9bfc]
push ebx
push esi
push edi
test eax, eax
js 0x100047c8
cmp eax, 6
jge 0x100047c8
mov esi, eax
imul esi, esi, 0x214
push ecx
add esi, 0x100a8f84
inc eax
lea edi, [esi + 4]
push 0x100
mov dword [0x100a9bfc], eax
push edi
mov dword [esi], 1
call fcn.10022158
add esp, 0xc
cmp dword [esi], 0
je 0x100047c8
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.txt
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 0x100047a3
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
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 0x100047c8
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.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x100047e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
js 0x100049d7
cmp eax, dword [ecx + 0xc7c]
jge 0x100049d7
imul eax, eax, 0x214
cmp dword [eax + ecx + 4], 0
lea esi, [eax + ecx + 4]
je 0x100049d7
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 0x10004866
movzx edx, word [ebp - 0x816]
cmp edx, dword [esi + 0x108]
jne 0x10004866
movzx eax, word [ebp - 0x818]
cmp eax, dword [esi + 0x10c]
je 0x10004923
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.txt
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 0x100048ed
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
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 0x10004923
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.1002005a
mov esp, ebp
pop ebp
ret
push 0x3ff
lea ecx, [ebp - 0x807]
push 0
push ecx
mov byte [ebp - 0x808], 0
call fcn.100239d0
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea ecx, [ebp - 0x808]
push 0x400
push ecx
call fcn.100219e3
push 0x3ff
lea edx, [ebp - 0x407]
push 0
push edx
mov byte [ebp - 0x408], 0
call fcn.100239d0
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 esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100049b0
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.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x10004ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x10047650]
xor eax, esp
mov dword [esp + 0x8c], eax
cmp dword [esi + 0x18], 0
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [esp + 0xc], eax
je 0x10004c26
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
lea edx, [esp + 0x40]
mov edi, eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x18]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x14]
push 0xcc0020
push 0
push 0
push ebx
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x10]
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp byte [esi + 0x20], 1
jne 0x10004c16
push str.Segoe_UI
push 2
push 5
push 0
push 8
push 1
push 0
push 0
push 0
push 0x12c
push 0
push 0
push 0
push 0xe
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x120]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea ebx, [esi + 0x21]
mov eax, ebx
lea ecx, [eax + 1]
jmp 0x10004ba0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10004ba0
sub eax, ecx
push eax
mov eax, dword [esi + 0x14]
push ebx
sub eax, 0x25
push eax
push 0x12
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, 0x3e
xor eax, eax
mov dl, byte [eax + str.P03__1fuxyk]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x14], dl
inc eax
and ecx, 0xff
cmp eax, 0x29
jb 0x10004bc2
lea eax, [esp + 0x14]
push eax
push ebx
mov byte [esp + 0x45], 0
call fcn.1002029d
mov eax, ebx
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004bf3
mov ecx, dword [esi + 0x14]
sub eax, edx
mov edx, dword [esi + 0x10]
push eax
push ebx
sub ecx, 0xf
push ecx
sub edx, 0xdc
push edx
push edi
call dword [sym.imp.GDI32.dll_TextOutA]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x94]
pop edi
pop ebx
xor ecx, esp
call fcn.1002005a
mov esp, ebp
pop ebp
ret 4
Function at 0x100050d0
Capabilities:
Create process on windows
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push ecx
push 0x1004b838
call fcn.10003ff0
add esp, 4
push eax
push 0
mov ecx, 0x100a8f80
call fcn.100047e0
mov eax, dword [0x100a9c6c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
test eax, eax
je 0x10005138
push 0
push 0
push 0x10
push eax
call esi
mov edx, dword [0x101ab240]
mov eax, dword [str.SPLASH]
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
push edx
push eax
mov dword [0x100a9c6c], 0
call edi
jmp 0x1000513e
mov edi, dword [sym.imp.USER32.dll_UnregisterClassA]
mov eax, dword [0x100a9d94]
test eax, eax
je 0x1000516a
push 0
push 0
push 0x10
push eax
call esi
mov ecx, dword [0x101ab240]
mov edx, dword [str.SPLASH]
push ecx
push edx
mov dword [0x100a9d94], 0
call edi
mov eax, dword [0x100a9ebc]
test eax, eax
je 0x10005195
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x101ab240]
mov ecx, dword [str.SPLASH]
push eax
push ecx
mov dword [0x100a9ebc], 0
call edi
mov eax, dword [ebp + 8]
sub eax, 0
je 0x100051b9
dec eax
je 0x100051ad
dec eax
jne 0x100051c2
lea ecx, [eax + 2]
mov eax, 0x2b39c0
jmp 0x100051c8
mov ecx, 1
mov eax, 0x227ee6
jmp 0x100051c8
xor ecx, ecx
mov eax, 0xf1f0ec
jmp 0x100051c8
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push eax
push edx
call fcn.10004c80
mov ecx, ebx
mov edi, 0x10005030
call fcn.10003bf0
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 4]
test eax, eax
je 0x10005225
push 0
push 0
push 0x10
push eax
call esi
mov eax, dword [0x101ab240]
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
mov dword [ebx + 4], 0
call dword [sym.imp.USER32.dll_UnregisterClassA]
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.10003cf0
Function at 0x100052b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b7c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10047650]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov ecx, dword [0x101aba08]
sub ecx, dword [0x101aba04]
mov dword [ebp - 0x14], eax
mov eax, 0xdd67c8a7
imul ecx
mov eax, dword [ebp - 0x14]
add edx, ecx
sar edx, 8
mov edi, edx
shr edi, 0x1f
add edi, edx
or ebx, 0xffffffff
cmp edi, eax
ja 0x10005323
push str.invalid_vector_T__subscript
call fcn.1001f5bb
mov eax, 0x100053af
ret
imul eax, eax, 0x128
add eax, dword [0x101aba04]
mov ecx, dword [eax]
cmp ecx, dword [esi + 0xc]
jne 0x1000536c
lea ecx, [esi + 0x10]
add eax, 0x24
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10005360
test dl, dl
je 0x1000535c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10005360
add eax, 2
add ecx, 2
test dl, dl
jne 0x10005340
xor eax, eax
jmp 0x10005365
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000536c
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ebx, 0xffffffff
je 0x100053af
cmp edi, ebx
ja 0x10005386
push str.invalid_vector_T__subscript
call fcn.1001f5bb
imul ebx, ebx, 0x128
add ebx, dword [0x101aba04]
mov edx, dword [ebx]
push edx
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x100053af
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100064b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b9fb
mov eax, dword fs:[0]
push eax
sub esp, 0xc40
mov eax, dword [0x10047650]
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.100039e0
add esp, 4
mov word [ebp - 0xc34], 0xac2
mov byte [ebp - 0xc32], 0xc
call fcn.10022137
and eax, 0x800000ff
jns 0x1000652a
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], 0x21
mov dword [ebp - 0xc4c], eax
mov dword [ebp - 0xc2c], eax
cmp eax, ebx
jbe 0x100065df
lea ecx, [ebp - 0x728]
mov dword [ebp - 0xc38], ecx
cmp ebx, 0x14
jge 0x100065df
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 0x10006568
mov ecx, 0xa0c
lea edx, [ebp - 0xc34]
call fcn.10006cf0
test esi, esi
je 0x100065fc
push esi
call fcn.1002004f
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.1002005a
mov esp, ebp
pop ebp
ret 4

Function at 0x100067c0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100067f9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100a9fe4], eax
cmp eax, 0xffffffff
je 0x100067e9
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100a9fe8], eax
test eax, eax
je 0x100067e9
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x101a9ff4], 0x1000bf30
mov al, 1
call fcn.1002005a
mov esp, ebp
pop ebp
ret
Function at 0x10006840
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10047650]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
push edi
mov edi, dword [ebp + 8]
jne 0x10006895
push 0x10048f38
call fcn.10003ff0
add esp, 4
push eax
push 0
mov ecx, 0x100a8f80
call fcn.100047e0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002005a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
xor ebx, ebx
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x100068e3
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x100068e3
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.10023130
add esp, 0xc
mov ecx, dword [esi + 4]
push 0x10
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10006942
call edi
cmp eax, 0x2733
je 0x10006942
call edi
push eax
push 0x10049038
call fcn.10003ff0
add esp, 4
push eax
push ebx
mov ecx, 0x100a8f80
call fcn.100047e0
add esp, 0xc
call fcn.10006a20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002005a
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push 0x23
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x100069b9
call edi
push eax
push 0x10049138
call fcn.10003ff0
add esp, 4
push eax
push ebx
mov ecx, 0x100a8f80
call fcn.100047e0
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000698c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1000699d
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x100038], bl
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002005a
mov esp, ebp
pop ebp
ret 8
push 0x80000
lea ecx, [esi + 0xc]
push ebx
push ecx
call fcn.100239d0
add esp, 0xc
push 0x80000
lea edx, [esi + 0x80010]
push ebx
push edx
mov dword [esi + 0x8000c], ebx
call fcn.100239d0
add esp, 0xc
mov ecx, esi
mov edi, 0x10006fe0
mov dword [esi + 0x100010], ebx
call fcn.10003bf0
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
mov byte [esi + 0x100038], al
pop esi
pop ebx
xor ecx, esp
call fcn.1002005a
mov esp, ebp
pop ebp
ret 8
Function at 0x10006cf0
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.10033670
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x101a9ffc
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a9fe4], 0xffffffff
je 0x10006df8
cmp byte [0x101aa018], 0
je 0x10006df8
push 0x80000
lea eax, [ebp - 0x80008]
push 0
push eax
call fcn.100239d0
add esp, 0xc
push esi
lea ecx, [ebp - 0x80008]
push edi
push ecx
call fcn.10023130
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x10006d8c
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10006db8
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10006d72
jmp 0x10006db8
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10006db8
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x10006da0
mov ecx, dword [0x101a9ff0]
test ecx, ecx
jle 0x10006e51
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10006e16
push eax
push 0x10049538
call fcn.10003ff0
add esp, 4
push eax
push 0
mov ecx, 0x100a8f80
call fcn.100047e0
add esp, 0xc
mov esi, 0x100a9fe0
call fcn.10006a20
push 0x101a9ffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x80008]
push eax
lea ecx, [ecx + 0x10129ff0]
push ecx
call fcn.10023130
add esp, 0xc
add dword [0x101a9ff0], esi
push 0x101a9ffc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1002005a
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10006e33
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [0x100a9fe4]
push 0
push esi
lea edx, [ebp + edi - 0x80008]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x10006e7f
sub esi, eax
add edi, eax
test esi, esi
jg 0x10006e5d
jmp 0x10006e33
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10006ebe
mov ecx, dword [0x101a9ff0]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10006ea9
push eax
push 0x10049638
jmp 0x10006dd6
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [ecx + 0x10129ff0]
push eax
jmp 0x10006e25
call ebx
push eax
push 0x10049738
jmp 0x10006dd6
Function at 0x10006ed0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
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 0x10006f28
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 0x10006f37
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10006ef8
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006f6e
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call fcn.100206b0
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10049838
call fcn.10003ff0
add esp, 4
push eax
push 0
mov ecx, 0x100a8f80
call fcn.100047e0
mov eax, dword [esi + 4]
add esp, 0xc
cmp eax, 0xffffffff
je 0x10006fa8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10006fbd
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov eax, dword [ebp - 4]
push eax
mov byte [esi + 0x100038], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100075d0
Capabilities:
Create process on windows
Get process image filename
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x584
mov eax, dword [0x10047650]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x48]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x580], esi
call fcn.100239d0
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x560]
push 0
push ecx
call fcn.100239d0
add esp, 0xc
push 0x208
lea edx, [ebp - 0x358]
push 0
push edx
call fcn.100239d0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x100077b3
push 0x104
lea eax, [ebp - 0x560]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
je 0x100077ac
lea ecx, [ebp - 0x358]
push ecx
lea ecx, [ebp - 0x560]
call fcn.10004040
add esp, 4
test al, al
je 0x100077ac
push 0x40
lea edx, [ebp - 0x48]
push 0
push edx
call fcn.100239d0
add esp, 0xc
lea esi, [ebp - 0x560]
mov word [ebp - 0x57c], 0x5325
mov byte [ebp - 0x57a], 0
call fcn.10004290
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.10006650
test al, al
jne 0x1000773c
mov edi, 0x7dbcb61a
lea esi, [ebp - 0x578]
call fcn.1001ada0
mov ecx, dword [ebp - 0x580]
push ecx
push eax
lea edx, [ebp - 0x150]
push edx
call fcn.1002029d
add esp, 0xc
push 0
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea ecx, [ebp - 0x150]
push 0
push ecx
call fcn.100239d0
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x358]
push edx
lea ecx, [ebp - 0x48]
call fcn.10007210
test al, al
jne 0x10007776
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
lea esi, [ebp - 0x48]
call fcn.1000c120
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
call fcn.10007480
test al, al
jne 0x100077ac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
lea esi, [ebp - 0x48]
call fcn.1000c120
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002005a
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1002005a
mov esp, ebp
pop ebp
ret