joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push esi
xor ecx, ecx
mov eax, 0x145ee80
cmp dword [eax], ebx
je 0x4084b1
add eax, 0x90
inc ecx
cmp eax, 0x1467e80
jl 0x40849b
pop esi
xor eax, eax
pop ebx
ret
lea esi, [ecx + ecx*8]
shl esi, 4
add esi, 0x145ee80
jne 0x4084c4
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x18]
push edi
lea edi, [esi + 0x24]
mov edx, dword [ecx]
push edi
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [esi + 0x1c], edx
mov ecx, dword [ecx + 8]
push eax
mov dword [esi + 0x20], ecx
call fcn.00438c72
mov eax, dword [esp + 0x18]
fstp st(0)
fld dword [edi]
fadd dword [eax]
fstp dword [esi + 0x30]
fld dword [esi + 0x28]
fadd dword [eax + 4]
mov edx, dword [esi + 0x30]
fstp dword [esi + 0x34]
fld dword [esi + 0x2c]
fadd dword [eax + 8]
mov eax, dword [esi + 0x34]
mov dword [esi + 0x84], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], edx
fstp dword [esi + 0x38]
mov ecx, dword [esi + 0x38]
mov dword [esi + 0x3c], eax
lea edx, [esi + 0x5c]
lea eax, [esi + 0x50]
mov dword [esi + 0x8c], ecx
mov ecx, dword [0x1353280]
push edx
push eax
push edi
mov dword [esi + 8], ebx
mov dword [esi + 4], ecx
mov dword [esi], 1
mov dword [esi + 0x10], 0x3f800000
mov dword [esi + 0x14], ebx
call fcn.0040a1b0
add esp, 0x14
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x3f800000
mov dword [esi + 0x78], 1
mov dword [esi + 0x68], 0x43c80000
mov dword [esi + 0x6c], 0x32
mov dword [esi + 0x70], 0x3f800000
mov dword [esi + 0x74], 0x3ff33333
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40cc80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x69b370]
push esi
lea esi, [eax - 8]
push esi
call fcn.0043921e
mov ecx, dword [0x127b414]
lea edx, [esp + 8]
push ecx
push 1
push 4
push edx
mov dword [esp + 0x18], eax
call sub.MSVCRT.dll_fwrite
mov eax, dword [0x127b414]
mov ecx, dword [0x69b368]
push eax
push 1
add ecx, 8
push esi
push ecx
call sub.MSVCRT.dll_fwrite
add esp, 0x24
pop esi
pop ecx
ret

Function at 0x40ccd0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x127b40c]
test eax, eax
jne 0x40cce9
push str.Not_recording_a_demo._n
call fcn.0042050d
add esp, 4
pop ecx
ret
mov eax, dword [0x127b414]
lea ecx, [esp]
push eax
push 1
push 4
push ecx
mov dword [esp + 0x10], 0xffffffff
call sub.MSVCRT.dll_fwrite
mov edx, dword [0x127b414]
push edx
call sub.MSVCRT.dll_fclose
push str.Stopped_demo._n
mov dword [0x127b414], 0
mov dword [0x127b40c], 0
call fcn.0042050d
add esp, 0x18
pop ecx
ret
Function at 0x412630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb0
mov ecx, dword [0x134fee8]
push ebx
push ebp
xor eax, eax
push esi
push edi
test ecx, ecx
mov dword [esp + 0x14], eax
jle 0x4127c9
mov ebp, dword [esp + 0xd4]
mov ecx, dword [0x134feec]
add eax, ecx
and eax, 0x3ff
lea ecx, [eax + eax*2]
lea ebx, [ecx + ecx*8]
shl ebx, 1
sub ebx, eax
shl ebx, 4
add ebx, 0x127b420
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4127b2
mov edx, dword [0x1353e84]
mov ecx, dword [ebx]
inc edx
cmp ecx, edx
je 0x4127b2
cmp eax, 0x1f
jne 0x4126b0
mov eax, dword [ebx + 0x28]
mov eax, dword [eax*4 + 0x1384a88]
test eax, eax
je 0x4127b2
mov eax, dword [eax + 0x24]
lea ecx, [ebx + 0x10]
jmp 0x412723
mov edx, eax
mov ecx, eax
and edx, 0x1f
shl edx, 3
mov dword [esp + 0x10], edx
neg edx
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x20]
fild dword [esp + 0x1c]
sar ecx, 5
and ecx, 0x1f
fst dword [esp + 0x24]
fstp dword [esp + 0x20]
fild dword [esp + 0x10]
shl ecx, 3
neg ecx
fst dword [esp + 0x30]
fstp dword [esp + 0x2c]
sar eax, 0xa
mov dword [esp + 0x10], ecx
and eax, 0x3f
fild dword [esp + 0x10]
lea eax, [eax*8 - 0x20]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], eax
push ecx
fstp dword [esp + 0x2c]
fild dword [esp + 0x1c]
push edx
fstp dword [esp + 0x3c]
call fcn.0041eb70
add esp, 8
mov ecx, 0x4815c0
cmp dword [ebp], 0
jne 0x4127c9
mov edx, dword [esp + 0xcc]
push ecx
lea ecx, [ebx + 4]
push ecx
mov ecx, dword [esp + 0xd8]
push 0x2010003
push eax
mov eax, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd8]
push eax
push ecx
lea eax, [esp + 0x98]
push edx
push eax
call fcn.0041fb70
mov ecx, 0x11
mov esi, eax
lea edi, [esp + 0x5c]
add esp, 0x24
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x412793
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x412793
fld dword [esp + 0x40]
fcomp dword [ebp + 8]
fnstsw ax
test ah, 1
je 0x4127b2
mov eax, dword [ebp + 4]
mov ecx, 0x11
lea esi, [esp + 0x38]
mov edi, ebp
mov dword [esp + 0x78], ebx
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x4127b2
mov dword [ebp + 4], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [0x134fee8]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x412655
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret
Function at 0x413920
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x404
mov ecx, dword [esp + 0x40c]
push ebx
mov ebx, dword [esp + 0x40c]
mov dword [esp + 4], ecx
mov al, byte [ebx]
test al, al
je 0x4139da
push ebp
push esi
push edi
xor ebp, ebp
test al, al
je 0x41395d
cmp al, 0xa
je 0x41395d
mov byte [esp + ebp + 0x14], al
mov al, byte [ebx + 1]
inc ebp
inc ebx
test al, al
jne 0x41394c
mov eax, dword [esp + 0x424]
mov byte [esp + ebp + 0x14], 0
test eax, eax
je 0x413981
lea edx, [ebp*8]
sub eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, ecx
jmp 0x413983
mov esi, ecx
xor edi, edi
test ebp, ebp
jle 0x4139b6
movsx eax, byte [esp + edi + 0x14]
mov edx, dword [esp + 0x428]
mov ecx, dword [esp + 0x420]
xor eax, edx
push eax
push ecx
push esi
call dword [0x482668]
add esp, 0xc
add esi, 8
inc edi
cmp edi, ebp
jl 0x413989
mov ecx, dword [esp + 0x10]
cmp byte [ebx], 0
je 0x4139cd
mov eax, dword [esp + 0x420]
inc ebx
add eax, 8
mov dword [esp + 0x420], eax
mov al, byte [ebx]
test al, al
jne 0x413946
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret

Function at 0x4139f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x404
mov ecx, dword [esp + 0x40c]
push ebx
mov ebx, dword [esp + 0x40c]
mov dword [esp + 4], ecx
mov al, byte [ebx]
test al, al
je 0x413aaa
push ebp
push esi
push edi
xor ebp, ebp
test al, al
je 0x413a2d
cmp al, 0xa
je 0x413a2d
mov byte [esp + ebp + 0x14], al
mov al, byte [ebx + 1]
inc ebp
inc ebx
test al, al
jne 0x413a1c
mov eax, dword [esp + 0x424]
mov byte [esp + ebp + 0x14], 0
test eax, eax
je 0x413a51
lea edx, [ebp*8]
sub eax, edx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
add esi, ecx
jmp 0x413a53
mov esi, ecx
xor edi, edi
test ebp, ebp
jle 0x413a86
movsx eax, byte [esp + edi + 0x14]
mov edx, dword [esp + 0x428]
mov ecx, dword [esp + 0x420]
xor eax, edx
push eax
push ecx
push esi
call dword [0x482670]
add esp, 0xc
add esi, 8
inc edi
cmp edi, ebp
jl 0x413a59
mov ecx, dword [esp + 0x10]
cmp byte [ebx], 0
je 0x413a9d
mov eax, dword [esp + 0x420]
inc ebx
add eax, 0xc
mov dword [esp + 0x420], eax
mov al, byte [ebx]
test al, al
jne 0x413a16
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x4203d0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 1
push 0x1000
push 0x6c82a0
call sub.MSVCRT.dll_fwrite
add esp, 0x10
ret
Function at 0x422e8b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [0x6c80f8], eax
mov ecx, dword [ebp + 0xc]
mov dword [0x6c8100], ecx
push str._HFILE
call fcn.00422e30
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x422ed9
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x422ed9
mov eax, dword [ebp - 8]
mov ecx, dword [0x6c8100]
mov edx, dword [ecx + eax*4 + 4]
push edx
call sub.MSVCRT.dll_atoi
add esp, 4
mov dword [ebp - 0x14], eax
push str._HPARENT
call fcn.00422e30
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x422f10
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jge 0x422f10
mov ecx, dword [ebp - 8]
mov edx, dword [0x6c8100]
mov eax, dword [edx + ecx*4 + 4]
push eax
call sub.MSVCRT.dll_atoi
add esp, 4
mov dword [ebp - 0x10], eax
push str._HCHILD
call fcn.00422e30
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x422f46
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jge 0x422f46
mov edx, dword [ebp - 8]
mov eax, dword [0x6c8100]
mov ecx, dword [eax + edx*4 + 4]
push ecx
call sub.MSVCRT.dll_atoi
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x422f58
cmp dword [ebp - 0x10], 0
je 0x422f58
cmp dword [ebp - 0xc], 0
jne 0x422f6a
push str.Qhost_not_present._n
call sub.MSVCRT.dll_printf
add esp, 4
jmp 0x423021
push str.Initializing_for_qhost._n
call sub.MSVCRT.dll_printf
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [0x6c80ec], edx
mov eax, dword [ebp - 0x10]
mov dword [0x6c80f0], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x6c8104], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x6c80fc], eax
cmp dword [0x6c80fc], 0
jne 0x422fbc
push str.Couldnt_create_heventDone_n
call sub.MSVCRT.dll_printf
add esp, 4
jmp 0x423021
lea edx, [ebp - 4]
push edx
push 0
push 0
push 0x42303f
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
test eax, eax
jne 0x422ff4
mov eax, dword [0x6c80fc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Couldnt_create_QHOST_thread_n
call sub.MSVCRT.dll_printf
add esp, 4
jmp 0x423021
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x6c80f4], eax
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x6c80e8], eax
push 0x19
push 0x50
mov ecx, dword [0x6c80f4]
push ecx
call fcn.00423415
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x42317b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4231f4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov word [ebp - 0xc], 0
mov ax, word [ebp + 0xc]
mov word [ebp - 0xa], ax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
add eax, 1
imul eax, eax, 0x50
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x6c80f4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x423240
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x423247
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movsx edx, byte [ecx]
test edx, edx
je 0x42334c
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
cmp ecx, 0xa
jne 0x423272
mov edx, dword [ebp - 0x20]
mov byte [edx], 0xd
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
push ecx
call sub.MSVCRT.dll_toupper
add esp, 4
mov byte [ebp - 8], al
mov word [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 1
movsx dx, byte [ebp - 8]
mov word [ebp - 0x12], dx
mov eax, dword [ebp - 0x20]
mov cl, byte [eax]
push ecx
call fcn.00423355
add esp, 4
mov word [ebp - 0x10], ax
mov edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ebp - 0xe], al
mov ecx, dword [ebp - 0x20]
movsx dx, byte [ecx]
mov word [ebp - 0xe], dx
cmp dword [0x45aaf0], 1
jle 0x4232e4
push 1
mov eax, dword [ebp - 0x20]
movsx ecx, byte [eax]
push ecx
call sub.MSVCRT.dll__isctype
add esp, 8
mov dword [ebp - 0x24], eax
jmp 0x4232fc
mov edx, dword [ebp - 0x20]
movsx eax, byte [edx]
mov ecx, dword [str.________________________________H]
xor edx, edx
mov dx, word [ecx + eax*2]
and edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
neg eax
sbb eax, eax
and eax, 0x80
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x6c80e8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x6c80e8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x423253
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x423620
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov al, byte [esi]
test al, al
je 0x423656
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
movsx eax, al
xor eax, 0x80
push eax
push ebx
push edi
call dword [0x482668]
mov al, byte [esi + 1]
add esp, 0xc
add edi, 8
inc esi
test al, al
jne 0x423635
pop edi
pop ebx
pop esi
ret
Function at 0x42576e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0xc], 0
je 0x42583a
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0x10000
jle 0x4257a7
mov dword [ebp - 0x14], 0x10000
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_fread
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42580e
cmp dword [ebp - 0x10], 0
jne 0x4257da
mov dword [ebp - 0x10], 1
call fcn.004012b0
jmp 0x42580e
movsx eax, byte [0x45ff78]
test eax, eax
je 0x4257ff
mov ecx, dword [ebp - 0xc]
push ecx
push 0x6a0060
push str.FS_Read:_0_bytes_read___s__remaining:__i_
push 0
call fcn.0042071a
add esp, 0x10
jmp 0x42580e
push str.FS_Read:_0_bytes_read
push 0
call fcn.0042071a
add esp, 8
cmp dword [ebp - 8], 0xffffffff
jne 0x425823
push str.FS_Read:__1_bytes_read
push 0
call fcn.0042071a
add esp, 8
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x425787
mov esp, ebp
pop ebp
ret
Function at 0x4258e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40024
call fcn.0044b860
push 0x452dfc
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0x40020], eax
cmp dword [ebp - 0x40020], 0
jne 0x425914
xor eax, eax
jmp 0x425b1d
mov ecx, dword [ebp - 0x40020]
push ecx
push 0xc
push 1
lea edx, [ebp - 0x14]
push edx
call sub.MSVCRT.dll_fread
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
call fcn.0043921e
add esp, 4
cmp eax, 0x4b434150
je 0x425951
mov ecx, dword [ebp + 8]
push ecx
push str._s_is_not_a_packfile
push 0
call fcn.0042071a
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call fcn.0043921e
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0043921e
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
shr ecx, 6
mov dword [ebp - 0x4001c], ecx
cmp dword [ebp - 0x4001c], 0x1000
jle 0x4259a1
mov edx, dword [ebp - 0x4001c]
push edx
mov eax, dword [ebp + 8]
push eax
push str._s_has__i_files
push 0
call fcn.0042071a
add esp, 0x10
mov ecx, dword [ebp - 0x4001c]
imul ecx, ecx, 0x48
push ecx
call fcn.00422676
add esp, 4
mov dword [ebp - 0x40024], eax
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x40020]
push eax
call sub.MSVCRT.dll_fseek
add esp, 0xc
mov ecx, dword [ebp - 0x40020]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp - 0x40014]
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x40014]
push edx
call fcn.0042b5ec
add esp, 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x40018], 0
jmp 0x425a1b
mov eax, dword [ebp - 0x40018]
add eax, 1
mov dword [ebp - 0x40018], eax
mov ecx, dword [ebp - 0x40018]
cmp ecx, dword [ebp - 0x4001c]
jge 0x425ab5
mov edx, dword [ebp - 0x40018]
shl edx, 6
lea eax, [ebp + edx - 0x40014]
push eax
mov ecx, dword [ebp - 0x40018]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x40024]
add edx, ecx
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x40018]
shl eax, 6
mov ecx, dword [ebp + eax - 0x3ffdc]
push ecx
call fcn.0043921e
add esp, 4
mov edx, dword [ebp - 0x40018]
imul edx, edx, 0x48
mov ecx, dword [ebp - 0x40024]
mov dword [ecx + edx + 0x40], eax
mov edx, dword [ebp - 0x40018]
shl edx, 6
mov eax, dword [ebp + edx - 0x3ffd8]
push eax
call fcn.0043921e
add esp, 4
mov ecx, dword [ebp - 0x40018]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x40024]
mov dword [edx + ecx + 0x44], eax
jmp 0x425a0c
push 0x8c
call fcn.00422676
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x40020]
mov dword [edx + 0x80], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x4001c]
mov dword [ecx + 0x84], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x40024]
mov dword [eax + 0x88], ecx
mov edx, dword [ebp - 0x4001c]
push edx
mov eax, dword [ebp + 8]
push eax
push str.Added_packfile__s___i_files__n
call fcn.0042050d
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x427230
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6c810c]
fld dword [eax + 0x14]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x40
je 0x427252
xor eax, eax
jmp 0x42733b
mov ecx, dword [ebp + 8]
mov dword [0x4601ac], ecx
push 0x17
mov edx, dword [ebp + 0xc]
push edx
push 0x460194
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [0x4602c8], eax
call fcn.00434dfa
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [0x4532cc], eax
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [0x4532d0], eax
cmp dword [0x4532cc], 0xffffffff
je 0x4272ad
cmp dword [0x4532d0], 0xffffffff
jne 0x4272b7
mov eax, 1
jmp 0x42733b
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042751c
add esp, 0x10
cmp dword [ebp - 0x10], 0x100007f
jne 0x4272dd
mov dword [ebp - 0x10], 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [0x4532cc]
push edx
call sub.WSOCK32.dll_bind
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4272ff
mov eax, 2
jmp 0x42733b
push 0
lea eax, [ebp - 0x14]
push eax
push 0x6cfc
push str.master.gamespy.com
call fcn.0042751c
add esp, 0x10
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [0x4532d0]
push edx
call sub.WSOCK32.dll_connect
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x427339
mov eax, 4
jmp 0x42733b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42733f
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.00434de0
mov dword [ebp - 0x10c], eax
mov eax, dword [0x6c810c]
fld dword [eax + 0x14]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x40
je 0x427388
jmp 0x4274aa
mov ecx, dword [0x483458]
fld dword [ecx + 0x14]
fcomp dword [0x44c308]
fnstsw ax
test ah, 0x40
je 0x4273a3
jmp 0x4274aa
cmp dword [0x4532cc], 0xffffffff
je 0x4273b5
cmp dword [0x4532d0], 0xffffffff
jne 0x4273ba
jmp 0x4274aa
mov edx, dword [ebp - 0x10c]
sub edx, dword [0x4602c4]
cmp edx, 0x493e0
jbe 0x4273d8
push 0
call fcn.004281c0
add esp, 4
mov dword [ebp - 0x108], 0
cmp dword [ebp - 0x108], 0x40
jae 0x42740d
mov eax, dword [ebp - 0x108]
mov ecx, dword [0x4532cc]
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
test eax, eax
jne 0x4273e2
mov ecx, 1
test ecx, ecx
je 0x4274aa
lea edx, [ebp - 0x114]
push edx
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0x40
call sub.WSOCK32.dll_select
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xffffffff
je 0x427451
cmp dword [ebp - 0x128], 0
jne 0x427453
jmp 0x4274aa
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x124]
push edx
push 0
push 0xff
push 0x4601b0
mov eax, dword [0x4532cc]
push eax
call sub.WSOCK32.dll_recvfrom
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xffffffff
je 0x4274a5
mov ecx, dword [ebp - 0x128]
mov byte [ecx + 0x4601b0], 0
lea edx, [ebp - 0x124]
push edx
push 0x4601b0
call fcn.00427f36
add esp, 8
jmp 0x427413
mov esp, ebp
pop ebp
ret
Function at 0x42751c
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov word [eax], 2
mov cx, word [ebp + 0xc]
push ecx
call sub.WSOCK32.dll_htons
mov edx, dword [ebp + 0x10]
mov word [edx + 2], ax
cmp dword [ebp + 8], 0
jne 0x42754b
mov eax, dword [ebp + 0x10]
mov dword [eax + 4], 0
jmp 0x42755a
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_inet_addr
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x10]
cmp dword [eax + 4], 0xffffffff
jne 0x42759e
push str.255.255.255.255
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x42759e
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42758e
xor eax, eax
jmp 0x4275b1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edx]
mov dword [eax + 4], ecx
cmp dword [ebp + 0x14], 0
je 0x4275ac
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x427862
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov word [ebp - 0x10c], 0
jmp 0x427889
mov ax, word [ebp - 0x10c]
add ax, 1
mov word [ebp - 0x10c], ax
movsx ecx, word [ebp - 0x10c]
cmp ecx, 0x100
jge 0x4278ae
movsx edx, word [ebp - 0x10c]
mov al, byte [ebp - 0x10c]
mov byte [ebp + edx - 0x100], al
jmp 0x427877
mov byte [ebp - 0x104], 0
mov byte [ebp - 0x108], 0
mov word [ebp - 0x10c], 0
jmp 0x4278d9
mov cx, word [ebp - 0x10c]
add cx, 1
mov word [ebp - 0x10c], cx
movsx edx, word [ebp - 0x10c]
cmp edx, 0x100
jge 0x42797c
mov eax, dword [ebp - 0x104]
and eax, 0xff
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + eax]
movsx eax, word [ebp - 0x10c]
xor ecx, ecx
mov cl, byte [ebp + eax - 0x100]
add edx, ecx
mov eax, dword [ebp - 0x108]
and eax, 0xff
add edx, eax
and edx, 0x800000ff
jns 0x42792e
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 0x108], dl
mov eax, dword [ebp - 0x104]
and eax, 0xff
add eax, 1
cdq
idiv dword [ebp + 0xc]
mov byte [ebp - 0x104], dl
mov ecx, dword [ebp - 0x108]
and ecx, 0xff
lea edx, [ebp + ecx - 0x100]
push edx
movsx eax, word [ebp - 0x10c]
lea ecx, [ebp + eax - 0x100]
push ecx
call fcn.004276c3
add esp, 8
jmp 0x4278c7
mov byte [ebp - 0x104], 0
mov byte [ebp - 0x108], 0
mov word [ebp - 0x10c], 0
jmp 0x4279a7
mov dx, word [ebp - 0x10c]
add dx, 1
mov word [ebp - 0x10c], dx
movsx eax, word [ebp - 0x10c]
cmp eax, dword [ebp + 0x14]
jge 0x427ac6
mov ecx, dword [ebp - 0x104]
and ecx, 0xff
movsx edx, word [ebp - 0x10c]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov bl, byte [eax + edx]
lea ecx, [ecx + ebx + 1]
and ecx, 0x800000ff
jns 0x4279e6
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 0x104], cl
mov edx, dword [ebp - 0x104]
and edx, 0xff
xor eax, eax
mov al, byte [ebp + edx - 0x100]
mov ecx, dword [ebp - 0x108]
and ecx, 0xff
add eax, ecx
and eax, 0x800000ff
jns 0x427a1d
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x108], al
mov edx, dword [ebp - 0x108]
and edx, 0xff
lea eax, [ebp + edx - 0x100]
push eax
mov ecx, dword [ebp - 0x104]
and ecx, 0xff
lea edx, [ebp + ecx - 0x100]
push edx
call fcn.004276c3
add esp, 8
mov eax, dword [ebp - 0x104]
and eax, 0xff
xor ecx, ecx
mov cl, byte [ebp + eax - 0x100]
mov edx, dword [ebp - 0x108]
and edx, 0xff
xor eax, eax
mov al, byte [ebp + edx - 0x100]
add ecx, eax
and ecx, 0x800000ff
jns 0x427a8e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 0x110], cl
movsx ecx, word [ebp - 0x10c]
mov edx, dword [ebp - 0x110]
and edx, 0xff
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + ecx]
xor cl, byte [ebp + edx - 0x100]
movsx edx, word [ebp - 0x10c]
mov eax, dword [ebp + 0x10]
mov byte [eax + edx], cl
jmp 0x427995
pop ebx
mov esp, ebp
pop ebp
ret