joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x536324]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
test edi, edi
je 0x405ae9
cmp byte [edi], 0
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
jne 0x405a5b
xor ecx, ecx
jmp 0x405a69
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a60
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x2c]
call fcn.004052e0
push 1
push 0x4a4d08
lea ecx, [esp + 0x2c]
call fcn.00403ee0
push eax
lea ecx, [esp + 0x58]
call fcn.00404c20
cmp byte [esi], 0
jne 0x405a97
xor ecx, ecx
jmp 0x405aa9
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405aa0
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x5c]
call fcn.00403ee0
push eax
lea ecx, [esp + 0x40]
call fcn.00404c20
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.00405f10
lea ecx, [esp + 0x3c]
call fcn.00404ca0
lea ecx, [esp + 0x54]
call fcn.00404ca0
lea ecx, [esp + 0x24]
call fcn.00404ca0
jmp 0x405b0b
cmp byte [esi], 0
jne 0x405af2
xor ecx, ecx
jmp 0x405b00
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405af7
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.004052e0
push dword [ebp + 0x14]
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
push edi
cmovae eax, dword [esp + 0x14]
push ebx
push eax
push 0x4a4d0c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x20]
cmp eax, 0x10
jb 0x405b64
mov ecx, dword [esp + 0xc]
inc eax
cmp eax, 0x1000
jb 0x405b5b
test cl, 0x1f
jne 0x405b76
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x405b7b
sub ecx, eax
cmp ecx, 4
jb 0x405b80
cmp ecx, 0x23
ja 0x405b85
mov ecx, eax
push ecx
call fcn.00462a58
add esp, 4
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00462ba5
mov esp, ebp
pop ebp
ret
call fcn.00468921
call fcn.00468921
call fcn.00468921
call fcn.00468921
int3
Function at 0x409540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b25b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x536324]
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 eax, dword [ebp + 8]
push eax
call sub.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____
push 4
call sub.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceType_int_
lea eax, [ebp - 0x94]
push eax
call sub.DuiLib.dll_public:_static_class_DuiLib::CDuiString___cdecl_DuiLib::CPaintManagerUI::GetInstancePath_void_
add esp, 0xc
mov dword [ebp - 4], 0
call sub.DuiLib.dll_public:_static_int___cdecl_DuiLib::CPaintManagerUI::GetResourceType_void_
sub eax, 1
je 0x4095fa
sub eax, 3
jne 0x40961e
call sub.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetInstance_void_
push str.ZIPRES
push str.SKINDATA
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40961e
call sub.DuiLib.dll_public:_static_struct_HINSTANCE______cdecl_DuiLib::CPaintManagerUI::GetResourceDll_void_
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4095f1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4095f1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call sub.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_int_
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40961e
push str..._skinUpdate_
lea ecx, [ebp - 0x94]
call sub.DuiLib.dll_public:_class_DuiLib::CDuiString_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__
lea ecx, [ebp - 0x94]
call sub.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::GetData_void_const
push eax
call sub.DuiLib.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourcePath_wchar_t_const__
add esp, 4
lea ecx, [ebp - 0x94]
call sub.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
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.00462ba5
mov esp, ebp
pop ebp
ret
Function at 0x409e00
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
mov edi, ecx
call fcn.0042f0f0
call fcn.0042f060
push 1
mov esi, eax
push 0x29
push esi
call fcn.0042f0c0
push str.User_Agent:Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_42.0.2311.90_Safari_537.36
push 0
call fcn.0042f440
push str.Accept:_
push eax
call fcn.0042f440
mov ebx, eax
push ebx
push 0x2727
push esi
call fcn.0042f0c0
add esp, 0x2c
cmp dword [edi + 0x14], 0x10
jb 0x409e53
mov ecx, dword [edi]
jmp 0x409e55
mov ecx, edi
push ecx
push 0x2712
push esi
call fcn.0042f0c0
push 0x409db0
push 0x4e2b
push esi
call fcn.0042f0c0
push edi
push 0x2711
push esi
call fcn.0042f0c0
push 0
push 0x2b
push esi
call fcn.0042f0c0
push edi
push 0x2749
push esi
call fcn.0042f0c0
push 0x409d70
push 0x4e58
push esi
call fcn.0042f0c0
mov eax, dword [edi + 0x1c]
add esp, 0x48
test eax, eax
je 0x409ec4
push eax
push 0x13
push esi
call fcn.0042f0c0
push dword [edi + 0x20]
push 0x14
push esi
call fcn.0042f0c0
add esp, 0x18
push esi
call fcn.0042f0a0
add esp, 4
test eax, eax
je 0x409f2a
push eax
call fcn.0042f5c0
mov edx, eax
add esp, 4
cmp byte [edx], 0
jne 0x409ee5
xor ecx, ecx
jmp 0x409efa
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409ef0
sub ecx, dword [ebp - 4]
push ecx
push edx
lea ecx, [edi + 0x2c]
call fcn.004052e0
mov ecx, dword [edi + 0x24]
test ecx, ecx
je 0x409f11
mov eax, dword [ecx]
push edi
call dword [eax + 4]
push esi
call fcn.0042f020
push ebx
call fcn.0042f480
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x28]
push eax
push 0x200002
push esi
call fcn.0042f040
add esp, 0xc
test eax, eax
je 0x409f6c
push eax
call fcn.0042f5c0
mov edx, eax
add esp, 4
cmp byte [edx], 0
jne 0x409f54
xor ecx, ecx
jmp 0x409efa
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 4], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409f60
sub ecx, dword [ebp - 4]
jmp 0x409efa
push esi
call fcn.0042f020
push ebx
call fcn.0042f480
mov ecx, dword [edi + 0x24]
add esp, 8
test ecx, ecx
je 0x409f87
mov eax, dword [ecx]
push edi
call dword [eax]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409fa0
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x40ba90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x40bab0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x40bdd0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
dec eax
mov ecx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x40be7c
nop dword [eax]
mov ecx, dword [edi + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 4], esi
nop dword [eax + eax]
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40be14
mov ecx, esi
call fcn.0040cae0
jmp 0x40be22
cmp eax, 0x4e0
jb 0x40be22
mov ecx, esi
call fcn.0040ca10
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [edi + 8]
ja 0x40be00
mov ecx, dword [edi + 4]
mov esi, dword [ebp - 4]
dec ecx
shl ebx, cl
or esi, eax
mov ecx, dword [ebp + 8]
add ebx, ebx
or ebx, dword [edi + 8]
lea eax, [ecx - 1]
cmp ebx, eax
jb 0x40bdf0
xor edx, edx
mov eax, ebx
div ecx
mov ecx, eax
mov ebx, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
mov ecx, dword [ebp + 8]
jb 0x40be9f
lea eax, [ecx - 1]
cmp ebx, eax
jne 0x40bde0
mov eax, esi
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c770
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
nop
mov ecx, dword [edi + 4]
dec ecx
shl ebx, cl
add ebx, ebx
nop dword [eax + eax]
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40c7a4
mov ecx, esi
call fcn.0040cae0
jmp 0x40c7b2
cmp eax, 0x4e0
jb 0x40c7b2
mov ecx, esi
call fcn.0040ca10
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [edi + 8]
ja 0x40c790
mov eax, dword [ebp - 4]
or ebx, ecx
add eax, dword [edi + 4]
mov dword [ebp - 4], eax
cmp eax, 0x20
jb 0x40c780
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ca10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x40ca20
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x40ca62
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x40cae0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x40caf0
pop esi
ret

