joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401320
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 1
push edi
jl 0x401330
cmp esi, 9
jle 0x40133d
push str.bad_pack_level
call fcn.0040c060
add esp, 4
mov ecx, 0x4000
xor eax, eax
mov edi, 0x453020
xor edx, edx
mov dx, word [esi*8 + 0x41001c]
mov dword [0x413388], esi
rep stosd dword es:[edi], eax
mov ax, word [esi*8 + 0x41001a]
xor ecx, ecx
mov cx, word [esi*8 + 0x410018]
mov dword [0x41337c], eax
xor eax, eax
cmp esi, 1
mov ax, word [esi*8 + 0x41001e]
mov dword [0x4831d0], ecx
mov dword [0x4831c8], edx
mov dword [0x4831cc], eax
jne 0x40139b
mov eax, dword [esp + 0x10]
or byte [eax], 4
jmp 0x4013a7
cmp esi, 9
jne 0x4013a7
mov eax, dword [esp + 0x10]
or byte [eax], 2
xor esi, esi
push 0x10000
push 0x463040
mov dword [0x4831c4], esi
mov dword [0x4831d8], esi
call dword [0x4831dc]
add esp, 8
cmp eax, esi
mov dword [0x41338c], eax
je 0x401426
cmp eax, 0xffffffff
je 0x401426
mov edi, 0x106
mov dword [0x413384], esi
cmp eax, edi
jae 0x4013fa
cmp dword [0x413384], esi
jne 0x4013fa
call fcn.00401590
cmp dword [0x41338c], edi
jb 0x4013e5
xor ecx, ecx
xor eax, eax
xor edx, edx
and ecx, 0x3ff
mov dl, byte [eax + 0x463040]
and edx, 0x7fff
shl ecx, 5
xor ecx, edx
inc eax
cmp eax, 2
jb 0x4013fe
pop edi
mov dword [0x413380], ecx
pop esi
ret
mov dword [0x41338c], esi
pop edi
mov dword [0x413384], 1
pop esi
ret
Function at 0x4019a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x41338c]
push esi
xor esi, esi
mov dword [0x4831c0], 2
test eax, eax
je 0x401ba4
mov edx, dword [0x413380]
mov ecx, dword [0x4831c4]
push ebx
push edi
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x463042]
mov edi, ecx
and eax, 0x7fff
and edi, 0x7fff
shl edx, 5
xor eax, edx
xor edx, edx
mov dword [0x413380], eax
mov dx, word [eax*2 + 0x453020]
mov word [edi*2 + 0x443020], dx
mov word [eax*2 + 0x453020], cx
test edx, edx
je 0x401a32
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x401a32
push edx
call fcn.00401440
mov esi, eax
mov eax, dword [0x41338c]
add esp, 4
cmp esi, eax
jbe 0x401a2c
mov esi, eax
mov ecx, dword [0x4831c4]
cmp esi, 3
jb 0x401af8
mov ebx, dword [0x4831d4]
lea edx, [esi - 3]
sub ecx, ebx
push edx
push ecx
call fcn.0040a140
mov ecx, dword [0x41338c]
mov edi, eax
mov eax, dword [0x41337c]
add esp, 8
sub ecx, esi
cmp esi, eax
mov dword [0x41338c], ecx
ja 0x401ac0
mov edx, dword [0x413380]
mov ecx, dword [0x4831c4]
dec esi
inc ecx
xor eax, eax
and edx, 0x3ff
mov al, byte [ecx + 0x463042]
and eax, 0x7fff
shl edx, 5
xor edx, eax
mov eax, ecx
and eax, 0x7fff
dec esi
mov bx, word [edx*2 + 0x453020]
mov word [eax*2 + 0x443020], bx
mov word [edx*2 + 0x453020], cx
jne 0x401a76
inc ecx
mov dword [0x413380], edx
mov dword [0x4831c4], ecx
jmp 0x401b2d
mov ecx, dword [0x4831c4]
xor edx, edx
add ecx, esi
xor eax, eax
xor esi, esi
mov dword [0x4831c4], ecx
mov dl, byte [ecx + 0x463040]
mov al, byte [ecx + 0x463041]
and edx, 0x3ff
and eax, 0x7fff
shl edx, 5
xor edx, eax
mov dword [0x413380], edx
jmp 0x401b2d
xor edx, edx
mov dl, byte [ecx + 0x463040]
push edx
push 0
call fcn.0040a140
mov ecx, dword [0x41338c]
add esp, 8
mov edx, dword [0x413380]
dec ecx
mov dword [0x41338c], ecx
mov ecx, dword [0x4831c4]
inc ecx
mov edi, eax
mov dword [0x4831c4], ecx
test edi, edi
je 0x401b65
mov edx, dword [0x4831d8]
test edx, edx
jl 0x401b43
lea eax, [edx + 0x463040]
jmp 0x401b45
xor eax, eax
sub ecx, edx
push 0
push ecx
push eax
call fcn.00409830
mov ecx, dword [0x4831c4]
mov edx, dword [0x413380]
add esp, 0xc
mov dword [0x4831d8], ecx
mov eax, dword [0x41338c]
cmp eax, 0x106
jae 0x401b98
mov edi, dword [0x413384]
test edi, edi
jne 0x401b98
call fcn.00401590
mov eax, dword [0x41338c]
mov edx, dword [0x413380]
mov ecx, dword [0x4831c4]
cmp eax, 0x106
jb 0x401b71
test eax, eax
jne 0x4019c8
pop edi
pop ebx
jmp 0x401baa
mov ecx, dword [0x4831c4]
mov edx, dword [0x4831d8]
pop esi
test edx, edx
jl 0x401bca
sub ecx, edx
lea eax, [edx + 0x463040]
push 1
push ecx
push eax
call fcn.00409830
add esp, 0xc
ret
sub ecx, edx
xor eax, eax
push 1
push ecx
push eax
call fcn.00409830
add esp, 0xc
ret
Function at 0x402130
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 8
push ebx
xor eax, eax
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 8], eax
xor edx, edx
mov dword [esp + 0xc], eax
mov al, byte [esi]
test al, al
je 0x402174
cmp edx, 0x28
jge 0x402174
mov ecx, edx
and ecx, 0x80000007
jns 0x40215f
dec ecx
or ecx, 0xfffffff8
inc ecx
mov bl, byte [esp + ecx + 8]
lea ecx, [esp + ecx + 8]
xor bl, al
mov al, byte [esi + 1]
inc esi
inc edx
test al, al
mov byte [ecx], bl
jne 0x40214b
push 0x410078
push 0x418400
call fcn.00402390
push 0x4100b8
push 0x418c60
call fcn.00402390
lea edx, [esp + 0x18]
push edx
call fcn.00402240
add esp, 0x14
call fcn.004021b0
call fcn.00402310
pop esi
pop ebx
add esp, 8
ret

Function at 0x402240
Capabilities:
Encrypt data using des

Disassembly:
mov edx, dword [esp + 4]
push ebx
push ebp
push esi
push edi
xor ecx, ecx
movsx eax, byte [ecx + str.91__]
dec eax
mov esi, eax
sar eax, 3
and esi, 7
movsx eax, byte [eax + edx]
test dword [esi*4 + 0x410390], eax
setne al
mov byte [ecx + 0x418390], al
inc ecx
cmp ecx, 0x38
jl 0x40224a
mov ecx, 0x18
xor eax, eax
mov edi, 0x418c00
xor ebp, ebp
rep stosd dword es:[edi], eax
xor edi, edi
movsx ecx, byte [ebp + 0x410130]
xor eax, eax
xor edx, edx
cmp eax, 0x1c
setge dl
dec edx
mov esi, ecx
and edx, 0xffffffe4
add edx, 0x38
cmp ecx, edx
jl 0x4022a7
lea esi, [ecx - 0x1c]
mov dl, byte [esi + 0x418390]
mov byte [eax + 0x4183c8], dl
inc eax
inc ecx
cmp eax, 0x38
jl 0x40228f
xor eax, eax
movsx ecx, byte [eax + 0x410140]
mov dl, byte [ecx + 0x4183c7]
test dl, dl
je 0x4022f0
mov edx, eax
sar edx, 3
mov bl, byte [edx + edi + 0x418c00]
lea ecx, [edx + edi + 0x418c00]
mov edx, eax
and edx, 7
mov dl, byte [edx*4 + 0x410390]
or bl, dl
mov byte [ecx], bl
inc eax
cmp eax, 0x30
jl 0x4022bc
add edi, 6
inc ebp
cmp edi, 0x60
jl 0x402286
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402310
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push ebp
push esi
push edi
mov ecx, 0x400
xor eax, eax
mov edi, 0x413390
xor ebp, ebp
rep stosd dword es:[edi], eax
xor edi, edi
xor esi, esi
xor ecx, ecx
movsx eax, byte [ecx + 0x410370]
dec eax
mov edx, eax
sar edx, 3
cmp edx, ebp
jne 0x40236d
and eax, 7
test dword [eax*4 + 0x410390], esi
je 0x40236d
mov edx, ecx
lea eax, [edi + esi]
sar edx, 3
mov bl, byte [edx + eax*4 + 0x413390]
lea eax, [edx + eax*4 + 0x413390]
mov edx, ecx
and edx, 7
mov dl, byte [edx*4 + 0x410390]
or bl, dl
mov byte [eax], bl
inc ecx
cmp ecx, 0x20
jl 0x40232a
inc esi
cmp esi, 0x100
jl 0x402328
add edi, 0x100
inc ebp
cmp edi, 0x400
jl 0x402326
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405560
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
lea edx, [esp + 4]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
push edx
push eax
mov dword [esp + 0x10], ecx
call dword [sym.imp.MSVCRT.dll__utime]
add esp, 8
test eax, eax
je 0x4055f0
mov cx, word [esi + 6]
and ecx, 0xf000
cmp ecx, 0x4000
je 0x4055f0
mov eax, dword [0x4195a0]
test eax, eax
jne 0x4055c6
mov edx, dword [0x473168]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edx
add eax, 0x40
push str._s:
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
mov eax, dword [0x4195ac]
test eax, eax
jne 0x4055d9
mov dword [0x4195ac], 2
mov eax, dword [0x4195a0]
test eax, eax
jne 0x4055f0
push 0x436680
call dword [sym.imp.MSVCRT.dll_perror]
add esp, 4
pop esi
add esp, 8
ret
Function at 0x406af0
Capabilities:
Create directory

