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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51cee1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x10]
je 0x51cfbf
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
push 0x40
lea eax, [ebp - 0x58]
mov dword [ebp - 8], 0
push eax
push esi
call ebx
test eax, eax
je 0x51cfbf
mov eax, 0x5a4d
cmp word [ebp - 0x58], ax
jne 0x51cfbf
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push esi
call edi
cmp eax, 0xffffffff
je 0x51cfbf
push 0
lea eax, [ebp - 8]
push eax
push 0xf8
lea eax, [ebp - 0x150]
push eax
push esi
call ebx
test eax, eax
je 0x51cfbf
mov eax, 0x8664
cmp word [ebp - 0x14c], ax
jne 0x51cfd9
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push dword [ebp - 0x1c]
push esi
call edi
cmp eax, 0xffffffff
je 0x51cfbf
push 0
lea eax, [ebp - 8]
push eax
push 0x108
lea eax, [ebp - 0x258]
push eax
push esi
call ebx
test eax, eax
je 0x51cfbf
mov eax, dword [ebp - 0x1b0]
test eax, eax
je 0x51cfbf
mov edi, dword [ebp - 0x1ac]
test edi, edi
jne 0x51cfed
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x51cfbf
mov edi, dword [ebp - 0xb4]
test edi, edi
je 0x51cfbf
lea ecx, [edi + eax]
cmp ecx, dword [ebp - 0x14]
ja 0x51cfbf
cmp ecx, eax
jb 0x51cfbf
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x51cfbf
lea eax, [ebp - 0x259]
mov byte [ebp - 0x259], 0
push eax
mov eax, dword [ebp - 0x260]
mov ecx, eax
push eax
push edi
call fcn.0051bbe0
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 8]
push 0
push eax
push edi
push dword [ecx]
push esi
call ebx
test eax, eax
je 0x51cfbf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
Function at 0x51d1f0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x150
push ebx
push esi
xor esi, esi
add edx, 0x1f
push edi
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x150], ecx
inc esi
cmp esi, 0x10
jl 0x51d204
lea eax, [ebp - 0x148]
mov edx, 0x40
nop
mov ecx, dword [eax + 0x2c]
lea eax, [eax + 4]
xor ecx, dword [eax + 0x14]
xor ecx, dword [eax - 0xc]
xor ecx, dword [eax - 4]
rol ecx, 1
mov dword [eax + 0x34], ecx
sub edx, 1
jne 0x51d240
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov edx, ecx
mov eax, esi
and eax, edi
rol edx, 5
mov ecx, edi
not ecx
and ecx, ebx
or ecx, eax
mov eax, dword [ebp - 4]
add edx, ecx
add edx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 8]
add eax, 0x5a827999
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
mov edi, dword [ebp - 0xc]
inc eax
ror esi, 2
mov ecx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x14
jl 0x51d276
mov dword [ebp - 4], 0x14
mov eax, ebx
rol edx, 5
xor eax, esi
xor eax, edi
add edx, eax
mov eax, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 8]
add eax, 0x6ed9eba1
mov dword [ebp - 8], ebx
add edx, eax
mov ebx, esi
mov eax, dword [ebp - 4]
mov esi, edi
inc eax
ror esi, 2
mov dword [ebp - 4], eax
mov edi, ecx
mov ecx, edx
cmp eax, 0x28
jl 0x51d2c2
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x28
mov ecx, esi
rol edx, 5
or ecx, edi
mov eax, esi
and eax, edi
and ecx, ebx
or ecx, eax
add edx, 0x8f1bbcdc
mov eax, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 8], ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0xc]
add ecx, dword [ebp + eax*4 - 0x150]
inc eax
add edx, ecx
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x3c
jl 0x51d305
mov dword [ebp - 4], 0x3c
nop dword [eax]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor eax, esi
rol edx, 5
add edx, dword [ebp - 8]
xor eax, edi
add eax, 0xca62c1d6
mov dword [ebp - 8], ebx
add eax, dword [ebp + ecx*4 - 0x150]
mov ebx, esi
add edx, eax
mov esi, edi
mov edi, dword [ebp - 0xc]
mov eax, ecx
inc eax
ror esi, 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
cmp eax, 0x50
jl 0x51d350
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, edx
add dword [ecx + 4], edi
add dword [ecx + 8], esi
add dword [ecx + 0xc], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add dword [ecx + 0x10], eax
xor eax, eax
pop edi
pop esi
mov word [ecx + 0x1c], ax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51d3b0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x51d3c1
mov eax, 1
pop ebp
ret
mov dword [eax + 0x14], 0
xor ecx, ecx
mov dword [eax + 0x18], 0
mov word [eax + 0x1c], cx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
pop ebp
ret
Function at 0x535e60
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bdb8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x596334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edx, 2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [eax]
mov eax, ecx
add ecx, 0xa
shr eax, 6
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455dbc
mov ecx, dword [ebp - 0x2c]
mov edi, eax
add ecx, ecx
push ecx
push 0
push edi
call fcn.004b0810
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push edi
push SysReAllocString
push dword [ebp + 0xc]
push esi
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ecx, edi
mov dword [ebp - 0x18], 0
mov esi, eax
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x535f04
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.00419030
push 2
push edi
mov dword [ebp - 4], 0
call fcn.0045590a
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edi, dword [ebp - 0x28]
test esi, esi
je 0x536006
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, edi
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
nop dword [eax]
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
lea ecx, [ecx + edx*2]
cmp eax, ecx
je 0x535fd4
cmp word [eax], 0xa
jne 0x535fcc
cmp ebx, 8
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub eax, ecx
sar eax, 1
cmp edx, eax
jb 0x536054
mov ecx, edx
lea esi, [eax + eax]
sub ecx, eax
mov edx, 1
cmp ecx, edx
cmovb edx, ecx
cmp ebx, 8
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmovae ecx, edi
sub ebx, edx
mov dword [ebp - 0x18], ebx
add ecx, esi
sub ebx, eax
lea eax, [ebx*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.004b1050
mov ebx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp ebx, 8
cmovae eax, edi
add eax, esi
jmp 0x535f46
add eax, 2
jmp 0x535f50
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi]
cmp edx, ecx
jbe 0x535fe1
xor esi, esi
jmp 0x536006
cmp ebx, 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, edi
push eax
push ecx
push dword [ebp - 0x38]
call fcn.004e51db
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov dword [esi], eax
mov esi, dword [ebp - 0x3c]
cmp ebx, 8
jb 0x536036
lea ebx, [ebx*2 + 2]
mov eax, edi
cmp ebx, 0x1000
jb 0x53602c
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x536059
push ebx
push edi
call fcn.0045590a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455d1a
mov esp, ebp
pop ebp
ret
call fcn.00418c70
call fcn.004ba344
int3
Function at 0x402910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [edi]
test eax, eax
je 0x40291f
push eax
call fcn.00420ede
add esp, 4
push esi
push str.DeleteMe
push 0x83
push 0
mov dword [edi + 4], 0
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40294c
mov eax, 0x469d1e
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402945
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00420ee3
push esi
push ebx
push eax
mov dword [edi], eax
call fcn.00449d00
mov eax, dword [edi]
add esp, 0x10
pop ebx
mov dword [edi + 4], esi
pop esi
ret

Function at 0x4032b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
push 0x47dcf0
mov edi, str.launcher.new
lea esi, [esp + 0xc]
call fcn.00402620
mov eax, dword [esp + 0x10]
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x4032e9
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40331a
cmp dword [esp + 0x20], esi
jb 0x403307
mov eax, dword [esp + 0xc]
push eax
call fcn.00420ede
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00441b4d
add esp, 0x20
ret
cmp dword [esp + 0x20], esi
jb 0x40332d
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00420ede
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00441b4d
add esp, 0x20
ret
Function at 0x403a20
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x461132
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x469ee0
mov dword [edi + 0x54], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 4]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00404850
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.00405080
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x481ee0]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.00404930
test eax, eax
jne 0x403b21
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x403b10
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x403b21
push ebx
call fcn.004030a0
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x405080
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x45fb6b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045c1be
push 4
mov dword [esp + 0x20], 0
call fcn.00420eb3
mov edi, eax
add esp, 4
test edi, edi
je 0x405100
call fcn.0045c0da
mov dword [edi], eax
call fcn.0045bf0e
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0045be80
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4050f5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0045bea1
jmp 0x405102
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40c480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c499
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c4d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40c4d0
lea ebx, [ebx]
cmp esi, eax
jae 0x40c4d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40c4c0
cmp esi, eax
jb 0x40c4da
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40c9ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push edi
push str.OnDocumentComplete__
mov esi, ecx
call ebp
cmp dword [0x481ecc], 0
jne 0x40c9d3
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x32
push 1
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push 0xc8
push 2
push ecx
call edi
call fcn.004241d0
mov ecx, dword [eax + 4]
call fcn.0040b1d0
push 0
push 0
push 0x4059c0
call fcn.00443975
add esp, 0xc
mov dword [0x48121c], eax
call fcn.0040d090
call fcn.0040d190
mov dword [0x481ecc], 1
cmp byte [0x481230], 1
jne 0x40c9f7
push str.360_wnd_login.
call ebp
push 0x481238
call ebp
push str.WndAuth___True
call ebp
pop edi
pop esi
pop ebp
ret 8
push str.WndAuth___False
call ebp
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40ca3e
sub esp, 0x1c
mov ecx, esp
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
mov dword [esp + 0x30], esp
mov byte [ecx + 4], 0
lea ebp, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40ca26
sub eax, ebp
push eax
push edi
call fcn.004017f0
push esi
call fcn.0040d6b0
pop edi
pop esi
pop ebp
ret 8
Function at 0x40d090
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x46097b
mov eax, dword fs:[0]
push eax
sub esp, 0x820
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0x828]
mov dword fs:[0], eax
call fcn.0040a8d0
xor ebx, ebx
push 0xffffffffffffffff
add eax, 0xcc
push ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004015b0
mov dword [esp + 0x830], ebx
cmp dword [esp + 0x1c], ebx
jbe 0x40d14e
push 0x7ff
lea eax, [esp + 0x29]
push ebx
push eax
mov byte [esp + 0x30], bl
call fcn.00445a00
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x20], 0x10
jae 0x40d124
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
push str.setiframeurl__s_
push ecx
call fcn.004437c1
add esp, 0xc
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.0040c7b0
cmp dword [esp + 0x20], 0x10
jb 0x40d162
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00420ede
add esp, 4
mov ecx, dword [esp + 0x828]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x81c]
xor ecx, esp
call fcn.00441b4d
add esp, 0x82c
ret
Function at 0x413530
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x460f23
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47c824]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
push 0x47dcf0
mov edi, str.version.ini
lea esi, [esp + 0x54]
call fcn.00402620
add esp, 4
xor ebx, ebx
mov dword [esp + 0xb0], ebx
mov eax, dword [esp + 0x54]
mov ebp, 0x10
cmp dword [esp + 0x68], ebp
jae 0x41359d
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4135cd
push str.version.ini_read_fail
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esp + 0x68], ebp
jb 0x4135c6
mov eax, dword [esp + 0x54]
push eax
call fcn.00420ede
add esp, 4
xor eax, eax
jmp 0x4136c2
cmp dword [esp + 0x68], ebp
mov edi, dword [esp + 0x54]
jae 0x4135db
lea edi, [esp + 0x54]
lea ecx, [esp + 0x6c]
push ecx
call fcn.0041dd70
mov byte [esp + 0xb0], 1
push 7
mov edi, 0xf
push str.Version
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.004017f0
mov byte [esp + 0xb0], 2
push 4
push str.Game
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.004017f0
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x70]
mov byte [esp + 0xb4], 3
call fcn.0041de70
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
cmp dl, bl
jne 0x413651
sub ecx, esi
push ecx
push eax
mov ecx, 0x47dcb8
call fcn.004017f0
cmp dword [esp + 0x30], ebp
jb 0x41367b
mov eax, dword [esp + 0x1c]
push eax
call fcn.00420ede
add esp, 4
cmp dword [esp + 0x4c], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jb 0x41369a
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00420ede
add esp, 4
lea esi, [esp + 0x6c]
mov byte [esp + 0xb0], bl
call fcn.0041de10
cmp dword [esp + 0x68], ebp
jb 0x4136bd
mov edx, dword [esp + 0x54]
push edx
call fcn.00420ede
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00441b4d
add esp, 0xa0
ret
Function at 0x413b30
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x418
mov eax, dword [0x47c824]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x41c]
push ebx
mov ebx, edx
cmp dword [ebx + 0x18], 0x10
push ebp
mov dword [esp + 0x10], eax
push esi
lea eax, [ebx + 4]
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
jb 0x413b6c
mov eax, dword [eax]
push eax
lea edx, [esp + 0x24]
push str.GetLoginIpPortByName_name___s
push edx
call fcn.004437c1
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [0x481cf4]
mov ebp, dword [0x481cf8]
cmp edi, ebp
jbe 0x413ba5
call fcn.00441eb0
mov ebp, dword [0x481cf8]
cmp dword [0x481cf4], ebp
mov esi, ebp
jbe 0x413bba
call fcn.00441eb0
mov ebp, dword [0x481cf8]
cmp esi, edi
je 0x413cd7
cmp edi, ebp
jb 0x413bd1
call fcn.00441eb0
mov ebp, dword [0x481cf8]
mov ecx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x14]
mov edx, 0x10
cmp dword [ecx + 0x18], edx
jb 0x413bea
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
jmp 0x413bee
mov ecx, dword [esp + 0x10]
mov esi, dword [edi + 0x14]
mov eax, esi
cmp eax, esi
jae 0x413bf7
cmp esi, ebx
mov eax, esi
jb 0x413bff
mov eax, ebx
cmp dword [edi + 0x18], edx
jb 0x413c09
mov edx, dword [edi + 4]
jmp 0x413c0c
lea edx, [edi + 4]
call fcn.00401040
test eax, eax
jne 0x413c22
cmp esi, ebx
jb 0x413c22
cmp esi, ebx
setne al
test eax, eax
je 0x413c40
cmp edi, ebp
jb 0x413c31
call fcn.00441eb0
mov ebp, dword [0x481cf8]
mov ebx, dword [esp + 0x14]
add edi, 0xfc
jmp 0x413ba5
cmp edi, ebp
jb 0x413c49
call fcn.00441eb0
mov ebx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0xc4]
push ecx
mov ecx, ebx
call fcn.004015b0
cmp edi, dword [0x481cf8]
jb 0x413c6c
call fcn.00441eb0
mov esi, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0
add edi, 0xe0
push edi
mov ecx, esi
call fcn.004015b0
mov eax, 0x10
cmp dword [esi + 0x18], eax
jb 0x413c91
mov edx, dword [esi + 4]
jmp 0x413c94
lea edx, [esi + 4]
cmp dword [ebx + 0x18], eax
jb 0x413c9e
mov ecx, dword [ebx + 4]
jmp 0x413ca1
lea ecx, [ebx + 4]
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x18], eax
mov eax, dword [esp + 0x10]
jb 0x413cb0
mov eax, dword [eax]
push edx
push ecx
push eax
lea ecx, [esp + 0x2c]
push str.GetLoginIpPortByName_name___s_ip___s_port___s
push ecx
call fcn.004437c1
add esp, 0x14
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
jmp 0x413cd9
xor eax, eax
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00441b4d
add esp, 0x418
ret