joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dfc0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov eax, 0x8000
cmp dword [esp + 0x18], eax
push ebp
push edi
jbe 0x42dfd5
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
xor ebp, ebp
push ebp
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [esi + 0x20], ebp
je 0x42e0dd
cmp eax, ebp
je 0x42e0dd
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0xc], ecx
jae 0x42e0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42e04c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42e062
mov ecx, dword [esp + 0x10]
push 1
push ebp
push ebp
push ecx
call fcn.0043ede0
xor ecx, ecx
add eax, edi
adc edx, ecx
jmp 0x42e066
xor eax, eax
xor edx, edx
push ebp
push ebx
push edx
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebp
lea eax, [esi + 4]
push ecx
xor ebx, ebx
mov word [ecx + 4], bp
call fcn.00401322
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
cmp eax, ebp
jne 0x42e0dd
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push ebp
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi]
add eax, ecx
push eax
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
add dword [esp + 0xc], ecx
and eax, 0x7fffbffb
add eax, 0x80004005
cmp eax, ebp
jne 0x42e013
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0xc]
pop edi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret 0xc

Function at 0x42e330
Capabilities:
Get file size

Disassembly:
push ecx
mov edx, dword [ecx]
push esi
lea eax, [esp + 4]
push eax
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42e35e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42e35e
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
push 1
push 0
push 0
push eax
call fcn.0043ede0
xor ecx, ecx
add eax, esi
adc edx, ecx
mov dword [edi], eax
mov dword [edi + 4], edx
mov al, 1
pop esi
pop ecx
ret
Function at 0x42e47f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42e48d
and dword [esi], 0
and dword [ebp + 0x10], 0
cmp dword [ebp + 0xc], 0
jbe 0x42e4ca
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42e4a4
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42e4c6
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
je 0x42e4ce
xor eax, eax
jmp 0x42e4eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42e4df
mov eax, 0x80004005
jmp 0x42e4eb
jle 0x42e4eb
and eax, 0xffff
or eax, 0x80070000
pop esi
pop ebp
ret 0xc

Function at 0x4301dd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x430329
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x430219
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x43021e
inc esi
cmp esi, dword [ebp - 8]
jb 0x430210
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x43030a
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x43029d
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x43024a
cmp cl, 0xff
jne 0x4302cc
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x4302dd
movzx edi, byte [edx + 0x44a8d8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x43028d
cmp bl, 0xff
jne 0x4302da
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x430265
dec ecx
shl edx, cl
and edx, 7
je 0x430237
movzx ecx, byte [edx + 0x44a8d8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x44a8d0], 0
mov cl, byte [ebx + 4]
je 0x4302c9
test cl, cl
je 0x4302c9
cmp cl, 0xff
jne 0x430237
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x43020b
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x43020b
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret
Function at 0x4321cd
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret

Function at 0x4326e4
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x43271b
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x43270e
cmp esi, edi
jae 0x4327eb
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x43278b
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x459178]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x4327d3
cmp dword [ebp + 8], 6
jbe 0x4327d3
cmp edx, 4
jne 0x4327d3
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x43272d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x434bcb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458210]
jne 0x434bd5
repz ret
jmp fcn.00436d60

