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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x4038dc
jl 0x4038d0
test ecx, ecx
jne 0x4038dc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4038f5
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x403943
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x403949
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x403949
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x4039b6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x403972
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x4039a4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4039b6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x403980
test edi, edi
je 0x4039b6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403d60
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004061ce
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403d9c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x403d9c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004061ce
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403e73
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403dc4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], 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 0x403dd0
movsx eax, bl
jmp 0x403e08
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x403e32
sub eax, 1
je 0x403e32
sub eax, 2
jne 0x403e73
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004061ce
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403e50
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 0x403e73
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004061ce
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061ce
mov esp, ebp
pop ebp
ret 4
Function at 0x404d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40d040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x404dbc
cmp byte [esi + 0x3d], 0
je 0x404dbc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404daa
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_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x404d71
sub eax, 1
je 0x404d75
sub eax, 2
jne 0x404daa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004061ce
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404d93
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 0x404daa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004061ce
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004061ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004061ce
mov esp, ebp
pop ebp
ret
Function at 0x406bca
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406c09
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406c09
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406c09
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406c09
cmp dword [ecx + 0x74], 0xe
jbe 0x406c09
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x18aac00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1048000]
push edi
jmp 0x18aac1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x18aac21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x18aac10
mov eax, 1
add ebx, ebx
jne 0x18aac33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x18aac44
jne 0x18aac63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x18aac63
dec eax
add ebx, ebx
jne 0x18aac50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x18aac28
add ebx, ebx
jne 0x18aac5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x18aacb5
xor ecx, ecx
sub eax, 3
jb 0x18aac7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x18aacea
sar eax, 1
mov ebp, eax
jmp 0x18aac86
add ebx, ebx
jne 0x18aac86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x18aac54
inc ecx
add ebx, ebx
jne 0x18aac94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x18aac54
add ebx, ebx
jne 0x18aaca1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x18aac96
jne 0x18aacb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x18aac96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x18aacd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x18aacc6
jmp 0x18aac16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x18aacd4
add edi, ecx
jmp 0x18aac16
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x18aacf2
cmp byte [edi], 0x11
jne 0x18aacf2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x18aacf7
lea edi, [esi + 0x14a3000]
mov eax, dword [edi]
or eax, eax
je 0x18aad6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23f5f60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23f60dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x18aad24
mov ecx, edi
jns 0x18aad53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23f60e0]
or eax, eax
je 0x18aad69
mov dword [ebx], eax
add ebx, 4
jmp 0x18aad41
call dword [esi + 0x23f60f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x18aada0
cmp al, 0xef
ja 0x18aad93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x18aad75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x18aad82
mov ebp, dword [esi + 0x23f60e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x18aadd4
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4dbc1b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4dbc5a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dbc5a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dbc5a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4dbc5a
cmp dword [ecx + 0x74], 0xe
jbe 0x4dbc5a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e33bc
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 0x4e3459
push ebx
push esi
call fcn.004e3385
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.004e3319
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4e3406
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e3458
push edi
push eax
call fcn.004e1e50
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4e3426
call fcn.004e1e9e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e3457
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004e3319
add esp, 0x20
test eax, eax
jne 0x4e3445
push edi
call fcn.004e1e9e
jmp 0x4e344d
push ebx
call fcn.004e1e9e
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 0x4e4668
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ec9a0
push 0x4ec998
push str.FlsAlloc
push 0x1f
call fcn.004e4527
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e469c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ea140]
call esi
jmp 0x4e46a2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4e46e6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ec9b0
push 0x4ec9a8
push str.FlsGetValue
push 0x21
call fcn.004e4527
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e471d
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ea140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4e4725
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ec9b8
push 0x4ec9b0
push str.FlsSetValue
push 0x22
call fcn.004e4527
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e475f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4ea140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4e9a30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e9a5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e9a5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402450
Capabilities:
Monitor local ipv4 address changes

Disassembly:
sub esp, 0x18
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp byte [edi + 0x29], bl
jne 0x402471
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
mov al, 1
pop ebx
add esp, 0x18
ret
push esi
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
cmp eax, ebx
mov dword [esp + 0x20], eax
jne 0x4024da
mov eax, dword [edi + 0x24]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004025e0
push 0xfa0
mov byte [edi + 0x29], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.Comn.dll_GetObjectLogPXE
mov ebx, eax
mov esi, dword [ebx]
push 0x1c7
add esi, 0xc
call fcn.00401270
mov ecx, dword [esi]
push eax
push str._s:__DHCP_Create_WSA_event_fail
push ebx
call ecx
mov edx, dword [edi + 0x24]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop edi
xor al, al
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
call sub.IPHLPAPI.DLL_NotifyAddrChange
test eax, eax
je 0x40255b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40255b
mov edx, dword [edi + 0x24]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004025e0
push 0xfa0
mov byte [edi + 0x29], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.Comn.dll_GetObjectLogPXE
mov ebx, eax
mov esi, dword [ebx]
push 0x1d4
add esi, 0xc
call fcn.00401270
push eax
mov eax, dword [esi]
push str._s:__DHCP_Add_notify_fail
push ebx
call eax
mov ecx, dword [edi + 0x24]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
xor al, al
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
push eax
call esi
cmp eax, 0x102
mov bl, 1
jne 0x40258e
cmp byte [edi + 0x28], bl
je 0x40258e
mov ecx, dword [esp + 0x20]
push 0x1f4
push ecx
call esi
cmp eax, 0x102
je 0x402576
lea edx, [esp + 0x10]
push edx
call sub.IPHLPAPI.DLL_CancelIPChangeNotify
test eax, eax
jne 0x4025c0
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x1ea
add esi, 0xc
call fcn.00401270
push eax
mov eax, dword [esi]
push str._s:__DHCP_CancelNotify_fail
push edi
call eax
add esp, 0x10
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov al, bl
pop ebx
add esp, 0x18
ret

Function at 0x402660
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push 0x400
push 0
push esi
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp]
push eax
push ecx
push 0
push 0x400
push esi
push edx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
setne al
pop ecx
ret 8

