joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fd10
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x46fd43
push esi
call fcn.00472e10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46fd3c
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 0x46fdc9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x46fdb2
mov eax, dword [esi + 8]
test eax, eax
je 0x46fd67
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 0x46fdae
cmp eax, 2
je 0x46fdb2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46fd5a
cmp eax, 3
je 0x46fd8d
cmp eax, 1
jne 0x46fd5a
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 0x46fd5a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46fd5a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0046fdf0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x46fdd8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0046fdf0
add esp, 4
pop esi
ret

Function at 0x47cde8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b0d0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004a1d3e
mov dword [esi], method.CTreeCtrl.virtual_0
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.0047d9f0
call fcn.00482d70
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.00482d70
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.00482d70
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.00482d70
mov dword [edi], 0x50526c
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.0049ee86
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x50533c
mov eax, dword [0x521f48]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.00482d70
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.0049ee86
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CTreeCtrl.virtual_0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47ced0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b0d94
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CTreeCtrl.virtual_0
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.0049eeaf
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x505268
call fcn.00482f70
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.004a0717
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 6
call fcn.004a750b
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.0049eeaf
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x505268
call fcn.00482f70
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x505268
call fcn.00482f70
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x505268
call fcn.00482f70
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x505268
call fcn.00482f70
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.0049ea1d
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x47ec70
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x47ed13
test eax, eax
jbe 0x47ed13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x47ed13
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47ecbe
xor esi, esi
jmp 0x47ecc4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47ecef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00432350
add esi, eax
push esi
mov ebx, esi
call fcn.00432350
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x47ecd0
pop ebp
test edi, edi
pop edi
jne 0x47ed13
test ebx, ebx
je 0x47ed13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00490700
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x47f045
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47f15d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47f15d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a2190
mov esi, eax
test esi, esi
je 0x47f15d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47f15d
mov ecx, esi
call fcn.0047ef50
cmp edi, eax
jge 0x47f15d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x47f0e3
mov dword [esp + 0x34], 1
jmp 0x47f13e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47f15d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047ba00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x485490
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4854d9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x485950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b18b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00485500
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00485580
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00485580
lea ecx, [esi + 0xc]
call fcn.004a06a2
lea ecx, [esi + 0x10]
call fcn.004a06a2
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00486b10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00486b10
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00486b10
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a0717
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a0717
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x486d00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x486d66
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x486d66
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x486d47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a2b34
Capabilities:
Get graphical window text

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

Function at 0x4a422b
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 0x4a426d
call fcn.004a9fc8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a426d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a4264
xor eax, eax
jmp 0x4a4275
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a427b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4aa4f8
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 0x4aa526
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4aa544
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004aa45e
jmp 0x4aa544
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa544
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004aa45e
test edi, edi
mov eax, edi
jne 0x4aa52e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x54d344
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
lea esp, [esp + 0x28]
movzx esi, byte [eax + 3]
shl edx, 8
sub esp, 0x17
mov byte [esp + 0x15], bl
clc
jmp 0x54d356
mov byte [esp + 0x13], ch
push dword [esp + 0xf]
mov word [esp], sp
mov dword [esp + 3], ebx
pop word [esp + 0x14]
mov dword [esp + 0x24], esi
pushal
mov dword [esp + 0xe], ebp
push esp
mov word [esp + 0x21], cx
mov byte [esp + 9], cl
push word [esp + 0x14]
mov word [esp + 0x1b], bx
lea esp, [esp + 2]
lea esp, [esp + 0x48]
push di
mov word [esp], si
mov byte [esp], al
lea esp, [esp + 1]
lea esp, [esp]
lea esp, [esp]
lea esp, [esp]
push cx
mov word [esp], bp
lea esp, [esp + 3]
push edi
movzx edx, byte [eax]
shl edx, 8
movzx esi, byte [eax + 1]
xor edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
sub esp, 0xd
pop word [esp + 6]
pop dword [esp]
mov byte [esp + 2], dh
push dword [esp + 2]
pop word [esp + 6]
pop word [esp + 1]
lea esp, [esp + 3]
xor edx, esi
pushal
mov byte [esp + 3], ch
mov byte [esp + 0x10], dl
mov word [esp + 0x10], cx
push word [esp + 0x17]
pushfd
lea esp, [esp + 2]
jmp 0x54d234
push ebx
push esi
mov dword [esp], ebx
pop word [esp]
push word [esp + 1]
lea esp, [esp + 2]
lea esp, [esp + 1]
lea esp, [esp]
lea esp, [esp]
lea esp, [esp + 1]
push ebp
pushal
push dword [esp + 0xb]
push word [esp + 0x1e]
jmp 0x54d254
lea esp, [esp + 4]
jmp 0x54d30c
mov word [esp + 0x11], dx
lea esp, [esp + 3]
xor edx, esi
pushfd
mov dword [esp], esp
mov word [esp + 1], bp
jmp 0x59229b
xor edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 7]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 9]
mov dword [ecx + 4], edx
jmp 0x592255
mov byte [esp + 1], bl
mov word [esp], dx
push word [esp + 2]
lea esp, [esp + 2]
lea esp, [esp + 0x18]
movzx esi, byte [eax + 5]
mov dword [ecx], edx
movzx edx, byte [eax + 4]
shl edx, 8
jmp 0x592271
Function at 0x54ea59
Capabilities:
Hash data with md5

Disassembly:
pushal
lea esp, [esp + 0x20]
lea esp, [esp + 4]
jmp 0x54ead1
mov dword [eax + 0x14], 0x10325476
ret
pushfd
lea esp, [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
jmp 0x54eaaf

Function at 0x57eeab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
lea esp, [esp + 4]
pushal
lea esp, [esp + 0x20]
jmp 0x54f2a0

Function at 0x57efb9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushal
lea esp, [esp + 0x20]
pushfd
lea esp, [esp + 4]
jmp 0x54f2a0

Function at 0x57f204
Capabilities:
Resolve function by parsing pe exports

Disassembly:
pushfd
lea esp, [esp + 4]
push ebx
lea esp, [esp + 4]
jmp 0x54f2a0

Function at 0x5977e6
Capabilities:
Encode data using xor

Disassembly:
jb 0x5977c4
not ecx
jmp 0x597807
not ecx
rol ecx, 5
mov byte [ebx], dl
sub esp, 0x16
jmp 0x597857
mov ecx, dword [esp]
mov cx, 0x3e82
setle ch
mov cx, 0x6d07
lea ecx, [eax + edx]
lea ecx, [esi + edi]
mov ecx, dword [esp]
mov cl, byte [esp]
not cx
jmp 0x5977a3
rol ecx, 5
jmp 0x5977c9
mov cl, byte [esp + 0xf]
pop word [esp + 0x11]
lea ecx, [eax + ecx]
jmp 0x55deec
js 0x59780c
mov cl, byte [esp + 0xf]
jmp 0x59783b
Function at 0x402b60
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
mov ebx, dword [ebp + 0x2084]
mov dword [esp + 0x1c], ebp
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x402b9e
lea edi, [esp + 0x128]
mov eax, dword [ebp + 0x2080]
push edi
mov ecx, dword [eax + esi*4]
call fcn.00404820
inc esi
add edi, 0x3c
cmp esi, ebx
jl 0x402b87
mov eax, dword [ebp + 0x64]
test eax, eax
je 0x402c88
mov edx, dword [str.SYSTEMCurrentControlSetServicesMxserpParameters]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test ebx, ebx
jle 0x402c7d
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x18], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ebp, [esp + 0x130]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 4
lea esi, [eax + 0x18c]
mov ecx, dword [ebp]
xor eax, eax
mov ax, word [esi]
cmp eax, ecx
je 0x402c20
xor ecx, ecx
lea edx, [esp + 0x24]
mov cx, word [esi + 0x10]
push ecx
push eax
push str.Device_d_d
push edx
call edi
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push ecx
call ebx
mov ecx, dword [ebp]
xor eax, eax
mov ax, word [esi + 0x1008]
cmp eax, ecx
je 0x402c56
xor edx, edx
mov dx, word [esi + 0x1018]
push edx
push eax
lea eax, [esp + 0x2c]
push str.Device_d_d
push eax
call edi
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
push edx
call ebx
mov eax, dword [esp + 0x14]
add esi, 0x400
dec eax
mov dword [esp + 0x14], eax
jne 0x402bf1
mov eax, dword [esp + 0x18]
add ebp, 0x3c
dec eax
mov dword [esp + 0x18], eax
jne 0x402bdf
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x128]
push ebx
push ecx
call fcn.00406750
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x403910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebx
push esi
push edi
mov edi, dword [esp + 0x128]
mov esi, ecx
push edi
call fcn.00403830
mov eax, dword [edi + 8]
mov ebx, 1
cmp eax, ebx
jne 0x403938
push 0
jmp 0x403939
push ebx
push 0x3ec
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
cmp dword [edi + 8], ebx
jne 0x40399e
push 0
push 0x3ee
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
push 0
push 0x3ed
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
xor eax, eax
lea ecx, [esi + 0x354]
mov ax, word [esi + 0x78]
push eax
push 0x4221dc
push ecx
call fcn.00411262
add esp, 0xc
mov dword [esi + 0x350], ebx
jmp 0x403a0f
cmp word [edi + 0x1c], 0
jne 0x4039c6
push 0
push 0x3ee
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
mov dword [esi + 0x350], 0
jmp 0x4039fb
push ebx
push 0x3ee
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
xor edx, edx
lea eax, [esi + 0x354]
mov dx, word [esi + 0x78]
push edx
push 0x4221dc
push eax
call fcn.00411262
add esp, 0xc
mov dword [esi + 0x350], ebx
push ebx
push 0x3ed
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
xor ecx, ecx
lea edx, [esi + 0x358]
mov cx, word [esi + 0x7a]
push ecx
push 0x4221dc
push edx
call fcn.00411262
mov eax, dword [edi + 8]
add esp, 0xc
cmp eax, ebx
jne 0x403a35
push 0
jmp 0x403a36
push ebx
push 0x3f4
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 0x1c]
mov cx, word [edi + 0x1e]
push eax
push ecx
lea edx, [esp + 0x28]
push str.Device_d_d
push edx
mov dword [esp + 0x24], 3
mov dword [esp + 0x20], 0x104
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [str.SYSTEMCurrentControlSetServicesMxserpParameters]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403adf
push 0
push 0x3f1
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
cmp dword [edi + 8], ebx
jne 0x403af3
mov dword [esi + 0x304], ebx
jmp 0x403afd
push ebx
push 0x3f1
mov ecx, esi
call fcn.00414f74
mov ecx, eax
call fcn.004150eb
mov dword [esi + 0x304], 0
push 0
mov ecx, esi
call fcn.0041462d
pop edi
pop esi
pop ebx
add esp, 0x118
ret 4

Function at 0x404ac0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x404b02
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x431
sete dl
mov eax, edx
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret
Function at 0x404b90
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x404bb4
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x406750
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov ecx, dword [str.SYSTEMCurrentControlSetServicesMxserpParameters]
sub esp, 0x11c
lea eax, [esp]
push ebp
push esi
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406785
pop esi
xor eax, eax
pop ebp
add esp, 0x11c
ret
mov eax, dword [esp + 0x12c]
mov esi, dword [esp + 0x128]
mov ecx, dword [esp + 8]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [str.Settings]
shl edx, 2
push edx
push esi
push 3
push 0
push eax
push ecx
call ebp
test eax, eax
je 0x4067cf
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebp
add esp, 0x11c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x18], 3
mov dword [esp + 0x24], 0x104
add esi, 0xc
mov dword [esp + 0x14], 4
mov eax, dword [esi]
mov ecx, dword [esi - 4]
push eax
push ecx
lea edx, [esp + 0x30]
push str.Device_d_d
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push 0
push eax
push ecx
call ebx
test eax, eax
jne 0x406865
mov dx, word [esp + 0x1c]
cmp dx, word [esi - 4]
jne 0x406865
mov ax, word [esp + 0x1e]
cmp ax, word [esi]
jne 0x406865
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 8
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push 0
push eax
push ecx
mov word [esp + 0x38], 1
call ebp
mov eax, dword [esp + 0x14]
add esi, 0x3c
dec eax
mov dword [esp + 0x14], eax
jne 0x4067f8
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov ecx, dword [str.SYSTEMCurrentControlSetServicesMxserp]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop ebx
test eax, eax
je 0x4068af
pop esi
xor eax, eax
pop ebp
add esp, 0x11c
ret
mov edx, dword [str.ProductID]
mov eax, dword [esp + 8]
push 4
push 0x427298
push 4
push 0
push edx
push eax
call ebp
test eax, eax
je 0x4068de
mov ecx, dword [esp + 8]
push ecx
call esi
pop esi
xor eax, eax
pop ebp
add esp, 0x11c
ret
mov edx, dword [esp + 8]
push edx
call esi
pop esi
mov eax, 1
pop ebp
add esp, 0x11c
ret
Function at 0x406900
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SYSTEMCurrentControlSetServicesMxserpParameters]
sub esp, 0xc
lea eax, [esp + 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40692e
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
mov edx, dword [str.Settings]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 0xf0
mov dword [esp + 0x24], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406969
mov esi, dword [esp + 4]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x406a30
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [str.SoftwareMOXADriver]
sub esp, 0xc
lea eax, [esp + 8]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x406a54
xor eax, eax
add esp, 0xc
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov edi, 0x4227ea
mov eax, dword [edi + 0xa]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x406adc
push str.SIDiag.DLL
call ebp
mov edx, dword [str.DiagDLL]
push eax
mov eax, dword [esp + 0x14]
push str.SIDiag.DLL
push 1
push 0
push edx
push eax
call esi
mov eax, dword [str.mxkey]
xor ecx, ecx
mov cx, word [edi]
lea edx, [esp + 0x14]
and ecx, 0xfffffff8
push 4
push edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
push 4
push 0
push eax
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
add edi, 0x10
cmp edi, 0x4228ca
jl 0x406a6f
mov edi, 0x4228cc
mov ecx, dword [edi + 0x10]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x406b4e
push str.SIDiag.DLL
call ebp
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [str.DiagDLL]
push str.SIDiag.DLL
push 1
push 0
push eax
push ecx
call esi
mov ecx, dword [str.mxkey]
xor edx, edx
mov dx, word [edi]
lea eax, [esp + 0x14]
and edx, 0xfffffff8
push 4
push eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x18]
push 4
push 0
push ecx
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call ebx
add edi, 0x18
cmp edi, 0x422974
jl 0x406ae1
mov ecx, dword [esp + 0x18]
push ecx
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret