joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1046b20
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
test edi, edi
je 0x1046c55
mov eax, dword [ebp + 0x14]
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2dbc], 0
movzx ebx, ax
je 0x1046b88
mov ecx, dword [esi + 0x2dc0]
mov edx, dword [esi + 0x2dc4]
mov eax, dword [esi + 0x2dc8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x2dcc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
jmp 0x1046be7
movzx edx, byte [edi]
push edx
call dword [sym.imp.msvcrt.dll_isalpha]
add esp, 4
push edi
test eax, eax
je 0x1046bde
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x1046bd2
movsx eax, word [edi + 0xa]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx]
push eax
push edx
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll_memcpy
movsx ecx, word [edi + 0xa]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [esi + 0x2dc4]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
mov dword [esi + 0x2dbc], 1
jmp 0x1046be7
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1046c50
mov ecx, 2
push 0
push ecx
push ecx
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], bx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1046c50
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1046c3b
mov edi, dword [ebp + 0xc]
push 0
push edi
call fcn.0102c240
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, 1
cmp eax, 0xffffffff
jne 0x1046c3e
mov edi, dword [ebp - 4]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10485d0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 9
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1048629
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0
push esi
push fcn.01048560
push 0
push 0
mov dword [esi], edi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
jne 0x104861f
push esi
call fcn.01048560
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [edi + 0x1c8]
push eax
call edx
pop edi
pop esi
pop ebp
ret 8
Function at 0x104b8b0
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x104b8c0
xor eax, eax
jmp 0x104b8dd
cmp word [ecx], 0
mov eax, ecx
je 0x104b8d9
jmp 0x104b8d0
add eax, 2
cmp word [eax], 0
jne 0x104b8d0
sub eax, ecx
sar eax, 1
push esi
push eax
push ecx
call fcn.0102da20
mov esi, eax
test esi, esi
je 0x104b913
push 0x5c
push esi
call fcn.0102d8b0
test eax, eax
je 0x104b903
xor ecx, ecx
push esi
mov word [eax], cx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop esi
pop ebp
ret 8
Function at 0x1050f00
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x498]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 4
push 0x1000
add eax, 0x1b8
push eax
push 0
push edi
mov dword [ebp - 4], 0
call ecx
mov esi, eax
test esi, esi
je 0x1051021
push 0x40
lea edx, [ebp - 0x44]
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x40
lea edx, [ebp - 0x44]
push edx
mov eax, 0x5a4d
push esi
mov word [ebp - 0x44], ax
mov eax, dword [ebx + 0x430]
push edi
mov dword [ebp - 8], 0x40
call eax
test eax, eax
je 0x1051021
cmp dword [ebp - 4], 0x40
jne 0x1051021
push 0xf8
lea edx, [ebp - 0x13c]
lea ecx, [esi + 0x40]
push 0
push edx
mov dword [ebp + 0xc], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, 0xe0
mov word [ebp - 0x128], ax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x430]
mov ecx, 0x2000
push 0xf8
mov word [ebp - 0x126], cx
mov edx, 1
lea ecx, [ebp - 0x13c]
mov word [ebp - 0x136], dx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
mov dword [ebp - 0x13c], 0x4550
call eax
test eax, eax
je 0x1051021
cmp dword [ebp - 4], 0xf8
jne 0x1051021
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push esi
add ecx, 0xf8
push ecx
push edi
push ebx
call fcn.01050e10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1051110
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 0x484]
add esp, 0xc
push 0
push 0x40
lea ecx, [ebp - 0x40]
push ecx
push edi
push ebx
call edx
test eax, eax
je 0x10511b5
mov eax, 0x5a4d
cmp word [ebp - 0x40], ax
jne 0x10511b5
push 0xf8
lea ecx, [ebp - 0x138]
push 0
push ecx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x484]
add esp, 0xc
push 0
push 0xf8
lea edx, [ebp - 0x138]
push edx
add eax, edi
push eax
push ebx
call ecx
test eax, eax
je 0x10511b5
cmp dword [ebp - 0x138], 0x4550
jne 0x10511b5
test dword [ebp - 0x122], 0x2000
jne 0x10511b5
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1052860
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push 0x105
lea eax, [ebp - 0x108]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x103
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.01051fb0
push 0x11
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x105293b
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push edi
mov dword [esi], eax
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push 0x1052750
push 0
lea ecx, [ebp - 0x108]
lea ebx, [esi + 0xc]
push 0
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
je 0x1052929
cmp edi, 0xffffffff
je 0x1052929
mov esi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xc8
push edi
call esi
cmp eax, 0x102
jne 0x1052919
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
je 0x1052919
push 0xffffffffffffffff
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1059740
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
test eax, eax
je 0x10598e7
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push ebx
push esi
push edi
push 0
push 0x989680
push ecx
push eax
call fcn.01197210
mov ecx, dword [ebp - 0xc]
push 0
push 0x989680
mov edi, eax
mov eax, dword [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x2c], edx
call fcn.01197210
mov ebx, dword [ebp + 8]
lea esi, [eax + edi]
mov eax, dword [ebx]
cmp dword [eax + 0x8bc0], 0
mov dword [ebp - 0x2c], edx
jne 0x10597c9
push eax
call fcn.0102b800
mov edx, dword [ebx]
mov dword [edx + 0x8bc0], eax
mov edi, dword [ebx]
xor edx, edx
mov eax, esi
div dword [edi + 0x8bc0]
mov ecx, dword [ebp - 0x14]
push 0
push 0x989680
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
add eax, 0x2ac18000
adc ecx, 0xfe624e21
push ecx
push eax
call fcn.01197210
mov ecx, dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [ebp - 0x20]
push 0
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [ebp - 0x2c], edx
call fcn.01197210
sub esi, eax
mov eax, dword [edi + 0x1f648]
mov dword [ebp - 0x2c], edx
xor edx, edx
mov ecx, esi
mov esi, dword [ebp + 8]
cmp eax, edx
je 0x1059837
cmp esi, eax
jb 0x1059837
sub esi, eax
add dword [edi + 0x1f648], esi
mov eax, dword [ebx]
mov edi, dword [eax + 0x1f64c]
cmp edi, edx
je 0x105984f
cmp ecx, edi
jb 0x105984f
sub ecx, edi
add dword [eax + 0x1f64c], ecx
mov eax, dword [ebx]
cmp dword [eax + 0x1f644], edx
je 0x10598e4
mov eax, dword [eax + 0x1f644]
add dword [eax + 8], ecx
adc dword [eax + 0xc], edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x1f644]
add dword [eax + 0x10], esi
adc dword [eax + 0x14], edx
mov eax, 0x88888889
mul ecx
shr edx, 5
cmp esi, edx
jbe 0x10598e4
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x1f644]
cmp dword [eax + 0xc], 0
ja 0x10598e4
jb 0x10598a4
cmp dword [eax + 8], 0x7080
jae 0x10598e4
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp edx, 0xe10
jbe 0x10598c7
mov edx, 0xe10
jmp 0x10598d5
call esi
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, dword [ebx]
mov eax, dword [eax + 0x1f644]
add dword [eax + 8], edx
adc dword [eax + 0xc], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1059ee0
Capabilities:
Find taskbar

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x24
push ebx
push esi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x1059ff2
push edi
push 8
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xa
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x14]
push ecx
push esi
call ebx
push 0
push 0x100fb04
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1059fe8
lea edx, [ebp - 0x24]
push edx
push eax
call ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, edi
cdq
sub eax, edx
sub ebx, ecx
sar eax, 1
cmp ebx, eax
jg 0x1059f7c
test ecx, ecx
je 0x1059f7c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub ecx, eax
sub eax, dword [ebp - 8]
push 1
push ecx
mov ecx, dword [ebp - 0x14]
sub edx, ecx
push edx
sub eax, ebx
jmp 0x1059fa0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
sub edx, ecx
cmp ecx, eax
push 1
jge 0x1059fba
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, edx
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x14]
sub ebx, ecx
push ebx
sub eax, edx
add eax, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
push eax
add ecx, edi
push ecx
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub eax, ecx
sub ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
add ecx, dword [ebp - 4]
sub ebx, eax
sub eax, dword [ebp - 0xc]
push ebx
sub eax, edx
push ecx
add eax, edi
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.01059e50
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x105a600
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x105a675
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push esi
push 0x403
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov esi, eax
test esi, esi
je 0x105a673
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x105a653
mov ecx, dword [eax + 0x1c]
push 0x1ff
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test edi, edi
je 0x105a667
mov edx, dword [ebp + 0x14]
dec edx
push edx
push esi
push edi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop esi
pop ebx
pop edi
pop ebp
ret 0x10
Function at 0x105bb20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea ecx, [eax + ecx*2 - 2]
cmp eax, ecx
jae 0x105bb4f
mov dx, word [ecx]
xor word [eax], dx
movzx edx, word [eax]
xor word [ecx], dx
movzx edx, word [ecx]
xor word [eax], dx
add eax, 2
sub ecx, 2
cmp eax, ecx
jb 0x105bb33
pop ebp
ret 8
Function at 0x1062370
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.msvcrt.dll_time]
push eax
call dword [sym.imp.msvcrt.dll_srand]
xor esi, esi
add esp, 8
cmp dword [ebp + 0x10], esi
mov dword [ebp - 4], esi
jle 0x1062490
push ebx
mov ebx, dword [ebp + 0xc]
push 0x40001
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1062477
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x10623cb
lea ecx, [esi - 1]
jmp dword [ecx*4 + 0x106249c]
push 0x40000
push 0xff
jmp 0x106240a
xor esi, esi
call dword [sym.imp.msvcrt.dll_rand]
mov byte [esi + edi], al
inc esi
cmp esi, 0x40000
jb 0x10623e0
mov esi, dword [ebp - 4]
jmp case.default.0x10623cb
push 0x40000
push 0x52
jmp 0x106240a
push 0x40000
push 0xad
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
test esi, esi
je 0x106242a
mov eax, dword [ebp + 8]
push 1
push 0
mov edx, ebx
neg edx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor esi, esi
test ebx, ebx
jbe 0x1062464
mov eax, ebx
sub eax, esi
cmp eax, 0x40000
jbe 0x1062440
mov eax, 0x40000
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x1062464
add esi, dword [ebp - 0xc]
mov dword [ebp - 8], 1
cmp esi, ebx
jb 0x1062430
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov esi, dword [ebp - 4]
inc esi
cmp esi, dword [ebp + 0x10]
mov dword [ebp - 4], esi
jl 0x10623a2
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1062fd0
Capabilities:
Set http header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push 0x100cb74
push ecx
call fcn.01062980
test eax, eax
je 0x1063042
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1063000
sub ecx, esi
push ecx
push eax
call fcn.010628f0
mov esi, eax
test esi, esi
je 0x106302b
push 0xa0000000
push 0xffffffffffffffff
push esi
push edi
call ebx
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
lea edx, [ebp + 0xc]
push edx
push 0x100cb74
push 0
call fcn.01062980
test eax, eax
jne 0x1062ff7
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10666c0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x11
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x106671a
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 8], edx
lea edx, [ebp + 0xc]
push edx
push 0
push eax
push 0x1066670
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
push 0
push 0
mov dword [eax], esi
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x1066715
push eax
mov eax, dword [esi + 0x1c8]
call eax
pop esi
pop ebp
ret 0x10
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.010665e0
test eax, eax
je 0x1066716
mov eax, dword [ebp + 0x14]
push eax
call dword [ebp + 0x10]
pop ebp
ret 0x10

Function at 0x1066740
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
xor dl, dl
xor eax, eax
push esi
mov byte [ebp - 4], dl
test ecx, ecx
jbe 0x1066763
mov esi, dword [ebp + 8]
xor dl, byte [eax + esi]
inc eax
cmp eax, ecx
jb 0x1066758
mov byte [ebp - 4], dl
cmp dword [ebp + 0x18], 0
je 0x1066781
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
push ecx
push edx
call fcn.010303b0
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x10667c0
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10667c0
xor byte [esi], 0xac
add ecx, 0xffffffff
je 0x10667c0
movzx eax, dl
push edi
cdq
mov edi, 0xff
idiv edi
pop edi
lea eax, [ecx + esi]
or esi, 0xffffffff
push ebx
jmp 0x10667b0
mov bl, dl
add bl, cl
xor bl, byte [esi + eax]
dec ecx
xor byte [eax], bl
dec eax
test ecx, ecx
ja 0x10667b0
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1067310
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea edi, [ebx + 0x323]
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x1067381
cmp esi, 0xffffffff
je 0x1067381
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
lea eax, [ebp + 8]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push ebx
call fcn.01067270
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret 0x14
Function at 0x10673a0
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea edi, [ebx + 0x323]
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x1067418
cmp esi, 0xffffffff
je 0x1067418
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
lea eax, [ebp + 8]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebx + 0x428]
push edx
push ebx
call fcn.01067210
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret 0x14

