joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b1f0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ecx
push 0x11
push 2
push 2
mov dword [esp + 0xc], 1
call sub.WSOCK32.DLL_socket
mov ecx, dword [esp + 8]
cmp eax, 0xffffffff
mov dword [ecx + 0x88], eax
jne 0x42b21a
mov eax, 1
pop ecx
ret
lea edx, [esp]
push 4
push edx
push 0x20
push 0xffff
push eax
call sub.WSOCK32.DLL_setsockopt
neg eax
sbb eax, eax
neg eax
pop ecx
ret

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

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
movsx eax, si
push edi
mov edi, dword [esp + 0x28]
cmp eax, edi
mov word [esp + 0xc], 2
mov dword [esp + 0x10], 0xffffffff
jg 0x42b29e
push ebp
mov ebp, dword [esp + 0x30]
push esi
call sub.WSOCK32.DLL_htons
mov edx, dword [ebx + 0x88]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push 0
push 8
push str._status_
push edx
mov word [esp + 0x2a], ax
call sub.WSOCK32.DLL_sendto
add esi, ebp
movsx eax, si
cmp eax, edi
jle 0x42b26d
pop ebp
push 2
push ebx
call fcn.0042b130
add esp, 8
call sub.KERNEL32.DLL_GetTickCount
pop edi
mov dword [ebx + 0x8c], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x42c3e0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x110
xor eax, eax
lea ecx, [esp + 0x10]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x42c3ec
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
push edi
mov byte [esp + 0x10], 0
xor esi, esi
lea edi, [esp + 0x20]
mov ebp, 0x100
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x124]
and eax, 0xff
xor ecx, ecx
mov cl, byte [eax + edx]
xor edx, edx
mov dl, byte [edi]
add esi, ecx
add edx, esi
and edx, 0x800000ff
jns 0x42c43e
dec edx
or edx, 0xffffff00
inc edx
inc eax
mov byte [esp + 0x14], dl
cdq
idiv ebx
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esp + esi + 0x20]
push eax
push edi
mov byte [esp + 0x18], dl
call fcn.0042c2e0
add esp, 8
inc edi
dec ebp
jne 0x42c411
mov eax, dword [esp + 0x130]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jle 0x42c53c
xor esi, esi
xor edi, edi
mov ecx, dword [esp + 0x12c]
mov al, byte [ecx + ebp]
and eax, 0xff
lea edx, [eax + esi + 1]
and edx, 0x800000ff
jns 0x42c4a2
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x10], dl
xor eax, eax
mov esi, dword [esp + 0x10]
and esi, 0xff
mov al, byte [esp + esi + 0x20]
lea ebx, [esp + esi + 0x20]
add eax, edi
and eax, 0x800000ff
jns 0x42c4ca
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x14], al
mov edi, dword [esp + 0x14]
and edi, 0xff
lea eax, [esp + edi + 0x20]
push eax
push ebx
mov dword [esp + 0x24], eax
call fcn.0042c2e0
mov eax, dword [esp + 0x24]
xor ecx, ecx
mov cl, byte [ebx]
xor edx, edx
mov dl, byte [eax]
add esp, 8
add ecx, edx
and ecx, 0x800000ff
jns 0x42c508
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, dword [esp + 0x12c]
and ecx, 0xff
mov cl, byte [esp + ecx + 0x20]
mov dl, byte [eax + ebp]
xor cl, dl
mov byte [eax + ebp], cl
mov eax, dword [esp + 0x18]
inc eax
movsx ebp, ax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x130]
cmp ebp, eax
jl 0x42c47f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret

Function at 0x42d420
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
call fcn.00481840
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.DLL_WSAStartup
add esp, 0x190
ret
Function at 0x42da20
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
test eax, eax
je 0x42da31
mov dword [eax], 0
push ebx
push ebp
push esi
push edi
call fcn.0042d420
push 0x11
push 2
push 2
call sub.WSOCK32.DLL_socket
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42dbfe
mov esi, dword [esp + 0x30]
lea ebx, [esi + 0x64]
cmp esi, ebx
jge 0x42da9e
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push 0
push eax
push esi
push edi
call fcn.0042de10
add esp, 0x10
push 0x7f000001
call sub.WSOCK32.DLL_htonl
cmp dword [esp + 0x18], eax
jne 0x42da88
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x14]
push 0x10
push ecx
push ebp
call sub.WSOCK32.DLL_bind
test eax, eax
je 0x42daab
inc esi
cmp esi, ebx
jl 0x42da5f
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
test esi, esi
jne 0x42daeb
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call sub.WSOCK32.DLL_getsockname
test eax, eax
je 0x42dad8
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x16]
push ecx
call sub.WSOCK32.DLL_ntohs
mov si, ax
and esi, 0xffff
mov edi, dword [esp + 0x28]
test edi, edi
jne 0x42daff
mov dword [0x546f58], 0x546e68
jmp 0x42db13
push 0xf0
call fcn.0051b460
mov dword [0x546f58], eax
add esp, 4
mov dword [edi], eax
mov edx, dword [0x546f58]
mov ecx, dword [esp + 0x34]
add edx, 8
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x42db20
mov eax, dword [0x546f58]
mov ecx, dword [esp + 0x38]
lea edx, [eax + 0x48]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x42db36
mov ecx, dword [0x546f58]
xor eax, eax
push 0x6cfc
push str.master.gamespy.com
mov dword [ecx + 0xe4], esi
mov edx, dword [0x546f58]
push ebp
mov dword [edx + 0xd8], eax
mov ecx, dword [0x546f58]
mov dword [ecx + 4], ebp
mov edx, dword [0x546f58]
mov dword [edx], ebp
mov ecx, dword [0x546f58]
mov dword [ecx + 0xe0], eax
mov edx, dword [0x546f58]
mov eax, 1
mov dword [edx + 0xdc], eax
mov ecx, dword [0x546f58]
mov byte [ecx + 0xe8], al
mov edx, dword [0x546f58]
mov eax, dword [esp + 0x58]
mov dword [edx + 0xec], eax
mov ecx, dword [0x546f58]
mov edx, dword [esp + 0x48]
mov dword [ecx + 0xc8], edx
mov eax, dword [0x546f58]
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0xcc], ecx
mov edx, dword [0x546f58]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov dword [edx + 0xd4], eax
mov edx, dword [0x546f58]
mov dword [edx + 0xd0], ecx
call fcn.0042ddf0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x42dc50
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x120
push ebx
push esi
mov esi, dword [esp + 0x12c]
xor ebx, ebx
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], ebx
mov eax, dword [esi]
mov dword [esp + 0x10], ebx
cmp eax, 0xffffffff
je 0x42dcdd
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 1
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
push ebx
push ebx
push ecx
push 0x40
call sub.WSOCK32.DLL_select
cmp eax, 0xffffffff
je 0x42dcdd
cmp eax, ebx
je 0x42dcdd
mov ecx, dword [esi]
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push 0xff
push 0x572768
push ecx
call sub.WSOCK32.DLL_recvfrom
cmp eax, 0xffffffff
je 0x42dc84
lea edx, [esp + 0x14]
mov byte [eax + 0x572768], bl
push edx
push 0x572768
push esi
call fcn.0042de90
add esp, 0xc
jmp 0x42dc84
pop esi
pop ebx
add esp, 0x120
ret

Function at 0x42de10
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push eax
xor ebp, ebp
mov word [ebx], 2
call sub.WSOCK32.DLL_htons
mov esi, dword [esp + 0x10]
mov word [ebx + 2], ax
cmp esi, ebp
jne 0x42de39
mov dword [ebx + 4], ebp
jmp 0x42de42
push esi
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0xffffffff
jne 0x42de78
push edi
mov edi, str.255.255.255.255
mov ecx, 0x10
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
je 0x42de78
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebp, eax
test ebp, ebp
jne 0x42de6e
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42de82
mov dword [eax], ebp
pop esi
pop ebp
mov eax, 1
pop ebx
ret

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