Disassembly:
sub esp, 0x300
push ebx
mov ebx, dword [esp + 0x308]
push ebp
push esi
push edi
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x406bec
mov esi, ebp
lea eax, [esp + 0x10]
sub esi, ebx
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edi, 0x419460
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + esi + 0x1c], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x11c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 0x10
test eax, eax
je 0x406ba8
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
cmp dword [eax], 0x11
jne 0x406bca
inc ebp
push 0x5c
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x406b17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x300
ret
call esi
mov ecx, dword [eax]
mov eax, dword [0x4195c8]
push ecx
lea edx, [esp + 0x114]
mov ecx, dword [eax*4 + 0x411934]
push edx
push ecx
call fcn.00406a90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x300
ret

Function at 0x406df0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [str.time.dat]
push esi
push 0
push 0x8000
push eax
call fcn.00402470
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x406e26
push 4
push 0x432dec
push esi
call dword [sym.imp.MSVCRT.dll__read]
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 0x10
pop esi
ret
mov dword [0x432dec], 0
pop esi
ret

Function at 0x406ea0
Capabilities:
Delete file

Disassembly:
sub esp, 0x128
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x130]
push eax
push ebx
call fcn.00402500
add esp, 8
test eax, eax
jne 0x406f31
push esi
push edi
mov edi, 0x419460
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x30]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x180
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x34]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__chmod]
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x4070f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x42aae0]
push esi
push edi
mov edi, 6
cmp eax, edi
je 0x4071ae
mov esi, dword [sym.imp.WSOCK32.dll_recv]
mov al, byte [0x43311c]
test al, al
jne 0x407179
mov eax, dword [0x42abe8]
mov ecx, dword [0x433110]
mov edx, dword [0x432f04]
push 0
push eax
push ecx
push edx
call esi
test eax, eax
jle 0x407179
cmp dword [0x42aae0], 4
jne 0x407149
push eax
mov eax, dword [0x433110]
push eax
call fcn.00406d30
add esp, 8
jmp 0x40716e
mov ecx, dword [0x42abe8]
mov edx, dword [0x433110]
sub ecx, eax
add edx, eax
test ecx, ecx
mov dword [0x42abe8], ecx
mov dword [0x433110], edx
jne 0x40716e
call fcn.00406f40
cmp dword [0x42aae0], edi
jne 0x40710a
pop edi
pop esi
ret
cmp dword [0x42aae0], edi
je 0x4071ae
mov al, byte [0x43311c]
test al, al
jne 0x4071ae
mov ecx, dword [0x4195c8]
push 0x10
push str.Error
mov edx, dword [ecx*4 + 0x411944]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [0x43311c], 1
pop edi
pop esi
ret

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

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jle 0x4071eb
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [0x432f04]
push 0
push esi
push edi
push eax
call ebx
test eax, eax
jle 0x4071f1
sub esi, eax
test esi, esi
jg 0x4071d5
pop edi
pop esi
mov al, 1
pop ebx
ret
push str.send_error
call fcn.00406a90
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push bind
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407253
push ebp
push str.File_not_found_for__s_n
push 0x42acec
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40728f
push ebp
push str.Not_enough_memory_for__s_n
push 0x42acec
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x14]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4072b0
mov dword [eax], edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x407500
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x42aae4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x407541
push str.Error
push str.Cant_create_index_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
call ebx
cmp dword [esp + 8], 4
je 0x40757e
push 0
push str.Error
push str.Error_writing_index_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4075a5
mov eax, dword [esp + 0x18]
lea edx, [eax*8]
sub edx, eax
shl edx, 2
push edx
push edi
call fcn.00401be0
add esp, 8
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0x20]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
push edi
push esi
call ebx
mov eax, dword [esp + 0x18]
pop edi
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 8]
shl edx, 2
cmp eax, edx
je 0x4075fb
push 0
push str.Error
push str.Error_writing_index_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x408190
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
mov al, byte [0x433233]
sub esp, 0x18
test al, al
push ebp
push esi
push edi
jne 0x40837c
mov ecx, dword [0x4195c8]
mov edx, dword [ecx*4 + 0x41191c]
push edx
call fcn.00406980
add esp, 4
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [0x432f04], eax
jne 0x4081e5
push str.invalid_socket
call fcn.00406a90
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x1006
mov edi, 0x7530
push 0xffff
push eax
mov dword [esp + 0x20], edi
call esi
mov ebp, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x408223
call ebp
push eax
push str.Failed_to_set_recv_timeout:__d_n
call fcn.00406980
add esp, 8
mov eax, dword [0x432f04]
lea edx, [esp + 0xc]
push 4
push edx
push 0x1005
push 0xffff
push eax
mov dword [esp + 0x20], edi
call esi
cmp eax, 0xffffffff
jne 0x408255
call ebp
push eax
push str.Failed_to_set_send_timeout:__d_n
call fcn.00406980
add esp, 8
mov edx, dword [0x432f04]
lea ecx, [esp + 0x14]
push 0x10
xor ebp, ebp
push ecx
push edx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], ebp
mov word [esp + 0x22], bp
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x408296
push str.Cant_bind_socket
call fcn.00406a90
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov ecx, dword [esp + 0x28]
mov word [esp + 0x14], 2
mov al, byte [ecx]
cmp al, 0x30
jl 0x4082b8
cmp al, 0x39
jg 0x4082b8
push ecx
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x4082e5
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0x18]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
mov cx, word [0x4117d2]
push ecx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x16], ax
mov eax, dword [0x432f04]
lea edx, [esp + 0x14]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x408319
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x18
ret
mov ecx, dword [0x4195c8]
mov edx, dword [ecx*4 + 0x41192c]
push edx
call fcn.00406980
push 4
push 0x42a9dc
push ebp
call fcn.00406c00
mov eax, dword [0x432dec]
add esp, 0x10
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
lea ecx, [esp + 0x10]
push 4
push ecx
mov dword [esp + 0x18], eax
call fcn.004071c0
add esp, 8
test al, al
je 0x408364
call fcn.004070f0
mov edx, dword [0x432f04]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [0x432f04], ebp
call fcn.004080b0
mov eax, dword [0x432ef4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x18
ret
Function at 0x408910
Capabilities:
Check os version

Disassembly:
sub esp, 0x19c
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x14]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov dword [esp + 8], esi
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 1
je 0x408950
pop edi
xor eax, eax
pop esi
add esp, 0x19c
ret
push pe_nt_image_headers32
push 0x4196d0
call fcn.00409310
add esp, 8
cmp eax, esi
mov dword [0x43322c], eax
mov dword [esp + 0xc], esi
jle 0x408ab3
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
mov ebx, 0x4196d0
lea esi, [ebx + 0xc]
push str._.exe
push esi
call ebp
add esp, 8
test eax, eax
je 0x4089dd
mov ecx, dword [ebx]
push 0x4118d4
push 0x181a8
push ecx
call fcn.004094b0
add esp, 0xc
test eax, eax
jne 0x4089dd
push str.expl32.exe
push esi
call ebp
add esp, 8
test eax, eax
je 0x4089dd
mov edx, dword [ebx]
push 0x4118dc
push 0x181a8
push edx
call fcn.004094b0
add esp, 0xc
test eax, eax
je 0x408a94
mov eax, dword [0x4195c8]
push esi
lea edx, [esp + 0xb0]
mov ecx, dword [eax*4 + 0x411984]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0xac]
push 4
push str.Warning
push eax
push 0
call edi
cmp eax, 6
jne 0x408a44
mov ecx, dword [ebx]
push ecx
call fcn.00409470
add esp, 4
test eax, eax
je 0x408a2d
mov dword [esp + 0x10], 1
jmp 0x408a94
mov edx, dword [0x4195c8]
push 0
push str.Notice
mov eax, dword [edx*4 + 0x411994]
push eax
jmp 0x408a90
mov ecx, dword [0x4195c8]
push 4
push str.Warning
mov edx, dword [ecx*4 + 0x41198c]
push edx
push 0
call edi
cmp eax, 6
je 0x408a94
mov eax, dword [ebx]
push eax
call fcn.00409470
add esp, 4
test eax, eax
je 0x408a7b
mov dword [esp + 0x10], 1
jmp 0x408a94
mov ecx, dword [0x4195c8]
push 0
push str.Notice
mov edx, dword [ecx*4 + 0x411994]
push edx
push 0
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [0x43322c]
inc eax
add ebx, 0x110
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x408986
pop ebp
pop ebx
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x19c
ret

