joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450c79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
lea edi, [ebp - 0x84]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040b2d0
add esp, 0xc
test eax, eax
je 0x40af02
push 0x49aad8
call fcn.00427840
add esp, 4
test eax, eax
je 0x40af02
mov dword [ebp - 0x18], 0
push 0
push 0x49aad8
call fcn.0040b560
add esp, 4
push eax
lea ecx, [ebp - 0x28]
call fcn.0040af30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
push str.image_gif
call fcn.0040b5d0
add esp, 8
push 4
push 0x49aad8
call fcn.0040b760
add esp, 8
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0x49aad8
call fcn.0040b560
add esp, 4
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b1e0
mov esi, esp
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push 0x49aad8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x40aef3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov esi, esp
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40aee0
mov ecx, dword [ebp - 0x3c]
add ecx, 4
push ecx
call fcn.00425860
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40aee0
mov esi, esp
push 0
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, esp
call fcn.004251b0
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x3c]
je 0x40aebd
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004262d0
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x14], 0
je 0x40aecd
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x44]
mov dword [edx], eax
jmp 0x40aee0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004262d0
add esp, 4
mov dword [ebp - 0x14], 0
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040b050
call fcn.0040b490
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x84
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret
Function at 0x40b2d0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
lea edi, [ebp - 0x60]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0x106
push 0
push 0x49aad8
call fcn.00425800
add esp, 0xc
push 0x14
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00425800
add esp, 0xc
push str.c:_vre_
push 0x49aad8
call fcn.00425720
add esp, 8
push str.VREImgEx
push 0x49aad8
call fcn.00425720
add esp, 8
push 0xa
lea ecx, [ebp - 0x14]
push ecx
call fcn.00427800
push eax
call fcn.00432660
add esp, 0xc
push eax
push 0x49aad8
call fcn.00425720
add esp, 8
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 1
je 0x40b37a
cmp dword [ebp - 0x20], 2
je 0x40b38e
cmp dword [ebp - 0x20], 3
je 0x40b3a2
jmp 0x40b3b4
push str..jpg
push 0x49aad8
call fcn.00425720
add esp, 8
jmp 0x40b3b4
push str..png
push 0x49aad8
call fcn.00425720
add esp, 8
jmp 0x40b3b4
push str..bmp
push 0x49aad8
call fcn.00425720
add esp, 8
mov esi, esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push 0x49aad8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x40b469
mov esi, esp
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.004251b0
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp + 0x10]
je 0x40b44f
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004251b0
mov esi, esp
push 0x49aad8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004251b0
push 0x106
push 0
push 0x49aad8
call fcn.00425800
add esp, 0xc
xor eax, eax
jmp 0x40b47f
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004251b0
mov eax, 1
jmp 0x40b47f
push 0x106
push 0
push 0x49aad8
call fcn.00425800
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x60
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret
Function at 0x40b490
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x49aad8
call fcn.00427840
add esp, 4
test eax, eax
je 0x40b549
push 4
push 0x49aad8
call fcn.0040b760
add esp, 8
mov esi, esp
push 0x49aad8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004251b0
push 2
push 0x49aad8
call fcn.0040b760
add esp, 8
mov esi, esp
push 0x49aad8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004251b0
push 1
push 0x49aad8
call fcn.0040b760
add esp, 8
mov esi, esp
push 0x49aad8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004251b0
push 3
push 0x49aad8
call fcn.0040b760
add esp, 8
mov esi, esp
push 0x49aad8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp esi, esp
call fcn.004251b0
pop edi
pop esi
pop ebx
add esp, 0x40
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret
Function at 0x40b8a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0
mov esi, esp
push 0x49b620
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, esp
call fcn.004251b0
mov eax, dword [0x488dac]
mov dword [ebp - 4], eax
mov esi, esp
push 0x49b620
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, esp
call fcn.004251b0
push 0x14
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.00425800
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x40b914
mov eax, dword [ebp - 4]
jmp 0x40ba21
call fcn.0040c280
cmp eax, 0xffffffff
jne 0x40b926
mov eax, dword [ebp - 4]
jmp 0x40ba21
mov esi, esp
push 0
push 0
push 1
push 0x49ac38
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp esi, esp
call fcn.004251b0
mov dword [0x49ac4c], eax
cmp dword [0x49ac4c], 0
jne 0x40b956
mov eax, dword [ebp - 4]
jmp 0x40ba21
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [0x49ac4c]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x14], 0
je 0x40b98f
mov esi, esp
push 1
push 0
call dword [ebp + 0x14]
add esp, 8
cmp esi, esp
call fcn.004251b0
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 0x24]
push edx
push 0x40bac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x10], eax
mov esi, esp
push 0xffffffffffffffff
mov eax, dword [0x49ac4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.004251b0
mov esi, esp
mov ecx, dword [0x49ac4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004251b0
mov dword [0x49ac4c], 0
mov esi, esp
push 0x49b620
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, esp
call fcn.004251b0
mov edx, dword [0x488dac]
mov dword [ebp - 4], edx
mov esi, esp
push 0x49b620
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, esp
call fcn.004251b0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x64
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret

Function at 0x40bc90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040c390
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40bce5
mov esi, esp
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, esp
call fcn.004251b0
mov edx, dword [ebp + 8]
push edx
call fcn.0040c2f0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret
Function at 0x40bff0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x27c4
call fcn.00428240
push ebx
push esi
push edi
lea edi, [ebp - 0x27c4]
mov ecx, 0x9f1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x277c], 0
mov ecx, 0x9c3
xor eax, eax
lea edi, [ebp - 0x277b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x2780], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x2784], ecx
push 0x44
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.00425800
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 0x101
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push 0x2710
push 0
lea edx, [ebp - 0x277c]
push edx
call fcn.00425800
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
push ecx
push str.playmidi.exe__d
lea edx, [ebp - 0x277c]
push edx
call fcn.00425440
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x277c]
push ecx
call fcn.00425720
add esp, 8
mov esi, esp
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x277c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x64]
push edx
call fcn.0040c1c0
add esp, 4
mov dword [ebp - 0x2780], eax
mov esi, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp esi, esp
call fcn.004251b0
mov esi, esp
push 0xffffffffffffffff
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.004251b0
mov esi, esp
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.004251b0
mov ecx, dword [ebp - 0x2780]
push ecx
call fcn.0040c2f0
add esp, 4
cmp dword [ebp - 0x2784], 0
je 0x40c199
mov esi, esp
push 2
push 0
call dword [ebp - 0x2784]
add esp, 8
cmp esi, esp
call fcn.004251b0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x27c4
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret
Function at 0x4154f0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea edi, [ebp - 0x68]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [0x49b0c4], 0
jne 0x41557e
mov dword [0x49b0cc], 0xffffffff
mov dword [0x49b0d0], 0x200000
mov dword [0x49b0d4], 0
mov dword [ebp - 4], 0x58585858
cmp dword [0x49b0c0], 0
jne 0x415559
mov eax, dword [ebp - 4]
mov dword [0x49b0c0], eax
mov ecx, dword [0x492a3c]
mov edx, dword [0x49b0d4]
mov dword [ecx + 0x1b4], edx
mov esi, esp
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, esp
call fcn.004251b0
mov ecx, dword [ebp - 0x24]
mov dword [0x49b0c4], ecx
mov edx, dword [ebp - 0x24]
mov dword [0x49b0c8], edx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x68
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret
Function at 0x41bef0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x570
push ebx
push esi
push edi
lea edi, [ebp - 0x570]
mov ecx, 0x15c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov byte [ebp - 0x128], 0
xor eax, eax
mov dword [ebp - 0x127], eax
mov dword [ebp - 0x123], eax
mov byte [ebp - 0x11f], al
cmp dword [0x49b0d8], 0
jne 0x41bf37
jmp 0x41c0e1
push 0x104
push 0
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00425800
add esp, 0xc
push 0xa
push 0
lea edx, [ebp - 0x128]
push edx
call fcn.00425800
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x530], eax
mov ecx, dword [ebp - 0x530]
sub ecx, 2
mov dword [ebp - 0x530], ecx
cmp dword [ebp - 0x530], 3
ja case.default.0x41bf87
mov edx, dword [ebp - 0x530]
jmp dword [edx*4 + 0x41c0f5]
push str.DEBUG
lea eax, [ebp - 0x128]
push eax
call fcn.00425710
add esp, 8
jmp 0x41bffa
push str.INFO
lea ecx, [ebp - 0x128]
push ecx
call fcn.00425710
add esp, 8
jmp 0x41bffa
push str.WARN
lea edx, [ebp - 0x128]
push edx
call fcn.00425710
add esp, 8
jmp 0x41bffa
push str.ERROR
lea eax, [ebp - 0x128]
push eax
call fcn.00425710
add esp, 8
jmp 0x41bffa
push str.FATAL
lea ecx, [ebp - 0x128]
push ecx
call fcn.00425710
add esp, 8
lea edx, [ebp - 0x18]
push edx
call fcn.00403640
add esp, 4
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str._d__02.2d__02.2d__02.2d:_02.2d:_02.2d___s__
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00425440
add esp, 0x24
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00427840
add esp, 4
lea edx, [ebp + eax - 0x11c]
push edx
call fcn.00429c10
add esp, 0xc
push 0x472cf8
lea eax, [ebp - 0x11c]
push eax
call fcn.00425720
add esp, 8
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.00427840
add esp, 4
push eax
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [0x49b0e0]
push ecx
call fcn.0040c880
add esp, 0x10
mov edx, dword [0x49b0e0]
push edx
call fcn.0040c8e0
add esp, 4
lea eax, [ebp - 0x11c]
push eax
push 0x472510
lea ecx, [ebp - 0x52c]
push ecx
call fcn.00425440
add esp, 0xc
mov esi, esp
lea edx, [ebp - 0x52c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, esp
call fcn.004251b0
pop edi
pop esi
pop ebx
add esp, 0x570
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret

Function at 0x4290b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4290cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4290d4
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4290eb
mov ecx, dword [ebp - 4]
push ecx
call fcn.004316f0
add esp, 4
or eax, 0xffffffff
jmp 0x4290ed
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x429120
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x429141
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x429148
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x42915f
mov edx, dword [ebp - 4]
push edx
call fcn.004316f0
add esp, 4
or eax, 0xffffffff
jmp 0x429161
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x429170
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x42918f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x429196
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4291ad
mov ecx, dword [ebp - 4]
push ecx
call fcn.004316f0
add esp, 4
or eax, 0xffffffff
jmp 0x4291af
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4291c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4291dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4291e4
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x4291fb
mov ecx, dword [ebp - 4]
push ecx
call fcn.004316f0
add esp, 4
or eax, 0xffffffff
jmp 0x4291fd
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x43f5e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], 0
call fcn.004037b0
test eax, eax
je 0x43f7af
cmp dword [0x49b5ac], 0
jne 0x43f642
push 0x54
push 0
push 0x49b558
call fcn.00425800
add esp, 0xc
push 0x43f7d0
push 0xc8
call fcn.00403890
add esp, 8
mov dword [0x49b5ac], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x43f65b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jge 0x43f688
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x1c
cmp dword [ecx + 0x49b558], 0
jne 0x43f686
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x1c
add eax, 0x49b558
mov dword [ebp - 0xc], eax
jmp 0x43f688
jmp 0x43f652
cmp dword [ebp - 0xc], 0
jne 0x43f696
or eax, 0xffffffff
jmp 0x43f7b2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0xc]
mov dword [eax], 1
mov esi, esp
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.004251b0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0xffffffff
jne 0x43f6e9
mov eax, 0xfffffffe
jmp 0x43f7b2
mov esi, esp
lea eax, [ebp - 0x24]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp esi, esp
call fcn.004251b0
test eax, eax
je 0x43f716
mov eax, 0xfffffffe
jmp 0x43f7b2
mov word [ebp - 0x1c], 2
mov esi, esp
mov ax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.004251b0
mov word [ebp - 0x1a], ax
mov esi, esp
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x43f75f
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
jmp 0x43f782
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x43f782
mov eax, 0xfffffffe
jmp 0x43f7b2
mov esi, esp
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp esi, esp
call fcn.004251b0
cmp eax, 0xffffffff
jne 0x43f7aa
mov eax, 0xfffffffe
jmp 0x43f7b2
mov eax, dword [ebp - 8]
jmp 0x43f7b2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x64
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret
Function at 0x43fd80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0
jl 0x43fe97
cmp dword [ebp + 8], 3
jge 0x43fe97
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
cmp dword [eax + 0x49b558], 0
je 0x43fe97
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
mov edx, dword [ecx + 0x49b55c]
cmp edx, dword [ebp + 8]
jne 0x43fe97
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
cmp dword [eax + 0x49b564], 2
jne 0x43fded
mov eax, 0xfffffffe
jmp 0x43fe9a
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
cmp dword [ecx + 0x49b56c], 1
jne 0x43fe93
mov edx, dword [ebp + 8]
imul edx, edx, 0x1c
cmp dword [edx + 0x49b564], 1
jne 0x43fe93
mov esi, esp
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x49b560]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43fe4b
mov dword [ebp - 4], 0xffffffff
jmp 0x43fe8e
cmp dword [ebp - 4], 0xffffffff
jne 0x43fe8e
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
je 0x43fe6e
jmp 0x43fe87
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
mov dword [ecx + 0x49b56c], 0
mov dword [ebp - 4], 0
jmp 0x43fe8e
mov dword [ebp - 4], 0xfffffffc
mov eax, dword [ebp - 4]
jmp 0x43fe9a
xor eax, eax
jmp 0x43fe9a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x48
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret
Function at 0x43feb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], 0
jl 0x43ffb2
cmp dword [ebp + 8], 3
jge 0x43ffb2
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
cmp dword [eax + 0x49b558], 0
je 0x43ffb2
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
mov edx, dword [ecx + 0x49b55c]
cmp edx, dword [ebp + 8]
jne 0x43ffb2
mov eax, dword [ebp + 8]
imul eax, eax, 0x1c
cmp dword [eax + 0x49b564], 2
jne 0x43ff1b
or eax, 0xffffffff
jmp 0x43ffb5
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
cmp dword [ecx + 0x49b568], 1
jne 0x43ffae
mov edx, dword [ebp + 8]
imul edx, edx, 0x1c
cmp dword [edx + 0x49b564], 1
jne 0x43ffae
mov esi, esp
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x1c
mov eax, dword [edx + 0x49b560]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43ffa9
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
je 0x43ff89
jmp 0x43ffa2
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x1c
mov dword [ecx + 0x49b568], 0
mov dword [ebp - 4], 0
jmp 0x43ffa9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
jmp 0x43ffb5
xor eax, eax
jmp 0x43ffb5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x48
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret

Function at 0x4400c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
push ebx
push esi
push edi
lea edi, [ebp - 0x1d4]
mov ecx, 0x75
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x194], 0xffffffff
mov esi, esp
lea eax, [ebp - 0x190]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp esi, esp
call fcn.004251b0
mov dword [ebp - 0x194], eax
cmp dword [ebp - 0x194], 0
je 0x440117
or eax, 0xffffffff
jmp 0x44012d
mov dword [0x4943fc], 0xffffffff
mov dword [0x49b5ac], 0
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1d4
cmp ebp, esp
call fcn.004251b0
mov esp, ebp
pop ebp
ret