joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470241
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470279
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046e2f8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046e2d0
jmp 0x470285
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x471932
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x471974
call fcn.004776d8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471974
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47196b
xor eax, eax
jmp 0x47197c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471982
pop edi
pop esi
pop ebx
ret 4

Function at 0x477c08
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x477c36
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x477c54
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00477b6e
jmp 0x477c54
mov eax, dword [esi + 0x14]
test eax, eax
je 0x477c54
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00477b6e
test edi, edi
mov eax, edi
jne 0x477c3e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402240
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x402308
mov edx, dword [0x418848]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 4]
lea eax, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
push edx
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [ebp - 4], 0x104
mov dword [ebp - 0xc], 1
call edi
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
mov edx, dword [0x418848]
add esp, 8
lea ecx, [ebp - 4]
mov dword [0x418860], eax
push ecx
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push edx
push eax
push 0
push str.CommonFilesDir
push ecx
mov dword [ebp - 4], 0x104
call edi
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
mov ecx, dword [ebp - 8]
add esp, 8
mov dword [0x418864], eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x418848]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [0x418848]
push eax
call esi
mov ecx, dword [0x418848]
push eax
push ecx
call fcn.00401ef0
mov edi, dword [0x418848]
mov dword [0x418868], eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
mov edx, dword [str.SYSTEM32]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x41411c]
mov dword [edi + 4], eax
mov cx, word [0x414120]
mov word [edi + 8], cx
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
mov ecx, dword [0x418848]
add esp, 8
mov dword [0x418870], eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
mov ecx, dword [0x418848]
add esp, 8
mov dword [0x41886c], eax
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x418848]
cmp byte [eax + ecx - 1], 0x5c
jne 0x4023dc
mov byte [eax + ecx - 1], 0
mov ecx, dword [0x418848]
push 0x10
push ecx
call fcn.00401220
add esp, 8
test eax, eax
je 0x40240e
mov edx, dword [0x418848]
push edx
call esi
push eax
mov eax, dword [0x418848]
push eax
call fcn.00401ef0
add esp, 8
mov dword [0x418874], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x418868]
mov edx, dword [0x418848]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x418848]
push str.TEMP
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [0x418848]
push ecx
call esi
mov edx, dword [0x418848]
push eax
push edx
call fcn.00401ef0
add esp, 8
mov dword [0x418874], eax
mov eax, dword [0x418848]
push eax
call fcn.004016c0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404e30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100
push 0
push eax
call fcn.00401480
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x404f13
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call fcn.004015b0
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x404e78
mov eax, 0xd
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push ebx
push esi
call fcn.00401590
add esp, 0xc
push 4
push 0x4188a0
push esi
call fcn.00401540
mov ecx, dword [0x4188a0]
add esp, 0xc
push ecx
call fcn.0040c620
mov edx, dword [0x4188a0]
add esp, 4
mov edi, eax
push edx
push edi
push esi
call fcn.00401540
mov eax, dword [0x4188a0]
add esp, 0xc
push 0
push eax
push edi
call fcn.00405c40
mov ecx, dword [0x4188a0]
add esp, 0xc
push ecx
push edi
call fcn.00402470
mov edx, dword [0x4188a0]
add esp, 8
push edx
push edi
call fcn.004025d0
add esp, 8
test eax, eax
jne 0x404f18
mov eax, dword [0x4188a0]
push edi
lea ecx, [ebx + eax + 4]
mov dword [0x418888], ecx
call fcn.0040c6d0
add esp, 4
push esi
call fcn.00401580
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 3
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4053d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 5
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea ecx, [ebp - 0x14]
push str.Dialog_d
push ecx
call edi
add esp, 0xc
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x14]
push 0x104
push edx
push ebx
push eax
call fcn.00401810
add esp, 0x10
test eax, eax
jne 0x405432
lea ecx, [ebp - 0x118]
push 0x104
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [ebp - 0x118]
test al, al
je 0x40548c
lea edx, [ebp - 0x118]
push edx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x41884c]
lea ecx, [ebp - 0x118]
test eax, eax
push ecx
je 0x405472
mov edx, dword [0x418848]
push eax
push str._s____s
push edx
call edi
mov eax, dword [0x418848]
add esp, 0x10
push eax
push 0
push 0x46f
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401260
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040af40
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401339
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x401305
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4012de
cmp word [esp + 0x118], 4
jb 0x401339
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004046d0
add esp, 0x120
ret
cmp eax, 2
jae 0x4012e8
cmp eax, 1
jne 0x401339
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004046d0
add esp, 0x120
ret
cmp eax, 6
jne 0x401339
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40132f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004046d0
add esp, 0x120
ret
cmp eax, 1
jne 0x401339
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004046d0
add esp, 0x120
ret
Function at 0x401470
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x412c18
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.00405a6b
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.00404815
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00404f10
add esp, 0x14
test eax, eax
je 0x4014fb
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4015f7
mov eax, 0x4150f0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401530
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401547
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401560
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.004048e7
push edi
mov esi, eax
push 0
push esi
call fcn.0040af40
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x4150f0
push edi
push esi
call fcn.004047f7
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4015b0
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x412c28
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4015f5
push esi
call fcn.00404cb2
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.004046d0
add esp, 0x314
ret
Function at 0x401610
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x46c], eax
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040af40
xor ecx, ecx
xor eax, eax
push 0x206
push ecx
lea edx, [esp + 0x276]
push edx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x278], cx
call fcn.0040af40
push 0x103
push esi
lea eax, [esp + 0x280]
push 0x104
push eax
call fcn.00404f3d
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x8a]
push edx
mov word [esp + 0x8c], cx
call fcn.0040af40
push 0x103
push edi
lea eax, [esp + 0x94]
push 0x104
push eax
call fcn.00404f3d
add esp, 0x44
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x60]
push eax
push 0
push 0x20
push 0
push 0
push 0
lea ecx, [esp + 0x280]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x4016fd
xor eax, eax
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.004046d0
add esp, 0x474
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x46c]
xor ecx, esp
call fcn.004046d0
add esp, 0x474
ret
Function at 0x4017b0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x834
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x206
lea ecx, [esp + 0x226]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x20], edi
mov word [esp + 0x22c], ax
call fcn.0040af40
add esp, 0xc
push 0x206
lea eax, [esp + 0x1e]
xor edx, edx
push edi
push eax
mov word [esp + 0x24], dx
call fcn.0040af40
add esp, 0xc
push 0x206
lea edx, [esp + 0x636]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x63c], cx
call fcn.0040af40
add esp, 0xc
push 0x206
lea ecx, [esp + 0x42e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x434], ax
call fcn.0040af40
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
call ebp
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
lea edx, [esp + 0x42c]
push 0x412c34
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x104
lea eax, [esp + 0x224]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x18]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x634]
push 0x104
push eax
call fcn.0040470b
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x224]
push edx
call fcn.00404dd6
add esp, 8
test eax, eax
je 0x4018e2
mov dword [esp + 0x14], 1
jmp 0x401a20
lea eax, [esp + 0x220]
push 0x5c
push eax
call fcn.004046df
add esp, 8
test eax, eax
je 0x401a20
lea ecx, [esp + 0x428]
push ecx
lea edx, [esp + 0x1c]
push 0x104
push edx
call fcn.00405010
add esp, 0xc
push 0x412c4c
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
call fcn.0040516a
add esp, 0xc
test eax, eax
je 0x40193f
xor eax, eax
jmp 0x401a24
mov edx, dword [esp + 0x10]
push 2
push edi
push edx
call fcn.00405247
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.00405469
mov ecx, dword [esp + 0x14]
add esp, 4
push edi
push edi
push ecx
mov esi, eax
call fcn.00405247
lea edx, [esi + 0x32000]
add esp, 0xc
push edx
call fcn.00404d0c
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
push 1
push esi
push edi
call fcn.00405777
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040580b
add esp, 0x14
lea ebx, [edi + esi]
push 0x19000
lea edx, [ebx + 0x19000]
push edx
push ebx
call fcn.0040b970
add esp, 0xc
push 0x412c54
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040516a
add esp, 0xc
test eax, eax
jne 0x401938
call ebp
xor edx, edx
mov ecx, 0xc350
div ecx
mov eax, dword [esp + 0x10]
push eax
push 1
add edx, esi
push edx
push edi
call fcn.004059e9
mov ecx, dword [esp + 0x20]
push ecx
push 1
push 0x4ae
add ebx, 0xfffffb52
push ebx
call fcn.004059e9
mov edx, dword [esp + 0x30]
push edx
call fcn.0040580b
add esp, 0x24
lea edi, [esp + 0x630]
lea esi, [esp + 0x18]
call fcn.00401610
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x83c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004046d0
add esp, 0x834
ret
Function at 0x402050
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x228
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
push ecx
mov word [esp + 0x2c], ax
call fcn.0040af40
xor eax, eax
add esp, 0xc
mov byte [esp + 0x10], 0
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
cmp dword [0x41749c], eax
jbe 0x4021a4
cmp word [0x4174a0], ax
jbe 0x4021a4
lea esi, [esp + 0x10]
call fcn.004010e0
movzx ebx, word [0x4174a0]
lea esi, [esp + 0x20]
call fcn.00401000
push 0x412cdc
mov edx, esi
push 0x104
push edx
call fcn.00405010
add esp, 0xc
push 0x412ce0
mov eax, esi
push 0x104
push eax
call fcn.00405010
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push ebx
lea ecx, [esp + 0x14]
call fcn.004021c0
add esp, 4
lea ecx, [esp + 0x20]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x402170
mov ecx, 0x412d00
mov eax, 0x41753e
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40214e
test dx, dx
je 0x40214a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40214e
add eax, 4
add ecx, 4
test dx, dx
jne 0x402128
xor eax, eax
jmp 0x402153
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, 0x412d0c
test eax, eax
jne 0x402163
push 0x2bac
jmp 0x402168
push 0x2bb6
call fcn.004021c0
add esp, 4
lea edx, [esp + 0x20]
push edx
call esi
cmp eax, 0xffffffff
jne 0x402185
push 0xea60
call edi
jmp 0x402105
push 0xbb8
call edi
push 1
push 0
push 0x412c30
lea eax, [esp + 0x2c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004046d0
add esp, 0x228
ret
Function at 0x403a40
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.0040fc30
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x1064], eax
push ebx
push ebp
push esi
push 2
xor ebp, ebp
mov ebx, ecx
push ebp
push edi
mov dword [esp + 0x1c], ebx
call fcn.00405247
push edi
call fcn.00405469
push ebp
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.00405247
push edi
push 0x1000
lea eax, [esp + 0x94]
push 1
push eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.00405777
mov esi, eax
add esp, 0x2c
test esi, esi
jbe 0x403b03
lea esp, [esp]
lea ecx, [esp + 0x70]
push esi
push ecx
lea ebx, [esp + 0x1c]
call fcn.004038b0
push edi
push 0x1000
lea edx, [esp + 0x80]
push 1
push edx
add ebp, esi
call fcn.00405777
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x403ad0
mov ebx, dword [esp + 0x10]
push ebx
lea esi, [esp + 0x18]
call fcn.00403950
push edi
call fcn.0040580b
add esp, 8
cmp ebp, dword [esp + 0xc]
jae 0x403b44
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
pop esi
mov dword [ebx + 0xc], eax
pop ebp
mov dword [ebx + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.004046d0
add esp, 0x1068
ret
mov ecx, dword [esp + 0x1070]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004046d0
add esp, 0x1068
ret
Function at 0x403e20
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x403ea2
cmp edi, eax
jle 0x403e4d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x403e40
lea ebx, [edi + 7]
push ebx
call fcn.004048e7
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x415060]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x415064]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.0040b970
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x403ea6
cmp eax, ebx
jne 0x403ea6
mov dword [esp + 0xc], 1
jmp 0x403ea6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x403eb3
push esi
call fcn.00404cb2
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404000
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8e0
mov eax, dword [0x414044]
xor eax, esp
mov dword [esp + 0x8dc], eax
mov eax, dword [esp + 0x8e4]
push ebx
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8f0]
push edi
lea edi, [esp + 0xe8]
mov ebx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
test eax, eax
je 0x404044
mov dword [esp + 0x10], eax
mov edi, eax
xor edx, edx
mov word [edi], dx
mov esi, dword [ebx]
xor eax, eax
mov dword [esp + 0xc], eax
test esi, esi
je 0x40418b
test ecx, ecx
je 0x40418b
push ebp
push 0xc7
push eax
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2d]
push eax
call fcn.0040af40
mov ebp, dword [sym.imp.WS2_32.dll_recv]
add esp, 0xc
push 0
push 2
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x4041e1
test eax, eax
je 0x4041e1
movzx edi, word [esp + 0x24]
lea edx, [edi + 2]
push edx
xor esi, esi
call fcn.004048e7
add esp, 4
mov dword [esp + 0x18], eax
test edi, edi
jle 0x404175
jmp 0x4040c0
mov ecx, dword [esp + 0x18]
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebx]
lea edx, [esi + ecx]
push edx
push eax
call ebp
cmp eax, 0xffffffff
je 0x404154
test eax, eax
je 0x404154
add esi, eax
cmp edi, esi
jg 0x4040c0
cmp esi, 5
jl 0x404175
mov ecx, dword [0x415060]
mov edi, dword [esp + 0x18]
sub esi, 5
cmp ecx, dword [edi]
jne 0x4041bc
mov dl, byte [edi + 4]
cmp dl, byte [0x415064]
jne 0x4041bc
test esi, esi
jle 0x40412c
lea eax, [edi + 5]
mov ecx, esi
lea esp, [esp]
mov dl, byte [eax]
not dl
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x404120
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx]
add edi, 5
cmp eax, esi
jl 0x4041a3
mov eax, dword [esp + 0x1c]
push esi
push edi
push eax
call fcn.0040b970
mov dword [ebx], esi
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x404175
mov edx, dword [esp + 0x14]
mov eax, 0x412da0
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404160
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404186
push eax
call fcn.00404cb2
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
mov ecx, dword [esp + 0x8e8]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004046d0
add esp, 0x8e0
ret
mov ecx, dword [esp + 0x1c]
push eax
push edi
push ecx
call fcn.0040b970
add esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x404175
mov edx, dword [esp + 0x14]
mov eax, 0x412da0
sub edx, eax
jmp 0x4041d0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4041d0
jmp 0x404175
mov eax, 0x412da0
mov edx, edi
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4041f0
jmp 0x404186