joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe219f0
Capabilities:
Clear file content
Delete file
Print debug messages
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x58], 0
push 0x30
push 0
lea eax, [ebp - 0x54]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0x80
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x60], 0
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0xe21a60
mov edx, dword [ebp - 0x58]
mov dword [ebp - 4], edx
push 0
push 0x80
push 2
push 0
push 0
push 0x120116
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0xe21aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.__CopyFileW___luCreateFileW__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
mov eax, dword [ebp - 0x20]
jmp 0xe21b89
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ecx, 1
test ecx, ecx
je 0xe21b4c
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
jne 0xe21b06
jmp 0xe21b4c
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xe21b43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.__CopyFileByHandleW___luWriteFile__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
jmp 0xe21b4c
mov dword [ebp - 0x10], 0
jmp 0xe21ada
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0xe21b86
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0xe21b90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0x2000080
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp - 4]
push eax
push 3
push 0
push 7
push 0x120089
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0xe21c1c
mov edx, dword [ebp - 4]
and edx, 0xfdffffff
mov dword [ebp - 4], edx
push 0
mov eax, dword [ebp - 4]
push eax
push 3
push 0
push 7
push 0x120089
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0xe21c1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
push str.__CopyFileW___luCreateFileW__ws__n
call dword [sym.imp.ntdll.dll_DbgPrint]
add esp, 0xc
mov eax, dword [ebp - 0xc]
jmp 0xe21c44
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00e219f0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0xe21f70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov dword [ebp - 0x244], 0xffffffff
mov dword [ebp - 0x23c], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0xe21fad
xor eax, eax
jmp 0xe22084
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0xe21fe3
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0xe22084
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0xe22055
mov edx, dword [ebp - 0x230]
push edx
push 0
push 0xc50
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0xe22035
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x450
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0xe22055
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x23c], 0
lea edx, [ebp - 0x238]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0xe21fe3
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov esp, ebp
pop ebp
ret
Function at 0xe22850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x60], 0
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 4]
mov dword [ebp - 0x68], eax
cmp dword [ebp + 0xc], 0
je 0xe228c5
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x68]
lea eax, [edx + eax*2]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00e23770
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0xe2295f
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0xc], 0
je 0xe2290f
push 0xe2507c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0xe22938
jmp 0xe22953
mov dword [ebp - 0x64], 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call fcn.00e23970
add esp, 4
mov eax, dword [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0xe22d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x10
call fcn.00e23570
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0xe22d43
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0xe22c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0xe232d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00e151d0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0xe232ed
jmp 0xe23344
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
lea edx, [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.00e231c0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc], 0
je 0xe2333a
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00e23970
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esp, ebp
pop ebp
ret

Function at 0xe23350
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x420], 0
cmp dword [ebp + 8], 0
je 0xe233f7
push 0x104
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x104
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0xe233d1
push 0xafa95768
push 4
push 0xe250f0
call fcn.00e117f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0xfffffffffffffff0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x41c], eax
push 0xffffffffffffffec
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [ebp - 0x420], eax
jmp 0xe2343b
push 0xafa95768
push 4
push 0xe250f0
call fcn.00e117f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0xafa95768
push 4
push 0xe250f0
call fcn.00e117f0
add esp, 0xc
push eax
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
lea eax, [ebp - 0x208]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x1e4d4e17
push 0x11
push 0xe250f8
call fcn.00e117f0
add esp, 0xc
push eax
call fcn.00e232d0
add esp, 0x18
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esp, ebp
pop ebp
ret
Function at 0xe23490
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.00e151d0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0xe234b5
xor eax, eax
jmp 0xe23566
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0xe234d5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0xe234e0
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0x5c
je 0xe23500
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x2f
je 0xe23500
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
test ecx, ecx
jne 0xe2355e
mov edx, dword [ebp - 4]
mov ax, word [edx]
mov word [ebp - 0xc], ax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0xe23539
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0xe23537
jmp 0xe23563
jmp 0xe23543
mov edx, dword [ebp - 0x10]
and edx, 0x10
jne 0xe23543
jmp 0xe23563
movzx eax, word [ebp - 0xc]
test eax, eax
jne 0xe23554
mov dword [ebp - 8], 1
jmp 0xe23563
mov ecx, dword [ebp - 4]
mov dx, word [ebp - 0xc]
mov word [ecx], dx
jmp 0xe234d7
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0xe23c15
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0xe23c46
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0xe23c4d
cmp ebx, dword [ebp + 8]
jae 0xe23c4d
xor eax, eax
jmp 0xe23e33
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0xe23c5e
xor eax, eax
inc eax
jmp 0xe23e32
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0xe23c70
cmp ecx, edx
jae 0xe23cd4
cmp dword [eax + 4], 0
je 0xe23c79
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0xe23c65
cmp dword [ebp + 8], 0
je 0xe23c93
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0xe23cd4
cmp eax, esi
jae 0xe23cd4
mov ecx, dword [0xe27790]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0xe23cb5
cmp dword [eax*4 + 0xe27798], esi
je 0xe23cdb
inc eax
cmp eax, ecx
jl 0xe23ca7
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0xe23d4b
mov eax, dword [ebp + 8]
jmp 0xe23d4d
xor eax, eax
jmp 0xe23e32
test eax, eax
jle 0xe23c56
xor edx, edx
mov ebx, 0xe277d8
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0xe23c56
cmp dword [eax*4 + 0xe27798], esi
je 0xe23d2a
lea eax, [ecx - 1]
test eax, eax
jl 0xe23d17
cmp dword [eax*4 + 0xe27798], esi
je 0xe23d13
dec eax
jns 0xe23d07
test eax, eax
jge 0xe23d28
cmp ecx, 0x10
jge 0xe23d23
inc ecx
mov dword [0xe27790], ecx
lea eax, [ecx - 1]
jmp 0xe23d2a
je 0xe23d42
xor edx, edx
test eax, eax
jl 0xe23d42
lea ecx, [edx*4 + 0xe27798]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0xe23d30
xor eax, eax
xchg dword [ebx], eax
jmp 0xe23c56
xor eax, eax
test eax, eax
je 0xe23e30
cmp dword [ebp - 8], 0x1000000
jne 0xe23e30
test byte [ebp - 0xc], 0xcc
je 0xe23dc2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0xe23e30
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0xe23e30
cmp word [eax + 0x18], 0x10b
jne 0xe23e30
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0xe23e30
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0xe23dc2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0xe23dc2
test byte [ecx + 0x27], 0x80
jne 0xe23cd4
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0xe277d8
xchg dword [edx], ecx
test ecx, ecx
jne 0xe23e32
mov ecx, dword [0xe27790]
test ecx, ecx
mov edx, ecx
jle 0xe23df1
lea eax, [ecx*4 + 0xe27794]
cmp dword [eax], esi
je 0xe23df1
dec edx
sub eax, 4
test edx, edx
jg 0xe23de5
test edx, edx
jne 0xe23e22
push 0xf
pop ebx
cmp ecx, ebx
jg 0xe23dfe
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0xe23e16
lea eax, [edx*4 + 0xe27798]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0xe23e04
cmp ecx, 0x10
jge 0xe23e22
inc ecx
mov dword [0xe27790], ecx
xor eax, eax
mov ecx, 0xe277d8
xchg dword [ecx], eax
jmp 0xe23c56
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x691440
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
mov dword [ebp + eax*4 - 0x400], eax
inc eax
cmp eax, 0x100
jb 0x691450
mov ebx, 2
lea ecx, [ebp - 0x3fc]
lea ebx, [ebx]
xor edx, edx
lea eax, [ebx - 2]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, 0x10
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0x14]
mov al, byte [ecx - 0x14]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0x14], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx - 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx edi, byte [edx + eax]
add edi, dword [ecx - 0x10]
mov al, byte [ecx - 0x10]
add edi, esi
movzx eax, al
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 0x10], edx
mov dword [ebp + edi*4 - 0x400], eax
xor edx, edx
mov eax, ebx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0xc]
mov al, byte [ecx - 0xc]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0xc], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx + 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ebx, 4
movzx edi, byte [edx + eax]
add edi, dword [ecx - 8]
mov al, byte [ecx - 8]
add edi, esi
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 8], edx
movzx eax, al
lea edx, [ebx - 2]
mov dword [ebp + edi*4 - 0x400], eax
cmp edx, 0x100
jb 0x691470
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0x10], ecx
jbe 0x6915b7
jmp 0x691560
inc edx
and edx, 0xff
mov edi, dword [ebp + edx*4 - 0x400]
mov bl, byte [ebp + edx*4 - 0x400]
add edi, esi
and edi, 0xff
mov esi, edi
mov edi, dword [ebp + esi*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], edi
movzx edi, bl
mov dword [ebp + esi*4 - 0x400], edi
mov ebx, dword [ebp + edx*4 - 0x400]
add ebx, edi
and ebx, 0xff
movzx ebx, byte [ebp + ebx*4 - 0x400]
xor byte [ecx + eax], bl
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x691560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x691c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6a70d8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x691c7e
push 0x6a1410
push 0x6a13f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00693750
cmp eax, ebx
je 0x691cd0
mov cl, byte [ebp + 0x14]
xor edx, edx
test cl, cl
setne dl
push ebx
movzx ecx, cl
push 0x80
add edx, 2
push edx
mov edx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
push 0
and ecx, 0xc0000004
push 2
add ecx, 0x40000000
push ecx
push edx
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x691cdf
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, al
jmp 0x691cd3
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
je 0x691cdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x691cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x691e60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x691e91
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + section..data]
inc ecx
cmp ecx, edx
jb 0x691e74
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x692220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a8
push esi
xor esi, esi
push 0x3ff
lea eax, [ebp - 0x417]
push esi
push eax
mov dword [ebp - 4], esi
mov byte [ebp - 0x418], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x5a8]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x692391
push str.i.root_servers.org
call fcn.00699300
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x692391
push edi
mov edx, 2
push 0x50
mov word [ebp - 0x14], dx
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x692398
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x692398
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push eax
call main
add esp, 4
mov edi, edi
call fcn.00693870
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
cmp esi, 0x400
mov byte [ebp + esi - 0x419], dl
jl 0x6922d0
mov byte [ebp - 0x18], 0
call ebx
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov esi, edx
shr esi, 6
add esi, 0xa
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jae 0x692362
lea esp, [esp]
mov eax, dword [0x6da3dc]
push 0
push 0x400
test eax, eax
je 0x69233c
lea edx, [ebp - 0x418]
push edx
push edi
call eax
jmp 0x692349
lea eax, [ebp - 0x418]
push eax
push edi
call sub.WS2_32.dll_send
test eax, eax
jle 0x692350
add dword [ebp - 4], eax
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jb 0x692320
push edi
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 2
pop ebx
mov eax, edx
shr eax, 0x1f
pop edi
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x692810
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x18e]
push ecx
mov word [ebp - 0x190], ax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x69286b
cmp byte [ebp - 0x190], 2
jne 0x69286b
mov eax, dword [ebp - 0x190]
shr eax, 8
cmp al, 2
jne 0x69286b
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x692880
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push 8
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.00692460
mov esi, eax
add esp, 4
cmp esi, edi
je 0x6929cf
push 4
call fcn.00692460
add esp, 4
mov dword [esi + 4], eax
cmp eax, edi
je 0x6929cf
mov edi, dword [ebp + 8]
push edi
call sub.WS2_32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
je 0x692914
test ebx, ebx
je 0x692914
push 4
call fcn.00692460
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x6929cf
push 4
call fcn.00692460
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add esp, 4
cmp dword [eax], 0
je 0x6929cf
mov edx, dword [eax]
mov dword [edx], ebx
mov eax, dword [esi + 4]
mov dword [eax], 1
mov dword [ebp - 4], 1
jmp 0x6929cf
mov eax, dword [0x6a70e4]
push 0
test eax, eax
je 0x69292e
lea ecx, [ebp - 8]
push ecx
push 0
push 8
push 1
push edi
call eax
jmp 0x69293e
lea edx, [ebp - 8]
push edx
push 0
push 8
push 1
push edi
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x6929cf
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push edi
push ecx
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
jne 0x6929cf
mov edi, dword [ebp - 8]
test edi, edi
je 0x6929e6
mov ebx, 1
cmp word [edi + 8], bx
jne 0x6929c0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov edx, dword [esi]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.00692490
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x6929c8
push 4
call fcn.00692460
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [esi]
lea eax, [ecx + eax*4]
add esp, 4
cmp dword [eax], 0
je 0x6929c8
mov edx, dword [eax]
mov eax, dword [edi + 0x18]
mov dword [edx], eax
mov eax, dword [esi + 4]
add dword [eax], ebx
mov dword [ebp - 4], ebx
mov edi, dword [edi]
test edi, edi
jne 0x692965
jmp 0x6929cf
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x6929de
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x692a24
test esi, esi
je 0x692a1a
mov ecx, dword [esi + 4]
xor edi, edi
cmp dword [ecx], edi
jbe 0x692a09
mov edx, dword [esi]
mov eax, dword [edx + edi*4]
push eax
call fcn.006924a0
mov ecx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [ecx]
jb 0x6929f3
mov edx, dword [esi]
push edx
call fcn.006924a0
push esi
call fcn.006924a0
add esp, 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret