joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40113b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40123e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x410260]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x410260]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x410260]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x410260]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x410260]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x410260]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x410260]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x410260]
xor eax, edx
inc ecx
dec edi
jne 0x401156
pop edi
test esi, esi
je 0x401260
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x410260]
xor eax, edx
inc ecx
dec esi
jne 0x401242
pop esi
pop ebx
not eax
ret

Function at 0x402ad0
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 0x402b14
cmp edx, 0x28
jge 0x402b14
mov ecx, edx
and ecx, 0x80000007
jns 0x402aff
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 0x402aeb
push 0x412020
push 0x4246c8
call fcn.00402d30
push 0x412060
push 0x424f28
call fcn.00402d30
lea edx, [esp + 0x18]
push edx
call fcn.00402be0
add esp, 0x14
call fcn.00402b50
call fcn.00402cb0
pop esi
pop ebx
add esp, 8
ret
Function at 0x402be0
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 + 0x412338], eax
setne al
mov byte [ecx + 0x424658], al
inc ecx
cmp ecx, 0x38
jl 0x402bea
mov ecx, 0x18
xor eax, eax
mov edi, 0x424ec8
xor ebp, ebp
rep stosd dword es:[edi], eax
xor edi, edi
movsx ecx, byte [ebp + 0x4120d8]
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 0x402c47
lea esi, [ecx - 0x1c]
mov dl, byte [esi + 0x424658]
mov byte [eax + 0x424690], dl
inc eax
inc ecx
cmp eax, 0x38
jl 0x402c2f
xor eax, eax
movsx ecx, byte [eax + 0x4120e8]
mov dl, byte [ecx + 0x42468f]
test dl, dl
je 0x402c90
mov edx, eax
sar edx, 3
mov bl, byte [edx + edi + 0x424ec8]
lea ecx, [edx + edi + 0x424ec8]
mov edx, eax
and edx, 7
mov dl, byte [edx*4 + 0x412338]
or bl, dl
mov byte [ecx], bl
inc eax
cmp eax, 0x30
jl 0x402c5c
add edi, 6
inc ebp
cmp edi, 0x60
jl 0x402c26
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402cb0
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push ebp
push esi
push edi
mov ecx, 0x400
xor eax, eax
mov edi, 0x41f658
xor ebp, ebp
rep stosd dword es:[edi], eax
xor edi, edi
xor esi, esi
xor ecx, ecx
movsx eax, byte [ecx + 0x412318]
dec eax
mov edx, eax
sar edx, 3
cmp edx, ebp
jne 0x402d0d
and eax, 7
test dword [eax*4 + 0x412338], esi
je 0x402d0d
mov edx, ecx
lea eax, [edi + esi]
sar edx, 3
mov bl, byte [edx + eax*4 + 0x41f658]
lea eax, [edx + eax*4 + 0x41f658]
mov edx, ecx
and edx, 7
mov dl, byte [edx*4 + 0x412338]
or bl, dl
mov byte [eax], bl
inc ecx
cmp ecx, 0x20
jl 0x402cca
inc esi
cmp esi, 0x100
jl 0x402cc8
add edi, 0x100
inc ebp
cmp edi, 0x400
jl 0x402cc6
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4033d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4033e1
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x403430
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x40342b
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x403442
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x403750
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x4037fe
cmp byte [esi + 0x5c], 0x77
jne 0x4037fe
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x40379f
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x4037e4
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x4037ee
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004014f0
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x4037c0
cmp eax, 0xfffffffb
jne 0x4037c0
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4037d1
cmp dword [esi + 0x38], 1
je 0x4037d1
xor ebx, ebx
jmp 0x4037d6
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x40376e
cmp eax, 1
jne 0x4037ee
jmp 0x40376e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x4063e0
Capabilities:
Create directory

Disassembly:
sub esp, 0x300
push ebx
push ebp
mov ebp, dword [esp + 0x30c]
push esi
push edi
push 0x5c
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x406493
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
mov esi, edi
lea eax, [esp + 0x10]
sub esi, ebp
push esi
push ebp
push eax
call ebx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x11c]
push ecx
push edx
mov byte [esp + esi + 0x24], 0
call fcn.00402e10
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 0x18
test eax, eax
je 0x406453
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
cmp dword [eax], 0x11
jne 0x406471
inc edi
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
jne 0x40640d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x300
ret
call esi
mov ecx, dword [eax]
mov eax, dword [0x425830]
push ecx
lea edx, [esp + 0x114]
mov ecx, dword [eax*4 + 0x41cd74]
push edx
push ecx
call fcn.00406380
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x300
ret
Function at 0x406840
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x7d4
lea eax, [esp + 0x7e0]
lea edx, [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push 0
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x7e4]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x7d4
ret

Function at 0x4069e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push 0x8000
mov dword [esp + 0x10], 0
mov eax, dword [edi]
push eax
call fcn.00402ea0
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x406a2a
lea ecx, [esp + 8]
push 4
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__read]
push esi
call dword [sym.imp.MSVCRT.dll__close]
mov edx, dword [esp + 0x18]
add esp, 0x10
mov dword [edi + 4], edx
pop edi
pop esi
pop ecx
ret
mov eax, dword [esp + 8]
mov dword [edi + 4], eax
pop edi
pop esi
pop ecx
ret

Function at 0x406b10
Capabilities:
Read file on windows

Disassembly:
push esi
push 0
push 0x8000
push str.serverid.dat
call fcn.00402ea0
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x406ac5
push 4
push 0x44e9bc
push esi
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
cmp eax, 4
je 0x406abb
mov dword [0x44e9bc], 0xffffffff
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
pop esi
ret
push 0x41cd00
call fcn.004069e0
push 0x41cd10
call fcn.004069e0
add esp, 8
jmp 0x406a80

Function at 0x406b90
Capabilities:
Delete file

Disassembly:
sub esp, 0x128
lea eax, [esp]
push esi
mov esi, dword [esp + 0x130]
push eax
push esi
call fcn.00402ee0
add esp, 8
test eax, eax
jne 0x406bd9
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00402e10
lea edx, [esp + 0x30]
push 0x180
push edx
call dword [sym.imp.MSVCRT.dll__chmod]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 0x14
pop esi
add esp, 0x128
ret

Function at 0x406e50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x426074]
push ebx
mov ebx, 8
push esi
cmp eax, ebx
push edi
je 0x406f19
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.WSOCK32.dll_recv]
mov al, byte [0x42e898]
test al, al
jne 0x406ee4
mov eax, dword [0x426180]
mov ecx, dword [0x42e88c]
mov edx, dword [0x42e680]
push 0
push eax
push ecx
push edx
call edi
test eax, eax
jle 0x406ee4
cmp dword [0x426074], 4
jne 0x406eaf
push esi
push eax
mov eax, dword [0x42e88c]
push eax
call fcn.00406900
add esp, 0xc
jmp 0x406ed8
mov ecx, dword [0x426180]
mov edx, dword [0x42e88c]
sub ecx, eax
add edx, eax
test ecx, ecx
mov dword [0x426180], ecx
mov dword [0x42e88c], edx
jne 0x406ed8
push esi
call fcn.00406bf0
add esp, 4
cmp dword [0x426074], ebx
jne 0x406e6f
pop edi
pop esi
pop ebx
ret
cmp dword [0x426074], ebx
je 0x406f19
mov al, byte [0x42e898]
test al, al
jne 0x406f19
mov ecx, dword [0x425830]
push 0x10
push str.Error
mov edx, dword [ecx*4 + 0x41cd84]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [0x42e898], 1
pop edi
pop esi
pop ebx
ret
Function at 0x406f20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jle 0x406f4b
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.WSOCK32.dll_send]
mov eax, dword [0x42e680]
push 0
push esi
push edi
push eax
call ebx
test eax, eax
jle 0x406f51
sub esi, eax
test esi, esi
jg 0x406f35
pop edi
pop esi
mov al, 1
pop ebx
ret
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.send_error___d
call fcn.00406380
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x406f70
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 0x406fb3
push ebp
push str.File_not_found_for__s_n
push 0x426288
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
test edi, edi
jne 0x406fca
push ebp
push str.File__s_size__0_n
jmp 0x406fdf
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x406ffb
push ebp
push str.Not_enough_memory_for__s_n
push 0x426288
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 0x40701c
mov dword [eax], edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
Function at 0x407270
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 0x426078
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x4072b1
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 0x4072ee
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 0x407315
mov eax, dword [esp + 0x18]
lea edx, [eax*8]
sub edx, eax
shl edx, 2
push edx
push edi
call fcn.00402580
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 0x40736b
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 0x407e70
Capabilities:
Delete file
Get common file path
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x350
lea eax, [esp + 0x150]
push ebx
push esi
push edi
push 0x1ff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str._npscan.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x15c]
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]
push str.npscan.dll
call fcn.00402ee0
add esp, 8
test eax, eax
jne 0x407f92
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.MSVCRT.dll_remove]
lea edx, [esp + 0x5c]
push str.npscan.dll
push edx
call fcn.00402e10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x64]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stat]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea edx, [esp + 0x6c]
push 0x41e260
push edx
call esi
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x407f92
mov eax, dword [esp + 0x24]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fclose]
test eax, eax
jle 0x407f75
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
lea eax, [esp + 0x164]
push 0x41e218
push eax
call esi
mov esi, eax
add esp, 0xc
test esi, esi
je 0x407f79
mov ecx, dword [esp + 0x28]
push ebx
push 1
push ecx
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x38]
push esi
push 1
push edx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call ebp
add esp, 0x24
jmp 0x407f79
mov edi, dword [esp + 0x10]
mov eax, dword [0x44e8ac]
test eax, eax
jle 0x407f8b
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebx
call ebp
add esp, 4
pop ebp
push 0
push 0
call fcn.004068f0
mov eax, dword [0x425830]
mov ecx, dword [eax*4 + 0x41cd94]
push ecx
call fcn.00406270
push 1
push str.Text
push str.Text
call fcn.00407af0
add esp, 0x18
test eax, eax
pop edi
pop esi
pop ebx
je 0x4080ab
push 1
push 0
call fcn.004068f0
mov edx, dword [0x425830]
mov eax, dword [edx*4 + 0x41cd9c]
push eax
call fcn.00406270
push 0
push str.Sprite
push str.Sprite
call fcn.00407af0
add esp, 0x18
test eax, eax
je 0x4080ab
push 2
push 0
call fcn.004068f0
mov ecx, dword [0x425830]
mov edx, dword [ecx*4 + 0x41cda4]
push edx
call fcn.00406270
push 0
push str.Surf
push str.Sprite
call fcn.00407af0
add esp, 0x18
test eax, eax
je 0x4080ab
push 3
push 0
call fcn.004068f0
mov eax, dword [0x425830]
mov ecx, dword [eax*4 + 0x41cdac]
push ecx
call fcn.00406270
push 0
push str.Icon
push str.Sprite
call fcn.00407af0
add esp, 0x18
test eax, eax
je 0x4080ab
push 4
push 0
call fcn.004068f0
mov edx, dword [0x425830]
mov eax, dword [edx*4 + 0x41cdb4]
push eax
call fcn.00406270
push 0
push str.Tile
push str.Tile
call fcn.00407af0
add esp, 0x18
test eax, eax
je 0x4080ab
push 5
push 0
call fcn.004068f0
add esp, 8
add esp, 0x350
ret
Function at 0x4080c0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
lea eax, [eax + eax*4]
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [eax + eax*4]
push 4
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
lea eax, [esp + 0x1c]
push eax
push 0x1006
shl esi, 6
push 0xffff
push edi
mov dword [esp + 0x2c], esi
call ebx
mov ebp, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x40811a
call ebp
push eax
push str.Failed_to_set_recv_timeout:__d_n
call fcn.00406270
add esp, 8
lea ecx, [esp + 0x18]
push 4
push ecx
push 0x1005
push 0xffff
push edi
mov dword [esp + 0x2c], esi
call ebx
cmp eax, 0xffffffff
jne 0x408147
call ebp
push eax
push str.Failed_to_set_send_timeout:__d_n
call fcn.00406270
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x408d70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408e4b
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408dc0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x408dde
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
je 0x408e41
cmp dword [esp + 0xc], ebx
jne 0x408e41
mov ax, word [esi]
cmp ax, word [0x41e704]
jne 0x408e41
cmp dword [esi + 2], ebx
jne 0x408e41
mov ecx, dword [esi + 0xa]
mov edx, dword [esp + 0x14]
lea eax, [esi + 0xe]
push 0
add ecx, esi
push eax
push ecx
push 4
push eax
push edx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40af20
Capabilities:
Check os version

Disassembly:
mov eax, 0x1119c
call fcn.0040ef40
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 4], 0
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 1
je 0x40af64
xor eax, eax
pop edi
add esp, 0x1119c
ret
lea ecx, [esp + 0x1a0]
push 0x100
push ecx
call fcn.0040d170
add esp, 8
test eax, eax
jle 0x40b0c1
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
push esi
lea ebx, [esp + 0x1ac]
mov dword [esp + 0x14], eax
lea esi, [ebx + 0xc]
push str._.exe
push esi
call ebp
add esp, 8
test eax, eax
je 0x40aff2
mov edx, dword [ebx]
push 0x41d748
push 0x181a8
push edx
call fcn.0040d310
add esp, 0xc
test eax, eax
jne 0x40aff2
push str.expl32.exe
push esi
call ebp
add esp, 8
test eax, eax
je 0x40aff2
mov eax, dword [ebx]
push 0x41d750
push 0x181a8
push eax
call fcn.0040d310
add esp, 0xc
test eax, eax
je 0x40b0a9
mov ecx, dword [0x425830]
push esi
lea eax, [esp + 0xb0]
mov edx, dword [ecx*4 + 0x41cdc4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0xac]
push 4
push str.Warning
push ecx
push 0
call edi
cmp eax, 6
jne 0x40b059
mov edx, dword [ebx]
push edx
call fcn.0040d2d0
add esp, 4
test eax, eax
je 0x40b043
mov dword [esp + 0x10], 1
jmp 0x40b0a9
mov eax, dword [0x425830]
push 0
push str.Notice
mov ecx, dword [eax*4 + 0x41cdd4]
push ecx
jmp 0x40b0a5
mov edx, dword [0x425830]
push 4
push str.Warning
mov eax, dword [edx*4 + 0x41cdcc]
push eax
push 0
call edi
cmp eax, 6
je 0x40b0a9
mov ecx, dword [ebx]
push ecx
call fcn.0040d2d0
add esp, 4
test eax, eax
je 0x40b090
mov dword [esp + 0x10], 1
jmp 0x40b0a9
mov edx, dword [0x425830]
push 0
push str.Notice
mov eax, dword [edx*4 + 0x41cdd4]
push eax
push 0
call edi
mov eax, dword [esp + 0x14]
add ebx, 0x110
dec eax
mov dword [esp + 0x14], eax
jne 0x40af9b
pop esi
pop ebp
pop ebx
mov eax, dword [esp + 4]
pop edi
add esp, 0x1119c
ret

Function at 0x40b1b0
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 0x40b204
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 4]
push str.WSAStartup_failed:__ld_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 0x40b2c0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
push 0x8000
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b2e0
pop esi
pop ebp
pop ebx
ret
mov ebx, dword [sym.imp.MSVCRT.dll__lseek]
push 2
push 0
push esi
call ebx
mov ebp, dword [esp + 0x20]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp], eax
jne 0x40b302
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
push 0
push 0
push esi
mov edi, eax
call ebx
mov ecx, dword [ebp]
push ecx
push edi
push esi
call dword [sym.imp.MSVCRT.dll__read]
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40d2d0
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 0x40d307
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x40d301
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