joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ee80
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ee97
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419150
mov eax, dword [0x467870]
cmp word [eax + 2], 0
jne 0x44eebf
mov eax, dword [0x467870]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450558
mov eax, dword [0x467920]
cmp word [eax + 2], 0
jne 0x44eed9
mov eax, dword [0x467920]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450750
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411448]
call fcn.004030cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411448]
call fcn.004030cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b68c]
call fcn.00422d60
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f060
mov eax, dword [0x467798]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423130
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450cf0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x467798]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bfec
test eax, eax
je 0x44efce
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408318
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c014
test eax, eax
je 0x44efe2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x467684]
cmp byte [eax], 0
jne 0x44f016
mov eax, ebx
call fcn.0044f188
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00450ecc
mov eax, ebx
call fcn.00451890
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f056
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f408
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x468bb0]
cmp dword [eax + 0x30], 0
je 0x44f4b2
cmp dword [ebx + 0x94], 0
jne 0x44f4ac
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f398
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f4ac
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f472
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f4ac
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004137b0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f481
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450014
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450049
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x450056
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4510a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4510e9
mov eax, esi
call fcn.00437904
test al, al
je 0x4510e9
mov eax, dword [ebx + 0x84]
call fcn.00437600
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4510e9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00437600
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454820
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45484e
mov eax, ebx
call fcn.004552d4
cmp dword [ebx + 0x40], 0
je 0x454847
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4548bf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4548b1
cmp dword [ebx + 8], 0
je 0x454870
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x454882
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4548b1
cmp dword [ebx + 8], 0
je 0x454863
cmp eax, 3
je 0x454895
dec eax
jne 0x454863
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x454863
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x454863
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4548dd
cmp dword [ebx + 0x14], 0xcc
je 0x4548dd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004548e8
pop ebx
ret
Function at 0x4089b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48042b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 0xa
lea edi, [esi + 0xc]
mov dword [esp + 0xc], esi
mov ecx, edi
call fcn.0045bcef
lea eax, [esi + 0x30]
mov dword [esp + 0x14], 0
push eax
mov dword [esi], 0x4892a0
call dword [sym.imp.Kernel32.dll_InitializeCriticalSection]
mov ecx, edi
call fcn.0045bd2e
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x28], 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], 0
mov dword [0x4aa4ec], esi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408a70
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
mov esi, ecx
push 0
call dword [sym.imp.Kernel32.dll_CreateEventA]
mov ecx, dword [esi + 4]
mov dword [esi + 0x2c], eax
lea eax, [esp + 4]
push eax
push 0
push ecx
push 0x4089a0
push 0
push 0
call dword [sym.imp.Kernel32.dll_CreateThread]
mov dword [esi + 0x28], eax
pop esi
pop ecx
ret
Function at 0x40b470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480917
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x4a6c70]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], 0
mov dword [esp + 8], eax
mov esi, dword [edi + 0x160]
push 0x4a94ac
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 1
call fcn.004622e4
test esi, esi
mov byte [esp + 0x30], 2
je 0x40b5e7
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [edi + 0x60]
call fcn.00459b67
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.004623af
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 2
call fcn.00462276
mov edx, dword [edi + 0x7c]
push esi
push 3
push 0x110a
push edx
call ebp
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x4a94ac
push eax
call fcn.0043f04f
add esp, 8
test eax, eax
je 0x40b5dd
lea ecx, [esp + 0x1c]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.0045752b
mov eax, dword [eax]
push 0x4a389c
push eax
call fcn.0043f04f
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call fcn.00462276
test bl, bl
je 0x40b589
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
dec eax
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004575a7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.004623af
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.00462276
lea ecx, [esp + 0x10]
push 0x4a389c
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.0046250b
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x44], 5
call fcn.004624a5
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 6
call fcn.004623af
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 5
call fcn.00462276
lea ecx, [esp + 0x28]
mov byte [esp + 0x38], 2
call fcn.00462276
test esi, esi
jne 0x40b4ce
pop ebp
pop ebx
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00461feb
mov dword [esp + 0x24], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.00462276
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.00462276
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x40c880
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x480b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xa4]
xor edi, edi
test eax, eax
mov dword [esp + 0x24], 0
mov ebx, 1
jle 0x40c8ed
mov eax, dword [esi + 0xa0]
mov ecx, dword [esp + 0x2c]
push ecx
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
call fcn.0043f04f
add esp, 8
test eax, eax
je 0x40c8e0
mov eax, dword [esi + 0xa4]
inc edi
cmp edi, eax
jl 0x40c8b6
jmp 0x40c8ed
push ebx
push edi
lea ecx, [esi + 0x9c]
call fcn.0045bb91
lea edx, [esp + 0x2c]
push ebx
push edx
push 0
lea ecx, [esi + 0x9c]
call fcn.0045bb58
push 0x4a94ac
lea ecx, [esp + 0x10]
call fcn.004622e4
mov eax, dword [esi + 0xa4]
xor edi, edi
test eax, eax
mov byte [esp + 0x24], bl
jle 0x40c992
test edi, edi
jle 0x40c952
lea eax, [esp + 0xc]
push 0x4a3660
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0046250b
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.004623af
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00462276
mov edx, dword [esi + 0xa0]
lea ecx, [esp + 0xc]
lea eax, [edx + edi*4]
lea edx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.004624a5
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.004623af
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.00462276
mov eax, dword [esi + 0xa4]
inc edi
cmp edi, eax
jl 0x40c91e
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SOFTWAREEnterpriseNT_Cluster1.0
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c9c2
push 0
push 0
push str.503.An_error_has_occurred_while_querying_registry_entries.
call fcn.0046c37b
jmp 0x40c9fe
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esp + 0x14]
push eax
push ebx
push 0
push str.ConnectData
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40c9f3
push 0
push 0
push str.502.An_error_has_occurred_while_setting_registry_entries.
call fcn.0046c37b
jmp 0x40c9fe
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00462276
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.00462276
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x40cf00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
lea eax, [esp]
mov dword [esp + 8], 1
push eax
push 0xf003f
push 0
push str.SOFTWAREEnterpriseNT_Cluster1.0
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40cf3f
push 1
push str.501.An_error_has_occurred_while_performing_a_registry_related_operation.__s_
mov ecx, 0x4aa338
call fcn.004341d0
lea ecx, [esp + 4]
push esi
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.ConnectPort
push ecx
mov byte [esp + 0x28], 0
mov dword [esp + 0x20], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x40cf8c
mov eax, 0x2774
add esp, 0x40c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0043f35a
add esp, 4
add esp, 0x40c
ret

Function at 0x40d830
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x480d1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [0x4a6c70]
lea edi, [esi + 8]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi], eax
lea ebp, [esi + 0x1c]
mov byte [esp + 0x1c], 1
mov ecx, ebp
call fcn.0045c37f
push 0x4a94ac
mov ecx, edi
mov byte [esp + 0x20], 2
mov dword [esi], method.CCommandLineInfo.virtual_0
mov byte [esi + 4], bl
call fcn.004623ff
push 0xffffffffffffffff
push ebx
mov ecx, ebp
mov word [esi + 0xc], bx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x18], 0x3e8
call fcn.0045c3df
mov ecx, dword [esp + 0x14]
mov byte [esi + 0x34], bl
mov byte [esi + 0x35], bl
mov byte [esi + 0x36], bl
mov dword [esi + 0x30], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40ddb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x480d5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4a6c70]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x1c]
mov dword [ecx], eax
push 0x4a94ac
mov dword [esp + 0x18], 0
call fcn.004623ff
push esi
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x18], 0
mov dword [esi + 0x30], 0
call dword [sym.imp.Kernel32.dll_InitializeCriticalSection]
mov edi, dword [sym.imp.Kernel32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x34], eax
call edi
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x38], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40e310
Capabilities:
Terminate thread

Disassembly:
push ecx
push esi
mov esi, ecx
push 0x4a94ac
lea ecx, [esi + 0x1c]
call fcn.004623ff
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x40e32f
push eax
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40e37b
push 0x7d0
call dword [sym.imp.Kernel32.dll_Sleep]
mov ecx, dword [esi + 0x30]
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.Kernel32.dll_GetExitCodeThread]
test eax, eax
je 0x40e374
cmp dword [esp + 4], 0x103
jne 0x40e36a
mov edx, dword [esi + 0x30]
push 8
push edx
call dword [sym.imp.Kernel32.dll_TerminateThread]
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.Kernel32.dll_CloseHandle]
mov dword [esi + 0x30], 0
mov dword [esi + 0x20], 0xffffffff
mov ecx, dword [0x4a956c]
test ecx, ecx
pop esi
je 0x40e392
call fcn.00410cc0
mov eax, dword [0x4a9d44]
test eax, eax
je 0x40e3a2
mov dword [eax + 0x4c], 1
xor eax, eax
pop ecx
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
push esi
mov esi, ecx
or eax, 0xffffffff
push edi
mov ecx, dword [esi + 0x18]
test ecx, ecx
jne 0x40e720
test ebx, ebx
je 0x40e714
mov eax, dword [esi + 0x20]
push 0
push ebx
push ebp
push eax
call sub.WSOCK32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e700
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
mov dword [esi + 0x24], eax
jne 0x40e71d
push 1
mov dword [esi + 0x24], 0
call dword [sym.imp.Kernel32.dll_Sleep]
jmp 0x40e704
add ebp, edi
sub ebx, edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40e6c8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret 8

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

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push eax
mov dword [esp + 0x20], 0xffffffff
xor bl, bl
call fcn.0043f4ec
mov eax, dword [esi + 0x18]
mov ebp, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x40e7fd
cmp dword [esi + 0x20], 0xffffffff
je 0x40e7fd
test edi, edi
je 0x40e7ce
push 1
mov ecx, esi
call fcn.0040e810
test eax, eax
jne 0x40e785
inc bl
cmp bl, 0x1e
jae 0x40e7fd
jmp 0x40e7bb
jl 0x40e7fd
mov ecx, dword [esi + 0x20]
push 0
push edi
push ebp
push ecx
xor bl, bl
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x40e7b3
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
mov dword [esi + 0x24], eax
jne 0x40e7ef
mov dword [esi + 0x24], 0
jmp 0x40e7bb
test eax, eax
je 0x40e7fd
add ebp, eax
sub edi, eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40e761
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], 0
push edx
call fcn.0043f4ec
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
cmp eax, 0x2748
jne 0x40e7fd
mov dword [esi + 0x24], 0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x40e810
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x40e885
xor eax, eax
push edi
mov dword [esp + 8], eax
mov ecx, 0x41
lea edi, [esp + 0x10]
mov edx, dword [esp + 0x118]
mov dword [esp + 0xc], eax
mov dword [esp + 0xc], eax
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x20]
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
push eax
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], edx
call sub.WSOCK32.dll_select
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e878
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esi + 0x24], eax
mov eax, edi
pop edi
pop esi
add esp, 0x10c
ret 4
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret 4

Function at 0x40e950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
call fcn.0043f4ec
push eax
call fcn.0043f5c8
call fcn.0043f5d5
mov ebp, eax
call fcn.0043f5d5
imul ebp, eax
mov ebx, dword [esp + 0x20]
mov eax, ebp
not eax
push eax
push str._08X
push ebx
call fcn.0043ef3e
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
add ebx, 8
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x40e9db
mov ecx, esi
and ecx, reloc.WSOCK32.dll_closesocket
jns 0x40e9af
dec ecx
or ecx, 0xfffffffc
inc ecx
mov edx, ebp
xor eax, eax
shr edx, cl
mov ecx, dword [esp + 0x14]
mov al, byte [esi + ecx]
and edx, 0xff
xor edx, eax
push edx
push 0x4a3ca8
push ebx
call fcn.0043ef3e
add esp, 0xc
add ebx, 2
inc esi
cmp esi, edi
jl 0x40e9a0
pop edi
pop esi
mov byte [ebx], 0
pop ebp
pop ebx
ret

Function at 0x40ef00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x108
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x114]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x114]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ef54
mov ecx, dword [esp + 0x114]
push 0x4a94ac
call fcn.004623ff
or eax, 0xffffffff
add esp, 0x108
ret
mov ecx, dword [esp + 0x114]
lea edx, [esp + 8]
push edx
call fcn.004623ff
xor eax, eax
add esp, 0x108
ret
Function at 0x40f650
Capabilities:
Set registry value

Disassembly:
sub esp, 0x68
lea eax, [esp]
push esi
push edi
push eax
push 0xf003f
push 0
push str.SOFTWAREEnterpriseNT_Cluster1.0
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40f6a1
push 0x2ce
lea ecx, [esp + 0x10]
push 0x4a365c
push ecx
call fcn.0043ef3e
add esp, 0xc
lea edx, [esp + 0xc]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x80], esp
jmp 0x40f726
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
test eax, eax
jne 0x40f6b4
mov edi, dword [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40f745
push 0x2d5
lea ecx, [esp + 0x10]
push 0x4a365c
push ecx
call fcn.0043ef3e
add esp, 0xc
lea edx, [esp + 0xc]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x80], esp
push edx
call fcn.004622e4
push str.501.An_error_has_occurred_while_performing_a_registry_related_operation.__s_
mov ecx, 0x4aa338
call fcn.00434220
xor eax, eax
pop edi
pop esi
add esp, 0x68
ret 0x10
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
add esp, 0x68
ret 0x10
Function at 0x40f770
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x6c
lea eax, [esp + 0x74]
push esi
mov esi, dword [esp + 0x78]
push eax
push 0xf003f
push 0
push str.SOFTWAREEnterpriseNT_Cluster1.0
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x50
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40f7ea
push 0x2ec
lea ecx, [esp + 0x10]
push 0x4a365c
push ecx
call fcn.0043ef3e
add esp, 0xc
lea edx, [esp + 0xc]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
call fcn.004622e4
push str.501.An_error_has_occurred_while_performing_a_registry_related_operation.__s_
mov ecx, 0x4aa338
call fcn.00434220
mov eax, esi
pop esi
add esp, 0x6c
ret 0x10
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x78]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f867
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.00444c00
add esp, 8
test eax, eax
jne 0x40f841
mov eax, dword [esp + 0x78]
mov esi, 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x6c
ret 0x10
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00444c00
add esp, 8
test eax, eax
jne 0x40f85c
xor esi, esi
mov eax, dword [esp + 0x78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x6c
ret 0x10