joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001210
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100166ac
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x10001242
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 0x10001270
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 0x100012d3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100012b9
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 0x10001298
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 0x10001290
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 0x10001300
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100166a4
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 0x10001332
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 0x10001360
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 0x100013c3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100013a9
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 0x10001388
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 0x10001380
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 0x10001430
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1001e018]
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 0x10001469
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012ae6
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1001e0cc], eax
cmp eax, 0xffffffff
je 0x10001459
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x1001e0d0], eax
test eax, eax
je 0x10001459
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x1011e0dc], 0x10002260
mov al, 1
call fcn.10012ae6
mov esp, ebp
pop ebp
ret

Function at 0x100014b0
Capabilities:
Connect socket
Create thread
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x1001e0cc], 0xffffffff
push esi
mov esi, ecx
jne 0x10001523
push 0x100
push 0
push 0x10129570
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x100167d0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10129570], cl
inc eax
cmp eax, 0x100
jb 0x100014e2
push 0x10129570
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012ae6
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 0x1000156b
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000156b
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 [0x1001e0cc]
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 0x100015cb
call esi
cmp eax, 0x2733
je 0x100015cb
call esi
push eax
mov eax, 2
call fcn.1000fc90
push eax
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 0xc
mov esi, 0x1001e0c8
call fcn.10001670
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10012ae6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x1001e0d0]
mov edx, dword [0x1001e0cc]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x100015f0
call esi
push eax
mov eax, 3
jmp 0x10001599
push 0x80000
push 0
push 0x1001e0d4
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x1009e0d8
mov dword [0x1009e0d4], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x1012921c
push 0
push 0x1001e0c8
push 0x10001c30
push 0
push 0
mov dword [0x1011e0d8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x1011e0fc], eax
xor ecx, ebp
mov byte [0x1011e100], 1
mov al, 1
pop esi
call fcn.10012ae6
mov esp, ebp
pop ebp
ret 4
Function at 0x10001670
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x100034], ebx
je 0x100016a6
mov dword [0x1012921c], 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 0x100016bc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x100016cd
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 0x10001700
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 0x10001787
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x100018b5
push 0x100
push 0
push 0x10129570
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x10016ad0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10129570], cl
inc eax
cmp eax, 0x100
jb 0x10001760
call edi
push eax
push 0x10129570
jmp 0x10001900
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x100018b5
lea esp, [esp]
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x100017b6
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x100017d5
cmp al, 0xc2
jne 0x100018ef
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 0x100018be
cmp ebx, 0x80000
jg 0x100018be
cmp ebx, dword [esi + 0x8000c]
jg 0x1000188c
cmp al, 0xc1
jne 0x10001828
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 0x10001854
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 0x1000180e
jmp 0x10001854
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 0x10001854
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 0x1000183c
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 0x100017a0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x100018b5
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x100018b5
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x100018b5
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.1000fc90
push eax
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 0x14
call fcn.10001670
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.1000fc90
push eax
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 0xc
call fcn.10001670
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001920
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.100135a0
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x1011e0e4
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1001e0cc], 0xffffffff
je 0x10001a45
cmp byte [0x1011e100], 0
je 0x10001a45
push esi
lea eax, [ebp - 0x80008]
push edi
push eax
call sub.MSVCR100.dll_memcpy
mov al, byte [ebp - 0x80008]
add esp, 0xc
cmp al, 0xc1
jne 0x100019ab
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
xor eax, eax
test edi, edi
jle 0x10001a08
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x10001991
jmp 0x10001a08
cmp al, 0xc3
jne 0x100019da
mov cl, byte [ebp - 0x80003]
lea edi, [esi - 6]
xor eax, eax
test edi, edi
jle 0x10001a08
mov edi, edi
mov dl, byte [ebp + eax - 0x80002]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80002], dl
inc eax
cmp eax, edi
jl 0x100019c0
jmp 0x10001a08
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
xor eax, eax
test edi, edi
jle 0x10001a08
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 0x100019f0
mov eax, dword [0x1011e0d8]
test eax, eax
jle 0x10001a9e
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10001a63
mov eax, 7
push ecx
call fcn.1000fc90
push eax
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 0xc
mov esi, 0x1001e0c8
call fcn.10001670
push 0x1011e0e4
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.10012ae6
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80008]
push ecx
lea edx, [eax + 0x1009e0d8]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x1011e0d8], esi
push 0x1011e0e4
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.10012ae6
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10001a80
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x1001e0cc]
push 0
push esi
lea eax, [ebp + edi - 0x80008]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x10001acd
sub esi, eax
add edi, eax
test esi, esi
jg 0x10001aaa
jmp 0x10001a80
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10001b0b
mov eax, dword [0x1011e0d8]
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10001af6
mov eax, 8
jmp 0x10001a25
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [eax + 0x1009e0d8]
push eax
jmp 0x10001a72
call ebx
push eax
mov eax, 9
jmp 0x10001a26
Function at 0x10001b20
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 0x10001b79
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 0x10001b89
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10001b49
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 0x10001bc2
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 0x10129570
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10001be0
mov cl, byte [eax + 0x100170d0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10129570], cl
inc eax
cmp eax, 0x100
jb 0x10001be0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x10129570
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 0xc
call fcn.10001670
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 0x10001f90
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 connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001ff0
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 0x10001fd6
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.10012a20
add esp, 4
mov dword [esi + 4], eax
test eax, eax
jne 0x10001ff7
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 0x10001fea
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10002030
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.10001f90
test al, al
jne 0x10002045
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [esi + 8]
cmp edi, 8
jae 0x10002056
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
mov eax, 0x100198d0
mov ecx, 8
sub edx, eax
push ebx
jmp 0x10002070
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x10002141
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x10002070
add edi, 0xfffffff8
xor eax, eax
test edi, edi
jle 0x100020d3
nop
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0x1f
movsx edx, byte [edx + 0x1011e4bc]
and edx, 0xf
movzx edx, byte [edx + 0x100198d8]
sub byte [ecx + eax + 8], dl
lea ecx, [ecx + eax + 8]
mov ecx, dword [esi + 4]
mov edx, eax
and edx, 0xf
movzx edx, byte [edx + 0x100198d8]
xor byte [ecx + eax + 8], dl
lea ecx, [ecx + eax + 8]
mov ecx, dword [esi + 8]
inc eax
sub ecx, 8
cmp eax, ecx
jl 0x10002090
lea edi, [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push 0x100198e8
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x102
push 2
push 0
push 7
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002141
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
lea edx, [ebp - 4]
push edx
sub eax, 8
push eax
add ecx, 8
push ecx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x1000214a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002160
Capabilities:
Delete file

Disassembly:
push edi
lea edi, [esi + 0xc]
mov ecx, 0x10019900
mov eax, edi
jmp 0x10002170
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002190
test dl, dl
je 0x1000218c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002190
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002170
xor eax, eax
jmp 0x10002195
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100021cc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100021cc
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
push 0x100
push 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.MSVCR100.dll_memset
add esp, 0x10
pop edi
ret
Function at 0x10002e00
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x100
push 0
push 0x10129570
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 + 0x10129570], cl
inc eax
cmp eax, 0x100
jb 0x10002e20
movzx edx, byte [esi + 4]
push edx
push 0x10129570
push 0
mov ecx, 0x1011e278
call fcn.10005000
movzx eax, byte [esi + 4]
add esp, 0xc
cmp eax, 0xa
ja case.default.0x10002e5c
jmp dword [eax*4 + 0x10002ecc]
mov ecx, 0xe
jmp 0x10002eae
mov ecx, 0xf
jmp 0x10002eae
mov ecx, 0x10
jmp 0x10002eae
mov ecx, 0x11
jmp 0x10002eae
mov ecx, 0x12
jmp 0x10002eae
mov ecx, 0x13
jmp 0x10002eae
mov ecx, 0x14
jmp 0x10002eae
mov ecx, 0x16
jmp 0x10002eae
mov ecx, 0x18
jmp 0x10002eae
mov ecx, 0x19
jmp 0x10002eae
mov ecx, 0x15
push 0x1388
call fcn.10005760
push eax
push 2
mov esi, 0x10123668
call fcn.1000fa20
add esp, 0xc
pop esi
ret

Function at 0x10002f00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
cmp dword [0x10124134], 1
push edi
je 0x10002f9c
mov eax, dword [0x1011e22c]
mov dword [0x101240fc], ebx
mov dword [0x10124100], ebx
mov dword [0x10124104], ebx
mov dword [0x10124108], ebx
mov dword [0x1012410c], ebx
mov dword [0x10124110], ebx
mov dword [0x10124114], ebx
mov dword [0x10124118], ebx
mov dword [0x1012411c], ebx
cmp eax, dword [0x1011e230]
je 0x10002f66
mov dword [0x1011e230], eax
mov eax, dword [0x1011e23c]
cmp eax, dword [0x1011e240]
je 0x10002f78
mov dword [0x1011e240], eax
mov eax, dword [0x1011e24c]
cmp eax, dword [0x1011e250]
je 0x10002f8a
mov dword [0x1011e250], eax
mov eax, dword [0x1011e25c]
cmp eax, dword [0x1011e260]
je 0x10002f9c
mov dword [0x1011e260], eax
mov dword [0x101233bc], ebx
mov dword [0x101233c4], ebx
mov word [ebp - 0x40], 0x3cc1
call dword [sym.imp.MSVCR100.dll_rand]
and eax, 0x800000ff
jns 0x10002fc2
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [0x101233ac]
mov edx, dword [str.1.7.0]
mov byte [ebp - 0x3e], al
mov eax, dword [0x10124134]
mov dword [ebp - 0x3c], eax
mov eax, dword [0x10019908]
mov byte [ebp - 0x3d], bl
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
call fcn.1000fbd0
mov esi, eax
mov ecx, 9
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push str._CLIENT___s
push ebx
mov ecx, 0x1011e278
call fcn.10005000
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 8]
push edx
push ebx
push ebx
push 0x10019918
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
movzx ecx, byte [ebp - 0x3f]
lea edx, [ebp - 0x40]
call fcn.10001920
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012ae6
mov esp, ebp
pop ebp
ret
Function at 0x10003c00
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10124084]
test eax, eax
je 0x10003c73
mov ecx, dword [eax]
cmp ecx, dword [0x10124098]
jne 0x10003c1f
mov dl, byte [0x1012409c]
cmp dl, byte [eax + 4]
je 0x10003c73
push 0x100
push 0
push 0x10129570
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003c40
mov cl, byte [eax + 0x100175d0]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x10129570], cl
inc eax
cmp eax, 0x100
jb 0x10003c40
push 0x10129570
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 8
call fcn.1000f5c0
mov eax, dword [0x10124080]
test eax, eax
je 0x10003ce3
mov edx, dword [eax]
cmp edx, dword [0x10124090]
jne 0x10003c91
mov cl, byte [0x10124094]
cmp cl, byte [eax + 4]
je 0x10003ce3
push 0x100
push 0
push 0x10129570
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x10003cb0
mov dl, byte [eax + 0x100176d0]
sub dl, 0x1b
xor dl, 0xc
mov byte [eax + 0x10129570], dl
inc eax
cmp eax, 0x100
jb 0x10003cb0
push 0x10129570
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 8
call fcn.1000f5c0
mov eax, dword [0x1012407c]
test eax, eax
je 0x10003d20
mov ecx, dword [eax]
cmp ecx, dword [0x10124088]
jne 0x10003d01
mov dl, byte [0x1012408c]
cmp dl, byte [eax + 4]
je 0x10003d20
mov eax, 0x11
call fcn.1000fc90
push eax
push 0
mov ecx, 0x1011e278
call fcn.10005000
add esp, 8
call fcn.1000f5c0
pop ecx
ret
Function at 0x10004c50
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp + 0xc]
push connect
push eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004ca3
lea edx, [ebp - 0x38]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10004cb6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012ae6
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edi
push 0
push eax
push ecx
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x10004ced
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012ae6
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x14]
push edx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10004d2b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10004d24
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10004d24
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x10004d4b
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012ae6
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp - 0x44]
mov dword [ebx], esi
mov dword [edx], edi
mov edx, dword [ebp - 0x3c]
mov dword [edx], eax
mov eax, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.10012ae6
mov esp, ebp
pop ebp
ret 8