joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
movzx ebx, ax
mov eax, dword [ebp + 0xc]
push esi
push edi
movzx eax, ax
mov edi, ecx
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x10]
push 0x45ec5c
push str.serverset.txt
mov dword [ebp - 0x110], eax
call fcn.0042d5a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4063ad
lea eax, [ebp - 0x108]
push eax
push 0x45ec50
push esi
call fcn.0042ec60
push esi
call fcn.0042d230
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push str.serverset__d_serverlist.list
push eax
call fcn.0042d5f0
add esp, 0x1c
lea eax, [ebp - 0x104]
mov ecx, 0x474348
push eax
call fcn.00408fb0
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push str.serverset__d_serverlist_Public.list
push eax
call fcn.0042d5f0
add esp, 0xc
lea eax, [ebp - 0x104]
mov ecx, 0x474348
push eax
call fcn.004091a0
mov eax, dword [0x47434c]
mov dword [0x48b674], eax
cmp eax, dword [ebp - 0x108]
je 0x406380
push 0
push 0x4f
push str..._CC_ServerModuleBootManager.cpp
call fcn.00405370
add esp, 0xc
push dword [ebp - 0x10c]
mov ecx, edi
push ebx
call fcn.00406570
mov ecx, dword [ebp - 0x110]
push eax
call fcn.00424a80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042c090
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push str.serverset.txt_is_not_exist._this_server_will_be_closed
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0042ec10
int3
Function at 0x407ef0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
movzx eax, byte [edi + 0xc]
sub eax, 0x65
je 0x407f33
sub eax, 3
je 0x407f28
dec eax
je 0x407f28
pop edi
pop esi
pop ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0x20d
mov dword [ebp + 8], str..._CC_ServerModuleDataBase.cpp
pop ebp
jmp fcn.00405370
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407f4e
mov eax, dword [edi]
jmp 0x407f43
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x407f4e
mov eax, dword [edi]
mov eax, dword [eax*4 + 0x474398]
test eax, eax
je 0x407f4e
push edi
push ebx
call eax
add esp, 8
mov eax, dword [ebp + 8]
push ebx
lea ecx, [eax + eax*2]
mov eax, dword [0x474338]
lea esi, [eax + ecx*4]
movzx eax, byte [edi + 0xc]
mov ecx, dword [esi]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov eax, dword [esi]
push dword [edi + 8]
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408fb0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c858
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
mov edi, dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.00426d20
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40900e
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 8]
call fcn.00426d40
push dword [eax]
call fcn.00429ff0
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x408ff2
lea ecx, [esi + 8]
call fcn.00426f30
push 0x45f48c
push edi
call fcn.0042d5a0
push 0x14
mov dword [ebp - 0x58], eax
xor edi, edi
mov dword [ebp - 0x4c], 0x13
call fcn.00429ee0
mov ebx, eax
mov edx, str.SOTIIQWEOZSLK___
add esp, 0xc
mov dword [ebp - 0x50], ebx
sub eax, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax + edx - 1], cl
test cl, cl
jne 0x409043
push dword [ebp - 0x58]
add esi, 4
mov dword [ebp - 4], 0
push 1
push 4
push esi
call fcn.0042bca0
add esp, 0x10
cmp eax, 1
jne 0x40908e
movzx eax, byte [ebx]
mov edi, 4
xor byte [esi], al
movzx eax, byte [ebx + 1]
xor byte [esi + 1], al
movzx eax, byte [ebx + 2]
xor byte [esi + 2], al
movzx eax, byte [ebx + 3]
xor byte [esi + 3], al
push 0x2e
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042a980
add esp, 0xc
mov edi, edi
mov esi, dword [ebp - 0x58]
lea eax, [ebp - 0x40]
push esi
push 1
push 0x2e
push eax
call fcn.0042bca0
add esp, 0x10
cmp eax, 1
jne 0x409162
xor ecx, ecx
nop
xor eax, eax
cmp edi, 0x13
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
xor byte [ebp + ecx - 0x40], al
xor eax, eax
cmp edi, 0x13
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
xor byte [ebp + ecx - 0x3f], al
add ecx, 2
cmp ecx, 0x2e
jl 0x4090c0
cmp word [ebp - 0x40], 9
mov dword [ebp - 0x54], edi
jb 0x409105
push 0
push 0
push 0x45f482
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x2e
call fcn.00429f90
mov esi, eax
add esp, 4
test esi, esi
je 0x409124
push 0x2e
push 0
push esi
call fcn.0042a980
add esp, 0xc
jmp 0x409126
xor esi, esi
movdqu xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0x48]
push esi
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ebp - 0x30]
lea ecx, [ecx + 8]
movdqu xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x20], xmm0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov ax, word [ebp - 0x14]
mov word [esi + 0x2c], ax
call fcn.00426b70
jmp 0x4090a0
push esi
call fcn.0042d230
push ebx
call fcn.0042f1b0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c090
mov esp, ebp
pop ebp
ret 4
Function at 0x4091a0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c888
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov eax, dword [ebp + 8]
push 0x45f48c
push eax
call fcn.0042d5a0
push 0x14
mov dword [ebp - 0x54], eax
xor edi, edi
mov dword [ebp - 0x48], 0x13
call fcn.00429ee0
mov ebx, eax
mov edx, str.SOTIIQWEOZSLK___
add esp, 0xc
mov dword [ebp - 0x4c], ebx
sub eax, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax + edx - 1], cl
test cl, cl
jne 0x409200
push dword [ebp - 0x54]
add esi, 4
mov dword [ebp - 4], 0
push 1
push 4
push esi
call fcn.0042bca0
add esp, 0x10
cmp eax, 1
jne 0x40924b
movzx eax, byte [ebx]
mov edi, 4
xor byte [esi], al
movzx eax, byte [ebx + 1]
xor byte [esi + 1], al
movzx eax, byte [ebx + 2]
xor byte [esi + 2], al
movzx eax, byte [ebx + 3]
xor byte [esi + 3], al
push 0x2e
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0042a980
add esp, 0xc
mov esi, dword [ebp - 0x54]
mov edi, edi
push esi
push 1
lea eax, [ebp - 0x40]
push 0x2e
push eax
call fcn.0042bca0
add esp, 0x10
cmp eax, 1
jne 0x409316
xor ecx, ecx
lea esp, [esp]
xor eax, eax
cmp edi, 0x13
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
xor byte [ebp + ecx - 0x40], al
xor eax, eax
cmp edi, 0x13
cmove edi, eax
movzx eax, byte [ebx + edi]
inc edi
xor byte [ebp + ecx - 0x3f], al
add ecx, 2
cmp ecx, 0x2e
jl 0x409280
cmp word [ebp - 0x40], 2
mov dword [ebp - 0x50], edi
jne 0x409260
push 0x2e
call fcn.00429f90
mov esi, eax
add esp, 4
test esi, esi
je 0x4092d3
push 0x2e
push 0
push esi
call fcn.0042a980
add esp, 0xc
jmp 0x4092d5
xor esi, esi
movdqu xmm0, xmmword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [ebp - 0x30]
lea ecx, [ecx + 0x28]
movdqu xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x20], xmm0
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov ax, word [ebp - 0x14]
mov word [esi + 0x2c], ax
movzx eax, word [esi + 0x26]
push eax
push esi
call fcn.00408df0
jmp 0x40925b
push esi
call fcn.0042d230
push ebx
call fcn.0042f1b0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c090
mov esp, ebp
pop ebp
ret 4
Function at 0x417cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4748f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
test ebx, ebx
jne 0x417d02
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c090
mov esp, ebp
pop ebp
ret 4
push 0x45f48c
push ebx
call fcn.0042d5a0
add esp, 8
mov dword [edi + 4], eax
test eax, eax
je 0x417cee
push 2
push 0
push eax
call fcn.0042bf00
push dword [edi + 4]
call fcn.004303d0
push 0
push 0
push dword [edi + 4]
mov dword [ebp - 0x208], eax
call fcn.0042bf00
mov ecx, dword [edi + 0x1e]
add esp, 0x1c
test ecx, ecx
je 0x417d55
push ecx
call fcn.0042f1b0
add esp, 4
mov dword [edi + 0x1e], 0
push esi
push dword [edi + 4]
lea esi, [edi + 0x10]
mov dword [edi + 0xc], 0
push 1
push 0xc
push esi
mov dword [edi + 0x22], 0
call fcn.0042bca0
mov eax, dword [esi]
lea ecx, [edi + 0x26]
sub eax, dword [edi + 0x18]
add esp, 0x10
sub eax, dword [edi + 0x14]
push eax
call fcn.00401f80
test eax, eax
jne 0x417dc5
push eax
push 0x15e
push str.MHFile.cpp
call fcn.00405370
add esp, 0xc
push 0
push 0
push str.Bin_File_Version_Error_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c090
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x26]
call fcn.00401f20
test eax, eax
je 0x417e93
mov esi, dword [ebp - 0x208]
add esi, 0xfffffff2
push esi
call fcn.00429ee0
add esp, 4
mov dword [edi + 0x1e], eax
test eax, eax
jne 0x417e03
push eax
push 0x168
push str.MHFile.cpp
call fcn.00405370
add esp, 0xc
jmp 0x417db0
push esi
push 0
push eax
call fcn.0042a980
add esp, 0xc
lea ecx, [edi + 0x26]
push dword [edi + 0x14]
push esi
push dword [edi + 0x1e]
push dword [edi + 4]
call fcn.00401c90
test eax, eax
jne 0x417e62
mov ecx, edi
call fcn.00417860
push 0
push 0x16f
push str.MHFile.cpp
call fcn.00405370
push ebx
lea eax, [ebp - 0x204]
push str.File_Open_Error_:__s
push eax
call fcn.0042d5f0
add esp, 0x18
lea eax, [ebp - 0x204]
push 0
push 0
push eax
jmp 0x417da8
push dword [edi + 4]
call fcn.0042d230
add esp, 4
mov dword [edi + 4], 0
mov dword [edi + 0x22], 1
mov eax, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042c090
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
lea eax, [edi + 0x1c]
push 1
push 1
push eax
call fcn.0042bca0
mov eax, dword [edi + 0x18]
add esp, 0x10
test eax, eax
je 0x417ec7
push eax
call fcn.00429ee0
push dword [edi + 4]
mov dword [edi + 0x1e], eax
push dword [edi + 0x18]
push 1
push eax
call fcn.0042bca0
add esp, 0x14
push dword [edi + 4]
lea eax, [edi + 0x1d]
push 1
push 1
push eax
call fcn.0042bca0
push dword [edi + 4]
call fcn.0042d230
add esp, 0x14
mov dword [edi + 4], 0
mov ecx, edi
call fcn.004177c0
test eax, eax
je 0x417db0
mov ecx, edi
call fcn.00417710
test eax, eax
je 0x417db0
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
mov dword [edi + 0x22], 1
xor ecx, ebp
pop edi
pop ebx
call fcn.0042c090
mov esp, ebp
pop ebp
ret 4
Function at 0x438c9a
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
dec ecx
mov edx, edx
and edx, ecx
call fcn.00438cdf
mov edx, 0x75868354
sub edx, 0x257a44d1
add edx, 0x40c0104d
xor dword [esi], ebx
inc ecx
sub ecx, edx
and ecx, edx
inc esi
add edx, edx
inc edx
cmp esi, edi
jne fcn.00438c9a
sub ecx, 0x62514386
ret

Function at 0x41cee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x41cf02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41cf09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41cef8
mov eax, 1
add ebx, ebx
jne 0x41cf1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41cf10
jne 0x41cf2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf10
xor ecx, ecx
sub eax, 3
jb 0x41cf40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41cfb2
mov ebp, eax
add ebx, ebx
jne 0x41cf4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41cf58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41cf7c
inc ecx
add ebx, ebx
jne 0x41cf68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41cf5d
jne 0x41cf79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41cf5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41cf9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41cf8d
jmp 0x41cefe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41cf9c
add edi, ecx
jmp 0x41cefe
pop esi
mov edi, esi
mov ecx, 0x157
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41cfba
cmp byte [edi], 0
jne 0x41cfba
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 eax, ebx
loop 0x41cfbf
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d02e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d100]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41cfec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d104]
or eax, eax
je 0x41d028
mov dword [ebx], eax
add ebx, 4
jmp 0x41d009
call dword [esi + 0x1d108]
popal
jmp 0x403ab4
Function at 0x4010f7
Capabilities:
Delete file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x1004
call fcn.00405c00
mov eax, dword [esp + 0x1004]
push 0
mov edi, edx
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call sub.KERNEL32.DLL_CreateFileA
test eax, eax
mov esi, eax
je 0x4011c2
cmp eax, 0xffffffff
je 0x4011c2
push pe_nt_image_headers32
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.DLL_CreateFileA
test eax, eax
mov ebx, eax
je 0x4011c2
cmp eax, 0xffffffff
jne 0x401195
jmp 0x4011c2
push esi
call sub.KERNEL32.DLL_CloseHandle
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, 1
jmp 0x4011c4
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 8]
push ebp
push ebx
call sub.KERNEL32.DLL_WriteFile
cmp dword [esp], 0xfff
jbe 0x401167
push 0
lea eax, [esp + 4]
push eax
push 0x1000
lea ebp, [esp + 0x14]
push ebp
push esi
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40117a
push esi
call sub.KERNEL32.DLL_CloseHandle
push ebx
call sub.KERNEL32.DLL_CloseHandle
push edi
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
add esp, 0x1008
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4011cf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x1300
call fcn.00405c00
mov eax, dword [esp + 0x1300]
mov esi, edx
mov edi, eax
mov eax, esp
push eax
push 0x20019
push 0
push edx
push edi
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x401240
jmp 0x40121c
push ebx
push esi
push str._s_s
lea ebx, [esp + 0x10]
push ebx
call sub.USER32.dll_wsprintfA
mov edx, ebx
mov eax, edi
call fcn.004011cf
add esp, 0x10
push 0x300
lea ebx, [esp + 0x1008]
push ebx
push 0
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x4011ff
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
push esi
push edi
call sub.ADVAPI32.DLL_RegDeleteKeyA
add esp, 0x1304
pop ebx
pop esi
pop edi
ret

Function at 0x401251
Capabilities:
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x4ffc
call fcn.00405c00
cmp dword [0x412100], 2
mov eax, dword [esp + 0x4ffc]
mov esi, eax
jne 0x4012b7
mov ecx, esp
mov edi, esp
lea ebx, [esp + 0x4ffe]
cmp ecx, ebx
jae 0x40129c
mov eax, ecx
mov edx, 0xa
sub eax, edi
sar eax, 1
mov ebp, edx
cdq
idiv ebp
add edx, 0x30
mov word [ecx], dx
add ecx, 2
jmp 0x40127d
mov word [ecx], 0
push 4
push 0x411035
push 1
push 0
lea eax, [esp + 0x10]
push eax
push esi
call sub.ADVAPI32.DLL_RegSetValueExW
add esp, 0x5000
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4012c2
Capabilities:
Delete file
Set file attributes

Disassembly:
push edi
mov edi, eax
push esi
mov esi, 0x410c80
push ebx
sub esp, 0x210
cmp dword [0x410c80], 0
je 0x401307
push dword [esi]
add esi, 4
push edi
lea ebx, [esp + 8]
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push eax
call sub.KERNEL32.DLL_lstrcatA
push pe_nt_image_headers32
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
push ebx
call sub.KERNEL32.DLL_DeleteFileA
cmp dword [esi], 0
jmp 0x4012d9
add esp, 0x210
pop ebx
pop esi
pop edi
ret

