joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430b20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4722f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x430b59
inc eax
mov dword [esi + 0x10], eax
jmp 0x430c6c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x430b6d
mov eax, 0xffffffc7
jmp 0x430c6e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x430b7e
cmp dword [esi + 8], eax
jne 0x430b6d
cmp dword [esi + 8], eax
jne 0x430b97
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x430b97
mov eax, 0xffffffc7
jmp 0x430c6e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x430bab
push eax
mov ecx, ebx
call fcn.00430350
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402ad0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x430bdc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402af0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042fac0
test eax, eax
mov dword [esp + 0x38], eax
je 0x430c0f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476920
call fcn.00402cd0
mov eax, dword [esp + 0x38]
jmp 0x430c6e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430980
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x430c53
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004309a0
mov esi, eax
test esi, esi
jne 0x430c83
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430980
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x430c25
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476920
call fcn.00402cd0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x476920
call fcn.00402cd0
mov eax, esi
jmp 0x430c6e

Function at 0x433db0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x433e10
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x433e10
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x433e10
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x433e10
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x433e50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x439f70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00469ab4
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439910
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004699e2
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004661cc
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004661cc
push 1
push 0
push 0
mov ecx, esi
call fcn.00466174
push 1
push 0
push 1
mov ecx, esi
call fcn.00466174
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469b26
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a0f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00469ab4
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439910
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004699e2
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43a1b4
cmp dword [esp + 0x40], 1
jne 0x43a1b2
cmp ecx, eax
jge 0x43a1b4
mov eax, ecx
cmp eax, 0xc8
jge 0x43a1c0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00439f70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469b26
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43a940
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4729b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004645e9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00469d5c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046b2b4
test eax, eax
je 0x43aa5c
mov ecx, dword [esp + 0x3c]
call fcn.00469d89
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43aa20
push edi
mov ecx, esi
call fcn.0046734a
mov ecx, esi
call fcn.0043abc0
cmp dword [esp + 0x38], 1
jne 0x43aa55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004674b4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43d490
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d4c3
push esi
call fcn.00440590
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d4bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43d549
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d532
mov eax, dword [esi + 8]
test eax, eax
je 0x43d4e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43d52e
cmp eax, 2
je 0x43d532
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d4da
cmp eax, 3
je 0x43d50d
cmp eax, 1
jne 0x43d4da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43d4da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d4da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d570
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d558
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d570
add esp, 4
pop esi
ret

Function at 0x4653df
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465417
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.00463496
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046346e
jmp 0x465423
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466ad0
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 0x466b12
call fcn.0046c7c0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466b12
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466b09
xor eax, eax
jmp 0x466b1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466b20
pop edi
pop esi
pop ebx
ret 4

Function at 0x46ccf0
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 0x46cd1e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46cd3c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046cc56
jmp 0x46cd3c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46cd3c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046cc56
test edi, edi
mov eax, edi
jne 0x46cd26
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4e1037
Capabilities:
Packed with generic packer

Disassembly:
pushal
call 0x4e103d
pop eax
sub eax, 0x3d
push eax
lea edi, [eax - 0xe0000]
push edi
add word [edi + 0xdf5dc], 1
lea esi, [eax + 0x1ec]
or ebp, 0xffffffff
xor ebx, ebx
jmp 0x4e1066
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e1071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e1060
mov eax, 1
add ebx, ebx
jne 0x4e1083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x4e1078
jne 0x4e1094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e1078
xor ecx, ecx
sub eax, 3
jb 0x4e1102
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e111e
mov ebp, eax
add ebx, ebx
jne 0x4e10b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4e10c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4e10e4
inc ecx
add ebx, ebx
jne 0x4e10d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4e10c5
jne 0x4e10e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e10c5
add ecx, 2
cmp eax, 0xfffff300
adc ecx, 1
lea edx, [edi + eax]
cmp eax, 0xfffffffc
jle 0x4e1108
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e10f4
jmp 0x4e1066
mov eax, ebp
jmp 0x4e10a8
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e1108
add edi, ecx
jmp 0x4e1066
pop esi
pop ebp
sub edi, dword [edi - 4]
push edi
lea edi, [esi]
mov ecx, 0x114a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e112f
cmp byte [edi], 0x1b
jne 0x4e112f
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 eax, ebx
loop 0x4e1134
pop edi
mov eax, dword [edi]
or eax, eax
je 0x4e1199
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdf000]
add ebx, esi
push eax
add edi, 8
call dword [ebp]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e115c
push edx
mov ecx, edi
jns 0x4e1189
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [ebp + 4]
pop edx
mov dword [ebx], eax
add ebx, 4
jmp 0x4e1176
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e11ca
cmp al, 0xef
ja 0x4e11bd
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e119f
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e11ac
popal
jmp section.UPX0
Function at 0x401860
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x40188f
mov ax, word [esp]
cmp al, 1
jne 0x40188a
xor ecx, ecx
mov cl, ah
cmp cl, al
je 0x40188f
call sub.WS2_32.dll_WSACleanup
add esp, 0x190
ret

Function at 0x401c10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
mov word [0x40fb2a], 1
call fcn.00401b80
mov ecx, dword [0x40c194]
add esp, 0x1c
push ecx
call sub.WS2_32.dll_closesocket
push 1
call fcn.00403c64
add esp, 4
push 1
call fcn.00403b8f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4021b0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov dword [0x40fb38], ebx
call sub.WS2_32.dll_WSASetLastError
cmp word [0x40fb28], bx
je 0x4021d3
push 0x11
push 2
jmp 0x4021d7
push 6
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, ebx
mov dword [0x40fe34], eax
jge 0x4021fb
push str.Cant_get_socket
call fcn.00401c10
mov eax, dword [0x40fe34]
add esp, 4
cmp eax, ebx
jne 0x40220b
push ebx
call fcn.00409ddc
add esp, 4
mov dword [0x40fe34], eax
mov ecx, dword [0x40fe28]
push 4
push ecx
push 4
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x402233
push str.nnetfd_reuseaddr_failed
call fcn.00401b80
add esp, 4
mov edx, dword [0x40fb00]
mov esi, dword [ebp + 0x10]
cmp esi, ebx
mov word [edx], 2
mov eax, dword [0x40fb04]
mov word [eax], 2
je 0x40225a
mov edx, dword [0x40fb00]
mov ecx, dword [esi]
mov dword [edx + 4], ecx
mov edi, dword [ebp + 0x14]
cmp di, bx
je 0x402272
push edi
call sub.WS2_32.dll_htons
mov ecx, dword [0x40fb00]
mov word [ecx + 2], ax
test esi, esi
jne 0x40227b
test di, di
je 0x4022e2
mov esi, 4
mov edx, dword [0x40fb00]
mov eax, dword [0x40fe34]
push 0x10
push edx
push eax
call sub.WS2_32.dll_bind
mov ebx, eax
test ebx, ebx
je 0x40230a
cmp dword [0x40fb38], 0x2740
jne 0x4022e2
mov edx, dword [0x40fb00]
mov ecx, edi
and ecx, 0xffff
mov eax, dword [edx + 4]
push ecx
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push str.retrying_local__s:_d
call fcn.00401b80
push 1
call fcn.00403c64
add esp, 0x10
dec esi
test esi, esi
mov dword [0x40fb38], 0
jg 0x402280
test ebx, ebx
je 0x40230a
mov ecx, dword [0x40fb00]
and edi, 0xffff
push edi
mov edx, dword [ecx + 4]
push edx
call sub.WS2_32.dll_inet_ntoa
push eax
push str.Cant_grab__s:_d_with_bind
call fcn.00401c10
add esp, 0xc
cmp word [0x40fb20], 0
je 0x40231e
mov eax, dword [0x40fe34]
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, dword [0x40fb04]
mov ecx, dword [eax]
mov eax, dword [ebp + 0xc]
push eax
mov dword [edx + 4], ecx
call sub.WS2_32.dll_htons
mov ecx, dword [0x40fb04]
mov word [ecx + 2], ax
mov eax, dword [0x40fae8]
test eax, eax
je 0x402355
push str.Warning:_source_routing_unavailable_on_this_machine__ignoring
call fcn.00401b80
add esp, 4
mov edx, dword [0x40fb2c]
push edx
push 1
call fcn.00401c70
push 0
push 0x40fde0
call fcn.00403fc0
add esp, 0x10
test eax, eax
jne 0x40238e
mov eax, dword [0x40fb04]
mov ecx, dword [0x40fe34]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
mov esi, eax
jmp 0x40239b
push 0x274c
or esi, 0xffffffff
call sub.WS2_32.dll_WSASetLastError
push 0
push 0
call fcn.00401c70
add esp, 8
test esi, esi
jne 0x4023b5
mov eax, dword [0x40fe34]
pop edi
pop esi
pop ebx
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [0x40fe34]
mov dword [0x40fb38], eax
push edx
call sub.WS2_32.dll_closesocket
mov eax, dword [0x40fb38]
push eax
call sub.WS2_32.dll_WSASetLastError
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x4027a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x40fe24]
push esi
mov esi, dword [esp + 8]
push 0
push 1
push eax
push esi
call sub.WS2_32.dll_send
cmp eax, 1
je 0x4027ce
mov ecx, dword [0x40fb38]
push ecx
push str.udptest_first_write_failed___errno__d
call fcn.00401b80
add esp, 8
mov eax, dword [0x40fb2c]
test eax, eax
je 0x4027e2
push eax
call fcn.00403c64
add esp, 4
jmp 0x402826
mov edx, dword [esp + 0xc]
push 0
push 0
push 0x7a69
push edx
mov word [0x40fb28], 0
mov dword [0x40fb2c], 5
call fcn.004021b0
add esp, 0x10
test eax, eax
jle 0x402815
push eax
call sub.WS2_32.dll_closesocket
inc word [0x40fb28]
mov dword [0x40fb2c], 0
mov eax, dword [0x40fe24]
push 0
push 1
push eax
push esi
mov dword [0x40fb38], 0
call sub.WS2_32.dll_send
cmp eax, 1
jne 0x402849
mov eax, esi
pop esi
ret
push esi
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
pop esi
ret
Function at 0x402a10
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x402a57
mov edi, dword [esp + 0x10]
test edi, edi
je 0x402a57
push esi
call dword [0x448218]
test eax, eax
je 0x402a57
mov ecx, dword [esp + 0x14]
xor eax, eax
sub ecx, 1
je 0x402a4a
sub ecx, 1
jne 0x402a59
push edi
push esi
call fcn.00402810
add esp, 8
pop edi
pop esi
ret
push edi
push esi
call fcn.00402540
add esp, 8
pop edi
pop esi
ret
xor eax, eax
pop edi
pop esi
ret

Function at 0x402a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x4c
mov eax, dword [0x451728]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push edi
mov edi, dword [esp + 0x58]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SOFTWARE_sndaSdDUpdService
push 0x80000002
mov dword [esp + 0x1c], 0
call dword [0x448038]
test eax, eax
jne 0x402ae9
mov esi, dword [esp + 8]
test esi, esi
je 0x402ae9
push 0x3f
push eax
lea ecx, [esp + 0x19]
push ecx
mov byte [esp + 0x1c], al
call fcn.0041ae40
add esp, 0xc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push str.InstallVer
push esi
mov dword [esp + 0x24], 0x40
call dword [0x44803c]
test eax, eax
je 0x402afc
mov ecx, dword [esp + 8]
push ecx
call dword [0x448040]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0041ae31
add esp, 0x4c
ret
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b03
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
mov ecx, edi
call fcn.00402320
mov eax, dword [esp + 8]
push eax
call dword [0x448040]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041ae31
add esp, 0x4c
ret

Function at 0x403180
Capabilities:
Acquire debug privileges

Disassembly:
push esi
push edi
push 1
push 0x448948
mov edi, 0xc0000001
call fcn.00403090
mov eax, dword [esp + 0x14]
add esp, 8
push eax
push 0
push 1
call dword [0x4480cc]
mov esi, eax
test esi, esi
je 0x4031bd
push 1
push esi
call dword [0x4480b8]
push esi
mov edi, eax
call dword [0x4480d4]
push 0
push 0x448948
call fcn.00403090
add esp, 8
mov eax, edi
pop edi
pop esi
ret

Function at 0x4031bd
Capabilities:
Acquire debug privileges

Disassembly:
push esi
push edi
push 1
push 0x448948
mov edi, 0xc0000001
call fcn.00403090
mov eax, dword [esp + 0x14]
add esp, 8
push eax
push 0
push 1
call dword [0x4480cc]
mov esi, eax
test esi, esi
je 0x4031bd
push 1
push esi
call dword [0x4480b8]
push esi
mov edi, eax
call dword [0x4480d4]
push 0
push 0x448948
call fcn.00403090
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x403300
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x414
push esi
xor esi, esi
push 0x40c
lea eax, [esp + 0x10]
push esi
push eax
mov dword [esp + 0x14], esi
call fcn.0041ae40
push 1
push 0x448948
mov dword [esp + 0x18], esi
call fcn.00403090
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push str.SdDUpdService.exe
call fcn.004031e0
add esp, 0x20
test eax, eax
jl 0x40337d
push ebx
mov ebx, dword [esp + 8]
cmp ebx, esi
jbe 0x40337c
push ebp
mov ebp, dword [0x44804c]
push edi
lea esp, [esp]
mov edi, dword [esp + esi*4 + 0x14]
call ebp
cmp edi, eax
je 0x403375
push 1
push edi
call fcn.00403180
add esp, 8
inc esi
cmp esi, ebx
jb 0x403360
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x414
ret

Function at 0x403390
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0xf8
mov eax, dword [0x451728]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push esi
mov esi, dword [esp + 0x108]
push edi
mov edi, dword [esp + 0x108]
push 2
push 0
push 0
call dword [0x448020]
mov ebx, eax
test ebx, ebx
jne 0x403407
call dword [0x4480e0]
push eax
lea eax, [esp + 0x10]
push str.OpenSCManager_failed__error_code___d_n
push eax
call fcn.00402d70
lea ecx, [esp + 0x18]
push ecx
push 0x452a88
call fcn.00403010
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.0041ae31
add esp, 0xf8
ret
push ebp
push 0
push 0
push 0
push 0
push 0
push edi
push 1
push 2
push 0x110
push 0xf01ff
push esi
push esi
push ebx
call dword [0x448024]
mov ebp, dword [0x448028]
mov edi, eax
test edi, edi
jne 0x403461
call dword [0x4480e0]
push eax
push esi
lea edx, [esp + 0x18]
push str.Failed_to_create_service__s__error_code___d_n
push edx
call fcn.00402d70
lea eax, [esp + 0x20]
push eax
push 0x452a88
call fcn.00403010
add esp, 0x18
jmp 0x403486
push esi
lea ecx, [esp + 0x14]
push str.Service__s_installed_n
push ecx
call fcn.00402d70
lea edx, [esp + 0x1c]
push edx
push 0x452a88
call fcn.00403010
add esp, 0x14
push edi
call ebp
push ebx
call ebp
mov ecx, dword [esp + 0x104]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ae31
add esp, 0xf8
ret