joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413820
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x413883
push 0x104
call fcn.0041ea68
push 0x104
push 0
push eax
mov dword [ebp - 4], eax
call fcn.00423960
add esp, 0x10
push 0x90
push ecx
lea ecx, [ebp - 4]
call fcn.00414b60
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
je 0x413873
push eax
call fcn.0041e1e4
add esp, 4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x10]
push eax
push 6
lea eax, [ebp - 0xc]
mov ebx, ecx
push eax
push dword [ebx]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x10], 6
je 0x41392a
push 0x104
call fcn.0041ea68
push 0x104
push 0
push eax
mov dword [ebp - 0x14], eax
call fcn.00423960
add esp, 0x10
push 0xb3
push ecx
lea ecx, [ebp - 0x14]
call fcn.00414b60
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x413918
push eax
call fcn.0041e1e4
add esp, 4
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0xc]
mov al, byte [ebp - 0xb]
cmp cl, 8
je 0x413939
cmp al, 5
jne 0x413942
cmp cl, 9
je 0x413966
cmp al, 5
je 0x413966
push 0x104
call fcn.0041ea68
push 0x104
push 0
push eax
mov dword [ebp - 0x14], eax
call fcn.00423960
add esp, 0x10
push 0xc4
jmp 0x4138fc
movzx eax, byte [ebp - 9]
push esi
movzx esi, byte [ebp - 0xa]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 8]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 7]
shl esi, 8
add esi, eax
push edi
lea eax, [esi + 1]
push eax
call fcn.0041ea68
push esi
mov edi, eax
push 0
push edi
call fcn.00423960
add esp, 0x10
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x413a1b
push 0x104
call fcn.0041ea68
push 0x104
push 0
push eax
mov dword [ebp - 0x14], eax
call fcn.00423960
add esp, 0x10
push 0xdb
push ecx
lea ecx, [ebp - 0x14]
call fcn.00414b60
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
je 0x4139fa
push eax
call fcn.0041e1e4
add esp, 4
test edi, edi
je 0x413a07
push edi
call fcn.0041e1e4
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
mov byte [eax + edi], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [ebp - 0x10]
lea ecx, [ebx + 0x24]
push edi
call fcn.0041cbe0
test eax, eax
jne 0x413a07
mov esi, dword [ebp - 0x14]
lea edi, [esi + 1]
push edi
call fcn.0041ea68
push edi
push 0
push eax
mov dword [ebx + 4], eax
call fcn.00423960
push esi
mov esi, dword [ebp - 0x18]
push esi
push edi
push dword [ebx + 4]
call fcn.0041ee20
add esp, 0x20
test esi, esi
je 0x413a6e
push esi
call fcn.0041e60d
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x413a7b
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
Function at 0x413a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [esi + 0x24]
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.0041ca80
test eax, eax
je 0x413ae4
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp - 0xc]
push edi
add ebx, 6
push ebx
call fcn.0041ea68
push ebx
mov edi, eax
push 0
push edi
call fcn.00423960
push 4
call fcn.0041d7ac
mov edx, dword [ebp - 0xc]
mov ebx, eax
mov ecx, edx
shr ecx, 0x18
mov byte [ebx], cl
mov ecx, edx
sar ecx, 0x10
mov byte [ebx + 1], cl
mov ecx, edx
sar ecx, 8
mov byte [ebx + 2], cl
mov byte [ebx + 3], dl
mov eax, dword [esi + 8]
add esp, 0x14
cmp eax, 1
jne 0x413b33
mov byte [edi], 9
jmp 0x413b3b
cmp eax, 2
jne 0x413b3b
mov byte [edi], 8
mov esi, dword [ebp - 0x10]
mov byte [edi + 1], 5
movzx eax, byte [ebx]
mov byte [edi + 2], al
movzx eax, byte [ebx + 1]
mov byte [edi + 3], al
movzx eax, byte [ebx + 2]
mov byte [edi + 4], al
movzx eax, byte [ebx + 3]
push edx
mov byte [edi + 5], al
lea eax, [edx + 6]
push esi
push eax
lea eax, [edi + 6]
push eax
mov dword [ebp - 8], 0
call fcn.0041eec4
mov ecx, dword [ebp - 0xc]
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ecx + 6]
push eax
mov eax, dword [ebp - 0x14]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413bb7
push 0x104
call fcn.0041ea68
push 0x104
push 0
push eax
mov dword [ebp - 0xc], eax
call fcn.00423960
add esp, 0x10
push 0x12b
jmp 0x413be4
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + 6]
cmp dword [ebp - 8], eax
je 0x413c32
push 0x104
call fcn.0041ea68
push 0x104
push 0
push eax
mov dword [ebp - 0xc], eax
call fcn.00423960
add esp, 0x10
push 0x141
push ecx
lea ecx, [ebp - 0xc]
call fcn.00414b60
mov eax, dword [ebp - 0xc]
add esp, 8
test eax, eax
je 0x413c00
push eax
call fcn.0041e1e4
add esp, 4
push ebx
call fcn.0041e60d
push edi
call fcn.0041e1e4
add esp, 8
test esi, esi
je 0x413c1c
push esi
call fcn.0041e60d
add esp, 4
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 8
push ebx
call fcn.0041e60d
push edi
call fcn.0041e1e4
mov eax, dword [ebp - 0x14]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x413c51
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test esi, esi
je 0x413c5e
push esi
call fcn.0041e60d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 8
Function at 0x413c80
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00423960
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00423960
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413ce0
push esi
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041ee20
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x413d34
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.G4CSSWSCSVC
push str.G4CSSWSCSVC
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
test ebx, ebx
jne 0x413d82
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push eax
push 1
push ebx
mov dword [ebp - 0x210], 0x52f254
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x413dc8
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x214]
push eax
mov dword [ebp - 0x214], 0
call fcn.00414220
cmp eax, 1
jne 0x413e0c
mov eax, dword [ebp - 0x214]
cmp eax, 0x27ae
jl 0x413dfb
test eax, eax
je 0x413e0c
push str.CheckNetIsolation_LoopbackExempt__a__nMicrosoft.MicrosoftEdge_8wekyb3d8bbwe
jmp 0x413e04
test eax, eax
je 0x413e0c
push str.CheckNetIsolation_LoopbackExempt__a__nMicrosoft.Windows.Spartan_cw5n1h2txyewy
call fcn.00420710
add esp, 4
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
Function at 0x413e20
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf003f
xorps xmm0, xmm0
push 0
push 0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x413e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push edi
push 0xf01ff
push str.G4CSSWSCSVC
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x413ebf
lea eax, [ebp - 0x20]
push eax
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x413eb4
cmp dword [ebp - 0x1c], 0x20
je 0x413eb4
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x413ebf
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x413ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0
call fcn.00414220
cmp eax, 1
jne 0x413f13
cmp dword [ebp - 0x24], 0x27ae
jl 0x413f06
push str.CheckNetIsolation_LoopbackExempt__d__nMicrosoft.MicrosoftEdge_8wekyb3d8bbwe
jmp 0x413f0b
push str.CheckNetIsolation_LoopbackExempt__d__nMicrosoft.Windows.Spartan_cw5n1h2txyewy
call fcn.00420710
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
Function at 0x413f30
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
call fcn.00414190
test eax, eax
je 0x413f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x1c], 4
jne 0x413f94
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x413fbc
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4
push 0x14
push str.G4CSSWSCSVC
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x413f66
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x413f66
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x1d
lea ebx, [ebx]
lea eax, [ebp - 0x20]
push eax
call fcn.00414190
cmp dword [ebp - 0x1c], 4
je 0x414020
push 0x3e8
call edi
dec esi
jne 0x413ff0
pop edi
mov eax, 0x102
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4