Disassembly:
sub esp, 0x50
or ecx, 0xffffffff
xor eax, eax
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov edi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x42e224
push ebx
mov ebx, dword [esp + 0x60]
push esi
lea ecx, [esp + 0x10]
mov edi, dword [ebx + 0xe0]
inc edi
mov eax, edi
mov dword [ebx + 0xe0], edi
push eax
mov eax, dword [ebx + 0xdc]
push eax
push str.queryid_d._d
push ecx
call fcn.0051a85e
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x6c]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [ebx]
push ebp
push ecx
call sub.WSOCK32.DLL_sendto
pop esi
mov byte [ebp], 0
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42e670
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x100
lea edx, [esp]
push esi
mov esi, dword [esp + 0x108]
push edi
mov ecx, dword [esi + 0xe4]
lea eax, [esi + 8]
push eax
push ecx
push str.heartbeat_dgamename_s
push edx
call fcn.0051a85e
mov eax, dword [esp + 0x120]
add esp, 0x10
test eax, eax
je 0x42e6df
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x547028]
repne scasb al, byte es:[edi]
mov eax, dword [str._statechanged_]
mov ecx, dword [0x547024]
dec edi
mov dword [edi], eax
mov ax, word [0x54702c]
mov dword [edi + 4], ecx
mov cl, byte [0x54702e]
mov dword [edi + 8], edx
mov word [edi + 0xc], ax
mov byte [edi + 0xe], cl
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
push 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esi + 4]
push 0x572a70
not ecx
dec ecx
push 0
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call sub.WSOCK32.DLL_sendto
call sub.KERNEL32.DLL_GetTickCount
mov dword [esi + 0xd8], eax
pop edi
pop esi
add esp, 0x100
ret
Function at 0x445570
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
xor eax, eax
mov al, byte [edi]
shr eax, 7
lea ecx, [ebx + eax*8]
lea eax, [edx + ecx*8]
xor edx, edx
mov dx, word [eax*8 + 0xed9980]
xor ecx, ecx
lea eax, [eax*8 + 0xed9980]
mov esi, edx
and esi, 1
mov ebp, esi
mov cx, word [eax + 4]
shl ebp, 6
sub ebp, esi
xor esi, esi
mov si, word [eax + 2]
add ebp, esi
xor esi, esi
mov si, word [edi + ebp*2 + 0x34]
and esi, edx
mov edx, ecx
and esi, 0xfffffffe
neg esi
sbb esi, esi
and edx, 1
mov ebp, edx
and esi, 2
shl ebp, 6
sub ebp, edx
xor edx, edx
mov dx, word [eax + 6]
xor eax, eax
add ebp, edx
mov ax, word [edi + ebp*2 + 0x34]
pop edi
and eax, ecx
mov ecx, dword [esp + 0x1c]
and al, 0xfe
neg eax
sbb eax, eax
add ebx, ecx
mov ecx, dword [esp + 0x10]
and eax, 4
or esi, eax
and ebx, 1
or esi, ebx
mov eax, dword [esi*4 + 0x54b378]
pop esi
pop ebp
cmp eax, 2
mov dword [ecx + 0x20], eax
pop ebx
jne 0x44563f
mov eax, dword [esp + 8]
fld dword [ecx + 8]
fmul dword [eax + 8]
fld dword [ecx + 4]
fmul dword [eax + 4]
faddp st(1)
fld dword [ecx]
fmul dword [eax]
faddp st(1)
fcomp dword [ecx + 0xc]
fnstsw ax
test ah, 5
jp 0x445660
mov dword [ecx + 0x20], 1
ret
cmp eax, 5
je 0x445649
cmp eax, 6
jne 0x445660
mov edx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
mov dword [ecx], edx
mov edx, dword [ecx + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
ret
Function at 0x44d420
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0xed1924]
test eax, eax
jne 0x44d44c
push str.Server_quit_n
call fcn.00477340
call fcn.0043a230
call fcn.0047f600
call fcn.0044eef0
push 1
call fcn.00453b30
add esp, 8
jmp 0x481660
push 1
call dword [sym.imp.WINMM.DLL_timeEndPeriod]
call fcn.00511af0
call fcn.00511840
call fcn.00510540
call fcn.00459060
call fcn.0047ebe0
call fcn.00488b20
call fcn.0045da10
mov eax, dword [0x7fcfcc]
test eax, eax
jne 0x481699
call fcn.00428420
push 0
call fcn.0051dd34