Function at 0x401625
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x120
mov ebp, dword [esp + 0x134]
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x401715
mov edx, dword [esp + 0x10]
xor eax, eax
cmp eax, edx
jae 0x40166a
mov ecx, dword [esp + 4]
cmp dword [esp + eax*4 + 0x14], ecx
je 0x40166a
inc eax
jmp 0x401659
cmp eax, edx
jne 0x401680
cmp eax, 0x3f
ja 0x401680
mov edx, dword [esp + 4]
mov dword [esp + eax*4 + 0x14], edx
inc eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x138]
lea eax, [esp + 8]
mov dword [esp + 8], ecx
push eax
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call sub.WS2_32.DLL_select
dec eax
jne 0x401715
push 2
push ebp
push edi
push dword [esp + 0x10]
call sub.WS2_32.DLL_recv
test eax, eax
mov ebx, eax
jle 0x401715
mov esi, edi
cmp byte [esi], 0xa
jne 0x4016f2
push 0
sub ebx, eax
lea eax, [ebx + 1]
push eax
push edi
push dword [esp + 0x10]
call sub.WS2_32.DLL_recv
test ebx, ebx
je 0x4016e8
cmp byte [esi - 1], 0xd
jne 0x4016e8
mov byte [esi - 1], 0
dec ebx
jmp 0x4016eb
mov byte [esi], 0
mov eax, dword [esp]
add eax, ebx
jmp 0x401722
inc esi
dec eax
jne 0x4016c0
push 0
sub ebp, ebx
cmp ebp, 1
sbb ebx, 0
push ebx
push edi
add edi, ebx
push dword [esp + 0x10]
call sub.WS2_32.DLL_recv
add dword [esp], ebx
jmp 0x40164b
mov byte [edi], 0
mov eax, dword [esp]
test eax, eax
jne 0x401722
or eax, 0xffffffff
add esp, 0x120
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40172d
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x124
mov ebx, edx
mov dword [esp + 0x10], 1
lea edi, [esp + 0x10]
push edi
push 0x8004667e
push eax
call sub.WS2_32.DLL_ioctlsocket
mov dword [esp + 0x10], 0
push 0x10
push ebx
push esi
call sub.WS2_32.DLL_connect
test eax, eax
jne 0x40177a
push edi
push 0x8004667e
push esi
call sub.WS2_32.DLL_ioctlsocket
xor eax, eax
jmp 0x401828
call sub.WS2_32.DLL_WSAGetLastError
cmp eax, 0x2733
je 0x40179a
push edi
push 0x8004667e
push esi
call sub.WS2_32.DLL_ioctlsocket
or eax, 0xffffffff
jmp 0x401828
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x134]
mov dword [esp + 0x14], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x18]
push eax
push eax
push 0
push 0
call sub.WS2_32.DLL_select
mov dword [esp], eax
push edi
push 0x8004667e
push esi
call sub.WS2_32.DLL_ioctlsocket
or eax, 0xffffffff
cmp dword [esp], 1
jne 0x401828
mov dword [esp + 4], 4
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 0x1007
push 0xffff
push esi
call sub.WS2_32.DLL_getsockopt
inc eax
je 0x401823
mov eax, dword [esp]
test eax, eax
setne dl
cmp eax, 0x2748
setne al
movzx eax, al
xor ecx, ecx
test edx, eax
je 0x401826
or ecx, 0xffffffff
mov eax, ecx
add esp, 0x124
pop ebx
pop esi
pop edi
ret
Function at 0x401832
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov eax, 0x201c
push edi
push esi
push ebx
call fcn.00405c00
cmp byte [0x412010], 0
je 0x4019dd
push 0
mov ebp, 1
lea eax, [esp + 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x410640
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov dword [esp], 0
test eax, eax
je 0x4019ad
jmp 0x4019dd
push ebx
call sub.KERNEL32.DLL_lstrlenA
cmp eax, 0x10
jle 0x4019aa
mov edx, 0x4106dd
mov eax, ebx
call fcn.00401311
test eax, eax
jne 0x4019aa
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x4106a0
push ebx
call sub.KERNEL32.DLL_lstrcatA
push eax
push 0x80000003
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4019aa
mov dword [esp + 0x10], 0x1000
lea eax, [esp + 0x10]
push eax
push ebx
lea eax, [esp + 0x14]
push eax
push 0
push 0x410616
push dword [esp + 0x28]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4019a1
movzx eax, byte [esp + 0x101c]
test al, al
je 0x4019a1
cmp al, 0x30
je 0x4019a1
lea eax, [esp + 8]
xor ebx, ebx
push eax
push 0x20019
push 0
push 0x41060a
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x401951
jmp 0x4019a1
push dword [esp + 4]
inc ebx
push edi
push dword [esp + 0x14]
push 0
push esi
push dword [esp + 0x2c]
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [esp + 0x10], 0x1000
lea eax, [esp + 4]
mov dword [esp + 4], 0x1000
push eax
lea edi, [esp + 0x20]
push edi
lea eax, [esp + 0x14]
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea esi, [esp + 0x1030]
push esi
push ebx
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegEnumValueA
test eax, eax
je 0x40193b
push dword [esp + 8]
xor eax, eax
test ebx, ebx
sete al
neg eax
and ebp, eax
call sub.ADVAPI32.DLL_RegCloseKey
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegCloseKey
inc dword [esp]
test ebp, ebp
je 0x4019d4
push 0x1000
lea ebx, [esp + 0x1020]
push ebx
push dword [esp + 8]
push 0x80000003
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x401889
push dword [esp + 0x18]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x201c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401e00
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, edx
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x120
mov esi, dword [esp + 0x134]
cmp dword [eax], 0
je 0x401e38
lea eax, [esp + 0xc]
push eax
push esi
push edx
push dword [edi + 4]
call dword [0x4121f0]
test eax, eax
jne 0x401e82
mov dword [esp + 0xc], 0xffffffff
jmp 0x401e82
mov ebx, dword [eax + 4]
mov dword [esp + 4], 0x28
mov dword [esp + 8], 0
mov dword [esp + 0x14], ebx
lea eax, [esp + 4]
mov dword [esp + 0x10], 1
push eax
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call sub.WS2_32.DLL_select
or edx, 0xffffffff
dec eax
jne 0x401e7e
push 0
push esi
push ebp
push ebx
call sub.WS2_32.DLL_recv
mov edx, eax
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xc]
test ecx, ecx
setne al
xor edx, edx
cmp ecx, 0xffffffff
setne dl
test eax, edx
je 0x401f4a
cmp dword [edi + 0x10], 0
je 0x401f4a
mov eax, dword [edi + 8]
mov ebx, ecx
mov esi, ebp
mov dword [esp], eax
mov eax, dword [edi + 0xc]
cmp eax, 2
je 0x401ed6
jg 0x401ebe
dec eax
je 0x401ec5
jmp 0x401f08
cmp eax, 3
je 0x401eee
jmp 0x401f08
movzx eax, byte [esp + 1]
inc esi
xor byte [ebp], al
dec ebx
jne 0x401ed6
inc dword [edi + 0xc]
jmp 0x401eea
movzx eax, byte [esp + 2]
mov edx, esi
inc esi
xor byte [edx], al
dec ebx
jne 0x401eee
mov dword [edi + 0xc], 3
mov eax, ecx
jmp 0x401f4e
movzx edx, byte [esp + 3]
mov eax, esi
dec ebx
inc esi
xor byte [eax], dl
mov edx, 4
mov eax, esp
call fcn.00401dd7
mov dword [esp], eax
cmp ebx, 3
jbe 0x401f1a
mov eax, dword [esp]
sub ebx, 4
xor dword [esi], eax
add esi, 4
jmp 0x401ef9
mov dword [edi + 0xc], ebx
cmp ebx, 2
je 0x401f36
jg 0x401f29
dec ebx
je 0x401f3e
jmp 0x401f44
cmp ebx, 3
jne 0x401f44
movzx eax, byte [esp + 2]
xor byte [esi + 2], al
movzx eax, byte [esp + 1]
xor byte [esi + 1], al
movzx eax, byte [esp]
xor byte [esi], al
mov eax, dword [esp]
mov dword [edi + 8], eax
mov eax, dword [esp + 0xc]
add esp, 0x120
pop ebx
pop esi
pop edi
pop ebp
ret