Function at 0x43807f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x458230]
je 0x43809a
inc edi
cmp edi, 0x17
jb 0x43808b
cmp edi, 0x17
jae 0x43821a
push ebp
push 3
call fcn.0043cebd
cmp eax, 1
pop ecx
je 0x4381e6
push 3
call fcn.0043cebd
test eax, eax
pop ecx
jne 0x4380ce
cmp dword [0x458094], 1
je 0x4381e6
cmp ebx, 0xfc
je 0x438219
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45c250
push ebp
call fcn.00436e64
add esp, 0xc
test eax, eax
je 0x438104
push esi
push esi
push esi
push esi
push esi
call fcn.004351d5
add esp, 0x14
push 0x104
mov esi, 0x45c269
push esi
push 0
mov byte [0x45c36d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438148
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00436e64
add esp, 0xc
test eax, eax
je 0x438148
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004351d5
add esp, 0x14
push esi
call fcn.00435140
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43818d
push esi
call fcn.00435140
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45c564
push 0x447a8c
sub ecx, eax
push ecx
push eax
call fcn.0043a9f7
add esp, 0x14
test eax, eax
je 0x43818d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004351d5
add esp, 0x14
jmp 0x43818f
xor esi, esi
push 0x447a88
push ebx
push ebp
call fcn.0043ce4c
add esp, 0xc
test eax, eax
je 0x4381af
push esi
push esi
push esi
push esi
push esi
call fcn.004351d5
add esp, 0x14
push dword [edi*8 + 0x458234]
push ebx
push ebp
call fcn.0043ce4c
add esp, 0xc
test eax, eax
je 0x4381d1
push esi
push esi
push esi
push esi
push esi
call fcn.004351d5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043cc8f
add esp, 0xc
jmp 0x438219
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x438219
cmp ebp, 0xffffffff
je 0x438219
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x458234]
push dword [esi]
call fcn.00435140
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43cc8f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00437362
xor ebx, ebx
cmp dword [0x45c980], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43cd65
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43ce45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43ce45
push eax
call fcn.004372f4
mov dword [esp], 0x448308
push edi
mov dword [0x45c980], eax
call esi
push eax
call fcn.004372f4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45c984], eax
call esi
push eax
call fcn.004372f4
mov dword [0x45c988], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00437b00
test eax, eax
pop ecx
pop ecx
je 0x43cd33
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004351d5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43cd65
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004372f4
cmp eax, ebx
pop ecx
mov dword [0x45c990], eax
je 0x43cd65
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004372f4
pop ecx
mov dword [0x45c98c], eax
mov eax, dword [0x45c98c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43cdea
cmp dword [0x45c990], ecx
je 0x43cdea
push eax
call fcn.0043736b
push dword [0x45c990]
mov esi, eax
call fcn.0043736b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43cdea
cmp edi, ebx
je 0x43cdea
call esi
cmp eax, ebx
je 0x43cdb7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43cdb7
test byte [ebp - 0x18], 1
jne 0x43cdea
lea eax, [ebp - 0x10]
push eax
call fcn.00437b37
test eax, eax
pop ecx
je 0x43cdd2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004351d5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43cde1
or dword [ebp + 0x10], 0x200000
jmp 0x43ce25
or dword [ebp + 0x10], 0x40000
jmp 0x43ce25
mov eax, dword [0x45c984]
cmp eax, dword [ebp - 8]
je 0x43ce25
push eax
call fcn.0043736b
cmp eax, ebx
pop ecx
je 0x43ce25
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43ce25
mov eax, dword [0x45c988]
cmp eax, dword [ebp - 8]
je 0x43ce25
push eax
call fcn.0043736b
cmp eax, ebx
pop ecx
je 0x43ce25
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45c980]
call fcn.0043736b
cmp eax, ebx
pop ecx
je 0x43ce45
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43ce47
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410710
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x44d890]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [0x1969d10]
push esi
push 0x5ec
push 0
push 0x1969c90
call fcn.00430f10
push ebx
lea eax, [esp + 0x1c]
push str.trophy0_d.sav
push eax
mov dword [0x1969d10], ebx
call fcn.00430e81
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_2
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41079e
push str.__Error_loading_trophy__n
call fcn.0042ec60
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004305fb
add esp, 0x88
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x10]
push edx
push 0x5ec
push 0x1969c90
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x8b2604
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xd7f854
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
push 0x148fccc
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x153aa3c
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x8c0168
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
push 0xd7f840
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0xd5fc70
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xb1083c
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
push 0xb1088c
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x8925c8
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x48
push 0xd5fbc8
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
push 0xd7f850
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x153a800
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x6925c4
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
push 0x1991574
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x107f864
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x153aa5c
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
push 0x9107c0
push esi
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 4
push 0x153aab8
push esi
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push 0x148fcc0
push esi
call edi
call fcn.0040de70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Trophy_Loaded._n
mov dword [0x1969d10], ebx
call fcn.0042ec60
mov ecx, dword [esp + 0x94]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004305fb
add esp, 0x88
ret
Function at 0x410950
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x88
mov eax, dword [0x44d890]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [0x1969d10]
push eax
lea ecx, [esp + 8]
push str.trophy0_d.sav
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x1969d14]
add esp, 0xc
mov dword [0x1969d18], 0
cmp eax, 0x64
jl 0x41099b
mov dword [0x1969d18], 1
cmp eax, 0x12c
jl 0x4109ac
mov dword [0x1969d18], 2
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4109f4
push str.___Error_saving_trophy__n
call fcn.0042ec60
add esp, 4
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004305fb
add esp, 0x88
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0xc]
push eax
push 0x5ec
push 0x1969c90
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push 0x8b2604
push esi
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 4
push 0xd7f854
push esi
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 4
push 0x148fccc
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push 0x153aa3c
push esi
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 4
push 0x8c0168
push esi
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 4
push 0xd7f840
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push 0xd5fc70
push esi
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 4
push 0xb1083c
push esi
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 4
push 0xb1088c
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push 0x8925c8
push esi
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 0x48
push 0xd5fbc8
push esi
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 4
push 0xd7f850
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push 0x153a800
push esi
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 4
push 0x6925c4
push esi
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 4
push 0x1991574
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push 0x107f864
push esi
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 4
push 0x153aa5c
push esi
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 4
push 0x9107c0
push esi
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push 0x153aab8
push esi
call edi
push 0
lea edx, [esp + 0xc]
push edx
push 4
push 0x148fcc0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Trophy_Saved._n
call fcn.0042ec60
mov ecx, dword [esp + 0x90]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.004305fb
add esp, 0x88
ret
Function at 0x41dfc0
Capabilities:
Initialize winsock library

Disassembly:
push str.__Network_Initialize__n
call fcn.0042ec60
add esp, 4
push 0x19aa0c8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41dfef
push str.WinSock_initialization_failed__n
call fcn.0042ec60
add esp, 4
ret
mov byte [0x19aa26c], 0
mov dword [0x44d848], 0xffffffff
ret

Function at 0x41e010
Capabilities:
Terminate thread

Disassembly:
cmp byte [0x19aa26c], 0
je 0x41e05f
mov eax, dword [0x19aa270]
push 0
push eax
mov byte [0x19aa26c], 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x44d848]
push 2
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [0x44d848]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push str.Succesfully_Disconnected_
mov dword [0x44d848], 0xffffffff
call fcn.0042b6d0
pop ecx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x44d890]
xor eax, esp
mov dword [esp + 0x100], eax
cmp byte [0x19aa26c], 0
je 0x41e15c
push esi
push edi
push 0x400
call fcn.004317d6
mov ecx, dword [esp + 0x114]
mov esi, eax
mov eax, ecx
add esp, 4
mov dword [esi], 5
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41e0b4
sub eax, edi
inc eax
lea edx, [esi + 8]
mov dword [esi + 4], eax
mov eax, ecx
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41e0c8
mov eax, dword [esi + 4]
mov ecx, dword [0x44d848]
push 0
add eax, 8
push eax
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x41e111
push str.GameSendMessage___Failed___Connection_closed_
call fcn.0042b6d0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004305fb
add esp, 0x104
ret
jns 0x41e137
push str.GameSendMessage___Failed___Error_
call fcn.0042b6d0
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004305fb
add esp, 0x104
ret
push eax
lea edx, [esp + 0xc]
push str.Sent__d_bytes
push edx
call fcn.00430e81
lea eax, [esp + 0x14]
push eax
call fcn.0042b6d0
push esi
call fcn.004317cb
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004305fb
add esp, 0x104
ret
Function at 0x41e370
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, dword [0x44d890]
xor eax, esp
mov dword [esp + 0x1a4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
jne 0x41e3ed
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.GameConnect____gethostbyname___n
mov dword [0x19aa258], eax
call fcn.0042ec60
mov ecx, dword [0x19aa258]
push ecx
call fcn.0041dd70
push eax
call fcn.0042b6d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.004305fb
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x44d848], eax
cmp eax, 0xffffffff
jne 0x41e456
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esp + 0xac]
push str.GameHost____WinSock_Error_Code:__u_n
push edx
mov dword [0x19aa258], eax
call fcn.00430e81
mov eax, dword [0x19aa258]
push eax
call fcn.0041dd70
push eax
call fcn.0042b6d0
lea ecx, [esp + 0xbc]
push ecx
call fcn.0042ec60
add esp, 0x18
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.004305fb
mov esp, ebp
pop ebp
ret
mov edx, 2
mov word [esp + 0x10], dx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x18], edx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x44d848]
push 0x10
lea ecx, [esp + 0x14]
push ecx
push edx
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [0x19aa258], eax
cmp eax, 0xffffffff
jne 0x41e4d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.GameHost____connect_error_n
mov dword [0x19aa258], eax
call fcn.0042ec60
mov eax, dword [0x19aa258]
push eax
call fcn.0041dd70
push eax
call fcn.0042b6d0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.004305fb
mov esp, ebp
pop ebp
ret
mov edx, dword [0x44d848]
push 0
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0x80
mov ecx, 0x20
mov esi, 0x1969c90
lea edi, [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
push 0x88
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push str.Connected_
call fcn.0042b6d0
add esp, 4
push 0x19aa274
push 0
push 0
push 0x41e1d0
push 0
push 0
mov byte [0x19aa26c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
xor ecx, esp
mov dword [0x19aa270], eax
call fcn.004305fb
mov esp, ebp
pop ebp
ret