Function at 0x45cbe0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x47f670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x531d83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x18], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esp + 0x64], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea eax, [esp + 0x10]
mov byte [esp + 0x64], 2
push eax
push ebx
push str.localization.txt
push 0x555cb4
push str.global
call fcn.00452290
mov ecx, dword [str.global_]
mov edx, dword [0x555ca8]
mov ebp, eax
mov dword [esp + 0x30], ecx
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], edx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x24]
not ecx
dec ecx
push eax
push str.____Localization:_I_see__d_localization_files_n
mov dword [esp + 0x30], ecx
call fcn.0044cf60
mov ecx, dword [esp + 0x2c]
push 0x47f650
push 4
push ecx
push ebp
call fcn.0051b1ec
mov eax, dword [esp + 0x3c]
add esp, 0x2c
xor edi, edi
cmp eax, ebx
jle 0x47f76a
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + edi*4]
lea edx, [esp + edx + 0x1c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x47f739
lea eax, [esp + 0x1c]
push eax
push str.____Localization:_reading_file__s_n
call fcn.0044cf60
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0047f7c0
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x47f72d
mov edx, dword [esp + 0x14]
mov eax, 0x555c3c
lea edx, [esp + edx + 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x47f779
lea eax, [esp + 0x1c]
push eax
push str.____Localization:_reading_file__s_n
call fcn.0044cf60
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0047f7c0
push ebp
call fcn.004526b0
mov ecx, dword [esp + 0x60]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret

Function at 0x4810a0
Capabilities:
Get memory capacity

Disassembly:
mov eax, dword [0xcc8f08]
sub esp, 0x20
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4810b8
mov eax, 1
add esp, 0x20
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov edx, dword [0xcc8f08]
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 8]
shl eax, 0x14
cmp eax, edx
sbb eax, eax
inc eax
add esp, 0x20
ret

Function at 0x4810e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x14
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 8]
push edx
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
fild qword [esp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
fimul dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
fimul dword [esp + 0xc]
fmul dword [0x535a0c]
fcomp dword [0x535a10]
fnstsw ax
test ah, 5
jp 0x481157
mov eax, 1
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret
Function at 0x481740
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x481759
lea eax, [esp + 4]
push eax
push str.Software2015MOHAA
push 0x80000001
jmp 0x481768
lea ecx, [esp + 4]
push ecx
push str.Software2015MOHAA
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegCreateKeyA]
test eax, eax
je 0x481775
xor eax, eax
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
xor eax, eax
push esi
test edx, edx
mov edx, dword [esp + 0x14]
sete al
push edx
mov edx, dword [esp + 0x10]
lea eax, [eax + eax + 1]
push ecx
push eax
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov ecx, dword [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x4817c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x4817ce
lea esi, [esp + 0xc]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4817e7
lea eax, [esp + 0x18]
push eax
push str.Software2015MOHAA
push 0x80000001
jmp 0x4817f6
lea ecx, [esp + 0x18]
push ecx
push str.Software2015MOHAA
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyA]
test eax, eax
je 0x481805
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x20]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x481840
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x7fcfd4]
sub esp, 0xc
test eax, eax
push edi
jne 0x48191d
mov eax, dword [0x7fcfd8]
test eax, eax
jne 0x48191d
lea eax, [esp + 4]
mov edi, 1
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
mov dword [0x7fcfd8], edi
mov dword [esp + 0x14], 4
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyA]
test eax, eax
jne 0x481917
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x7fcfd0
push edx
push eax
mov eax, dword [esp + 0x14]
push str.EnableAutodial
push eax
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExA]
test eax, eax
jne 0x48190c
mov eax, dword [0x7fcfd0]
test eax, eax
je 0x48190c
mov ecx, dword [esp + 4]
push esi
push 4
push 0x7fcfdc
push 4
push 0
push str.EnableAutodial
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test esi, esi
pop esi
jne 0x481917
mov eax, dword [0x7fcfd0]
push eax
push 0x5450e4
call fcn.00464b30
push eax
push str.com_autodialdata
call fcn.0044fcd0
add esp, 0x10
pop edi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov dword [0x7fcfd4], edi
pop edi
add esp, 0xc
ret
Function at 0x481930
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [0x7fcfd4]
test eax, eax
jne 0x4819c2
mov eax, dword [0x7fcfd8]
test eax, eax
je 0x4819c2
lea eax, [esp]
mov dword [0x7fcfd8], 0
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyA]
test eax, eax
je 0x481976
mov dword [0x7fcfd4], 1
pop ecx
ret
mov ecx, dword [esp]
push esi
push 4
push 0x7fcfd0
push 4
push 0
push str.EnableAutodial
push ecx
call dword [sym.imp.ADVAPI32.DLL_RegSetValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
test esi, esi
pop esi
je 0x4819b0
mov dword [0x7fcfd4], 1
pop ecx
ret
push 0x56e6c4
push str.com_autodialdata
call fcn.0044fcd0
add esp, 8
pop ecx
ret

Function at 0x4819d0
Capabilities:
Set registry value

Disassembly:
push 1
push 0x56e6c4
push str.com_autodialdata
call fcn.0044f740
mov eax, dword [eax + 0x20]
add esp, 0xc
test eax, eax
je 0x481a11
push 0x56e6c4
push str.com_autodialdata
mov dword [0x7fcfd0], eax
mov dword [0x7fcfd8], 1
call fcn.0044fcd0
add esp, 8
jmp fcn.00481930
ret

Function at 0x481fe0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
push eax
xor ebx, ebx
push 0x7fce78
push str.PATH
push ebx
mov byte [0x7fce78], bl
mov dword [esp + 0x18], 0x100
call fcn.004817c0
add esp, 0x10
test eax, eax
je 0x4820e5
push 0x555f74
push 0x7fce78
push 0x555f60
lea ecx, [esp + 0x18]
push 0x100
push ecx
call fcn.004655f0
lea edx, [esp + 0x20]
push 0x555f70
push edx
call fcn.0051c2d5
add esp, 0x1c
cmp eax, ebx
je 0x4820df
mov cl, byte [0x7fce78]
push eax
mov byte [esp + 8], cl
mov byte [esp + 9], 0x3a
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], bl
call fcn.0051c227
add esp, 4
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 5
jne 0x4820df
push edi
mov edi, 0x7fce78
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4820b8
cmp byte [edx + 0x7fce78], 0x5c
jne 0x4820a4
mov byte [edx + 0x7fce78], 0x2f
mov edi, 0x7fce78
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x482094
dec edx
pop edi
cmp edx, ebx
jle 0x4820cc
cmp byte [edx + 0x7fce78], 0x2f
jne 0x4820cc
dec edx
cmp edx, ebx
jg 0x4820be
mov byte [edx + 0x7fce79], bl
mov eax, 0x7fce78
pop ebx
add esp, 0x108
ret
mov byte [0x7fce78], bl
mov eax, 0x7fce78
pop ebx
add esp, 0x108
ret

Function at 0x482e80
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
mov dword [0x7fcfc8], eax
je 0x482ec7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x482ec2
mov ecx, dword [0x7fcfc8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x7fcfc8], 0
mov eax, 1
ret
mov eax, dword [0x7fcfc8]
xor edx, edx
test eax, eax
sete dl
mov eax, edx
ret
Function at 0x482ee0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x482f17
cmp dword [esp + 4], 5
jb 0x482f17
cmp dword [esp + 0x10], 2
jne 0x482f17
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x4838b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov esi, dword [0x7fe1a0]
test eax, eax
je 0x4838d5
mov esi, dword [0x7fcfe0]
test esi, esi
je 0x483a3a
mov eax, dword [0xcbb6d4]
lea ecx, [esp + 0x14]
inc eax
mov dword [esp + 0x28], 0x10
mov dword [0xcbb6d4], eax
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 0
push edx
push eax
push esi
call sub.WSOCK32.DLL_recvfrom
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x2c], edi
jne 0x483948
call sub.WSOCK32.DLL_WSAGetLastError
cmp eax, 0x2733
je 0x483a3a
cmp eax, 0x2746
je 0x483a3a
call fcn.004832b0
push eax
push str.NET_GetPacket:__s_n
call fcn.0044cf60
add esp, 8
jmp 0x483a3a
mov eax, dword [0x7fe1a0]
cmp esi, eax
jne 0x48395b
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [0x7fe1f8]
test ecx, ecx
je 0x4839ff
cmp esi, eax
jne 0x4839ff
mov ecx, dword [esp + 0x28]
mov edi, 0x7fe184
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4839fb
mov eax, dword [esp + 0x2c]
mov ecx, 0xa
cmp eax, ecx
jl 0x483a3a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x483a3a
mov dl, byte [eax + 1]
test dl, dl
jne 0x483a3a
mov dl, byte [eax + 2]
test dl, dl
jne 0x483a3a
cmp byte [eax + 3], 1
jne 0x483a3a
mov dword [ebx], 4
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x2c]
mov dl, byte [eax + 4]
mov byte [ebx + 4], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 5]
mov byte [ebx + 5], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 6]
mov byte [ebx + 6], dl
mov eax, dword [ebp + 0xc]
mov dl, byte [eax + 7]
mov byte [ebx + 7], dl
mov eax, dword [ebp + 0xc]
mov dx, word [eax + 8]
mov word [ebx + 0x12], dx
mov dword [ebp + 0x18], ecx
jmp 0x483a14
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004835b0
add esp, 8
mov dword [ebp + 0x18], 0
cmp edi, dword [ebp + 0x10]
jne 0x483a56
sub esp, 0x14
mov ecx, 5
mov esi, ebx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00460d70
push eax
push str.Oversize_packet_from__s_n
call fcn.0044cf60
add esp, 0x1c
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x4838c5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov dword [ebp + 0x14], edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret