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

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x10014764
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x100036fa
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10003728
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x10003780
push esi
nop
mov esi, ebx
test eax, eax
je 0x10003767
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10003746
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10003740
pop esi
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x19c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000383b
xor al, al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10011584
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1001c02c], eax
cmp eax, 0xffffffff
je 0x10003829
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x1001c030], eax
test eax, eax
je 0x10003829
mov ecx, dword [ebp - 8]
mov al, 1
xor ecx, ebp
mov dword [0x1011c03c], 0x10004560
call fcn.10011584
mov esp, ebp
pop ebp
ret 4
Function at 0x10003880
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1001c02c], 0xffffffff
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x100038cc
mov ecx, 1
call fcn.10010240
push eax
push 0
push 0x1011c1e0
call fcn.10007790
add esp, 0xc
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011584
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov edi, 2
mov word [ebp - 0x14], di
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x10003912
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10003912
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [0x1001c02c]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10003970
call esi
cmp eax, 0x2733
je 0x10003970
call esi
mov ecx, edi
push eax
call fcn.10010240
push eax
push 0
push 0x1011c1e0
call fcn.10007790
add esp, 0x10
mov ecx, 0x1001c028
call fcn.10003a10
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011584
mov esp, ebp
pop ebp
ret 8
push 0x23
push dword [0x1001c030]
push dword [0x1001c02c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10003992
call esi
mov ecx, 3
jmp 0x1000393c
push 0x80000
push 0
push 0x1001c034
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x1009c034], 0
push 0x80000
push 0
push 0x1009c038
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x1011c038], 0
push 0x10127078
push ecx
push 0x1001c028
push 0x10003f10
call fcn.100103f0
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x1011c05c], eax
xor ecx, ebp
mov byte [0x1011c060], 1
mov al, 1
pop esi
call fcn.10011584
mov esp, ebp
pop ebp
ret 8