Function at 0x40e4e0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x536324]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00465f50
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40e532
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462ba5
mov esp, ebp
pop ebp
ret
push ebx
push 0x48e8f4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40e5b5
push esi
push ebx
call fcn.00462a9e
add esp, 4
mov dword [ebp - 0x214], edi
mov esi, eax
mov dword [ebp - 0x210], edi
lea eax, [ebp - 0x20c]
push esi
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e5ab
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x48ede4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e5ab
mov eax, dword [ebp - 0x210]
mov edi, dword [eax + 8]
push esi
call fcn.00462aa7
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
xor ecx, ebp
pop edi
call fcn.00462ba5
mov esp, ebp
pop ebp
ret
Function at 0x40ead0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
call fcn.0040ded0
test al, al
jne 0x40eae4
mov ecx, esi
pop esi
jmp fcn.0040ea10
cmp dword [esi], 0
jne 0x40eafc
mov ecx, esi
call fcn.0040f1f0
test al, al
jne 0x40eafc
mov ecx, esi
pop esi
jmp fcn.0040dd00
mov ecx, esi
call fcn.0040e0e0
test al, al
je 0x40eb74
cmp dword [esi], 1
jne 0x40eb36
mov ecx, esi
call fcn.0040e8d0
test al, al
je 0x40eb36
mov ecx, esi
call fcn.0040e9e0
push 0
push str._f__im_xiaoyu.exe
push str.taskkill.exe
push 0
call fcn.00405a00
add esp, 0x10
jmp 0x40eb3f
push 0
mov ecx, esi
call fcn.0040eb80
cmp dword [esi], 0
jne 0x40eb6c
mov ecx, esi
call fcn.0040e8d0
test al, al
je 0x40eb6c
mov ecx, esi
call fcn.0040e9e0
push 0
push str._f__im_xiaoyu.exe
push str.taskkill.exe
push 0
call fcn.00405a00
add esp, 0x10
mov ecx, esi
pop esi
jmp fcn.0040e150
pop esi
ret
Function at 0x40fad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea edx, [ecx + 4]
xor bl, bl
cmp dword [edx + 0x14], 0x10
jb 0x40fae2
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
mov eax, dword [ecx + 0x24]
or eax, 0x20019
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fb29
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x40fb09
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40fb80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x536324]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], 0
call fcn.0040fe00
test al, al
je 0x40fc52
cmp dword [edi + 0x14], 0x10
jb 0x40fbb9
mov eax, dword [edi]
jmp 0x40fbbb
mov eax, edi
lea ecx, [ebp - 0x20]
push ecx
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fc52
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x40fbe7
cmp eax, 2
je 0x40fbe7
cmp eax, 6
jne 0x40fc52
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40fc52
inc eax
push eax
call fcn.00462a9e
inc dword [ebp - 0x20]
add esp, 4
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x28], eax
jb 0x40fc06
mov edi, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
push eax
push 0
push 0
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
push ecx
mov byte [ecx + eax], 0
lea ecx, [ebp - 0x1c]
call fcn.004053e0
lea eax, [ebp - 0x1c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.00404bb0
lea ecx, [ebp - 0x1c]
call fcn.00404ca0
jmp 0x40fc63
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462ba5
mov esp, ebp
pop ebp
ret 8

Function at 0x40fe70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.0040fe00
test al, al
jne 0x40fe84
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
sub ecx, edx
cmp dword [eax + 0x14], 0x10
jb 0x40fe99
mov eax, dword [eax]
push ecx
push edx
push 3
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
sete al
pop ebp
ret 8
Function at 0x42f390
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x536324]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42f3e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x42f3da
shr eax, 8
cmp al, 2
jne 0x42f3da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462ba5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00462ba5
mov esp, ebp
pop ebp
ret

Function at 0x434860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43487e
cmp dword [esi + 0x48], 0
je 0x43487e
push 2
push 3
push esi
call fcn.00449600
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00440e40
add esp, 4
test esi, esi
je 0x43489e
cmp dword [esi + 0x48], 0
je 0x43489e
push 3
push esi
call fcn.00449640
add esp, 8
pop esi
pop ebp
ret
Function at 0x43da10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x190]
call fcn.0043dd80
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x43da94
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x43da6c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.0042f4e0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0043d680
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4684], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1b4]
mov ebx, dword [ecx + edx*4 + 0x190]
add esi, eax
mov eax, dword [ecx + 0x288]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x43de36
cmp dword [ecx + edx*4 + 0x1a4], 0x43d960
jne 0x43de36
cmp dword [esi], 0
je 0x43ddcc
test edi, edi
je 0x43de36
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0043d000
add esp, 0x14
cmp eax, 0xffffffff
je 0x43de36
test al, 1
je 0x43de36
cmp dword [esi], 0
jne 0x43de1f
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x5362c0]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x43de1f
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x43de36
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43de40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x43de69
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x43de9f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x494128
push 2
push eax
call fcn.00471753
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00471753
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x43df73
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x43df6f
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
Function at 0x43e650
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5382f0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x43e6a1
push 3
push 2
push eax
push 6
call fcn.0045c0b0
add esp, 0x10
test al, al
je 0x43e695
mov dword [0x5382f0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5382f0], 1
jmp 0x43e6a6
cmp eax, 2
je 0x43e6e6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43e6cd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x43e6e6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x43e7b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x43e7f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042f4e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043d730
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043d730
add esp, 8
pop edi
pop esi
pop ebp
ret