joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a800
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5098e5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
je 0x40a95c
nop word [eax + eax]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x18]
imul ebx, ecx, 0x1000193
mov ecx, edi
push ebx
push esi
push eax
call fcn.00407b20
cmp dword [ebp - 0x14], 0
jne 0x40a950
cmp dword [edi + 8], 0x15555555
je 0x40a970
lea eax, [edi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0xc
mov dword [ebp - 0x1c], 0
call fcn.00443e65
mov ecx, dword [esi]
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
add eax, 8
mov dword [ebp + 8], eax
mov dword [eax], ecx
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x1c]
inc ecx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x531020]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x531020]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edi]
seta al
test al, al
je 0x40a933
mov ecx, edi
call fcn.004072a0
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00407b20
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jmp 0x40a936
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push ecx
push ebx
mov ecx, edi
call fcn.00407300
mov dword [ebp - 4], 0xffffffff
add esi, 4
cmp esi, dword [ebp + 0xc]
jne 0x40a840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00443d09
int3
Function at 0x410cd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509f70
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x5c]
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
movsd xmm0, qword [esi + 0x10]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [esi + 0x18]
movsd qword [edi + 0x18], xmm0
movsd xmm0, qword [esi + 0x20]
movsd qword [edi + 0x20], xmm0
movsd xmm0, qword [esi + 0x28]
movsd qword [edi + 0x28], xmm0
movsd xmm0, qword [esi + 0x30]
movsd qword [edi + 0x30], xmm0
movsd xmm0, qword [esi + 0x38]
movsd qword [edi + 0x38], xmm0
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
lea eax, [esi + 0x5c]
push eax
call fcn.0040ec80
lea eax, [esi + 0x68]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x68]
call fcn.00408750
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x413080
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a2c5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x4132b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call fcn.00412ea0
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 2
call fcn.00412ea0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 3
call fcn.00412ea0
lea ecx, [edi + 0x40]
mov byte [ebp - 4], 4
call fcn.00412ea0
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 5
call fcn.00412ea0
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 6
call fcn.00412ea0
lea ecx, [edi + 0x70]
mov byte [ebp - 4], 7
call fcn.00412ea0
lea ecx, [edi + 0x80]
mov byte [ebp - 4], 8
call fcn.00412ea0
lea ecx, [edi + 0x90]
mov byte [ebp - 4], 9
call fcn.00412ea0
lea ecx, [edi + 0xa0]
mov byte [ebp - 4], 0xa
call fcn.00412ea0
lea ecx, [edi + 0xb0]
mov byte [ebp - 4], 0xb
call fcn.00412ea0
lea ecx, [edi + 0xc0]
mov byte [ebp - 4], 0xc
call fcn.00412ea0
lea ecx, [edi + 0xd0]
mov byte [ebp - 4], 0xd
call fcn.00412ea0
lea ecx, [edi + 0xe0]
mov byte [ebp - 4], 0xe
call fcn.00412ea0
lea ecx, [edi + 0xf0]
mov byte [ebp - 4], 0xf
call fcn.00412ea0
lea ecx, [edi + 0x100]
mov byte [ebp - 4], 0x10
call fcn.00412ea0
lea ecx, [edi + 0x110]
mov byte [ebp - 4], 0x11
call fcn.00412ea0
lea ecx, [edi + 0x120]
mov byte [ebp - 4], 0x12
call fcn.00412ea0
lea ecx, [edi + 0x130]
mov byte [ebp - 4], 0x13
call fcn.00412ea0
lea ecx, [edi + 0x140]
mov byte [ebp - 4], 0x14
call fcn.00412ea0
lea ecx, [edi + 0x150]
mov byte [ebp - 4], 0x15
call fcn.00412ea0
lea esi, [edi + 0x160]
mov byte [ebp - 4], 0x16
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00443e65
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x168]
mov byte [ebp - 4], 0x17
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00443e65
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x170]
mov byte [ebp - 4], 0x18
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00443e65
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404320
int3
Function at 0x419d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a967
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov ecx, dword [edi + 8]
imul ecx, dword [edi + 4]
call fcn.0041b240
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 8]
imul ecx, dword [edi + 4]
shl ecx, 3
test ecx, ecx
je 0x419dea
push ecx
push dword [edi]
push eax
call fcn.00445c10
add esp, 0xc
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov byte [ebp - 4], 7
mov ecx, esi
push dword [edi + 8]
push dword [edi + 4]
call fcn.0041b280
mov ecx, esi
call fcn.0041b480
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x421420
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebx + 8]
cmp edx, edi
jge 0x4214d7
mov esi, dword [ecx + 4]
mov eax, edi
mov ecx, dword [ecx]
sub eax, edx
movsd xmm1, qword [0x531040]
cmp eax, 4
jl 0x4214c0
lea eax, [edi - 3]
mov edi, eax
mov eax, dword [esi + 4]
movsd xmm0, qword [eax + edx*8]
mov eax, dword [ecx]
xorps xmm0, xmm1
movsd qword [eax + edx*8], xmm0
mov eax, dword [esi + 4]
movsd xmm0, qword [eax + edx*8 + 8]
mov eax, dword [ecx]
xorps xmm0, xmm1
movsd qword [eax + edx*8 + 8], xmm0
mov eax, dword [esi + 4]
movsd xmm0, qword [eax + edx*8 + 0x10]
mov eax, dword [ecx]
xorps xmm0, xmm1
movsd qword [eax + edx*8 + 0x10], xmm0
mov eax, dword [esi + 4]
movsd xmm0, qword [eax + edx*8 + 0x18]
mov eax, dword [ecx]
xorps xmm0, xmm1
movsd qword [eax + edx*8 + 0x18], xmm0
add edx, 4
cmp edx, edi
jl 0x421461
mov edi, dword [ebx + 8]
cmp edx, edi
jge 0x4214d7
nop dword [eax]
mov eax, dword [esi + 4]
movsd xmm0, qword [eax + edx*8]
mov eax, dword [ecx]
xorps xmm0, xmm1
movsd qword [eax + edx*8], xmm0
inc edx
cmp edx, edi
jl 0x4214c0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x438ac0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a4bd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x438b90
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov cl, byte [ebp + 0xc]
mov edx, 0x7a
test cl, cl
mov dword [ebp - 4], 0
mov eax, 0x75
lea ecx, [ebp - 0x10]
cmovne eax, edx
mov edx, str.SELECT_ModelProjSchedSegmentId__MonthOffset__ProductValue__0_FROM_Model.ProjSchedSegment_WHERE_ModelProjSegmentId___
push eax
mov eax, str.SELECT_ModelProjDeckSegmentId__MonthOffset__ProductValue__Sequence_FROM_Model.ProjDeckSegment_WHERE_ModelProjSegmentId___
cmove eax, edx
push eax
call fcn.004044a0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add edi, 0xfffffff0
push ecx
mov esi, esp
mov dword [ebx + 0x4a70], eax
push edi
mov dword [ebp + 0xc], esi
call fcn.00403870
add esp, 4
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.004273c0
mov bl, al
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x438b7a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404320
int3
Function at 0x43c120
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c4e5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x43c272
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str.SoftwareTRC_Consultants
push eax
call fcn.0040a480
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
add esp, 8
push eax
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [ebp + 0xc]
push 0
push 0xf003f
push 0
push str.REG_SZ
push 0
push esi
sub eax, 0x7fffffff
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x43c1d6
push eax
push eax
push esi
push str.RegCreateKeyEx___s__failed:_rc_d__0x_0x_
push 0xbb
push str.Registry::DeleteRegistryKey
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x28
xor edi, edi
jmp 0x43c222
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x43c21d
push edi
push edi
push dword [ebp + 8]
push esi
push str.SHDeleteKey___s_s__failed:_rc_d__0x_0x_
push 0xc3
push str.Registry::DeleteRegistryKey
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x2c
xor edi, edi
jmp 0x43c222
mov edi, 1
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c240
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x43c25f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404320
int3
Function at 0x43c280
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c52d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x43c3e4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
movzx edi, byte [ebp + 0x10]
add edi, reloc.WS2_32.dll_accept
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
jle 0x43c2f3
push eax
lea eax, [ebp - 0x10]
push 0x51c4b8
push eax
call fcn.0040a480
add esp, 0xc
jmp 0x43c304
lea eax, [ebp - 0x10]
push str.SoftwareTRC_Consultants
push eax
call fcn.0040a480
add esp, 8
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43c32d
push eax
push eax
push esi
push str.RegOpenKeyEx___s__failed:_rc_d__0x_0x_
push 0x99
jmp 0x43c355
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x43c371
push edi
push edi
push esi
push str.RegDeleteValue___s__failed:_rc_d__0x_0x_
push 0xa1
push str.Registry::DeleteRegistryValue
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x28
xor edi, edi
jmp 0x43c376
mov edi, 1
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c394
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c3b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x43c3d1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404320
int3
Function at 0x43c720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c5e5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x54f040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
call fcn.00402df0
mov ecx, eax
test ecx, ecx
je 0x43c8b2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
movzx edi, byte [ebp + 0x14]
add edi, reloc.WS2_32.dll_accept
mov byte [ebp - 4], 3
cmp dword [eax - 0xc], 0
jle 0x43c793
push eax
lea eax, [ebp - 0x10]
push 0x51c4b8
push eax
call fcn.0040a480
add esp, 0xc
jmp 0x43c7a4
lea eax, [ebp - 0x10]
push str.SoftwareTRC_Consultants
push eax
call fcn.0040a480
add esp, 8
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push str.REG_SZ
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x43c81a
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x43c8a8
push edi
push edi
push esi
push str.RegSetValueEx___s__failed:_rc_d__0x_0x_
push 0x1d
push str.Registry::SetRegistryValue
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x28
xor edi, edi
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c83a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, esi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c858
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43c876
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x43c895
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, 1
jmp 0x43c81c
push 0x80004005
call fcn.00404320
int3

Function at 0x43cd00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
lea esi, [esi + 3]
shr esi, 2
test esi, esi
je 0x43cd41
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, edx
nop word [eax + eax]
mov ecx, dword [edx + edi]
lea edx, [edx + 4]
mov eax, ecx
rol ecx, 8
ror eax, 8
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
mov dword [edx - 4], ecx
sub esi, 1
jne 0x43cd20
pop edi
pop esi
pop ebp
ret
Function at 0x43e240
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00440570
cmp eax, 3
jne 0x43e2b7
cmp dword [esi + 8], 0xffffffff
jne 0x43e3ac
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x43e2ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Socket_creation_failed__d
push 0x484
push str.License::Connect
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret
mov eax, dword [section..data]
cmp eax, 0xffffffff
je 0x43e2d3
mov dword [esi + 8], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [section..data], eax
cmp eax, 0xffffffff
jne 0x43e2fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Socket_creation_failed__d
push 0x494
jmp 0x43e290
mov dword [esi + 8], eax
push dword [esi + 0x10]
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
movzx eax, word [esi + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp - 0x10], 0xffffffff
mov word [ebp - 0x12], ax
jne 0x43e367
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x43e35d
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x43e3ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Socket_connection_failed__d
push 0x4b3
push str.License::Connect
push 0x525dcc
push 0
push 5
push 6
call sub.PHDPFuncs.dll_LogPrintf
add esp, 0x20
mov ecx, esi
push 0
call fcn.0043ebe0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00443e26
mov esp, ebp
pop ebp
ret
Function at 0x440570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x54f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.00446190
add esp, 0xc
mov dword [ebp - 8], 0x10000
xor eax, eax
mov dword [ebp - 0xc], eax
push 1
push 0x80
push eax
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x1000
mov esi, eax
xor bl, bl
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x440616
mov bl, 1
jmp 0x4406b0
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], 0
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlTerminal_Server_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44069f
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 4
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.GlassSessionId
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44069f
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x44069f
mov eax, dword [ebp - 0x12c]
cmp eax, dword [ebp - 0x130]
setne bl
mov eax, dword [ebp - 0x124]
test eax, eax
je 0x4406b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, 2
test esi, esi
pop esi
cmove eax, ecx
xor ecx, ecx
test bl, bl
pop ebx
setne cl
or eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443e26
mov esp, ebp
pop ebp
ret