joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405220
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x114
mov eax, 0xcccccccd
push ebx
mul dword [esp + 0x120]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_select]
push esi
push edi
mov ebx, edx
xor edi, edi
shr ebx, 3
mov esi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0xa
mov dword [esp + 0x1c], edi
test ebx, ebx
mov dword [esp + 0x10], 0
jbe 0x4052b8
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x4052f7
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x28], eax
push 0
lea edx, [esp + 0x28]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x34], 1
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x4052a7
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
je 0x405261
jmp 0x4052ab
test edi, edi
jg 0x4052bc
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ebx
mov dword [esp + 0x10], eax
jb 0x405261
test edi, edi
jle 0x4052ec
mov ecx, dword [esi + 4]
push 0
lea eax, [esi + 8]
push 0x2000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405307
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x405328
mov ebx, dword [esp + 0x14]
jmp 0x405255
jne 0x4052f7
mov edx, dword [esi]
push 4
mov ecx, esi
call dword [edx + 8]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x114
ret 8
test ebx, ebx
je 0x405328
jle 0x405331
mov eax, dword [esp + 0x128]
add esi, 8
pop edi
mov dword [eax], esi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x114
ret 8
mov edx, dword [esi]
push 2
mov ecx, esi
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x114
ret 8
Function at 0x405340
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x118]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov edi, ecx
mov dword [esp + 0x10], esi
je 0x40545f
cmp dword [edi + 4], 0xffffffff
je 0x40545f
mov eax, 0xcccccccd
mov dword [esp + 0x18], 0xa
mul dword [esp + 0x130]
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x1c], esi
shr edx, 3
cmp eax, esi
mov dword [esp + 0x14], edx
jbe 0x405457
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov eax, dword [esp + 0x14]
xor ebp, ebp
test eax, eax
jbe 0x4053fc
mov eax, dword [edi]
push 5
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x40545f
mov eax, dword [edi + 4]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x28], eax
push 0
push edx
inc eax
push 0
push eax
mov dword [esp + 0x34], 1
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4053ef
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
je 0x4053a9
jmp 0x4053f3
test esi, esi
jg 0x405400
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jb 0x4053a9
test esi, esi
jle 0x405470
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x128]
mov edx, dword [edi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x405431
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 4
jne 0x40548c
jmp 0x40539f
mov edx, dword [esp + 0x128]
mov ecx, dword [esp + 0x12c]
add edx, eax
sub ecx, eax
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], ecx
jne 0x40539f
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
jne 0x40545f
mov eax, dword [edi]
push 4
mov ecx, edi
call dword [eax + 8]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
mov edx, dword [edi]
push 2
mov ecx, edi
call dword [edx + 8]
mov edx, dword [esp + 0x20]
xor eax, eax
test edx, edx
jbe 0x40545f
mov edi, dword [edi + 4]
lea ecx, [esp + 0x24]
cmp dword [ecx], edi
je 0x4054c3
inc eax
add ecx, 4
cmp eax, edx
jb 0x4054a6
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
dec edx
cmp eax, edx
jae 0x40545f
lea ecx, [esp + eax*4 + 0x24]
mov edx, dword [ecx + 4]
inc eax
mov dword [ecx], edx
mov edx, dword [esp + 0x20]
add ecx, 4
dec edx
cmp eax, edx
jb 0x4054cc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x405800
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x10
test eax, eax
push ebx
push esi
mov esi, dword [esp + 0x24]
jne 0x405824
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
push 0
jmp 0x40583f
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test esi, esi
je 0x40582f
mov eax, esi
lea ecx, [esp + 0x20]
lea edx, [esp + 8]
push ecx
lea ecx, [esp + 0x14]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
setne bl
test bl, bl
je 0x405868
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp edx, eax
jg 0x405868
jl 0x405866
mov eax, dword [esp + 0x20]
cmp eax, ecx
jae 0x405868
xor bl, bl
test esi, esi
je 0x405890
mov al, byte [esi - 1]
test al, al
je 0x405884
cmp al, 0xff
je 0x405884
dec al
mov byte [esi - 1], al
mov al, bl
pop esi
pop ebx
add esp, 0x10
ret
add esi, 0xfffffffe
push esi
call fcn.004058ac
add esp, 4
mov al, bl
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x405b29
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x405b38
pop dword [ebp - 0x34]
mov eax, 0xfbe51c14
sub eax, 0xfba4c0dc
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x25ecbad3
add dword [ebp - 0x44], 0x28658a78
mov dword [ebp - 0x40], 0xd24a0e19
add dword [ebp - 0x40], 0x5fe93e2c
mov dword [ebp - 0x3c], 0x39e501ee
sub dword [ebp - 0x3c], 0xed98bdc0
mov dword [ebp - 0x38], 0xee51a3f5
add dword [ebp - 0x38], 0x11ae5c0b
lea eax, [ebp - 0x44]
push eax
mov eax, 0x244c481a
sub eax, 0x240a17a6
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xd9ab6e07
sub dword [ebp - 0x44], 0x653904b1
mov dword [ebp - 0x40], 0xf21e90ac
sub dword [ebp - 0x40], 0xb0b22f37
mov dword [ebp - 0x3c], 0x50d702fe
sub dword [ebp - 0x3c], 0xed679692
mov dword [ebp - 0x38], 0x570e8fef
sub dword [ebp - 0x38], 0x570e8fef
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xea455cd6
sub eax, 0xea032bb2
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3de5e
push 0
call eax
mov ecx, 0x2e1df9a7
add ecx, 0xd1e24b56
mov ebx, eax
mov esi, 0x434400
add esi, dword [ebp - 0x34]
mov edi, 0xda6ee895
add edi, 0xcbd0b247
add dword [ebp - 0x20], 0x2b8adfce
mov edx, dword [esi]
xor dword [ebp - 0xc], ebx
add edx, edi
xor dword [ebp - 0x1c], ebx
mov dword [ebx], edx
sub dword [ebp - 0x20], 0xdc29021c
add ebx, 0xe8530d0d
add ebx, 0x17acf2f7
add esi, 0xe0daf530
sub esi, 0xe0daf52c
loop 0x405c54
add eax, 0x223d0263
add eax, 0xddc40464
mov ebx, eax
add eax, 0x68e512a8
add eax, 0x971aed5d
mov ecx, 0xaee3303a
add ecx, 0x515ccfc6
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x408a80
Capabilities:
Execute syscall
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
ror ch, cl
adc eax, 0x40ffd2
add esp, 4
test eax, eax
int 0x15
sar bh, cl
inc eax
add byte [ebx - 0x3f7afb3c], al
je 0x408a87
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ebx]
or al, 0x50
invalid
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x43ea30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401360
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42ef80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0x18], edi
mov dword [edi + 4], eax
call fcn.0042e328
add esp, 4
mov dword [edi], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
lea esi, [edi + 0x14]
lea ebx, [edi + 8]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov ebp, edi
mov dword [esi], edi
mov ecx, dword [ebp + 4]
mov dword [esp + 0x38], eax
mov eax, 0xc
cmp eax, ecx
jbe 0x4013ca
push eax
mov ecx, ebp
call fcn.00401160
mov ebp, dword [ebp]
mov ecx, dword [esp + 0x38]
push 0x21
add ebp, ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp], eax
mov eax, dword [esi + 4]
mov ebp, dword [esi]
mov edx, dword [ebp + 4]
lea ecx, [eax + 0xc]
cmp ecx, edx
mov dword [esp + 0x38], eax
jbe 0x4013fd
push ecx
mov ecx, ebp
call fcn.00401160
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp]
mov dword [eax + ecx + 8], 0
mov eax, dword [esi + 4]
mov ebp, dword [esi]
mov edx, dword [ebp + 4]
lea ecx, [eax + 0xc]
cmp ecx, edx
mov dword [esp + 0x38], eax
jbe 0x401427
push ecx
mov ecx, ebp
call fcn.00401160
mov eax, dword [esp + 0x38]
mov edx, dword [ebp]
mov dword [edx + eax + 4], 0
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004012a0
mov ecx, eax
call fcn.004012c0
mov byte [esp + 0x30], 1
mov byte [esp + 0x30], 0
lea edx, [esp + 0x20]
cmp ebx, edx
je 0x40146b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 0
mov dword [esp + 0x30], 0xffffffff
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4018a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f104
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
mov eax, dword [0x4434b0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x250], eax
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
push edi
jne 0x40197f
xor eax, eax
mov word [esp + 0x48], bx
mov ecx, 0x81
lea edi, [esp + 0x4a]
rep stosd dword es:[edi], eax
mov ecx, dword [0x443a48]
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [0x4351a8]
lea edx, [esp + 0x48]
push edx
call dword [0x435400]
mov edi, eax
add esp, 4
cmp edi, ebx
jbe 0x40194b
mov eax, 0x5c
dec edi
cmp word [esp + edi*2 + 0x48], ax
je 0x401931
cmp edi, ebx
jne 0x401923
jmp 0x40194b
lea eax, [esp + 0x48]
push eax
call dword [0x435400]
lea ecx, [edi + 1]
add esp, 4
cmp ecx, eax
jae 0x40194b
mov word [esp + edi*2 + 0x4a], bx
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x14]
call dword [0x43531c]
mov dword [esp + 0x264], ebx
push eax
mov ecx, esi
call dword [0x435318]
mov dword [esp + 0x264], 0xffffffff
lea ecx, [esp + 0x10]
call dword [0x435304]
push str.message.ini
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00401740
add esp, 0xc
mov dword [esp + 0x264], 1
lea ebx, [esi + 0x1c]
xor eax, eax
mov ecx, 0x7f
mov edi, ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2c]
stosw word es:[edi], ax
call dword [0x435314]
push eax
push 0x64
push ebx
push str.tipsstat.xunlei.com
push str.HOST
push str.UDPSERVER
call dword [0x4351a4]
lea ecx, [esp + 0x2c]
call dword [0x435314]
push eax
push 0x1838
push str.PORT
push str.UDPSERVER
call dword [0x4351a0]
push 0x4356b0
lea ecx, [esp + 0x14]
push esi
push ecx
mov dword [esi + 0x21c], eax
call fcn.00401740
add esp, 0xc
mov byte [esp + 0x264], 2
push eax
lea ecx, [esi + 0x220]
call dword [0x435318]
mov byte [esp + 0x264], 1
lea ecx, [esp + 0x10]
call dword [0x435304]
mov dword [esp + 0x264], 0xffffffff
lea ecx, [esp + 0x2c]
call dword [0x435304]
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x254]
mov eax, 1
call fcn.0042e6ef
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push esi
lea ecx, [esp + 8]
push ecx
push 1
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call fcn.00402150
mov ecx, eax
call fcn.00402170
mov dword [esp + 0x24], 0xffffffff
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
call fcn.00402720
lea edx, [esi + 0x1c]
push edx
lea ecx, [esp + 0x14]
call fcn.00402720
push str.TIPS
mov ecx, esi
call dword [0x435334]
test eax, eax
jne 0x402ca4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x402ca4
push eax
lea ecx, [esp + 0x14]
call fcn.00402360
mov eax, dword [esi + 0x38]
add eax, 4
push eax
lea ecx, [esp + 0x14]
call fcn.00402360
mov ecx, dword [esi + 0x38]
add ecx, 8
push ecx
lea ecx, [esp + 0x14]
call fcn.00402360
mov edx, dword [esi + 0x38]
add edx, 0xc
push edx
lea ecx, [esp + 0x14]
call fcn.00402360
mov eax, dword [esi + 0x38]
add eax, 0x10
push eax
lea ecx, [esp + 0x14]
call fcn.00402360
mov ecx, dword [esi + 0x38]
add ecx, 0x14
push ecx
lea ecx, [esp + 0x14]
call fcn.00402360
push 0x4437b4
lea ecx, [esp + 0x14]
call fcn.00402360
push 0x4437b8
lea ecx, [esp + 0x14]
call fcn.00402360
mov edx, dword [esi + 0x38]
add edx, 0x18
push edx
lea ecx, [esp + 0x14]
call fcn.00402720
push 0x4437bc
lea ecx, [esp + 0x14]
call fcn.00402410
mov eax, dword [esi + 0x38]
add eax, 0x34
push eax
lea ecx, [esp + 0x14]
call fcn.00402720
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x403650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x2ab02ab
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + 4]
imul esi, dword [eax]
push edi
mov edi, esi
and edi, 0xfffffffe
mov dword [ebp - 8], 0x10001
mov dword [ebp - 4], 1
mov dword [ebp + 0x10], edi
jle 0x4036ea
mov ecx, dword [ebp + 0x10]
pcmpeqb mm6, mm6
pxor mm4, mm4
mov eax, dword [ebp + 0xc]
movq mm7, mm6
movq mm2, qword [ebp - 0x10]
mov edx, dword [ebp + 8]
psrlw mm6, 0xf
psrld mm7, 8
lea eax, [eax + ecx*4]
movq mm0, qword [ebp - 8]
lea edx, [edx + ecx*4]
neg ecx
movq mm3, qword [eax + ecx*4]
movq mm5, qword [edx + ecx*4]
psubusb mm3, mm5
movq mm1, mm3
punpcklbw mm3, mm4
punpckhbw mm1, mm4
pmaddwd mm3, mm0
pmaddwd mm1, mm0
pand mm5, mm7
packssdw mm3, mm1
pmaddwd mm3, mm2
psrld mm3, 0xb
pxor mm3, mm7
pslld mm3, 0x18
por mm5, mm3
movq qword [edx + ecx*4], mm5
add ecx, 2
jne 0x4036ae
emms
cmp edi, esi
jge 0x403731
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, eax
lea ecx, [eax + edi*4]
sub esi, edi
lea esp, [esp]
mov edx, dword [ecx]
mov eax, dword [ebx + ecx]
sub eax, edx
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edi, ah
mov dword [ebp + 8], eax
add edx, edi
movzx eax, al
add edx, eax
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
not dl
mov byte [ecx + 3], dl
add ecx, 4
dec esi
jne 0x403700
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bc30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
push 0
push ecx
mov eax, esp
mov dword [eax], 0
mov esi, ecx
mov eax, dword [esi + 0xb8]
mov ecx, dword [esi + 0xbc]
push 0x88
push 0x90000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
call fcn.0040e8b0
mov ecx, eax
call fcn.0040e800
mov ecx, eax
call dword [0x435314]
push eax
push ecx
mov eax, esp
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
push 0
mov ecx, esi
call fcn.0040b780
test eax, eax
jne 0x40bc9f
pop esi
add esp, 0x10
ret
mov edx, dword [esi + 0x50]
push 0
push edx
call dword [0x4355d0]
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x40e710
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430533
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4434b0]
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0xc], esi
mov eax, dword [edi]
lea ecx, [eax + eax + 2]
push ecx
call fcn.0042e328
add esp, 4
lea ecx, [esp + 0x10]
mov ebp, eax
call dword [0x435310]
mov dword [esp + 0x38], 1
push esi
call dword [0x43541c]
push eax
call dword [0x435428]
mov eax, dword [edi]
add esp, 8
cmp eax, esi
jbe 0x40e79a
push ebx
mov ebx, dword [0x435424]
lea ecx, [ecx]
call ebx
cdq
mov ecx, 0x1a
idiv ecx
add edx, 0x41
mov word [ebp + esi*2], dx
mov eax, dword [edi]
inc esi
cmp esi, eax
jb 0x40e780
pop ebx
mov edx, dword [edi]
push ebp
lea ecx, [esp + 0x14]
mov word [ebp + edx*2], 0
call dword [0x435348]
push ebp
call fcn.0042e666
mov esi, dword [esp + 0x44]
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [0x43530c]
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x10]
call dword [0x435304]
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebp
call fcn.0042e6ef
add esp, 0x30
ret 4

Function at 0x414860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43106f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x180]
mov edx, dword [esp + 0x178]
push esi
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x10], edx
call fcn.00401aa0
add eax, 0x240
push eax
call dword [0x4350a4]
call fcn.00401aa0
add eax, 0x1c
push eax
lea ecx, [esp + 0x18]
call dword [0x43531c]
mov dword [esp + 0x174], 0
lea eax, [esp + 0x4c]
push eax
call fcn.00427e60
add esp, 4
mov byte [esp + 0x174], 1
mov ecx, eax
call dword [0x435324]
lea ecx, [esp + 0x6c]
mov esi, eax
mov dword [esp + 0x68], ecx
call dword [0x443060]
push eax
push esi
lea ecx, [esp + 0x70]
call fcn.00401de0
mov byte [esp + 0x174], 2
mov edx, dword [esp + 0x68]
push edx
lea ecx, [esp + 0x34]
call dword [0x43531c]
mov esi, eax
mov byte [esp + 0x174], 3
call fcn.00401aa0
mov ecx, dword [esp + 0x190]
mov edx, dword [esp + 0x18c]
mov eax, dword [eax + 0x21c]
push ecx
mov ecx, dword [esp + 0x18c]
push esi
push edx
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0040fb90
mov ecx, eax
call fcn.0040f880
mov byte [esp + 0x174], 2
lea ecx, [esp + 0x30]
call dword [0x435304]
mov byte [esp + 0x174], 1
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x6c]
cmp eax, ecx
pop esi
je 0x414994
push eax
call dword [0x4353f8]
add esp, 4
mov byte [esp + 0x170], 0
lea ecx, [esp + 0x48]
call dword [0x435320]
mov dword [esp + 0x170], 0xffffffff
lea ecx, [esp + 0x10]
call dword [0x435304]
lea edx, [esp]
push edx
call fcn.0040fb90
mov ecx, eax
call fcn.0040f3b0
call fcn.0040fb90
mov ecx, eax
call fcn.0040fef0
call fcn.0040fb90
mov ecx, eax
call fcn.0040f980
call fcn.00401aa0
add eax, 0x240
push eax
call dword [0x4350a0]
mov ecx, dword [esp + 0x168]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x174
ret
Function at 0x416380
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4313e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push edi
lea edi, [eax + 4]
push edi
mov dword [esp + 0xc], eax
call dword [0x4350a4]
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
push eax
lea edx, [esp + 0x34]
mov dword [esp + 0x34], ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00414dc0
mov byte [esp + 0x28], 1
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00415fc0
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x14]
call fcn.00415780
mov dword [esp + 0x28], 0xffffffff
push edi
call dword [0x4350a0]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x416720
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x43144f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x49c
mov eax, dword [0x4434b0]
mov dword [esp + 0x498], eax
mov eax, dword [esp + 0x4ac]
test eax, eax
je 0x416914
push 0x4366d4
push eax
call dword [0x435470]
add esp, 8
test eax, eax
jne 0x416914
push ebx
lea eax, [esp + 0x30c]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401aa0
mov ecx, eax
call fcn.004018a0
call fcn.00401aa0
push str.XLSkin.dll
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00401740
mov dword [esp + 0x4b4], 0
call fcn.00401aa0
push str.XLSkin.dll
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00401740
add esp, 0x18
mov byte [esp + 0x4a8], 1
push eax
call fcn.004187c0
mov ecx, eax
call fcn.004186e0
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [esp + 0x4a8], 0
lea ecx, [esp + 4]
call dword [0x435304]
test bl, bl
jne 0x4168db
call fcn.00401aa0
add eax, 0x220
push str.Skin.tiplua
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00401740
add esp, 0xc
mov byte [esp + 0x4a8], 2
push eax
call fcn.004187c0
mov ecx, eax
call fcn.00418840
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [esp + 0x4a8], 0
lea ecx, [esp + 4]
call dword [0x435304]
test bl, bl
jne 0x4168db
lea ecx, [esp + 0x3c]
call fcn.004158b0
mov byte [esp + 0x4a8], 3
lea ecx, [esp + 0x3c]
call fcn.004166a0
cmp eax, 1
jne 0x4168be
call fcn.0042b5c0
mov ecx, eax
call fcn.0042b920
call fcn.0042b5c0
mov ecx, dword [eax]
push ecx
call dword [0x4350c8]
call fcn.004122b0
mov ecx, eax
call fcn.00411940
call fcn.004122b0
mov ecx, eax
call fcn.00412090
call fcn.00413620
call fcn.004122b0
mov ecx, eax
call fcn.00411780
call fcn.004187c0
mov ecx, eax
call fcn.00418790
call fcn.00401aa0
mov ecx, eax
call fcn.004016e0
mov byte [esp + 0x4a8], 0
lea ecx, [esp + 0x3c]
call fcn.00415980
mov dword [esp + 0x4a8], 0xffffffff
lea ecx, [esp + 0x20]
call dword [0x435304]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x49c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x498]
call fcn.0042e6ef
add esp, 0x4a8
ret
xor eax, eax
jmp 0x4168f3