Function at 0x4026a0
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x10
push eax
mov eax, dword [esp + 0xc]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
setne al
ret 4
Function at 0x402d10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x4bc
mov eax, dword [0x4b3774]
xor eax, esp
mov dword [esp + 0x4b8], eax
mov eax, dword [esp + 0x4c0]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
and ecx, dword [esi + 0xc]
push edi
mov edi, edx
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x18], edi
add edi, 8
lea ebp, [ebx + 0x2c]
push edi
mov ecx, esi
mov edx, ebp
mov dword [esp + 0x20], eax
call fcn.00406a60
cmp eax, 0xfa1
mov dword [esp + 0xc], eax
je 0x402e06
push 0x80
lea eax, [esp + 0x444]
push 0
push eax
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x440]
mov ecx, ebx
call fcn.00402c20
test al, al
jne 0x402d99
mov byte [esp + 0x440], al
mov eax, dword [esp + 0xc]
cmp eax, 0xfa2
je 0x402e10
test eax, eax
jne 0x402ea7
cmp byte [esp + 0x39], 1
je 0x402e10
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, 0x4a6410
lea edi, [esp + 0x54]
lea edx, [esp + 0x454]
call fcn.0040b9e0
test al, al
je 0x402e06
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov esi, dword [esi + 0x14]
push 0x10
push ecx
push 0
push edx
mov eax, edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x402ea7
mov eax, 0xfa1
jmp 0x402ea9
mov ecx, dword [esi + 8]
and ecx, dword [esi + 0xc]
lea eax, [esp + 0x18]
push ecx
push edi
push esi
push ebp
call fcn.004065b0
cmp eax, 0xfa1
je 0x402e06
cmp eax, 0xfa2
jne 0x402ea7
mov edx, dword [esi + 8]
and edx, dword [esi + 0xc]
lea eax, [esp + 0x18]
push edx
push edi
push eax
mov ecx, esi
mov edx, ebp
call fcn.004066e0
cmp eax, 0xfa2
je 0x402e06
cmp eax, 0xfa1
je 0x402e06
test eax, eax
jne 0x402ea7
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, 0x4a6410
lea edi, [esp + 0x54]
lea edx, [esp + 0x454]
call fcn.0040b9e0
test al, al
je 0x402e06
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.004026a0
test al, al
je 0x402e06
xor eax, eax
mov ecx, dword [esp + 0x4c4]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042c614
add esp, 0x4bc
ret 4
Function at 0x402ed0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x444
mov eax, dword [0x4b3774]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x448]
push ebx
push ebp
mov ebp, dword [esp + 0x454]
push esi
mov esi, edx
mov edx, dword [esi + 8]
and edx, dword [esi + 0xc]
push edi
lea ebx, [eax + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x24], ecx
lea edi, [ebp + 8]
push edi
mov ecx, esi
mov edx, ebx
call fcn.00406a60
cmp eax, 0xfa1
jne 0x402f29
mov eax, 0xfa1
jmp 0x402fbb
cmp eax, 0xfa2
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], ecx
jne 0x402f49
mov dword [esp + 0x14], 6
jmp 0x402f69
test eax, eax
jne 0x402f69
mov eax, ecx
mov ecx, dword [esp + 0x20]
and eax, dword [esi + 0xc]
push edi
push ecx
mov ecx, esi
mov edx, ebx
mov dword [esp + 0x1c], 5
call fcn.00406cd0
mov edx, dword [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x4a6410
push ebp
lea edi, [esp + 0x5c]
mov edx, ecx
call fcn.0040b9e0
test al, al
je 0x402f1f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0x14]
push 0x10
push edx
push 0
push eax
mov ecx, edi
push ecx
push esi
call dword [sym.imp.WS2_32.dll_sendto]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0xfffff05f
add eax, 0xfa1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042c614
add esp, 0x444
ret 8

