joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9120
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x5771c0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
mov edi, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x8c], 2
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4d9187
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x94]
push ebp
lea ecx, [esp + 0x18]
push str._s_IsVisible
push ecx
mov byte [esp + 0x98], 3
call fcn.004020e0
mov edx, dword [esp + 0xa8]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0xa4]
add esp, 0xc
push edx
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x4d9247
push ebp
lea eax, [esp + 0x18]
push str._s_Position
push eax
call fcn.004020e0
mov ecx, dword [esp + 0xa8]
mov esi, dword [esp + 0x20]
add esp, 0xc
push ecx
push 0x40
lea edx, [esp + 0x48]
push edx
push 0x57e9e8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004019c0
lea ecx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.004d7a20
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
jmp 0x4d925a
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x134]
push 0xffff
push eax
lea eax, [esp + 0x24]
push eax
push 0x50000000
push 0x57e9e8
call edx
lea eax, [esi - 0x10]
mov byte [esp + 0x8c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d92a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x8c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d92c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x8c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d92ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d931a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0053042b
add esp, 0x7c
ret 0x10
Function at 0x4ea820
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x578e13
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x158]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x150], ebx
call fcn.00518333
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4ea88b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov esi, dword [esi + 0x14]
cmp dword [esi - 0xc], ebx
mov edi, dword [esp + 0x15c]
mov byte [esp + 0x150], 1
je 0x4ea94e
push 0x12c
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00530d30
add esp, 0xc
push esi
push 0x12c
lea edx, [esp + 0x20]
push edx
push 0x57e9e8
push edi
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4ea8f0
sub eax, edx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401840
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jle 0x4ea94e
lea esi, [eax - 0x10]
push esi
call fcn.004016a0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
mov byte [esp + 0x150], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ea9df
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4ea9df
push 0x592ec8
push edi
call fcn.00532258
add esp, 8
cmp eax, ebx
je 0x4ea998
lea edx, [eax + 1]
cmp edx, ebx
jne 0x4ea976
xor eax, eax
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401840
jmp 0x4ea9a9
mov eax, edx
lea esi, [eax + 1]
jmp 0x4ea980
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4ea980
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401840
jmp 0x4ea9a9
lea ecx, [esp + 0x15c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00402060
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.004016a0
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x150], bl
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4ea9df
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x150], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4eaa02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0053042b
add esp, 0x140
ret 8
Function at 0x4eb840
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x572470
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4eb886
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x14]
push str.rn__d_single
push edx
mov byte [esp + 0x28], 1
call fcn.004020e0
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
add esp, 0xc
push edi
push 0
push esi
push str.RightInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebp, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4eb8ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4eb910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x4eb930
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x578f8c
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc8]
lea ecx, [esp + 0x1c]
call fcn.00521e16
mov eax, dword [edi]
push eax
lea ecx, [esp + 0x38]
push str._s.
push ecx
mov dword [esp + 0xcc], 0
call fcn.00530c72
add esp, 0xc
push 0
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
call fcn.00521ea2
test eax, eax
je 0x4ebaba
lea ecx, [esp + 0x1c]
call fcn.00521c1a
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.00521ddd
test eax, eax
jne 0x4ebab2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.005220d1
mov esi, eax
push 0x584cec
lea ecx, [esp + 0x1c]
push edi
push ecx
mov byte [esp + 0xcc], 1
call fcn.00402100
push esi
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0xd8], 2
call fcn.004065f0
add esp, 0x18
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xc0], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4eba35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xc0], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4eba5d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x20]
call eax
test eax, eax
je 0x4eba7f
lea ecx, [esp + 0x10]
push ecx
call fcn.004eb930
add esp, 4
jmp 0x4eba8a
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xc0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ebab2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x4eb9b2
lea ecx, [esp + 0x1c]
call fcn.00521b4a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00521e3a
mov eax, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0053042b
add esp, 0xb4
ret
Function at 0x4ec7f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x579220
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebp
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x84], 0
call fcn.00518333
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4ec855
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x94]
push ecx
lea edx, [esp + 0x14]
push str.rn__d
push edx
mov byte [esp + 0x90], 1
call fcn.004020e0
push 0x64
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00530d30
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0x28]
add esp, 0x18
push edi
push 0x64
lea ecx, [esp + 0x1c]
push ecx
push 0x57e9e8
push esi
push str.RightInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.004019c0
lea eax, [esi - 0x10]
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ec8e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x84], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ec910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0053042b
add esp, 0x78
ret
Function at 0x4ec930
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x94
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
push esi
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
call fcn.00500190
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 8], esi
jne 0x4ec98b
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0053042b
add esp, 0x94
ret
push ebx
push 0x800000
call fcn.0050fd28
push esi
mov ebx, eax
call fcn.004ffd30
add esp, 8
test eax, eax
mov dword [esp + 8], eax
je 0x4ecaf2
push ebp
push edi
jmp 0x4ec9b5
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
push 0
push edx
push esi
call fcn.00500780
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4ecac5
push 0x80
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00530d30
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4ec9e8
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4eca00
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4eca20
mov edx, dword [esp + 0x10]
mov cx, word [0x584cec]
mov eax, dword [edx + 0xc]
mov word [edi], cx
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4eca40
lea edi, [esp + 0x20]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x4eca52
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x800000
mov ecx, eax
and ecx, 3
push 0
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00530d30
push 0x800000
push ebx
push ebp
call fcn.00500f40
mov esi, eax
push ebp
mov byte [ebx + esi], 0
call fcn.00500690
lea eax, [esp + 0x3c]
push 0x594530
push eax
call fcn.00533f90
mov edi, eax
add esp, 0x24
test edi, edi
je 0x4ecac1
push edi
push esi
push 1
push ebx
call fcn.00536144
add esp, 0x10
cmp esi, eax
push edi
jne 0x4ecadc
call fcn.00533b3e
add esp, 4
mov esi, dword [esp + 0x14]
push esi
call fcn.004ffd30
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4ec9b1
jmp 0x4ecaf0
mov dword [esp + 0x1c], 0xffffffff
call fcn.00533b3e
mov esi, dword [esp + 0x18]
add esp, 4
pop edi
pop ebp
push esi
call fcn.005005f0
push ebx
call fcn.0050fd2d
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x18]
add esp, 8
pop ebx
pop esi
xor ecx, esp
call fcn.0053042b
add esp, 0x94
ret
Function at 0x4ee650
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
xor eax, eax
lea esi, [ecx + 0x10]
push esi
push 0xa
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov word [esp + 0x14], ax
lea eax, [esp + 0xc]
push eax
push 0x57e9e8
push str.Cur_Sel
push str.Channel_Array
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4ee6e0
lea ecx, [esp + 4]
push ecx
call fcn.00531b2c
add esp, 4
test eax, eax
jge 0x4ee6a8
or ecx, 0xffffffff
jmp 0x4ee6b2
cmp eax, 9
jle 0x4ee6f6
mov ecx, 9
cmp eax, ecx
je 0x4ee6f6
push ecx
xor eax, eax
lea edx, [esp + 8]
push 0x57f5f8
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov word [esp + 0x18], ax
call fcn.00530c72
add esp, 0xc
push esi
lea eax, [esp + 8]
push eax
jmp 0x4ee6e6
push esi
push 0x594680
push str.Cur_Sel
push str.Channel_Array
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x10]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.0053042b
add esp, 0x10
ret

Function at 0x4ee710
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x41c
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
mov ebx, dword [esp + 0x424]
test ebx, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x434]
mov esi, ecx
mov dword [esp + 0x10], edi
mov ebp, 1
jl 0x4ee7d7
cmp ebx, 9
jle 0x4ee751
lea ebx, [ebp + 8]
push 0x400
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00530d30
xor eax, eax
push ebx
lea ecx, [esp + 0x424]
push str.Array__d
push ecx
mov dword [esp + 0x42c], eax
mov dword [esp + 0x430], eax
mov dword [esp + 0x434], eax
mov dword [esp + 0x438], eax
mov dword [esp + 0x43c], eax
call fcn.00530c72
add esp, 0x18
add esi, 0x10
push esi
push 0x400
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x420]
push eax
push str.Channel_Array
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
mov ebp, eax
test ebp, ebp
je 0x4ee80a
test ebx, ebx
mov ecx, 0x100
lea esi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
jge 0x4ee7ed
mov edi, dword [esp + 0x10]
xor eax, eax
lea esp, [esp]
mov dword [edi + eax*4], eax
add eax, 1
cmp eax, 0x100
jl 0x4ee7e0
mov ecx, dword [esp + 0x428]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0053042b
add esp, 0x41c
ret 8
push esi
push 1
push 0x57e9e8
lea ecx, [esp + 0x420]
push ecx
push str.Channel_Array
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructA]
jmp 0x4ee7d7
Function at 0x4ee830
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x40]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
push eax
mov ebx, ecx
lea ecx, [esp + 0x14]
push str.StrWnd__d
push ecx
xor ebp, ebp
call fcn.00530c72
add esp, 0xc
xor eax, eax
add ebx, 0x10
push ebx
push 0x14
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
push 0x5814a0
lea eax, [esp + 0x20]
push eax
push str.WndChan_Info
lea edi, [ebp + 1]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x4ee8df
lea ecx, [esp + 0x24]
push ecx
call fcn.00531b2c
mov edi, eax
add esp, 4
cmp edi, 4
jg 0x4ee8cd
cmp edi, 1
jge 0x4ee8f5
push ebx
push 0x5814a0
lea edx, [esp + 0x18]
mov edi, 1
push edx
jmp 0x4ee8ea
push ebx
push 0x5814a0
lea eax, [esp + 0x18]
push eax
push str.WndChan_Info
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0xd8
lea ecx, [esi + 0x10]
push 0
push ecx
mov dword [esi + 0xc], edi
call fcn.00530d30
add esp, 0xc
cmp edi, 1
je 0x4ee969
jle 0x4ee991
cmp edi, 4
jg 0x4ee991
mov edi, 0x258
mov edx, 0x190
mov ecx, 0x12c
mov ebx, 0x320
mov dword [esi + 0x54], edi
mov dword [esi + 0x6c], edi
pop edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], edx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], edx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x60], edx
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053042b
add esp, 0x2c
ret 8
pop edi
mov dword [esi + 0x20], 0x320
mov dword [esi + 0x24], 0x258
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053042b
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0053042b
add esp, 0x2c
ret 8
Function at 0x4f4a40
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x790
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0x78c], eax
push esi
push edi
mov ecx, 0x16e
lea esi, [ebp + 8]
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x21c], 0
mov esi, dword [ebp + 0x5c0]
mov dword [esp + 0xc], 0
mov edi, 1
jne 0x4f4ae3
lea eax, [esp + 0x600]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4f4ac2
pop edi
pop esi
mov ecx, dword [esp + 0x78c]
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x5bc
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0xcc]
mov cl, byte [eax]
mov byte [edx], cl
add eax, edi
add edx, edi
test cl, cl
jne 0x4f4ad7
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x22c]
lea eax, [esp + 0x194]
push eax
lea ecx, [esp + 0x158]
push ecx
push edx
lea eax, [esp + 0xe0]
push eax
call dword [sym.imp.dhnetsdk.dll_Ordinal_5_3]
test eax, eax
jle 0x4f4b64
movzx ecx, byte [esp + 0x40]
movzx edx, byte [esp + 0x41]
mov dword [esi + 0x320], ecx
movzx ecx, byte [esp + 0x44]
mov dword [esi + 0x324], edx
mov dword [esi + 0x318], ecx
mov dword [esi + 0x334], edi
mov dword [esi + 0x338], 0
mov dword [esi + 0x330], 0
mov dword [esi + 0x328], edi
mov dword [esi + 0x32c], edi
mov dword [esi + 0x31c], edi
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x794]
pop edi
mov dword [esi + 0x1cc], edx
pop esi
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x5bc

Function at 0x4f6360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5797a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5d72e0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.004fb9d0
lea edi, [esi + 0x48]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esi], vtable.CDHConnect.0
call fcn.0041c510
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
lea eax, [esi + 0x10]
push eax
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, esi
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 8], 2
mov dword [esi + 0xc], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004f49b0
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
Function at 0x4f8a10
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe94
mov eax, dword [0x5d72e0]
xor eax, esp
mov dword [esp + 0xe90], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x174
lea eax, [esp + 0x5dc]
mov ecx, 0x16e
lea esi, [ebp + 8]
lea edi, [esp + 0x754]
push 0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x5c0]
push eax
mov dword [esp + 0x18], 0
call fcn.00530d30
add esp, 0xc
cmp dword [esp + 0x924], 0
jne 0x4f8ace
lea ecx, [esp + 0xd08]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea edx, [esp + 0x7d4]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4f8aab
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe90]
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x5bc
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x7d4]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x4f8ac0
push 0
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x8a0]
push eax
mov eax, dword [esp + 0x93c]
lea ecx, [esp + 0x864]
push ecx
lea edx, [esp + 0x7a8]
push edx
push eax
lea ecx, [esp + 0x7f0]
push ecx
call dword [sym.imp.HHNetClient.dll_Ordinal_3_5]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x5d8]
push edx
push eax
call dword [sym.imp.HHNetClient.dll_Ordinal_5_5]
mov ecx, dword [esp + 0x6c4]
mov dword [esi + 0x318], ecx
mov dword [esi + 0x1c4], ecx
mov dword [esp + 0xa68], ecx
mov dword [esp + 0x914], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1cc], eax
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
mov ecx, 0x16e
lea esi, [esp + 0x750]
lea edi, [esp + 0x20]
push edx
lea eax, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebx + 0x4c]
call fcn.004f8270
mov ecx, dword [esp + 0xe9c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053042b
mov esp, ebp
pop ebp
ret 0x5bc