Function at 0x414220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00423960
push 0x103
lea eax, [ebp - 0x20b]
push 0
push eax
mov byte [ebp - 0x20c], 0
call fcn.00423960
add esp, 0x18
lea eax, [ebp - 0x214]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion_
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4142ca
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push 0x52f3f8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4142dd
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00420449
lea eax, [ebp - 0x108]
push str.windows_10
push eax
call fcn.00420490
add esp, 0x10
test eax, eax
je 0x4142ca
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4142be
lea eax, [ebp - 0x20c]
push eax
call fcn.004206f3
add esp, 4
mov dword [edi], eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4
Function at 0x415120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x535820]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
xorps xmm0, xmm0
push edi
mov ebx, edx
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x1c], 0
call fcn.00415030
mov edi, eax
test edi, edi
jne 0x41517c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push 1
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x4151aa
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00423960
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x30], 0x44
push 0x400
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [esp + 0x54], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x41518e
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x415204
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41520f
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41523a
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test eax, eax
jne 0x41523a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push edi
call esi
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
Function at 0x415260
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4152ab
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4152be
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
je 0x41532b
mov eax, str.UpdateManager.exe
lea ecx, [ebp - 0x10c]
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x415300
test dl, dl
je 0x4152fc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x415300
add ecx, 2
add eax, 2
test dl, dl
jne 0x4152e0
xor eax, eax
jmp 0x415305
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41531d
push dword [ebp - 0x128]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x4152d2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret

Function at 0x415350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 0x134], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4153a1
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x4153b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
je 0x4153fc
jmp 0x4153d0
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x134]
jne 0x4153ee
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x4153d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
Function at 0x4176b0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xorps xmm0, xmm0
push edi
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
call fcn.004b7d90
call fcn.004b7f60
call fcn.0043c710
call fcn.0043c050
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x417720
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0x5447d8
push 0x417820
push 0
push 0
mov dword [0x5447d8], eax
call fcn.0041f9ae
push 0
push 0
push 0x5447d8
push 0x417860
push 0
push 0
mov dword [ebp - 0x1ac], eax
call fcn.0041f9ae
push 0
push 0
push 0
push 0x410170
push 0
push 0
mov ebx, eax
call fcn.0041f9ae
add esp, 0x48
mov edi, eax
push 0
push 0
push 0
push 0x4102c0
push 0
push 0
call fcn.0041f9ae
add esp, 0x18
mov esi, eax
mov eax, dword [ebp - 0x1ac]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x14]
push eax
push 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x1ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push edi
call ebx
push esi
call ebx
mov ecx, dword [0x5447e4]
mov esi, dword [ecx]
cmp esi, ecx
je 0x4177fa
mov eax, dword [esi + 8]
test eax, eax
je 0x4177f4
push eax
call ebx
mov ecx, dword [0x5447e4]
mov esi, dword [esi]
cmp esi, ecx
jne 0x4177e4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
Function at 0x4178a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0
mov byte [ebp - 0x404], 0
call fcn.00423960
call fcn.004b71f0
push eax
call fcn.004b4bd0
push 0
push 4
mov esi, eax
push 0x21
push esi
call fcn.004b47b0
push 0
push 0
push 0x2c
push esi
call fcn.004b47b0
push 1
push esi
call fcn.004b50b0
push 0x52f1b4
push esi
call fcn.004b5050
add esp, 0x40
push 0x52f1b8
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x417943
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push edi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417a25
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x410], eax
test eax, eax
je 0x417a25
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
call fcn.0043bd90
mov dword [ebp - 0x40c], eax
test eax, eax
je 0x417a25
push ebx
lea eax, [ebp - 0x410]
push eax
push 0
call fcn.0043b3a0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x417a25
call fcn.0043ba20
mov dword [ebp - 0x408], eax
test eax, eax
je 0x417a25
push 0
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x40c]
push eax
push str.1234qwer
push edi
call fcn.0043b3c0
add esp, 0x14
test eax, eax
je 0x417a10
push dword [ebp - 0x408]
push esi
call fcn.004b79c0
add esp, 8
cmp eax, 1
jne 0x417a10
push dword [ebp - 0x40c]
push esi
call fcn.004b7950
add esp, 8
cmp eax, 1
jne 0x417a10
push esi
call fcn.004b4740
add esp, 4
cmp eax, 1
je 0x417a38
call fcn.0043aa00
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.0043a7d0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
push esi
call fcn.004b5a10
push dword [ebp - 0x40c]
mov esi, eax
call fcn.0043bc60
push edi
call fcn.0043b380
push dword [ebp - 0x408]
call fcn.0043b9d0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret
Function at 0x417a80
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x535820]
xor eax, ebp
mov dword [ebp - 8], eax
push edi
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x417ada
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0xc]
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x417b51
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x417b3e
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4
push accept
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x417b24
mov ecx, dword [ebp - 8]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0041d8e4
mov esp, ebp
pop ebp
ret 4