Function at 0x403040
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x438
mov eax, dword [0x4b3774]
xor eax, esp
mov dword [esp + 0x434], eax
mov eax, dword [esp + 0x43c]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
and ecx, dword [esi + 8]
push edi
mov edi, edx
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [edi + 8]
push ecx
lea edx, [eax + 0x2c]
mov ecx, esi
call fcn.00406a60
cmp eax, 0xfa1
jne 0x403089
mov eax, 0xfa1
jmp 0x4030e3
mov edx, dword [esi + 8]
push 0
push 5
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x4a6410
mov dword [esp + 0x2c], edx
push edi
lea edi, [esp + 0x4c]
mov edx, ecx
mov dword [esp + 0x20], 0
call fcn.0040b9e0
test al, al
je 0x403082
mov edx, dword [esp + 0xc]
mov esi, dword [esi + 0x14]
push 0x10
push ebx
push 0
push edx
mov eax, edi
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
sub eax, 0xffffffff
neg eax
sbb eax, eax
and eax, 0xfffff05f
add eax, 0xfa1
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
xor ecx, esp
call fcn.0042c614
add esp, 0x438
ret 4
Function at 0x40d360
Capabilities:
Monitor local ipv4 address changes

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
cmp byte [esi + 0x410], bl
push edi
jne 0x40d388
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [esp + 0x14], ebx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
cmp eax, ebx
mov dword [esp + 0x28], eax
jne 0x40d420
lea edi, [esi + 0x434]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0040d970
push 0xfa0
mov byte [esi + 0x410], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.Comn.dll_GetObjectLogPXE
mov ebx, eax
mov esi, dword [ebx]
push 0x220
add esi, 0xc
call fcn.0040bcc0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:__HFS_Create_WSA_event_fail
push ebx
call eax
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x223
add esi, 0xc
call fcn.0040bcc0
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_120
push edi
call ecx
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
call sub.IPHLPAPI.DLL_NotifyAddrChange
test eax, eax
je 0x40d4a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40d4a6
lea edi, [esi + 0x434]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0040d970
push 0xfa0
mov byte [esi + 0x410], bl
call dword [sym.imp.KERNEL32.dll_Sleep]
call sub.Comn.dll_GetObjectLogPXE
mov ebx, eax
mov esi, dword [ebx]
push 0x230
add esi, 0xc
call fcn.0040bcc0
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:__HFS_add_notify_fail
push ebx
call ecx
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
push eax
call edi
cmp eax, 0x102
mov bl, 1
jne 0x40d4e9
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call ebp
cmp byte [esi + 0x44c], bl
je 0x40d4e9
mov ecx, dword [esp + 0x28]
push 0x1f4
push ecx
call edi
cmp eax, 0x102
je 0x40d4c7
lea edx, [esp + 0x18]
push edx
call sub.IPHLPAPI.DLL_CancelIPChangeNotify
test eax, eax
jne 0x40d51e
call sub.Comn.dll_GetObjectLogPXE
mov edi, eax
mov esi, dword [edi]
push 0x242
add esi, 0xc
call fcn.0040bcc0
add esp, 4
push eax
mov eax, dword [esi]
push str._s:__HFS_CancelNotify_Faile
push edi
call eax
add esp, 0xc
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret