joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408f40
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
sub esp, 0x804
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, dword [esp + 0x80c]
push 0x437d08
push esi
call fcn.0041718e
add esp, 8
test eax, eax
je 0x408f86
xor eax, eax
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00415c3e
add esp, 0x804
ret
mov eax, 0x4000
test word [0x437d0e], ax
je 0x4090a6
push edi
push esi
push str._s.
lea edx, [esp + 0x10]
call fcn.00409840
add esp, 8
push 0x437ab8
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4090a5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ecx]
mov ecx, 0x42b71c
mov eax, 0x437ae4
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409006
test dx, dx
je 0x409002
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409006
add eax, 4
add ecx, 4
test dx, dx
jne 0x408fe0
xor eax, eax
jmp 0x40900b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40908d
mov ecx, 0x42b720
mov eax, 0x437ae4
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409046
test dx, dx
je 0x409042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409046
add eax, 4
add ecx, 4
test dx, dx
jne 0x409020
xor eax, eax
jmp 0x40904b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40908d
push 0x437ae4
push esi
push 0x42baf4
lea edx, [esp + 0x18]
call fcn.00409840
add esp, 0xc
test byte [0x437ab8], 0x10
je 0x40907e
lea edx, [esp + 0xc]
push edx
call fcn.00408f40
add esp, 4
jmp 0x40908d
push 4
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0x437ab8
push edi
call ebp
test eax, eax
jne 0x408fd0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
pop edi
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.00415c3e
add esp, 0x804
ret
Function at 0x4090e0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x804
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x800], eax
push esi
mov esi, dword [esp + 0x80c]
push 0x437a88
push esi
call fcn.0041718e
add esp, 8
test eax, eax
je 0x409126
xor eax, eax
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00415c3e
add esp, 0x804
ret
mov eax, 0x4000
test word [0x437a8e], ax
je 0x409248
push edi
push esi
push str._s.
lea edx, [esp + 0x10]
call fcn.00409840
add esp, 8
push 0x437838
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40922a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ecx]
mov ecx, 0x42b71c
mov eax, 0x437864
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4091a6
test dx, dx
je 0x4091a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4091a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x409180
xor eax, eax
jmp 0x4091ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409212
mov ecx, 0x42b720
mov eax, 0x437864
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4091e6
test dx, dx
je 0x4091e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4091e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4091c0
xor eax, eax
jmp 0x4091eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409212
push 0x437864
push esi
push 0x42baf4
lea edx, [esp + 0x18]
call fcn.00409840
lea edx, [esp + 0x18]
push 1
push edx
call fcn.004090e0
add esp, 0x14
push 0x437838
push edi
call ebx
test eax, eax
jne 0x409170
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00415c3e
add esp, 0x804
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x804]
pop esi
xor ecx, esp
call fcn.00415c3e
add esp, 0x804
ret

Function at 0x409290
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push ebp
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x4092c6
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
push esi
push eax
call fcn.00416092
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push ecx
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x409324
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0x42b728
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409324
mov eax, dword [esp + 0x14]
movzx ecx, word [eax + 0xa]
mov word [edi], cx
movzx edx, word [eax + 8]
mov word [edi + 2], dx
movzx ecx, word [eax + 0xe]
mov word [edi + 4], cx
movzx edx, word [eax + 0xc]
mov word [edi + 6], dx
mov byte [esp + 0xf], 1
cmp esi, ebx
je 0x409331
push esi
call fcn.00415fb5
add esp, 4
mov al, byte [esp + 0xf]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x409340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004191e0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x409399
xor al, al
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00415c3e
add esp, 0x214
ret
push edi
push 0x42bb10
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00416877
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x14]
call fcn.00409290
add esp, 0x10
pop edi
test al, al
je 0x409382
movzx ecx, word [esp + 4]
movzx edx, word [esp]
movzx eax, word [esp + 2]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x210]
mov dword [esi + 4], edx
xor edx, edx
mov dword [esi + 8], eax
xor ecx, esp
mov dword [esi], 0x114
mov dword [esi + 0x10], 2
mov word [esi + 0x14], dx
mov al, 1
call fcn.00415c3e
add esp, 0x214
ret
Function at 0x409f10
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, ecx
mov esi, eax
mov eax, dword [edi + 0x130]
mov edx, dword [eax + 0x18]
lea ebp, [edi + 0x130]
push esi
push ebx
mov ecx, ebp
call edx
test al, al
jne 0x409f5f
mov ecx, ebx
call fcn.00404cf0
push 0x42b974
push 0x42b32c
mov edx, eax
call fcn.00408980
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
test al, al
jne 0x409f7d
push str.t_mutex::Lock
push ebx
call fcn.00404da0
add esp, 8
jmp 0x409f88
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
push ebx
mov ecx, ebp
call edx
test al, al
je 0x409f38
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
mov dword [edi + 0x348], ebp
xor ebp, ebp
push eax
push ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [edi + 8], eax
call fcn.00409c70
add esp, 0x14
test al, al
jne 0x40a00d
cmp byte [esi + 0x11c], al
je 0x409fd1
add esi, 0xc
jmp 0x409fd4
mov esi, dword [esi + 8]
mov ecx, ebx
call fcn.00404cf0
mov edi, eax
push 0x42e210
push 0x42b32c
mov edx, edi
call fcn.00408980
add esi, 4
push esi
push 0x42b32c
mov edx, edi
call fcn.00408980
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push ebp
push 0x80
push ebx
push ebp
push edx
push eax
mov ecx, esi
call fcn.00407330
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 4], eax
mov ebp, 1
cmp eax, 0xffffffff
jne 0x40a0ae
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
cmp eax, 0x20
jne 0x40a062
cmp ebp, 3
jge 0x40a0fc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a083
cmp eax, 5
jne 0x40a0c3
cmp ebp, 3
jge 0x40a0fc
push 0x80
mov ecx, esi
call fcn.00407330
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push 0x80
push ebx
push 0
push ecx
push edx
mov ecx, esi
call fcn.00407330
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc ebp
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x40a040
push esi
lea ecx, [edi + 0xc]
call fcn.00407460
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret 8
test eax, eax
jne 0x40a0fc
cmp byte [esi + 0x11c], al
je 0x40a0d4
add esi, 0xc
jmp 0x40a0d7
mov esi, dword [esi + 8]
mov ecx, dword [esp + 0x20]
add esi, 4
push esi
push 0x42e220
call entry0
mov ecx, eax
call fcn.00405a40
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x40a10b
mov ebx, dword [esi + 8]
mov ebp, dword [esp + 0x20]
mov ecx, ebp
call fcn.00404cf0
mov edi, dword [esp + 0x24]
mov esi, eax
call fcn.00405910
mov ecx, ebp
call fcn.00404cf0
mov esi, eax
push 0x42e210
push 0x42b32c
mov edx, esi
call fcn.00408980
add esp, 8
add ebx, 4
push ebx
mov ecx, esi
call fcn.00405a40
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret 8
Function at 0x40a1f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov ebx, eax
mov edi, ecx
mov esi, edx
call ebp
test edi, edi
jne 0x40a219
test ebx, ebx
je 0x40a20f
mov dword [ebx], edi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a29f
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x40a24a
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.00404cf0
mov esi, eax
call fcn.00405910
push 0
call ebp
mov ecx, dword [esp + 0x18]
call fcn.00404cf0
mov esi, eax
push 0x42e240
push 0x42b32c
mov edx, esi
call fcn.00408980
add ebx, 4
push ebx
push 0x42b32c
mov edx, esi
call fcn.00408980
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x40a2a9
mov dword [ebx], eax
test eax, eax
jne 0x40a20f
cmp byte [esi + 0x128], al
je 0x40a2be
add esi, 0x18
jmp 0x40a2c1
mov esi, dword [esi + 0x14]
mov ecx, dword [esp + 0x18]
call fcn.00404cf0
mov edi, eax
push 0x42e250
push 0x42b32c
mov edx, edi
call fcn.00408980
add esi, 4
push esi
push 0x42b32c
mov edx, edi
call fcn.00408980
add esp, 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8

Function at 0x40a300
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push edi
push 0
mov edi, eax
mov esi, ecx
call ebp
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40a39d
push ebx
lea ebx, [esi + 0x18]
cmp byte [esi + 0x128], al
jne 0x40a348
mov ebx, dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edi, eax
call fcn.00404cf0
mov esi, eax
call fcn.00405910
push 0
call ebp
mov ecx, dword [esp + 0x18]
call fcn.00404cf0
mov esi, eax
push 0x42e270
push 0x42b32c
mov edx, esi
call fcn.00408980
add ebx, 4
push ebx
push 0x42b32c
mov edx, esi
call fcn.00408980
add esp, 0x10
pop ebx
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 0xc
test edi, edi
je 0x40a3a7
mov ecx, dword [esp + 0xc]
mov dword [edi], ecx
pop edi
pop esi
mov al, 1
pop ebp
pop ecx
ret 0xc

Function at 0x40ae60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, dword [esp + 0x80c]
push esi
lea eax, [esp + 0x814]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x436fb8]
lea ecx, [esi + esi]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00415c3e
add esp, 0x808
ret
Function at 0x40aed0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x46c], eax
push esi
push edi
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.004191e0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push 0x42b5fc
lea edx, [esp + 0x64]
push edx
call esi
push 0x436db0
lea eax, [esp + 0x64]
push eax
call esi
push 0x436db0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jbe 0x40b093
cmp word [eax*2 + 0x436dae], 0x5c
je 0x40af48
push 0x42b728
lea ecx, [esp + 0x64]
push ecx
call esi
push str.crashrpt.exe
lea edx, [esp + 0x64]
push edx
call esi
push 0x42e9e0
lea eax, [esp + 0x64]
push eax
call esi
push 0x436ba8
lea ecx, [esp + 0x64]
push ecx
call esi
push 0x42e9e0
lea edx, [esp + 0x64]
push edx
call esi
push str.sogoupy
lea eax, [esp + 0x64]
push eax
call esi
push 0x42e9e0
lea ecx, [esp + 0x64]
push ecx
call esi
cmp byte [0x4344cc], 0
mov eax, 0x42e9e8
jne 0x40afa3
mov eax, 0x42e9ec
push eax
lea edx, [esp + 0x64]
push edx
call esi
push 0x42b5fc
lea eax, [esp + 0x64]
push eax
call esi
push 0x5c
push 0x4369a0
call fcn.00416e75
mov edi, eax
add esp, 8
test edi, edi
je 0x40afef
push 0x42e9f0
lea ecx, [esp + 0x64]
push ecx
call esi
add edi, 2
push edi
lea edx, [esp + 0x64]
push edx
call esi
push 0x42b5fc
lea eax, [esp + 0x64]
push eax
call esi
push 0x5c
push 0x436798
call fcn.00416e75
mov edi, eax
add esp, 8
test edi, edi
je 0x40b027
push 0x42e9f0
lea ecx, [esp + 0x64]
push ecx
call esi
add edi, 2
push edi
lea edx, [esp + 0x64]
push edx
call esi
push 0x42b5fc
lea eax, [esp + 0x64]
push eax
call esi
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.004191e0
add esp, 0xc
cmp byte [0x4344cc], 0
mov dword [esp + 0x18], 0x44
je 0x40b05b
mov edx, 5
mov dword [esp + 0x44], 1
mov word [esp + 0x48], dx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x474]
pop edi
pop esi
xor ecx, esp
call fcn.00415c3e
add esp, 0x474
ret
Function at 0x40c060
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40c0f4
cmp word [ebx + 8], 2
push edi
jne 0x40c0c5
cmp word [ebx + 0xa], 4
jne 0x40c0c5
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40c0c5
jmp 0x40c0a0
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.0040bff0
mov dword [esi], eax
test eax, eax
je 0x40c0e8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x40c0a0
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.00419a5c
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40c104.11001
jmp dword [eax*4 + 0x40c12c]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x40c960
Capabilities:
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x4334ac]
xor eax, esp
mov dword [esp + 0x234], eax
cmp dword [0x437828], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x40c3c0
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x40c6b0
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.0040c370
je 0x40c9c5
movzx eax, word [esp + 0x24c]
mov eax, dword [eax*8 + 0x4355a8]
jmp 0x40cadc
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40cac3
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0041976e
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004195c5
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40ca3c
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40ca88
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0041976e
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004195c5
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x40cac3
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40ca88
push esi
call ebp
jmp 0x40cac3
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
mov dword [esp + edi*8 + 0x14], eax
test eax, eax
je 0x40ca83
inc edi
cmp edi, 3
jl 0x40ca90
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4355a8], edx
mov dword [0x4355b0], eax
mov dword [fcn.0040c370], ecx
movzx edx, word [esp + 0x24c]
mov eax, dword [edx*8 + 0x4355a8]
mov dword [0x437828], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415c3e
add esp, 0x238
ret 4
Function at 0x40d340
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
mov dword [edi], ebp
mov byte [edi + 4], 0
test esi, esi
je 0x40d366
cmp dword [esi], 0
je 0x40d35e
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [edi]
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [edx]
cmp eax, 0xffffffff
je 0x40d3ee
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40d39d
mov byte [edi + 4], 1
mov ecx, dword [ebp]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x10]
push eax
push 0x1005
push 0xffff
push ecx
mov dword [esp + 0x20], 0x1388
call ebx
mov eax, dword [ebp]
push 4
lea edx, [esp + 0x10]
push edx
push 0x1006
push 0xffff
push eax
call ebx
test esi, esi
je 0x40d3ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi]
mov dword [esi], 0
mov dword [esi + 4], eax
pop ebp
mov eax, edi
pop ebx
ret 4
Function at 0x40d420
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x427898
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4334ac]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push ebx
mov edi, ebp
mov dword [esp + 0x40], 0
call fcn.0040cea0
test al, al
jne 0x40d49c
mov ecx, ebx
call fcn.00404cf0
push 0x42eee8
push 0x42b32c
mov edx, eax
call fcn.00408980
add esp, 8
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0x14
mov esi, dword [ebp + 0x26b8]
lea eax, [ebp + 0x34]
push eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x14]
call fcn.0040d340
xor edi, edi
mov dword [esp + 0x24], edi
cmp byte [esp + 0x14], 0
jne 0x40d50a
mov ecx, ebx
call fcn.00404cf0
push 0x42eef8
push 0x42b32c
mov edx, eax
call fcn.00408980
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
add esp, 8
cmp eax, 0xffffffff
je 0x40d4f3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0x14
mov esi, dword [ebp + 0x26bc]
cmp esi, edi
je 0x40d527
cmp dword [esi], edi
je 0x40d51f
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebp + 0x34]
push edi
push ecx
lea edx, [ebp + 0x39]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40d570
mov ecx, ebx
call fcn.00404cf0
mov esi, eax
push 0x42ef1c
push 0x42b32c
mov edx, esi
call fcn.00408980
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x42ba04
mov edx, esi
jmp 0x40d4d3
push ebx
lea eax, [esp + 0x30]
mov ecx, ebp
mov dword [esp + 0x30], edi
call fcn.0040dd50
test al, al
jne 0x40d595
mov ecx, ebx
call fcn.00404cf0
push 0x42ef3c
jmp 0x40d4cc
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.0040de40
test al, al
jne 0x40d5c9
push 0x42ef3c
mov ecx, ebx
call entry0
lea esi, [esp + 0x10]
call fcn.0040d400
jmp 0x40d4f3
mov ebp, dword [ebp + 0x26bc]
cmp ebp, edi
je 0x40d5e2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp]
mov dword [ebp], edi
mov dword [ebp + 4], eax
lea esi, [esp + 0x10]
call fcn.0040d400
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 0x14
Function at 0x40d610
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x427308
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4334ac]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov esi, dword [ebp + 0x26b8]
lea eax, [ebp + 0x34]
push eax
mov eax, dword [esp + 0x30]
lea edi, [esp + 0x14]
call fcn.0040d340
xor edi, edi
mov dword [esp + 0x20], edi
cmp byte [esp + 0x14], 0
jne 0x40d6a8
mov ecx, ebx
call fcn.00404cf0
push 0x42eef8
push 0x42b32c
mov edx, eax
call fcn.00408980
mov esi, dword [esp + 0x18]
mov eax, dword [esi]
add esp, 8
cmp eax, 0xffffffff
je 0x40d691
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
xor al, al
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0x10
mov esi, dword [ebp + 0x26bc]
cmp esi, edi
je 0x40d6c5
cmp dword [esi], edi
je 0x40d6bd
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
lea edx, [ebp + 0x39]
mov eax, edx
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d6d0
push edi
sub eax, esi
push eax
mov eax, dword [ebp + 0x34]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40d71b
mov ecx, ebx
call fcn.00404cf0
mov esi, eax
push 0x42ef1c
push 0x42b32c
mov edx, esi
call fcn.00408980
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x42ba04
mov edx, esi
jmp 0x40d671
push ebx
lea eax, [esp + 0x2c]
mov ecx, ebp
mov dword [esp + 0x2c], edi
call fcn.0040dd50
test al, al
jne 0x40d740
mov ecx, ebx
call fcn.00404cf0
push 0x42ef3c
jmp 0x40d66a
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ecx
push edx
push ebx
mov ecx, ebp
call fcn.0040de40
test al, al
jne 0x40d76b
mov ecx, ebx
call fcn.00404cf0
push 0x42ef3c
jmp 0x40d66a
mov ebp, dword [ebp + 0x26bc]
cmp ebp, edi
je 0x40d784
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp]
mov dword [ebp], edi
mov dword [ebp + 4], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40d79c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0x10