joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100225b0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10050050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10755018]
push ebx
push edi
cmp esi, dword [eax + 0x9d9c]
jne 0x10022608
cmp dword [eax + 0x9da4], 0
je 0x100225e4
cmp dword [eax + 0x9da0], 0
jne 0x10022608
push 0x10048df8
push str.SaveWordLibrary
call fcn.10014390
add esp, 8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
test esi, esi
js 0x1002262a
mov ebx, dword [esi*4 + 0x10757908]
test ebx, ebx
jne 0x1002264f
push esi
push 0x10048db8
push str.GetWordLibrary
call fcn.10014390
add esp, 0xc
push esi
push str.gb0R
push str.SaveWordLibrary
call fcn.10014390
add esp, 0xc
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
call fcn.10022410
cmp eax, esi
jne 0x100226e9
mov eax, dword [0x10755018]
mov edi, esi
shl edi, 9
lea ecx, [edi + eax + 0x9da8]
push ecx
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.10026c57
add esp, 0xc
push str..bak
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.10026be2
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100226cc
push 0x80
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x10755018]
push 0
lea ecx, [ebp - 0x210]
push ecx
lea eax, [edi + edx + 0x9da8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, dword [ebx + 0x48]
mov edx, dword [0x10755018]
add edi, 3
mov ecx, esi
shl ecx, 9
shl edi, 0xa
push edi
lea ecx, [ecx + edx + 0x9da8]
call fcn.100147f0
add esp, 4
test eax, eax
jne 0x10022738
push edi
push ebx
push esi
push 0x10048e68
push str.SaveWordLibrary
call fcn.10014390
add esp, 0x14
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10755018]
cmp esi, dword [eax + 0x9d9c]
jne 0x1002274f
mov dword [eax + 0x9da0], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1002656f
mov esp, ebp
pop ebp
ret
Function at 0x10022bd0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x10050050]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x100459c8
push str.LoadUserWordLibrary
call fcn.10014390
push esi
push 0x10048fbc
push str.LoadUserWordLibrary
call fcn.10014390
add esp, 0x14
lea eax, [ebp - 0x448]
push eax
push esi
call fcn.1002862c
add esp, 8
test eax, eax
jne 0x10022c22
cmp dword [ebp - 0x434], eax
jg 0x10022c4e
push 1
push 0x10048fd4
mov edx, 0x10048fdc
mov ecx, esi
call fcn.10023330
add esp, 8
test eax, eax
jne 0x10022c4e
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
push 0x10045820
push str.LoadUserWordLibrary
call fcn.10014390
push 1
push 0x100000
mov ecx, esi
call fcn.100227f0
mov edi, dword [0x10755018]
add edi, 0x9d9c
add esp, 0x10
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x10022da8
push esi
lea ecx, [ebp - 0x210]
push 0x104
push ecx
call fcn.10026c57
add esp, 0xc
push str..bad
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.10026be2
add esp, 0xc
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.10026c57
add esp, 0xc
push str..bak
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.10026be2
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call edi
cmp eax, 0xffffffff
je 0x10022d14
push 0x80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x210]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x418]
push eax
call edi
cmp eax, 0xffffffff
je 0x10022d40
push 0
push esi
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call edi
cmp eax, 0xffffffff
je 0x10022d65
push 1
push 0x100000
mov ecx, esi
call fcn.100227f0
mov edx, dword [0x10755018]
add esp, 8
mov dword [edx + 0x9d9c], eax
mov edi, dword [0x10755018]
add edi, 0x9d9c
cmp dword [edi], 0xffffffff
jne 0x10022da8
push 1
push 0x10048fd4
mov edx, 0x10048fdc
mov ecx, esi
call fcn.10023330
mov edi, dword [0x10755018]
push 1
push 0x100000
mov ecx, esi
add edi, 0x9d9c
call fcn.100227f0
add esp, 0x10
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, dword [edi]
xor ecx, ebp
pop edi
call fcn.1002656f
mov esp, ebp
pop ebp
ret
Function at 0x10023330
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1214
call fcn.10039000
mov eax, dword [0x10050050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push ebx
mov edi, edx
push edi
mov esi, ecx
push esi
push 0x10049078
push str.CreateEmptyWordLibFile
call fcn.10014390
push 0x1000
lea ecx, [ebp - 0x1210]
push 0
push ecx
call fcn.1002a830
add esp, 0x24
push 0x10
lea edx, [ebp - 0x11ec]
push ebx
push edx
call fcn.10026d87
add esp, 0xc
push 0x10
lea eax, [ebp - 0x120c]
push edi
push eax
call fcn.10026d87
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x1000
push esi
lea edx, [ebp - 0x1210]
push edx
mov dword [ebp - 0x11c4], ecx
or eax, 0xffffffff
mov ecx, 0x240
lea edi, [ebp - 0x11bc]
rep stosd dword es:[edi], eax
xor ebx, ebx
push 0x10046e98
push 0x10046ebc
mov dword [ebp - 0x11c8], ebx
mov dword [ebp - 0x11c0], 6
mov dword [ebp - 0x1210], 0x14091994
mov dword [ebp - 0x11cc], ebx
call fcn.10014390
add esp, 0x14
push 0x10046ed4
push esi
call fcn.10027381
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x100234a4
push 0x10046e5c
push 0x10046ebc
call fcn.10014390
lea edx, [ebp - 0x210]
add esp, 8
xor edi, edi
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x10023431
xor ecx, ecx
cmp word [ebp - 0x210], bx
je 0x100234dd
lea eax, [ebp - 0x210]
cmp word [eax], 0x5c
jne 0x1002345d
mov edi, ecx
inc ecx
cmp word [ebp + ecx*2 - 0x210], bx
lea eax, [ebp + ecx*2 - 0x210]
jne 0x10023455
cmp edi, ebx
je 0x100234dd
push ebx
lea ecx, [ebp - 0x210]
push ecx
xor eax, eax
push ebx
mov word [ebp + edi*2 - 0x210], ax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x100234dd
push 0x10046ed4
push esi
call fcn.10027381
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x100234dd
push edi
push 0x1000
lea edx, [ebp - 0x1210]
push 1
push edx
call fcn.10029ac6
push edi
mov esi, eax
call fcn.100277b9
add esp, 0x14
cmp esi, 0x1000
je 0x100234f0
push 0x10046edc
push 0x10046ebc
call fcn.10014390
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002656f
mov esp, ebp
pop ebp
ret
push 0x10046eec
push 0x10046ebc
call fcn.10014390
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1002656f
mov esp, ebp
pop ebp
ret
Function at 0x10025030
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.10039000
mov eax, dword [0x10050050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.kuaodata_]
mov edx, dword [0x100495f8]
mov ecx, dword [0x100495f4]
push esi
push edi
mov dword [ebp - 0x20c], eax
mov eax, dword [0x100495fc]
push 0x1f2
mov dword [ebp - 0x200], eax
mov dword [ebp - 0x208], ecx
mov ecx, dword [0x10049600]
mov dword [ebp - 0x204], edx
mov dx, word [0x10049604]
lea eax, [ebp - 0x1f6]
push 0
push eax
mov dword [ebp - 0x1fc], ecx
mov word [ebp - 0x1f8], dx
call fcn.1002a830
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0xc32]
push edx
mov word [ebp - 0xc34], cx
call fcn.1002a830
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x61a]
push ecx
mov word [ebp - 0x61c], ax
call fcn.1002a830
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.1002a830
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x822]
push edx
mov word [ebp - 0x824], cx
call fcn.1002a830
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xa2a]
push ecx
mov word [ebp - 0xa2c], ax
call fcn.1002a830
add esp, 0x48
lea esi, [ebp - 0xe3c]
mov edi, 1
call fcn.100150d0
test eax, eax
je 0x10025154
lea eax, [ebp - 0x824]
mov ecx, str.kuaodata2.ini
mov edx, esi
call fcn.10015110
mov edx, dword [0x107cb6b0]
cmp dword [edx + 0x4070], edi
jle 0x10025278
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, 0x200
push edi
lea eax, [ebp - 0xc34]
push 0x10045fe4
push eax
call fcn.10026910
add esp, 0xc
lea ecx, [ebp - 0x824]
push ecx
push 0x104
lea edx, [ebp - 0x61c]
push edx
push 0x10045a28
lea eax, [ebp - 0xc34]
push eax
push str.File
call ebx
cmp word [ebp - 0x61c], 0
je 0x1002525f
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.10026910
add esp, 0x10
lea ecx, [ebp - 0x1044]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x10025211
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SHGetFolderPath
push str.GetUserAppDirectory
call fcn.10014390
add esp, 0xc
jmp 0x10025228
lea eax, [ebp - 0xa2c]
lea ecx, [ebp - 0x414]
lea edx, [ebp - 0x1044]
call fcn.10015110
lea edx, [ebp - 0xa2c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002525f
lea eax, [ebp - 0x414]
mov edx, eax
mov ecx, esi
sub ecx, edx
mov edx, dword [0x107cb6b0]
lea edx, [ecx + edx + 0x70]
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10025250
mov eax, dword [0x107cb6b0]
inc edi
add esi, 0x200
cmp edi, dword [eax + 0x4070]
jl 0x10025172
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002656f
mov esp, ebp
pop ebp
ret

Function at 0x1002656f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10050050]
jne 0x10026579
repz ret
jmp fcn.1002a500
Function at 0x1003781c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10050050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1002c55f
and dword [ebp - 0x14], 0
cmp dword [0x1033f554], 0
mov dword [ebp - 0x18], eax
jne 0x100378cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10037977
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10042da8
push ebx
call edi
test eax, eax
je 0x10037977
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1033f554], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1033f558], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1033f55c], eax
call edi
push eax
call esi
mov dword [0x1033f564], eax
test eax, eax
je 0x100378cf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1033f560], eax
mov eax, dword [0x1033f560]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10037928
cmp dword [0x1033f564], ecx
je 0x10037928
push eax
call esi
push dword [0x1033f564]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10037928
test ebx, ebx
je 0x10037928
call edi
test eax, eax
je 0x1003791f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1003791f
test byte [ebp - 8], 1
jne 0x10037928
or dword [ebp + 0x10], 0x200000
jmp 0x1003795b
mov eax, dword [0x1033f558]
cmp eax, dword [ebp - 0x18]
je 0x1003795b
push eax
call esi
test eax, eax
je 0x1003795b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1003795b
mov eax, dword [0x1033f55c]
cmp eax, dword [ebp - 0x18]
je 0x1003795b
push eax
call esi
test eax, eax
je 0x1003795b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1033f554]
call esi
test eax, eax
je 0x10037977
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10037979
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002656f
leave
ret
Function at 0x40d021
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417020]
jne 0x40d02b
repz ret
jmp fcn.0040d212