Function at 0x1067520
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
push 0x9c
lea eax, [ebp - 0xa0]
push 0
mov esi, 2
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
push 0x23c
lea ecx, [ebp - 0x2dc]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 0xc]
add esp, 0x18
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], 1
call fcn.01196490
mov ebx, eax
test ebx, ebx
je 0x10675fd
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 0xc], 0
mov edi, edi
lea ecx, [ebp - 0x2dc]
push ecx
push ebx
call fcn.01196c00
test eax, eax
jne 0x10675eb
cmp dword [ebp - 0xcc], 0x1400000
jae 0x10675e5
lea esi, [edi + 0x323]
push esi
push eax
push 2
push ebx
call fcn.01195ff0
test eax, eax
jne 0x10675de
push 3
lea edx, [ebp - 0x1d8]
push edx
push edi
call fcn.01067270
mov dword [ebp - 4], eax
test eax, eax
je 0x10675de
mov dword [ebp + 0xc], 1
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [ebp + 0xc], 0
je 0x1067590
push ebx
call fcn.0118df00
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x106a7b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x106a7c8
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x106a7e1
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x106a81a
test ecx, ecx
je 0x106a811
test esi, esi
ja 0x106a7d2
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop ebx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x106ae10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
and esi, 7
cmp eax, 5
jae 0x106ae34
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 8]
sub eax, 4
add dword [ebp + 0x10], 5
push ebx
lea ebx, [ecx + eax]
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
add edx, edi
cmp edx, ebx
jae 0x106ae5d
mov edi, edi
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x106ae5d
inc edx
cmp edx, ebx
jb 0x106ae50
mov eax, dword [ebp + 8]
mov ecx, edx
sub ecx, edi
mov edi, edx
sub ecx, eax
sub edi, eax
cmp edx, ebx
jae 0x106af37
cmp ecx, 2
jbe 0x106aeb6
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x106aed4
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, edi
add edi, 5
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0xc], ecx
je 0x106aedf
add eax, ecx
jmp 0x106aee1
shr esi, cl
test esi, esi
je 0x106ae79
cmp esi, 4
ja 0x106aed4
cmp esi, 3
je 0x106aed4
mov ecx, esi
shr ecx, 1
movzx eax, byte [ecx + edx + 1]
inc eax
test al, 0xfe
jne 0x106ae79
or esi, 8
shr esi, 1
inc edi
jmp 0x106ae45
sub eax, ecx
test esi, esi
je 0x106af15
and esi, 6
add esi, esi
add esi, esi
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x106af10
mov ebx, pe_nt_image_headers32
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x106af0d
add eax, dword [ebp + 0xc]
jmp 0x106af10
sub eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x106ae45
pop ebx
cmp ecx, 2
jbe 0x106af4e
mov edx, dword [ebp + 0x14]
xor esi, esi
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov edx, dword [ebp + 0x14]
shr esi, cl
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret 0x14