joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10dff10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10f49fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x10e0002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.010e3dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10e0002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.010db6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.010e420b
push 0x10
call fcn.010e41d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x10dffc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.010d01c0
jmp 0x10dffc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.010dfb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x10dfff0
mov ecx, edi
call fcn.010d02c0
push edi
call fcn.010e41c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10e0021
inc ebx
cmp ebx, 0x20
jb 0x10dff3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10e1250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10f5808
push 0x10e5288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10e1329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10e1329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.010e41d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x10e1329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x10e1329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x10e132c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.010e1351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10e1d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10e1d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x10e1d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10e1d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10e1d94
push eax
push esi
call fcn.010e420b
add esp, 8
pop esi
ret 0x10

Function at 0x10e1da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10e1e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x10e1e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x10fa320
push ecx
mov dword [esp + 0x1c], 4
call fcn.010e3dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x10e1dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x10e1e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10e1ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x10e1eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x10fa320
push ecx
mov dword [esp + 0x1c], 4
call fcn.010e3dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x10e1eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x10e1e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x10e2000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x10e2131
push esi
call fcn.010e5145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.010d4080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x10e2131
push 0
push ebp
call fcn.010d43a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.010d4260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10e208b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.010d42f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10e2121
push 0x10fa918
push edi
call fcn.010e33f0
push eax
push ebx
push esi
call fcn.010e1f60
push 0x10fa8f8
push edi
call fcn.010e33f0
push eax
push ebx
push esi
call fcn.010e1f60
push 0x10fa8d8
push edi
call fcn.010e33f0
push eax
push ebx
push esi
call fcn.010e1f60
push 0x10fa8c0
push edi
call fcn.010e33f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.010e1f60
push 0x10fa8a0
push edi
call fcn.010e33f0
push eax
push ebx
push esi
call fcn.010e1f60
push 0x10fa888
push edi
call fcn.010e33f0
push eax
push ebx
push esi
call fcn.010e1f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10e31b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.010e3140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.010e3140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.010e3140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.010e3140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x10e3bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10e3c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10f587c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10e3c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10e3c52
xor eax, eax
pop esi
leave
ret 4
Function at 0xee7910
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7fe000]
push edi
or ebp, 0xffffffff
jmp 0xee7932
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xee7939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xee7928
mov eax, 1
add ebx, ebx
jne 0xee794b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xee795c
jne 0xee797b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xee797b
dec eax
add ebx, ebx
jne 0xee7968
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xee7940
add ebx, ebx
jne 0xee7977
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xee79cd
xor ecx, ecx
sub eax, 3
jb 0xee7993
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xee7a02
sar eax, 1
mov ebp, eax
jmp 0xee799e
add ebx, ebx
jne 0xee799e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xee796c
inc ecx
add ebx, ebx
jne 0xee79ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xee796c
add ebx, ebx
jne 0xee79b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xee79ae
jne 0xee79ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xee79ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xee79ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xee79de
jmp 0xee792e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xee79ec
add edi, ecx
jmp 0xee792e
pop esi
mov edi, esi
mov ecx, 0x94cb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xee7a0a
cmp byte [edi], 0x1d
jne 0xee7a0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xee7a0f
lea edi, [esi + 0xae3000]
mov eax, dword [edi]
or eax, eax
je 0xee7a7e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xaf8dd0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xaf8ec0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xee7a3c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xaf8ec4]
or eax, eax
je 0xee7a78
mov dword [ebx], eax
add ebx, 4
jmp 0xee7a59
call dword [esi + 0xaf8ed4]
mov ebp, dword [esi + 0xaf8ec8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xee7ab2
sub esp, 0xffffff80
jmp 0x5df570
Function at 0x401055
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
jmp 0x4300b0
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4300bb
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x4301b7
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x4300e0
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x48c8c8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48c8c8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x48c8c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48c8c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48c8c8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48c8c8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48c8c8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x48c8c8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x4300e0
pop ebp
test edi, edi
je 0x4301dc
jmp 0x4301c0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x48c8c8]
add ecx, 1
sub edi, 1
jne 0x4301c0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x401262
Capabilities:
Encode data using xor

Disassembly:
jmp 0x423720
push ecx
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esp + 4], ecx
jg 0x423735
xor eax, eax
pop edi
pop ecx
ret 0x10
cmp edi, 0x400
mov ecx, dword [esp + 0x10]
push esi
jle 0x423769
add ecx, 1
add ecx, edi
lea edx, [ecx + 5]
xor eax, eax
cmp ecx, edx
jae 0x4237d6
movzx esi, byte [ecx]
xor eax, esi
add ecx, 1
rol eax, 5
cmp ecx, edx
jb 0x423754
pop esi
pop edi
pop ecx
ret 0x10
movzx eax, byte [ecx]
movzx edx, byte [ecx + 5]
rol eax, 0x19
xor eax, edx
xor eax, dword [esp + 0x10]
add ecx, 1
rol eax, 5
xor edx, edx
test edi, edi
jle 0x4237d6
push ebx
lea ebx, [ecx + 5]
sub ecx, ebx
push ebp
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
mov ebp, dword [ebp + 0x14]
mov esi, eax
imul esi, esi, 0x343fd
add ecx, edx
add esi, 0x269ec3
shr esi, 0x11
mov word [ebp + esi*2], cx
mov ecx, dword [esp + 0x1c]
lea esi, [ebx + edx]
movzx ecx, byte [ecx + esi]
movzx esi, byte [esi]
rol ecx, 0x19
xor ecx, esi
xor ecx, eax
rol ecx, 5
add edx, 1
cmp edx, edi
mov eax, ecx
jl 0x423790
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret 0x10
Function at 0x401690
Capabilities:
Act as tcp client
Connect tcp socket
Connect udp socket

Disassembly:
jmp 0x416830
sub esp, 0x18
mov eax, dword [0x4e6b6c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
push 6
push 1
mov esi, ecx
push 2
mov byte [esi + 0x20], 0
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
jne 0x41687b
mov edi, dword [esi]
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov eax, dword [edi + 4]
mov ecx, esi
call eax
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00449d8b
add esp, 0x18
ret
movzx ecx, word [esi + 0x14]
push ecx
mov word [esp + 0x10], 2
call sub.WSOCK32.dll_htons
mov edx, dword [esi + 0x10]
push edx
mov word [esp + 0x12], ax
call sub.WSOCK32.dll_htonl
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x14], 1
call sub.WSOCK32.dll_ioctlsocket
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x18]
push 0x10
push 0x401
push edx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
jne 0x4168fb
mov edi, dword [esi]
call sub.WSOCK32.dll_WSAGetLastError
mov edx, dword [edi + 4]
push eax
mov ecx, esi
call edx
mov ecx, esi
call fcn.00401eba
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00449d8b
add esp, 0x18
ret
mov ecx, dword [esi + 0x18]
push 0x10
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x41691c
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4168d2
mov eax, dword [esi + 0xc]
push 0
push 0x2710
push 0
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00449d8b
add esp, 0x18
ret

Function at 0x401c17
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x4166b0
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, eax
shr ecx, 0x10
je 0x4166d2
mov ecx, esi
call fcn.00401eba
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
pop esi
ret 8
cmp ax, 1
jne 0x4166be
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
push 0
mov ecx, 0x400
sub ecx, eax
push ecx
add edx, eax
mov eax, dword [esi + 0x18]
push edx
push eax
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x416707
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4166be
xor eax, eax
add dword [esi + 8], eax
mov eax, dword [esi + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push edi
push eax
mov eax, dword [esi + 4]
push eax
mov ecx, esi
call edx
mov edi, eax
test edi, edi
jle 0x41673f
mov eax, dword [esi + 8]
cmp edi, eax
jge 0x41673c
mov ecx, dword [esi + 4]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0044aa60
add esp, 0xc
sub dword [esi + 8], edi
pop edi
pop esi
ret 8
Function at 0x401eba
Capabilities:
Set socket configuration

Disassembly:
jmp 0x416460
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x4164d6
mov ecx, dword [esi + 0xc]
push 0
push 0
push ecx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, dword [esi + 0x18]
lea edx, [esp + 8]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x14], 0
call sub.WSOCK32.dll_ioctlsocket
mov edx, dword [esi + 0x18]
push 4
lea ecx, [esp + 8]
push ecx
push 0x80
push 0xffff
push edx
mov word [esp + 0x18], 1
mov word [esp + 0x1a], 0
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0x18]
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x1c], 1
pop esi
add esp, 8
ret

Function at 0x401fa5
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x416a60
sub esp, 0x1bc
mov eax, dword [0x4e6b6c]
xor eax, esp
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0x1c0]
mov dword [0x4ed180], eax
mov eax, dword [0x4ed17c]
add eax, 1
cmp eax, 1
mov dword [0x4ed17c], eax
jne 0x416b0d
lea eax, [esp + 0x28]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x416aef
mov ecx, dword [0x4ed180]
lea edx, [esp]
push edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x401da2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.CasinoNetClass
call dword [0x4ec824]
test ax, ax
jne 0x416b0d
call sub.WSOCK32.dll_WSACleanup
sub dword [0x4ed17c], 1
xor al, al
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.00449d8b
add esp, 0x1bc
ret
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
mov al, 1
call fcn.00449d8b
add esp, 0x1bc
ret

Function at 0x402018
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x416500
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
mov ebx, ecx
jle 0x41654f
mov ebp, dword [esp + 0x14]
mov edx, dword [ebx + 0x18]
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esi + ebp]
push ecx
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x416549
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41654b
mov ecx, ebx
call fcn.00401eba
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
add esi, eax
cmp esi, edi
jl 0x416514
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
Function at 0x4143b0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4837db
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4e6b6c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4144ea
cmp dword [ebp + 8], 0
je 0x4144ea
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x4144ea
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_inet_addr
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x414438
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x414438
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WSOCK32.dll_ntohl
mov dword [ebp - 0x10], eax
push 0x230
call fcn.0044a726
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x414476
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x20]
call fcn.00401d75
mov dword [ebp - 0x2c], eax
jmp 0x41447d
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x4144ab
mov ecx, dword [ebp - 0x14]
call fcn.00401e1f
movzx edx, al
test edx, edx
je 0x4144ab
mov al, 1
jmp 0x4144ec
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x4144e3
mov ecx, dword [ebp - 0x24]
call fcn.00401e2e
mov edx, 1
and edx, 1
je 0x4144db
mov eax, dword [ebp - 0x24]
push eax
call fcn.0044a2af
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
jmp 0x4144ea
mov dword [ebp - 0x30], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret