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

Disassembly:
push 0xffffffffffffffff
push 0x424f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x42d740]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [0x4322ec], ebx
push str..moveinfo.ini
push 0x4321d4
lea ecx, [esp + 0x14]
push 0x42b170
push ecx
mov dword [esp + 0x28], ebx
call fcn.0041e13f
mov eax, dword [0x42d740]
add esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call fcn.0041e9d8
push str.SIGN
lea ecx, [esp + 0xc]
call fcn.0041eb8a
lea ecx, [esp + 4]
call fcn.0041e9d8
push str.MOVE
lea ecx, [esp + 8]
call fcn.0041eb8a
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x40463b
call fcn.00403440
jmp 0x404697
push 0x42bb3c
mov dword [0x431b1c], 1
call fcn.00402960
push 0x431b10
push 0x431aac
mov dword [0x431b10], ebx
mov dword [0x431b14], ebx
call fcn.00403590
add esp, 0xc
push ebx
call fcn.00403300
mov edx, dword [0x431b10]
push edx
push 0x42bb30
call fcn.00402960
mov eax, dword [0x431b14]
push eax
push 0x42bb30
call fcn.00402960
add esp, 0x10
lea ecx, [esp + 4]
mov byte [esp + 0x18], 1
call fcn.0041ea4d
lea ecx, [esp + 8]
mov byte [esp + 0x18], bl
call fcn.0041ea4d
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.0041ea4d
mov ecx, dword [esp + 0x10]
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4048c0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read file on windows

Disassembly:
sub esp, 0x1c4
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x115]
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.kz.21ec2020_3aea_1069_a2dd_08002b30309d
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ctrl.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404979
mov eax, 0x80
push 0
push eax
push 3
push 0
push 1
lea ecx, [esp + 0x24]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4049a5
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c4
ret
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x11c]
push 0xb9
push eax
push esi
call ebp
mov edi, dword [esp + 0x1d4]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x544
push edi
push esi
call ebp
cmp dword [edi], 0x436bacec
jne 0x404a1d
cmp dword [edi + 4], 0x766c5bce
jne 0x404a1d
cmp dword [edi + 0x540], 0x1e6ce73b
jne 0x404a1d
add edi, 0x2c
push 0x514
push edi
call fcn.004047d0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c4
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x1c4
ret
Function at 0x404a40
Capabilities:
Check if file exists
Get common file path
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x1c4
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x2e
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], 0
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x14], eax
call fcn.00413204
push eax
call fcn.004132e0
add esp, 8
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.kz.21ec2020_3aea_1069_a2dd_08002b30309d
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x1d8]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ctrl.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp], 0x436bacec
mov dword [ebp + 4], 0x766c5bce
mov dword [ebp + 0x540], 0x1e6ce73b
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404b28
mov eax, 0x80
push 0
push eax
push 2
push 0
push 1
lea ecx, [esp + 0x28]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404c38
xor esi, esi
call fcn.004132ed
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0xb8
mov byte [esp + esi + 0x117], dl
jl 0x404b4e
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x120]
push 0xb9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], 0xb9
jne 0x404c31
test eax, eax
je 0x404c31
add ebp, 0x2c
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 2
cmp esi, 0x512
jge 0x404bd2
call fcn.004132ed
cdq
mov ecx, 0xff
idiv ecx
inc esi
cmp esi, 0x512
mov byte [esi + ebp - 1], dl
jl 0x404bb8
push 0x514
push ebp
call fcn.004046e0
mov eax, dword [esp + 0x1e0]
add esp, 8
lea edx, [esp + 0x10]
push 0
push edx
push 0x544
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x514
push ebp
mov esi, eax
call fcn.004047d0
mov eax, dword [esp + 0x18]
add esp, 8
cmp eax, 0x544
jne 0x404c31
test esi, esi
je 0x404c31
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c4
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c4
ret
Function at 0x404cc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x334
push ebx
push ebp
push edi
push 0x80
call fcn.0041ef11
mov ebp, eax
mov ecx, 0x20
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x241]
mov byte [esp + 0x240], al
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x432384
lea eax, [esp + 0x240]
push 0x104
push eax
push 0
push str.CheckMacAddr
push str.MACADDR
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x10]
mov byte [esp + 0x138], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x139]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4321d4
lea ecx, [esp + 0x13c]
push str._smoveLicense.ini
push ecx
stosb byte es:[edi], al
call fcn.0041269a
lea edx, [esp + 0x1c]
lea eax, [esp + 0x144]
push edx
push eax
call fcn.00406910
mov ecx, dword [esp + 0x358]
add esp, 0x14
mov byte [ebp], 1
mov byte [ebp + 1], 1
push 0x80
push ebp
push 0x28
push 2
push ecx
call dword [0x432300]
lea edx, [esp + 0x10]
push edx
push 0
push str.InputNumber
push str.ClientInput
call fcn.00406570
mov edx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
mov dword [esp + 0xc], edx
test edx, edx
stosb byte es:[edi], al
jle 0x404e87
push esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push str.InputLic_d
push eax
call fcn.0041269a
mov ecx, 0x20
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea edi, [esp + 0x24c]
or ecx, 0xffffffff
mov byte [ebp], 1
mov byte [ebp + 1], 2
mov dword [ebp + 0x68], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x20]
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x6c]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp + 2]
and ecx, 3
push 0x64
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x50]
push 0
push ecx
push str.ClientInput
call fcn.00406450
mov edx, dword [esp + 0x36c]
add esp, 0x24
push 0x80
push ebp
push 0x28
push 2
push edx
call dword [0x432300]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push 0
push ecx
push str.ClientInput
call fcn.00406680
mov eax, dword [esp + 0x20]
add esp, 0x10
inc ebx
cmp ebx, eax
jl 0x404dcf
pop esi
lea edx, [esp + 0x10]
push edx
push 0
push str.InputNumber
push str.ClientInput
call fcn.00406680
add esp, 0x10
mov ecx, 0x20
xor eax, eax
mov edi, ebp
push 0x80
push ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34c]
push 0x28
push 2
push eax
mov byte [ebp], 1
mov byte [ebp + 1], 0xa
call dword [0x432300]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x138]
push ecx
push edx
call fcn.00406ab0
lea eax, [esp + 0x18]
push eax
call fcn.00406c70
add esp, 0xc
test ebp, ebp
je 0x404ef7
push ebp
call fcn.0041ef3a
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x334
ret
Function at 0x405110
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
mov ebp, dword [esp + 0x138]
push esi
test ebp, ebp
push edi
jne 0x405132
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x405163
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405272
push ebp
call fcn.004133ce
lea ecx, [esp + 0x38]
mov esi, eax
push ecx
call fcn.004133ce
add esp, 8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4051bb
test cl, cl
je 0x4051b7
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4051bb
add eax, 2
add esi, 2
test cl, cl
jne 0x405193
xor eax, eax
jmp 0x4051c0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40521d
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x405259
push ebp
call fcn.004133ce
lea ecx, [esp + 0x38]
mov esi, eax
push ecx
call fcn.004133ce
add esp, 8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x405214
test cl, cl
je 0x405210
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x405214
add eax, 2
add esi, 2
test cl, cl
jne 0x4051ec
xor eax, eax
jmp 0x405219
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4051c4
mov eax, dword [esp + 0x18]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x13c]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x406910
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
test ebx, ebx
push edi
je 0x406a7c
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x406a7c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406942
mov edi, 0x80
push 0
push edi
push 4
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406a7c
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push eax
push ecx
push 0xc
push edx
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x3765
jne 0x40699b
cmp word [esp + 0x1c], 0xd65d
je 0x4069d2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4069d2
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push edi
push 2
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406a7c
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ebx
jne 0x4069e9
mov eax, 0x104
add eax, eax
push eax
mov dword [ebp + 0x20], eax
call fcn.0041ef11
mov ecx, dword [ebp + 0x20]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebp + 0x1c], edi
push ebp
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x34], 0
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00406400
add esp, 8
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov ecx, dword [ebp + 0x1c]
inc eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
push 0
push eax
push edi
push ecx
push esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
add ebx, dword [esp + 0x28]
cmp ebx, edi
je 0x406a54
cmp dword [esp + 0x2c], 5
jl 0x406a1d
push ebp
call fcn.00406430
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x406a86
mov edx, dword [ebp + 0x1c]
push edx
call fcn.0041ef3a
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
push ebp
call fcn.00406400
mov eax, dword [ebp + 0x1c]
push edi
push eax
call fcn.004068c0
push ebp
call fcn.00406430
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x406ab0
Capabilities:
Check if file exists
Delete file
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
test esi, esi
je 0x406b0b
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x406b0b
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x406b0b
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x406b0b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406ae5
mov eax, 0x80
push 0
push eax
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x406b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov edi, dword [ebp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], 0x3765
mov word [esp + 0x20], 0xd65d
push eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x24]
push 0xc
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], 0xc
je 0x406b63
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret
mov edi, dword [ebp + 0x20]
push ebx
mov ebx, dword [esp + 0x28]
xor eax, eax
push edi
xor esi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], eax
call fcn.0041ef11
mov edx, eax
mov ecx, edi
mov dword [esp + 0x1c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00406400
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 0x1c]
push ebx
push edi
push eax
call fcn.00406860
push ebp
call fcn.00406430
add esp, 0x18
xor ebp, ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push 0
push ecx
push ebx
push edi
push edx
inc ebp
mov dword [esp + 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [esp + 0x34]
cmp esi, ebx
je 0x406be1
cmp ebp, 5
jl 0x406bb7
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop ebx
je 0x406c12
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x18]
push edi
call fcn.0041ef3a
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
push edi
mov esi, 1
call fcn.0041ef3a
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x406e60
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10c
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push str.in_exp_decryptseed
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
mov esi, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov ebx, dword [esp + 0x11c]
push esi
push eax
push ebx
lea ecx, [esp + 0x20]
push str.sn_in_is__ls_seed_out_is__ls_check_is__ld
push ecx
call fcn.0041269a
add esp, 0x14
lea edx, [esp + 0x14]
push edx
call edi
cmp esi, 0x818ea29
je 0x406ed7
push 0x42bf64
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret
push ebp
push 0
push 0x64
call fcn.0040bc80
push 0
mov dword [eax + 0x234], 0x10
call fcn.0040bab0
push 0
mov esi, eax
call fcn.0040bab0
push 0
mov dword [esp + 0x24], eax
call fcn.0040bab0
push 0
mov edi, eax
call fcn.0040bab0
add esp, 0x18
mov dword [esp + 0x14], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jle 0x406f48
mov eax, dword [esp + 0x120]
movsx ecx, byte [ebx + eax]
push ecx
call fcn.004126ec
add esp, 4
test eax, eax
je 0x406fc3
inc ebx
cmp ebx, ebp
jl 0x406f25
test ebp, ebp
je 0x406fc3
mov edx, dword [esp + 0x120]
push edx
push esi
call fcn.0040cec0
push str.CC68D83A932FDE1D46441E6894DE04B9
push edi
call fcn.0040cec0
mov ebp, dword [esp + 0x24]
push str.E003
push ebp
call fcn.0040cec0
push edi
push esi
call fcn.0040c980
add esp, 0x20
cmp eax, 0xffffffff
jne 0x406fc3
mov ebx, dword [esp + 0x10]
push ebx
push edi
push ebp
push esi
call fcn.0040d2c0
mov eax, dword [esp + 0x134]
push 0
push eax
push ebx
push 0x100
call fcn.0040e0d0
push esi
call fcn.0040c380
push ebx
call fcn.0040c380
push edi
call fcn.0040c380
push ebp
call fcn.0040c380
add esp, 0x30
call fcn.0040c3a0
mov ecx, dword [esp + 0x120]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ecx
call esi
mov edx, dword [esp + 0x124]
push edx
call esi
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret

Function at 0x407180
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x800
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push esi
push edi
mov edi, str._jjmi_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x810]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x814]
lea edi, [esp + 8]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + ecx + 0x10]
push eax
call fcn.00412e67
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
add esp, 0x800
ret
Function at 0x408390
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
push 0xc
call fcn.0041ef11
mov esi, eax
xor eax, eax
mov ecx, esi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x118]
mov edx, dword [eax + 4]
mov edi, dword [edx]
mov dword [ecx], edi
mov edi, dword [edx + 4]
mov dword [ecx + 4], edi
lea edi, [esp + 0x11]
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov ebx, dword [eax]
mov ecx, 0x40
xor eax, eax
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, byte [esi + 1]
push eax
lea ecx, [esp + 0x14]
push str.pDataStruct__cCmd___d
push ecx
call fcn.0041269a
movsx eax, byte [esi + 1]
add eax, 0xfffffffe
add esp, 0x10
cmp eax, 0x3b
ja case.0x40840e.21
xor edx, edx
mov dl, byte [eax + 0x4085f8]
jmp dword [edx*4 + 0x4085a8]
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.00408ae0
jmp 0x408586
push 0x42c328
call fcn.00402960
mov ecx, dword [esi + 4]
push ecx
push ebx
call fcn.00408640
add esp, 0xc
jmp case.0x40840e.21
mov edx, dword [esi + 4]
push edx
push ebx
call fcn.00409330
jmp 0x408586
push str...WU_READHOSTINFO..
call fcn.00402960
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.0040a540
add esp, 0xc
jmp case.0x40840e.21
push str...WU_SOCKETSTATE..
call fcn.00402960
mov ecx, dword [esi + 4]
push ecx
push ebx
call fcn.00409420
add esp, 0xc
jmp case.0x40840e.21
push str.WU_DELCLIENTRULE
call fcn.00402960
mov edx, dword [esi + 4]
push edx
push ebx
call fcn.00409150
add esp, 0xc
jmp case.0x40840e.21
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.00409480
jmp 0x408586
push str.jiami
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esi + 4]
push ecx
push ebx
call fcn.004099f0
jmp 0x408586
push str.jiemi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [esi + 4]
push edx
push ebx
call fcn.00409ab0
jmp 0x408586
push str.WU_PRIORITY
call fcn.00402960
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.0040a170
add esp, 0xc
jmp case.0x40840e.21
push str.WU_CMPANDPARTID
call fcn.00402960
mov ecx, dword [esi + 4]
push ecx
push ebx
call fcn.0040a3b0
add esp, 0xc
jmp case.0x40840e.21
push str.WU_SENDFILE
call fcn.00402960
mov edx, dword [esi + 4]
push edx
push ebx
call fcn.0040a290
add esp, 0xc
jmp case.0x40840e.21
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.0040a510
jmp 0x408586
mov ecx, dword [esi + 4]
push ecx
push ebx
call fcn.0040a9d0
jmp 0x408586
mov edx, dword [esi + 4]
push edx
push ebx
call fcn.0040ad80
jmp 0x408586
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.0040b0a0
jmp 0x408586
mov ecx, dword [esi + 4]
push ecx
push ebx
call fcn.0040b380
jmp 0x408586
mov edx, dword [esi + 4]
push edx
push ebx
call fcn.0040ae90
jmp 0x408586
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.0040aff0
add esp, 8
test esi, esi
je 0x408596
push esi
call fcn.0041ef3a
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret 4