Function at 0x10003a10
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100034], 0
je 0x10003a4a
push 0
mov dword [0x10127078], 0xffffffff
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10003a60
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10003a75
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov byte [esi + 0x100038], 0
pop esi
ret
Function at 0x10003aa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
push edi
push 0
mov eax, 0x80000
mov ecx, dword [esi + 0x8000c]
sub eax, ecx
push eax
lea eax, [esi + 0xc]
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10003af5
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x10003bf4
call edi
mov ecx, 4
jmp 0x10003c3a
add dword [esi + 0x8000c], eax
cmp dword [esi + 0x8000c], 4
jl 0x10003bf4
xor ecx, ecx
lea edi, [esi + 0xc]
lea eax, [edi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10003b26
movzx ebx, byte [ecx + esi + 0xd]
mov dl, al
mov al, byte [ecx + esi + 0xf]
jmp 0x10003b47
cmp al, 0xc2
jne 0x10003c30
mov dl, al
movzx eax, byte [ecx + esi + 0xd]
shl ax, 8
movzx ebx, ax
movzx eax, byte [ecx + esi + 0xe]
or ebx, eax
mov al, byte [ecx + esi + 0x10]
cmp ebx, 4
jl 0x10003bfd
cmp ebx, 0x80000
jg 0x10003bfd
cmp ebx, dword [esi + 0x8000c]
jg 0x10003bca
lea edi, [ecx + esi]
cmp dl, 0xc1
jne 0x10003b82
movzx eax, byte [ecx + esi + 0xe]
lea edx, [ebx - 3]
push eax
lea ecx, [edi + 0xf]
call fcn.1000fe30
mov al, byte [edi + 0xf]
jmp 0x10003b96
movzx eax, byte [ecx + esi + 0xf]
lea edx, [ebx - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.1000fe30
mov al, byte [edi + 0x10]
add esp, 4
mov byte [ebp - 4], al
mov eax, dword [esi + 0x100014]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
sub dword [esi + 0x8000c], ebx
add ecx, ebx
cmp dword [esi + 0x8000c], 0
mov dword [ebp - 8], ecx
jle 0x10003bf4
jmp 0x10003b0a
test ecx, ecx
jle 0x10003bf4
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x10003bf4
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x10003bf4
push eax
lea eax, [esi + 0xc]
add eax, ecx
push eax
push edi
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, al
mov ecx, 6
push eax
movzx eax, dl
push ebx
push eax
call fcn.10010240
push eax
push 0
push 0x1011c1e0
call fcn.10007790
add esp, 0x18
mov ecx, esi
call fcn.10003a10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ecx + esi + 0xc]
mov ecx, 5
push eax
call fcn.10010240
push eax
push 0
push 0x1011c1e0
call fcn.10007790
add esp, 0x10
mov ecx, esi
call fcn.10003a10
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003c60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8000c
call fcn.100126b0
mov eax, dword [0x1001c00c]
xor eax, esp
mov dword [esp + 0x80008], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1011c044
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x1001c02c]
cmp ebx, 0xffffffff
je 0x10003d33
cmp byte [0x1011c060], 0
je 0x10003d33
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov al, byte [esp + 0x1c]
add esp, 0xc
cmp al, 0xc1
jne 0x10003cd2
push dword [esp + 0x12]
lea edx, [esi - 3]
lea ecx, [esp + 0x17]
jmp 0x10003cee
cmp al, 0xc3
jne 0x10003ce3
push dword [esp + 0x15]
lea edx, [esi - 6]
lea ecx, [esp + 0x1a]
jmp 0x10003cee
push dword [esp + 0x13]
lea edx, [esi - 4]
lea ecx, [esp + 0x18]
call fcn.1000fed0
mov eax, dword [0x1011c038]
add esp, 4
test eax, eax
jle 0x10003d96
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10003d57
push ecx
mov ecx, 7
call fcn.10010240
push eax
push 0
push 0x1011c1e0
call fcn.10007790
add esp, 0x10
mov ecx, 0x1001c028
call fcn.10003a10
push 0x1011c044
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80008]
xor ecx, esp
call fcn.10011584
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [esp + 0x14]
push ecx
lea eax, [eax + 0x1009c038]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [0x1011c038], esi
push 0x1011c044
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80008]
xor ecx, esp
call fcn.10011584
mov esp, ebp
pop ebp
ret 8
xor edi, edi
test esi, esi
jle 0x10003d72
nop dword [eax]
push 0
push esi
lea eax, [esp + 0x18]
add eax, edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10003dc6
sub esi, eax
add edi, eax
test esi, esi
jle 0x10003d72
mov ebx, dword [0x1001c02c]
jmp 0x10003da0
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10003e31
mov ecx, dword [0x1011c038]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10003df0
push eax
mov ecx, 8
jmp 0x10003d14
lea eax, [esp + 0x10]
add eax, edi
push esi
push eax
lea eax, [ecx + 0x1009c038]
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [0x1011c038], esi
add esp, 0xc
push 0x1011c044
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x80014]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10011584
mov esp, ebp
pop ebp
ret 8
call ebx
push eax
mov ecx, 9
jmp 0x10003d14
Function at 0x10003e40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10001c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10003e92
lea eax, [esi + 0x80010]
push 0
push dword [esi + 0x100010]
add eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10003e9f
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
lea eax, [esi + 0x80010]
jg 0x10003e62
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10003ed8
push dword [esi + 0x100010]
lea eax, [esi + 0x80010]
add eax, edi
push eax
lea eax, [esi + 0x80010]
push eax
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, 0xa
call fcn.10010240
push eax
push 0
push 0x1011c1e0
call fcn.10007790
add esp, 0x10
mov ecx, esi
call fcn.10003a10
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x20
push 3
push 0
push 1
push connect
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004302
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x100042e9
push eax
call fcn.100118e6
add esp, 4
mov dword [edi + 4], 0
push dword [edi + 8]
call fcn.100118eb
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x1000430a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
pop ebp
ret 4
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push dword [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x100042fc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x10004340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.100042a0
test al, al
je 0x100043c5
mov ecx, dword [esi + 8]
cmp ecx, 8
jb 0x100043c5
mov edx, dword [esi + 4]
mov eax, dword [edx]
cmp eax, dword [0x100147b8]
jne 0x100043c5
mov eax, dword [edx + 4]
cmp eax, dword [0x100147bc]
jne 0x100043c5
lea eax, [ecx - 8]
xor edx, edx
test eax, eax
jle 0x100043b9
nop dword [eax + eax]
mov ecx, dword [esi + 4]
mov eax, edx
and eax, 0x1f
movsx eax, byte [eax + 0x10121214]
and eax, 0xf
mov al, byte [eax + str._7_]
sub byte [ecx + edx + 8], al
mov eax, edx
mov ecx, dword [esi + 4]
and eax, 0xf
mov al, byte [eax + str._7_]
xor byte [ecx + edx + 8], al
inc edx
mov eax, dword [esi + 8]
sub eax, 8
cmp edx, eax
jl 0x10004380
mov ecx, esi
call fcn.100043d0
pop esi
pop ebp
ret 4
xor al, al
pop esi
pop ebp
ret 4
Function at 0x100043d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xc]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
push str.Data_t_d.bmd
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x102
push 2
push 0
push 7
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004446
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [edi + 8]
sub eax, 8
push eax
mov eax, dword [edi + 4]
add eax, 8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x1000444e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004460
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov edx, 0x1001479d
push edi
push ebx
lea edi, [esi + 0xc]
mov eax, edi
nop
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x10004490
test bl, bl
je 0x1000448c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x10004490
add eax, 2
add edx, 2
test cl, cl
jne 0x10004470
xor eax, eax
jmp 0x10004495
sbb eax, eax
or eax, 1
pop ebx
test eax, eax
je 0x100044cb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x100044cb
push dword [esi + 4]
call fcn.100118e6
push 0x100
push 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
pop edi
pop esi
ret
Function at 0x10005d40
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x10005de0
push ebx
mov bl, byte [0x10126cc2]
mov bh, byte [0x10126cc1]
cmp edx, 0x20
jb 0x10005dcb
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10005d6f
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edi, edx
sub edi, ecx
movsx ecx, bl
movd xmm0, ecx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movsx ecx, bh
pshufd xmm1, xmm0, 0
movd xmm0, ecx
lea ecx, [esi + 0x10]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
pxor xmm0, xmm1
psubb xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10005da0
pop edi
cmp eax, edx
jge 0x10005ddf
nop
mov cl, byte [eax + esi]
xor cl, bl
sub cl, bh
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10005dd0
pop ebx
pop esi
ret

Function at 0x10005df0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x10005e90
push ebx
mov bl, byte [0x10126cc1]
mov bh, byte [0x10126cc2]
cmp edx, 0x20
jb 0x10005e7b
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x10005e1f
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edi, edx
sub edi, ecx
movsx ecx, bl
movd xmm0, ecx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
movsx ecx, bh
pshufd xmm1, xmm0, 0
movd xmm0, ecx
lea ecx, [esi + 0x10]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop
movups xmm0, xmmword [ecx - 0x10]
add eax, 0x20
lea ecx, [ecx + 0x20]
paddb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x20]
paddb xmm0, xmm1
pxor xmm0, xmm2
movups xmmword [ecx - 0x20], xmm0
cmp eax, edi
jl 0x10005e50
pop edi
cmp eax, edx
jge 0x10005e8f
nop
mov cl, byte [eax + esi]
add cl, bl
xor cl, bh
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x10005e80
pop ebx
pop esi
ret
Function at 0x10006cb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
sub dword [ebp + 0xc], 1
jne 0x10006d95
push 0x94
lea eax, [ebp - 0xb0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xac], 6
ja 0x10006d20
cmp dword [ebp - 0xa8], 1
ja 0x10006d20
mov byte [0x10127054], 1
jmp 0x10006d27
mov ecx, edi
call fcn.10010510
push esi
push 0x1f23fd8f
lea ecx, [ebp - 0x10]
call fcn.10006df0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xorps xmm0, xmm0
mov word [ebp - 8], 0
push 0x5cc6ffcf
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x10], xmm0
mov esi, eax
mov byte [ebp - 6], 0
call fcn.10006f80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xorps xmm0, xmm0
mov word [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
call eax
mov dword [0x10126da0], edi
call fcn.1000db60
call fcn.1000dbd0
push 0
push ecx
push 0
push 0x10006700
call fcn.100103f0
pop esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.10011584
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10006db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x7f
xor eax, eax
mov dl, byte [edi + eax + 0x7b9bf7eb]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xb
jb 0x10006dc1
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10006e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xf3
xor eax, eax
mov dl, byte [edi + eax - 0x2b8b1aec]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xc
jb 0x10006e91
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10006ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xae
xor eax, eax
mov dl, byte [edi + eax - 0x37b821da]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xe
jb 0x10006ed1
pop edi
mov byte [esi + 0xe], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x100073d0
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0
push 0
push 3
push 0
push 1
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp + 0x14]
push connect
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000742d
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10007441
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011584
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x10007477
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011584
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp - 0x14]
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x100074b4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100074ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100074ad
mov edx, 0x14c
cmp word [ecx + 4], dx
je 0x100074d5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011584
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp - 0x3c]
mov dword [ebx], edi
mov dword [edx], esi
mov edx, dword [ebp - 0x40]
pop esi
pop edi
pop ebx
mov dword [edx], eax
mov eax, dword [ebp - 0x44]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011584
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10007670
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1001c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1011c3f8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x1000777b
cmp eax, 1
jge 0x1000777b
imul edi, eax, 0x214
inc eax
push ecx
push 0x100
mov dword [0x1011c3f8], eax
add edi, 0x1011c1e4
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
cmp dword [edi], 0
je 0x1000777b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.log
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x10007757
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011584
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1000777b
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011584
mov esp, ebp
pop ebp
ret 8