Function at 0x408ba0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x210
lea eax, [esp + 0x80]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x408bf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 4]
push str.WSAStartup_failed:__d_n
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp]
push 0x10
push str.Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
add esp, 0x210
ret
mov al, 1
add esp, 0x210
ret

Function at 0x409470
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4094a7
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x4094a1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret
Function at 0x40bc90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
test ecx, ecx
jne 0x40bca5
or eax, 0xffffffff
pop esi
mov dword [0x412a9c], eax
not eax
ret
mov esi, dword [esp + 0xc]
mov eax, dword [0x412a9c]
test esi, esi
je 0x40bcd2
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x412aa0]
xor eax, edx
inc ecx
dec esi
jne 0x40bcb3
pop ebx
mov dword [0x412a9c], eax
pop esi
not eax
ret

Function at 0x40bd00
Capabilities:
Read file on windows

Disassembly:
push esi
mov dword [0x43e7ec], 0
call dword [sym.imp.MSVCRT.dll__errno]
mov esi, dword [sym.imp.MSVCRT.dll__read]
mov dword [eax], 0
mov eax, dword [0x43e7ec]
mov ecx, 0x8000
sub ecx, eax
lea edx, [eax + 0x4367a0]
mov eax, dword [0x436788]
push ecx
push edx
push eax
call esi
add esp, 0xc
test eax, eax
je 0x40bd7a
cmp eax, 0xffffffff
je 0x40bd7a
mov ecx, dword [0x43e7ec]
add ecx, eax
cmp ecx, 0x8000
mov dword [0x43e7ec], ecx
jae 0x40bd80
mov edx, 0x8000
lea eax, [ecx + 0x4367a0]
sub edx, ecx
mov ecx, dword [0x436788]
push edx
push eax
push ecx
call esi
add esp, 0xc
test eax, eax
jne 0x40bd40
mov ecx, dword [0x43e7ec]
test ecx, ecx
pop esi
jne 0x40bd9c
mov eax, dword [esp + 4]
test eax, eax
je 0x40bd91
or eax, 0xffffffff
ret
call fcn.0040c090
mov ecx, dword [0x43e7ec]
mov eax, dword [0x473164]
mov dword [0x43e7f0], 1
add eax, ecx
mov dword [0x473164], eax
xor eax, eax
mov al, byte [0x4367a0]
ret