Function at 0x40efc9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d685
and dword [ebp - 4], 0
cmp dword [0x43c430], 0
mov ebx, eax
jne 0x40f07a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f12b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40f12b
push eax
call fcn.0040d613
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43c430], eax
call esi
push eax
call fcn.0040d613
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43c434], eax
call esi
push eax
call fcn.0040d613
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43c438], eax
call esi
push eax
call fcn.0040d613
pop ecx
mov dword [0x43c440], eax
test eax, eax
je 0x40f07a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d613
pop ecx
mov dword [0x43c43c], eax
mov eax, dword [0x43c43c]
cmp eax, ebx
je 0x40f0d2
cmp dword [0x43c440], ebx
je 0x40f0d2
push eax
call fcn.0040d68e
push dword [0x43c440]
mov esi, eax
call fcn.0040d68e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f0d2
test edi, edi
je 0x40f0d2
call esi
test eax, eax
je 0x40f0c9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f0c9
test byte [ebp - 0xc], 1
jne 0x40f0d2
or dword [ebp + 0x10], 0x200000
jmp 0x40f10b
mov eax, dword [0x43c434]
cmp eax, ebx
je 0x40f10b
push eax
call fcn.0040d68e
pop ecx
test eax, eax
je 0x40f10b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f10b
mov eax, dword [0x43c438]
cmp eax, ebx
je 0x40f10b
push eax
call fcn.0040d68e
pop ecx
test eax, eax
je 0x40f10b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43c430]
call fcn.0040d68e
pop ecx
test eax, eax
je 0x40f12b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f12d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402aa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [eax + 0x70], 0
mov dword [eax + 0x4c], ecx
jne 0x402ab3
mov dword [eax + 0x70], 1
mov dword [eax + 0x54], ecx
mov edx, ecx
sub edx, dword [eax + 0x54]
cmp edx, 0x2710
jge 0x402ac8
cmp edx, 0xffffd8f0
jge 0x402acd
mov dword [eax + 0x54], ecx
jmp 0x402ad1
test edx, edx
js 0x402aec
mov edx, dword [eax + 0x50]
add dword [eax + 0x54], edx
push esi
push edi
mov edi, ecx
sub edi, dword [eax + 0x54]
pop edi
pop esi
js 0x402ae7
add edx, ecx
mov dword [eax + 0x54], edx
jmp fcn.004024b0
ret

Function at 0x402c60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x4191b4]
xor eax, esp
mov dword [esp + 0x198], eax
push edi
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], vtable.CTcpSocket.0
mov dword [esi + 0x38], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, vtable.CBuffer.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], eax
lea eax, [esp + 8]
push eax
push 0x202
mov dword [esi + 0x58], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
lea ecx, [esi + 0x18]
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x14], edi
pop edi
xor ecx, esp
mov dword [esi + 0x64], 0xffffffff
mov eax, esi
call fcn.004069a5
mov esp, ebp
pop ebp
ret
Function at 0x403240
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
cmp ebx, 0x40000
jl 0x40329d
jmp 0x403260
xor edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x64]
push 0
push 0x40000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x403281
inc edi
cmp edi, 0xf
jl 0x403262
cmp edi, 0xf
je 0x4032ce
add dword [ebp - 4], eax
sub ebx, 0x40000
add esi, 0x40000
cmp ebx, 0x40000
jge 0x403260
test ebx, ebx
jle 0x4032c6
xor edi, edi
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x64]
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x4032be
inc edi
cmp edi, 0xf
jl 0x4032a3
cmp edi, 0xf
je 0x4032ce
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x4032d1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4034e0
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x198]
xor ebx, ebx
cmp eax, ebx
jne 0x403502
mov dword [esi + 0x1b8], 0x598
jmp 0x403519
cmp eax, 0x598
jbe 0x403513
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x1b8], eax
push edi
mov dword [esi + 0x64], ebx
call fcn.00403640
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, 1
push 0x41da88
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], eax
mov dword [ebp - 8], ebx
call edi
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x403558
push 0x41da88
call edi
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
mov ebx, 0x40000
push ecx
mov dword [ebp - 4], ebx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
push eax
mov dword [ebp - 4], ebx
call edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004036d0
test eax, eax
je 0x4035ed
lea eax, [esi + 0x58]
push eax
push 0
push esi
push 0x403850
push 0
push 0
call fcn.004073ab
add esp, 0x18
mov dword [esi + 0x54], eax
test eax, eax
je 0x4035df
mov ecx, dword [esi + 0x2c]
push ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x5c], 8
push 0x65f
jmp 0x4035fb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x5c], 0xb
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 5
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, esi
call fcn.00403f50
push edi
call ebx
mov edi, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4036d0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4191b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x11
push 2
xor edi, edi
push 2
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x403712
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004069a5
mov esp, ebp
pop ebp
ret 8
push edi
push edi
lea ecx, [ebp - 0x24]
push ecx
push edi
push edi
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x9800000c
push eax
mov dword [ebp - 0x1c], edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ecx, dword [esi + 0x40]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0xfffffffffffffffb
push 0xffff
push ecx
call edi
mov eax, dword [esi + 0x40]
push 4
lea edx, [ebp - 0x1c]
push edx
push 4
push 0xffff
push eax
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0
push 0
push 0
push 0
push ebx
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x20], eax
inc eax
push eax
call fcn.0040698f
mov ecx, dword [ebp - 0x20]
add esp, 4
push 0
push 0
push ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 0x20]
push edi
mov byte [edi + edx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov ebx, eax
call fcn.0040699a
add esp, 4
test ebx, ebx
je 0x4036fe
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov edx, dword [ebx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
push 0x30
push edx
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x403837
mov edx, dword [esi + 0x40]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x403830
cmp eax, 0xffffffff
jne 0x403827
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x403830
mov dword [ebp - 0x18], 0
jmp 0x403837
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
xor ecx, ebp
pop ebx
call fcn.004069a5
mov esp, ebp
pop ebp
ret 8