joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f43b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x38]
test eax, eax
js 0x4f43d6
cmp eax, 0x1194
jge 0x4f43d6
mov eax, dword [eax*4 + 0x20a514c]
cvttss2si eax, dword [eax + 0xfc]
test eax, eax
jg 0x4f43f5
cmp dword [esi + 8], 9
je 0x4f43f5
call fcn.004f4c70
push 9
push 0xb
mov dword [esi + 8], 9
call fcn.004f4fc0
pop edi
pop esi
pop ecx
ret
mov eax, dword [esi + 8]
cmp eax, 9
ja case.0x4f4401.0
jmp dword [eax*4 + 0x4f45c0]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
ja case.0x4f4401.0
xor edx, edx
cmp dword [esi + 0x4c], edx
jne 0x4f45b2
lea edi, [edx + 9]
call fcn.00526930
cdq
idiv edi
cmp dword [esi + edx*4 + 0x4c], 0
je 0x4f4428
push edx
mov ecx, esi
call fcn.004f45f0
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
ja case.0x4f4401.0
xor edx, edx
cmp dword [esi + 0x70], edx
jne 0x4f45b2
lea edi, [edx + 9]
call fcn.00526930
cdq
idiv edi
cmp dword [esi + edx*4 + 0x70], 0
je 0x4f4463
push edx
mov ecx, esi
call fcn.004f45f0
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
ja case.0x4f4401.0
xor edx, edx
cmp dword [esi + 0x94], edx
jne 0x4f45b2
lea edi, [edx + 9]
call fcn.00526930
cdq
idiv edi
cmp dword [esi + edx*4 + 0x94], 0
je 0x4f44a1
push edx
mov ecx, esi
call fcn.004f45f0
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
ja case.0x4f4401.0
xor edx, edx
cmp dword [esi + 0xb8], edx
jne 0x4f45b2
lea edi, [edx + 9]
call fcn.00526930
cdq
idiv edi
cmp dword [esi + edx*4 + 0xb8], 0
je 0x4f44e2
push edx
mov ecx, esi
call fcn.004f45f0
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
ja case.0x4f4401.0
xor edx, edx
cmp dword [esi + 0xdc], edx
jne 0x4f45b2
lea edi, [edx + 9]
call fcn.00526930
cdq
idiv edi
cmp dword [esi + edx*4 + 0xdc], 0
je 0x4f4523
push edx
mov ecx, esi
call fcn.004f45f0
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
ja case.0x4f4401.0
xor edx, edx
cmp dword [esi + 0x100], edx
jne 0x4f45b2
lea edi, [edx + 9]
call fcn.00526930
cdq
idiv edi
cmp dword [esi + edx*4 + 0x100], 0
je 0x4f4560
push edx
mov ecx, esi
call fcn.004f45f0
pop edi
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
ja case.0x4f4401.0
xor edx, edx
cmp dword [esi + 0x124], edx
jne 0x4f45b2
lea edi, [edx + 9]
nop dword [eax]
call fcn.00526930
cdq
idiv edi
cmp dword [esi + edx*4 + 0x124], 0
je 0x4f45a0
push edx
mov ecx, esi
call fcn.004f45f0
pop edi
pop esi
pop ecx
ret
Function at 0x4f9040
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopSwitch
push str.GameServerInfo
mov edi, ecx
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopScriptVersion1
push str.GameServerInfo
mov dword [edi + 0x4b4], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopScriptVersion2
push str.GameServerInfo
mov dword [edi + 0x4b8], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopScriptVersion3
push str.GameServerInfo
mov dword [edi + 0x4bc], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopBannerVersion1
push str.GameServerInfo
mov dword [edi + 0x4c0], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopBannerVersion2
push str.GameServerInfo
mov dword [edi + 0x4c4], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopBannerVersion3
push str.GameServerInfo
mov dword [edi + 0x4c8], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopGoblinPointDelay
push str.GameServerInfo
mov dword [edi + 0x4cc], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopGoblinPointValue_AL0
push str.GameServerInfo
mov dword [edi + 0x4d0], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopGoblinPointValue_AL1
push str.GameServerInfo
mov dword [edi + 0x4d4], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopGoblinPointValue_AL2
push str.GameServerInfo
mov dword [edi + 0x4d8], eax
call esi
push str..DataGameServerInfo___Common.dat
push 0
push str.CashShopGoblinPointValue_AL3
push str.GameServerInfo
mov dword [edi + 0x4dc], eax
call esi
push 0xbc507c
push 0x64
push 0xbc50e0
mov dword [edi + 0x4e0], eax
call fcn.0052d6d0
add esp, 0xc
push str.CashShopCashShopPackage.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.00414170
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.CashShopCashShopProduct.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.004143a0
push str._ServerInfo__CashShop_loaded_successfully
push 3
call fcn.005262e0
add esp, 8
pop edi
pop esi
pop ecx
ret
Function at 0x4fb090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x57a040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.ShopManager.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.00506810
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.ShopRuud.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.004f6060
call fcn.00506bc0
mov esi, 0xdac
nop word [eax + eax]
mov edi, esi
mov ecx, dword [edi*4 + 0x20a514c]
cmp dword [ecx + 4], 3
jne 0x4fb227
movzx eax, word [ecx + 0x78]
cmp eax, 1
je 0x4fb145
cmp eax, 6
jne 0x4fb227
cmp byte [ecx + 0xa], 0
jg 0x4fb227
cmp byte [ecx + 0x9c0], 0
jne 0x4fb227
mov edx, dword [ecx + 0x384]
mov esi, edi
test dl, 3
je 0x4fb229
mov eax, edx
and eax, 0xffc0
cmp eax, 0xc0
jne 0x4fb229
push 0xb
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x300bc3
and edx, 0xffffffc7
push eax
or edx, 4
push edi
mov dword [ecx + 0x384], edx
call fcn.005192f0
mov eax, dword [edi*4 + 0x20a514c]
mov ecx, 0xbecd98
movsx esi, word [eax + 0x2b2]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], esi
push eax
call fcn.00405650
mov ecx, dword [esp + 0x24]
mov eax, dword [0xbecd98]
cmp byte [ecx + 0xd], 0
jne 0x4fb1da
cmp esi, dword [ecx + 0x10]
jge 0x4fb1dc
mov ecx, eax
mov esi, edi
cmp ecx, eax
je 0x4fb1eb
push esi
add ecx, 0x28
call fcn.005066a0
mov ebx, dword [0x5d918c]
push esi
call fcn.00424cf0
test al, al
jne 0x4fb205
push esi
call fcn.00424da0
test al, al
je 0x4fb207
xor ebx, ebx
push 6
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x1ab206c1
push eax
push esi
mov byte [esp + 0x20], 2
mov byte [esp + 0x21], bl
call fcn.005192f0
jmp 0x4fb229
mov esi, edi
inc esi
cmp esi, 0x1194
jl 0x4fb120
push str._ServerInfo__Shop_loaded_successfully
push 3
call fcn.005262e0
mov ecx, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00529f01
mov esp, ebp
pop ebp
ret
Function at 0x4fb260
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str..DataGameServerInfo___Skill.dat
push str.GameServerInfo
call fcn.00504140
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.SkillMasterSkillTree.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.004b5dc0
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.SkillSkillElect.hit
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0x3e04
push 0
push 0xbecdcc
call fcn.0052bd20
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push connect
push 0xbc50e0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4fb424
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3e04
jne 0x4fb433
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x3e04
push 0xbecdcc
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fb442
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.SkillSkill.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.00507950
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.SkillSkillDamage.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.00507330
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.SkillSkillEnabler.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.00507700
push 0xbc507c
push 0x64
push 0xbc50e0
call fcn.0052d6d0
add esp, 0xc
push str.SkillSkillUseArea.txt
push 0x64
push 0xbc50e0
call fcn.00534636
add esp, 0xc
push 0xbc50e0
call fcn.00517800
push str._ServerInfo__Skill_loaded_successfully
push 3
call fcn.005262e0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push 0xbc50e0
push str.__s__Could_not_open_file
call fcn.00526250
push 0xbc50e0
push str.__s__The_file_were_not_configured_correctly
call fcn.00526250
push 0xbc50e0
push str.__s__Could_not_read_file
call fcn.00526250
int3
Function at 0x508250
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp + 0xc], ebx
push eax
mov ecx, 0xbf0bd4
call fcn.00405650
mov esi, dword [ebp - 4]
mov eax, dword [0xbf0bd4]
cmp byte [esi + 0xd], 0
jne 0x508287
cmp ebx, dword [esi + 0x10]
jge 0x508289
mov esi, eax
cmp esi, eax
je 0x5082de
add esi, 0x14
lea edi, [ebp - 0x80]
mov ecx, 0x1d
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
movzx eax, word [esi + 0x32c]
cmp eax, ebx
jne 0x5082b2
cmp word [esi + 0x32e], 0
ja 0x5082d3
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x628]
sub eax, dword [ecx + ebx*4]
cmp eax, dword [ebp - 0x48]
jb 0x5082de
call edi
mov ecx, dword [esi + 0x628]
mov dword [ecx + ebx*4], eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x518f60
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x518f86
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x518f97
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.004f2e10
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x518fc5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x518fa8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x518ff1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x518ff7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x519008
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x51901e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x5192f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xbf3390
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
cmp ebx, 0xdac
jl 0x51941d
cmp ebx, 0x1194
jge 0x51941d
mov eax, dword [ebx*4 + 0x20a514c]
cmp dword [eax + 0x14], 0xffffffff
je 0x51941d
cmp dword [eax + 4], 0
je 0x51941d
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x20b64e0
call fcn.0052b7a0
mov al, byte [esi]
add esp, 0xc
cmp al, 0xc3
je 0x519361
cmp al, 0xc4
jne 0x5193f1
cmp al, 0xc3
jne 0x5193a3
mov edx, dword [ebp + 8]
inc esi
mov cl, byte [edx*8 + 0x209c4ad]
mov bl, byte [esi]
lea eax, [ecx + 1]
mov byte [edx*8 + 0x209c4ad], al
lea eax, [edi - 1]
push eax
push esi
push 0x20b64e2
mov byte [esi], cl
call fcn.004deaa0
mov byte [esi], bl
mov ebx, dword [ebp + 8]
mov byte [0x20b64e0], 0xc3
lea edx, [eax + 2]
mov dword [ebp + 0x10], edx
mov byte [0x20b64e1], dl
jmp 0x5193f4
mov edx, dword [ebp + 8]
add esi, 2
mov cl, byte [edx*8 + 0x209c4ad]
mov bl, byte [esi]
lea eax, [ecx + 1]
mov byte [edx*8 + 0x209c4ad], al
lea eax, [edi - 2]
push eax
push esi
push 0x20b64e3
mov byte [esi], cl
call fcn.004deaa0
mov byte [esi], bl
mov ebx, dword [ebp + 8]
mov byte [0x20b64e0], 0xc4
lea edx, [eax + 3]
mov eax, edx
mov dword [ebp + 0x10], edx
shr eax, 8
mov byte [0x20b64e1], al
mov byte [0x20b64e2], dl
jmp 0x5193f4
mov edx, dword [ebp + 0x10]
cmp edx, 0x2000
jle 0x519433
push edx
push ebx
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 4
push 0x9f30a0
call fcn.004b2600
add esp, 0x14
push ebx
mov ecx, 0xbf3318
call fcn.00519530
push 0xbf3390
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, 0x20b64e0
call fcn.00488db0
mov eax, dword [ebx*4 + 0x20a514c]
mov esi, dword [eax + 0x10]
add esi, 0x2030
mov dword [ebp + 8], esi
cmp dword [esi + 0x20], 0
jle 0x5194a5
mov ecx, dword [esi + 0x6028]
lea eax, [ecx + edx]
cmp eax, 0x4000
jle 0x51946f
push eax
push ebx
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
jmp 0x519403
push edx
lea eax, [ecx + 0x2028]
add eax, esi
push 0x20b64e0
push eax
call fcn.0052b7a0
mov edi, dword [ebp + 0x10]
add esp, 0xc
add dword [esi + 0x6028], edi
push 0xbf3390
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edx
add esi, 0x24
push 0x20b64e0
push esi
call fcn.0052b7a0
mov edx, dword [ebp + 8]
add esp, 0xc
mov edi, dword [ebp + 0x10]
lea ecx, [edx + 0x14]
mov dword [ecx], edi
push 0
push edx
mov dword [edx + 0x18], esi
mov dword [edx + 0x1c], 1
mov dword [edx + 0x20], edi
mov dword [edx + 0x2024], 0
lea edx, [ebp - 4]
mov eax, dword [ebx*4 + 0x20a514c]
push 0
push edx
push 1
push ecx
mov dword [ebp - 4], 0
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x51948f
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x51948f
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 4
push 0x9f30a0
call fcn.004b2600
add esp, 0x10
jmp 0x519412
Function at 0x5195d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, 0xdac
jl 0x51976c
cmp ebx, 0x1194
jge 0x51976c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x519611
mov ecx, esi
jmp 0x519766
mov esi, dword [ebp + 0x10]
mov eax, dword [ebx*4 + 0x20a514c]
mov dword [ebp + 0xc], eax
mov edx, dword [esi + 0x2024]
add edx, ecx
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x2024], edx
cmp edx, ecx
jl 0x519703
mov eax, dword [esi + 0x6028]
test eax, eax
jg 0x519658
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x2028]
lea ecx, [esi + 0x24]
cmp eax, 0x2000
jle 0x5196cd
push 0x2000
push edx
push ecx
call fcn.0052b7a0
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x2000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x6028]
sub eax, 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
push eax
lea eax, [esi + 0x4028]
mov dword [esi + 0x2024], 0
push eax
lea eax, [esi + 0x2028]
push eax
call fcn.0052b7a0
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x6028], 0x2000
jmp 0x519719
push eax
push edx
push ecx
call fcn.0052b7a0
lea eax, [esi + 0x24]
mov dword [esi + 0x2024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x6028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x6028], 0
jmp 0x519712
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x51976c
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x51976c
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 4
push 0x9f30a0
call fcn.004b2600
mov ecx, dword [ebp - 4]
add esp, 0x10
push ebx
call fcn.00519530
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x51a080
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x51a0ac
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x51a0c2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x51a0d6
push 0x2024
push esi
call fcn.00529f3f
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x521490
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push esi
mov esi, ecx
test byte [esi + 0x384], 3
je 0x521695
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x388]
cmp eax, 0x1388
jb 0x521695
mov ecx, dword [esi + 0x384]
or ebx, 0xffffffff
mov eax, ecx
mov edx, 0x1194
and eax, 0xffc0
cmp eax, 0x40
jne 0x521597
test cl, 0x3c
jne 0x521597
movzx eax, word [esi + 0x2b0]
mov ecx, eax
test ax, ax
js 0x521569
cmp cx, dx
jge 0x521569
cwde
lea edx, [esp + 0xc]
push 4
mov dword [esp + 0x10], 0x33d04c1
mov eax, dword [eax*4 + 0x20a514c]
and dword [eax + 0x384], 0xfffffffc
movsx eax, word [esi + 0x2b0]
mov eax, dword [eax*4 + 0x20a514c]
and dword [eax + 0x384], 0xffff003f
movsx eax, word [esi + 0x2b0]
mov eax, dword [eax*4 + 0x20a514c]
and dword [eax + 0x384], 0xffffffc3
movsx eax, word [esi + 0x2b0]
mov eax, dword [eax*4 + 0x20a514c]
mov word [eax + 0x2b0], bx
movsx ecx, word [esi + 0x2b0]
call fcn.00526480
add esp, 4
mov ecx, dword [esi]
lea edx, [esp + 0xc]
and dword [esi + 0x384], 0xffff0000
push 4
mov word [esi + 0x2b0], bx
mov dword [esp + 0x10], 0x33d04c1
call fcn.00526480
add esp, 4
mov edx, 0x1194
mov ecx, dword [esi + 0x384]
mov eax, ecx
and eax, 0xffc0
cmp eax, 0x80
jne 0x521689
test cl, 0x3c
jne 0x521689
movzx eax, word [esi + 0x2b0]
mov ecx, eax
test ax, ax
js 0x521658
cmp cx, dx
jge 0x521658
cwde
push 4
mov dword [esp + 0x10], 0x4104c1
mov eax, dword [eax*4 + 0x20a514c]
and dword [eax + 0x384], 0xfffffffc
movsx eax, word [esi + 0x2b0]
mov eax, dword [eax*4 + 0x20a514c]
and dword [eax + 0x384], 0xffff003f
movsx eax, word [esi + 0x2b0]
mov eax, dword [eax*4 + 0x20a514c]
and dword [eax + 0x384], 0xffffffc3
movsx eax, word [esi + 0x2b0]
mov eax, dword [eax*4 + 0x20a514c]
mov word [eax + 0x2b0], bx
movsx eax, word [esi + 0x2b0]
mov eax, dword [eax*4 + 0x20a514c]
mov dword [eax + 0x288], 0xffffffff
lea eax, [esp + 0x10]
push eax
movsx eax, word [esi + 0x2b0]
push eax
call fcn.005192f0
and dword [esi + 0x384], 0xffff0000
lea eax, [esp + 0xc]
push 4
push eax
push dword [esi]
mov word [esi + 0x2b0], bx
mov dword [esi + 0x288], 0xffffffff
mov dword [esp + 0x18], 0x4104c1
call fcn.005192f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x388], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x526250
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x57a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x526278
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push 0
push eax
call fcn.0052bd20
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.00411070
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x5262c8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x5269e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x526a00
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 0xc

Function at 0x526a30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x526a8d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x526a50
mov eax, dword [esi]
jmp 0x526b67
cmp eax, 0x4e0
jb 0x526b67
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x526aa6
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
nop
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub esi, 1
jne 0x526af0
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret