joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x404487
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4044c1
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4044c1
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404596
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x4044ee
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404523
push dword [esi + 0x4c]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x404599
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x404562
sub eax, 1
je 0x404562
sub eax, 2
jne 0x404596
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4044f9
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x404586
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x404596
lea ecx, [ebp - 0x28]
movzx eax, di
cmp dword [ebp - 0x30], ecx
mov byte [esi + 0x3e], 1
cmovne ebx, eax
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409304
mov esp, ebp
pop ebp
ret 4
Function at 0x404880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x404944
cmp byte [esi + 0x3e], 0
je 0x404944
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x404932
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4048f9
sub eax, 1
je 0x4048fd
sub eax, 2
jne 0x404932
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40491b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x404932
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00409304
mov esp, ebp
pop ebp
ret
Function at 0x406830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf8
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x40686d
push 0x57
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x406921
push 0x1c
push 0
lea edx, [ebp - 0x64]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_VirtualQueryEx
test eax, eax
jne 0x40689b
xor eax, eax
jmp 0x406921
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x4068b8
xor eax, eax
jmp 0x406921
movzx eax, word [ebp - 0x44]
cmp eax, 0x5a4d
jne 0x4068d1
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x58]
ja 0x4068d1
cmp dword [ebp - 8], 0x40
jae 0x4068df
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x406921
push 0
push 0xf8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x406902
xor eax, eax
jmp 0x406921
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
je 0x40691b
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x406921
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret
Function at 0x407e50
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x38], 0
jne 0x407e63
mov dword [ebp + 0x38], 0x40a24d
cmp dword [ebp + 0x2c], 0
jne 0x407e7f
lea eax, [ebp - 0x10]
mov dword [ebp + 0x2c], eax
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
or eax, 4
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp + 0x38]
test eax, eax
jne 0x407eb8
xor eax, eax
jmp 0x407f4b
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x34]
push ecx
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call fcn.00408200
test eax, eax
jne 0x407f13
mov ecx, dword [ebp + 0x38]
push ecx
mov edx, dword [ebp + 0x34]
push edx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 8]
push edx
call fcn.00407f60
test eax, eax
jne 0x407f13
push 0xffffffffffffffff
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
call sub.KERNEL32.dll_TerminateProcess
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx]
push eax
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
jmp 0x407f4b
mov eax, dword [ebp + 0x1c]
and eax, 4
jne 0x407f27
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx + 4]
push edx
call sub.KERNEL32.dll_ResumeThread
lea eax, [ebp - 0x10]
cmp dword [ebp + 0x2c], eax
jne 0x407f46
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ecx]
push edx
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + 4]
push ecx
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret 0x34
Function at 0x407f60
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x40f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x634], 0
mov dword [ebp - 0x620], 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.WINDIR
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x628], eax
cmp dword [ebp + 0xc], 1
jb 0x407fb2
cmp dword [ebp + 0xc], 0x1000
jbe 0x407fc3
push 0x57
call sub.KERNEL32.dll_SetLastError
jmp 0x4081d7
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x620]
push ecx
call fcn.00406320
test eax, eax
jne 0x407fe9
jmp 0x4081d7
cmp dword [ebp - 0x628], 0
je 0x407ffe
cmp dword [ebp - 0x628], 0x104
jb 0x408008
jmp 0x4081d7
push str._sysnative_rundll32.exe
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00406c20
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jge 0x408037
jmp 0x4081d7
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0xffffffffffffffff
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x620]
lea ecx, [eax + edx + 0xc]
push ecx
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0x104
jae 0x40807c
cmp dword [ebp - 0x62c], 0
jg 0x408086
jmp 0x4081d7
lea edx, [ebp - 0x414]
push edx
push str.rundll32.exe___s__1
push 0x104
lea eax, [ebp - 0x61c]
push eax
call fcn.00406d30
add esp, 0x10
mov dword [ebp - 0x624], eax
cmp dword [ebp - 0x624], 0
jge 0x4080bf
jmp 0x4081d7
push 0x10
push 0
lea ecx, [ebp - 0x644]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x44
push 0
lea edx, [ebp - 0x688]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x688], 0x44
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x688]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [ebp + 0x14]
test eax, eax
je 0x4081d7
mov ecx, dword [ebp - 0x620]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x620]
push eax
push 0x40b2b0
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.00407ad0
test eax, eax
jne 0x408171
push 0xffffffffffffffff
mov edx, dword [ebp - 0x644]
push edx
call sub.KERNEL32.dll_TerminateProcess
mov eax, dword [ebp - 0x644]
push eax
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x640]
push ecx
call sub.KERNEL32.dll_CloseHandle
jmp 0x4081d7
mov edx, dword [ebp - 0x640]
push edx
call sub.KERNEL32.dll_ResumeThread
push 0xffffffffffffffff
mov eax, dword [ebp - 0x644]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x630], 0x1f4
lea ecx, [ebp - 0x630]
push ecx
mov edx, dword [ebp - 0x644]
push edx
call sub.KERNEL32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x644]
push eax
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 0x640]
push ecx
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 0x630], 0
je 0x4081cd
jmp 0x4081d7
mov dword [ebp - 0x634], 1
lea edx, [ebp - 0x620]
push edx
call fcn.004067a0
mov eax, dword [ebp - 0x634]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409304
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409e15
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409e54
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409e54
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409e54
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409e54
cmp dword [ecx + 0x74], 0xe
jbe 0x409e54
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x406430
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40646f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40646f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40646f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40646f
cmp dword [ecx + 0x74], 0xe
jbe 0x40646f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40bfc3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c060
push ebx
push esi
call fcn.0040bf8c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040bf20
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c00d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c05f
push edi
push eax
call fcn.0040cbe0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c02d
call fcn.0040aa81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c05e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040bf20
add esp, 0x20
test eax, eax
jne 0x40c04c
push edi
call fcn.0040aa81
jmp 0x40c054
push ebx
call fcn.0040aa81
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40d35d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aee08
push 0x4aee00
push str.FlsAlloc
push 0x1f
call fcn.0040d21c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d391
push dword [ebp + 8]
mov ecx, esi
call dword [0x416174]
call esi
jmp 0x40d397
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d3db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aee18
push 0x4aee10
push str.FlsGetValue
push 0x21
call fcn.0040d21c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d412
push dword [ebp + 8]
mov ecx, esi
call dword [0x416174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d41a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aee20
push 0x4aee18
push str.FlsSetValue
push 0x22
call fcn.0040d21c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d454
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x416174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4128b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4128dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4128dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x103bae3c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103bae46
pushal
call 0x103bae4c
pop ebp
sub ebp, 0x10
sub ebp, 0x3bae3c
mov al, byte [esp + 0x28]
add byte [edx + 0x282484], cl
add byte [eax], al
cmp al, 1
je 0x103bae70
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103bae79
mov eax, 0x3bae3c
add eax, ebp
add eax, 0x63
mov ecx, 0x5eb
mov edx, 0x5079f617
xor byte [eax], dl
inc eax
dec ecx
jne 0x103bae90
jmp 0x103baea3
pushfd
ficomp dword [esi + ebx*4 + 0x1717172b]
xchg esi, eax
salc
out dx, eax
pop ss
pop ss
pop ss
adc al, 0xda
scasd eax, dword es:[edi]
sbb eax, 0xad171717
aas
pop ss
pop ss
pop ss
loopne 0x103baeb4
adc al, 0xdf
pushfd
xchg esi, eax
sbb edx, dword [edi]
pop ss
pop ss
adc al, 0xd2
inc edi
inc edi
jg 0x103bae58
mov eax, 0x887f1719
jmp 0x4b51c612
Function at 0x403ac6
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov esi, dword [ecx + 0x58]
test esi, esi
je 0x403ae8
lea edx, [eax + 1]
cmp dword [ebx + 0x5c], eax
je 0x403b04
mov esi, dword [esi + 0x1c]
mov eax, edx
jmp 0x403ad5
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [esp], 0
mov ecx, ebx
mov dword [esp + 4], edx
call dword [eax + 0x14]
push eax
push eax
jmp 0x403c4d
cmp dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x5c], edx
je 0x403b4c
mov ecx, dword [ebx + 0x38]
call method.IWindow.getHandle__
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [ebx + 0x40]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x40], 0xffffffff
push eax
mov eax, dword [esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x40], eax
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x403b88
mov dword [esp], str.socket_error
lea esi, [ebp - 0xc]
mov ecx, esi
call fcn.004c639a
push ecx
jmp 0x403c3b
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 1
mov dword [esp + 8], edx
mov dword [esp + 4], 0x8004667e
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebx + 0x38]
sub esp, 0xc
call method.IWindow.getHandle__
mov dword [esp + 0xc], 0x10
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0x8001
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x10]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
test eax, eax
je 0x403c4d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
jne 0x403c2d
mov eax, dword [ebx + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x2710
call sym.winbox.exe_addTimer_unsigned_int__EventListener__void__bool_
mov dword [ebx + 0x54], eax
jmp 0x403c4d
call esi
lea esi, [ebp - 0xc]
mov edx, eax
mov eax, esi
call fcn.00402ccb
mov dword [esp], esi
mov ecx, ebx
call fcn.00403ac6
mov ecx, esi
push edx
call fcn.004c616a
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x403d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x1c]
push ebx
mov ebx, ecx
add ecx, 0x28
sub esp, 0x3c
mov esi, dword [ecx + 4]
sub esi, dword [ecx]
mov byte [ebp - 0x1c], 0
mov dword [esp + 4], edi
mov dword [esp], 0x1000
mov dword [ebp - 0x2c], ecx
call fcn.004c7482
mov edx, dword [ebx + 0x28]
push eax
push eax
mov eax, dword [ebx + 0x2c]
sub eax, edx
add edx, esi
sub eax, esi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp - 0x2c]
sub esp, 0x10
mov edx, eax
inc eax
jne 0x403e08
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x1c], 0
call fcn.004c7482
push eax
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, 0x2733
je 0x403e55
cmp eax, 0x2738
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
je 0x403e3a
mov dword [esp + 4], str.error_while_reading_err
mov dword [esp], 0x5694e0
call fcn.004c8905
mov edi, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.004c8a58
mov dword [esp], eax
call fcn.004c8cf3
jmp 0x403e55
test edx, edx
jne 0x403e3a
mov eax, dword [ebx]
mov ecx, edi
mov esi, dword [eax + 0x14]
mov dword [esp], str.peer_closed_connection
call fcn.004c639a
mov ecx, ebx
push edx
mov dword [esp + 4], edi
mov dword [esp], 0
call esi
push ecx
push ecx
mov ecx, edi
call fcn.004c616a
jmp 0x403e55
add esi, edx
mov dword [esp + 4], edi
mov dword [esp], esi
mov byte [ebp - 0x1c], 0
call fcn.004c7482
mov ecx, ebx
push eax
push eax
call fcn.004035da
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
Function at 0x403e5e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x34]
mov dword [esp + 0xc], 0
sub eax, edx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x403f0e
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x403f8a
call edi
mov dword [esp + 8], str.send_error__d
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x68]
mov dword [esp + 4], 0x50
mov dword [esp], eax
call fcn.00520860
mov dword [esp + 4], str.ERROR:_while_sending_err
mov dword [esp], 0x5694e0
call fcn.004c8905
mov esi, eax
call edi
mov dword [esp], esi
lea esi, [ebp - 0x6c]
mov dword [esp + 4], eax
call fcn.004c8a58
mov dword [esp], eax
call fcn.004c8cf3
mov eax, dword [ebx]
mov ecx, esi
mov edi, dword [eax + 0x14]
mov dword [esp], str.peer_closed_connection
call fcn.004c639a
push ecx
jmp 0x403f45
mov edx, dword [ebx + 0x30]
lea ecx, [ebx + 0x30]
add eax, edx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004c71d8
mov eax, dword [ebx + 0x34]
push edx
push edx
cmp dword [ebx + 0x30], eax
jne 0x403e69
cmp byte [ebx + 0x45], 0
je 0x403f5f
mov eax, dword [ebx]
lea esi, [ebp - 0x68]
mov ecx, esi
mov edi, dword [eax + 0x14]
call fcn.004c62d0
mov ecx, ebx
mov dword [esp + 4], esi
mov dword [esp], 0
call edi
mov ecx, esi
push eax
push eax
call fcn.004c616a
jmp 0x403f8a
mov ecx, dword [ebx + 0x38]
call method.IWindow.getHandle__
mov dword [esp + 0xc], 0x21
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 8], 0x8001
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp