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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x11], 0xca
jne 0x4cd27c
push ebx
call fcn.004d332c
cmp byte [ebx + 0x3d], 0
pop ecx
je 0x4cd275
mov dword [ebx + 0x11], 0xcf
mov al, 1
pop ebx
pop ebp
ret
mov dword [ebx + 0x11], 0xcb
cmp dword [ebx + 0x11], 0xcb
jne 0x4cd2e8
mov edx, dword [ebx + 0x183]
cmp byte [edx + 0x10], 0
je 0x4cd2e0
cmp dword [ebx + 8], 0
je 0x4cd29e
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
push ebx
mov eax, dword [ebx + 0x183]
call dword [eax]
pop ecx
test eax, eax
jne 0x4cd2b1
xor eax, eax
pop ebx
pop ebp
ret
cmp eax, 2
je 0x4cd2e0
cmp dword [ebx + 8], 0
je 0x4cd291
cmp eax, 3
je 0x4cd2c4
dec eax
jne 0x4cd291
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 0x4cd291
mov edx, dword [ebx + 0x10f]
add dword [eax + 8], edx
jmp 0x4cd291
mov ecx, dword [ebx + 0x72]
mov dword [ebx + 0x7a], ecx
jmp 0x4cd306
cmp dword [ebx + 0x11], 0xcc
je 0x4cd306
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x11]
mov dword [eax + 0x18], edx
push ebx
mov ecx, dword [ebx]
call dword [ecx]
pop ecx
push ebx
call fcn.004cd310
pop ecx
pop ebx
pop ebp
ret

Function at 0x4cd310
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x11], 0xcc
je 0x4cd395
push ebx
mov eax, dword [ebx + 0x173]
call dword [eax]
pop ecx
xor edx, edx
mov dword [ebx + 0x6e], edx
mov dword [ebx + 0x11], 0xcc
jmp 0x4cd395
mov eax, dword [ebx + 8]
test eax, eax
je 0x4cd352
mov dword [eax + 4], edx
mov edx, dword [ebx + 0x56]
mov dword [eax + 8], edx
push ebx
mov ecx, dword [ebx + 8]
call dword [ecx]
pop ecx
mov esi, dword [ebx + 0x6e]
lea eax, [ebx + 0x6e]
push 0
push eax
push 0
push ebx
mov edx, dword [ebx + 0x177]
call dword [edx + 4]
add esp, 0x10
cmp esi, dword [ebx + 0x6e]
jne 0x4cd373
xor eax, eax
jmp 0x4cd3b2
mov edx, dword [ebx + 0x6e]
cmp edx, dword [ebx + 0x56]
jb 0x4cd33b
push ebx
mov ecx, dword [ebx + 0x173]
call dword [ecx + 4]
pop ecx
push ebx
mov eax, dword [ebx + 0x173]
call dword [eax]
pop ecx
xor edx, edx
mov dword [ebx + 0x6e], edx
mov ecx, dword [ebx + 0x173]
cmp byte [ecx + 8], 0
jne 0x4cd373
cmp byte [ebx + 0x3e], 0
mov eax, 0xce
jne 0x4cd3ad
dec eax
mov dword [ebx + 0x11], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x4f2a80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
cmp byte [edx + 8], 3
je 0x4f2c16
mov ecx, dword [edx]
xor ebx, ebx
mov dword [ebp - 4], ecx
xor esi, esi
test byte [edx + 8], 2
je 0x4f2ad9
movzx edi, byte [eax]
xor ecx, ecx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
movzx edi, byte [eax + 1]
xor ecx, ecx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
xor ecx, ecx
movzx edi, byte [eax + 2]
inc ebx
mov cl, byte [edx + 9]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
jmp 0x4f2ae9
xor ecx, ecx
mov cl, byte [edx + 9]
movzx edi, byte [eax + 3]
sub ecx, edi
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
test byte [edx + 8], 4
je 0x4f2aff
xor ecx, ecx
mov cl, byte [edx + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov dword [ebp + ebx*4 - 0x20], ecx
inc ebx
xor ecx, ecx
lea eax, [ebp - 0x20]
cmp ebx, ecx
jle 0x4f2b1f
cmp dword [eax], 0
jg 0x4f2b13
xor edi, edi
mov dword [eax], edi
jmp 0x4f2b17
mov si, 1
inc ecx
add eax, 4
cmp ebx, ecx
jg 0x4f2b08
test si, si
je 0x4f2c16
mov al, byte [edx + 9]
sub al, 2
je 0x4f2b44
sub al, 2
je 0x4f2b64
sub al, 4
je 0x4f2b9f
sub al, 8
je 0x4f2bc6
jmp 0x4f2c16
mov ecx, dword [edx + 4]
mov eax, dword [ebp + 0xc]
xor edx, edx
cmp ecx, edx
jbe 0x4f2c16
shr byte [eax], 1
and byte [eax], 0x55
inc eax
inc edx
cmp ecx, edx
ja 0x4f2b54
jmp 0x4f2c16
mov esi, dword [ebp - 0x20]
mov ebx, 0xf0
mov ecx, esi
mov edx, dword [edx + 4]
sar ebx, cl
mov ecx, esi
mov esi, 0xf
sar esi, cl
mov ecx, esi
and bl, 0xf0
or bl, cl
xor esi, esi
cmp edx, esi
mov eax, dword [ebp + 0xc]
jbe 0x4f2c16
mov ecx, dword [ebp - 0x20]
inc esi
shr byte [eax], cl
and byte [eax], bl
inc eax
cmp edx, esi
ja 0x4f2b90
jmp 0x4f2c16
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
imul ebx
mov dword [ebp - 8], eax
xor esi, esi
cmp esi, dword [ebp - 8]
jae 0x4f2c16
mov eax, esi
xor edx, edx
div ebx
mov ecx, dword [ebp + edx*4 - 0x20]
shr byte [edi], cl
inc edi
inc esi
cmp esi, dword [ebp - 8]
jb 0x4f2bb1
jmp 0x4f2c16
mov edi, dword [ebp + 0xc]
mov eax, ebx
imul dword [ebp - 4]
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jae 0x4f2c16
movzx esi, byte [edi]
shl esi, 8
xor eax, eax
mov al, byte [edi + 1]
xor edx, edx
add si, ax
mov eax, dword [ebp - 0xc]
div ebx
mov ecx, dword [ebp + edx*4 - 0x20]
shr si, cl
movzx eax, si
sar eax, 8
mov edx, esi
mov byte [edi], al
inc edi
and dl, 0xff
mov byte [edi], dl
inc edi
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x10]
jb 0x4f2bde
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff34c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x5367d8
test edx, edx
jne 0x4ff36a
xor eax, eax
jmp 0x4ff452
xor eax, 0xffffffff
cmp ebx, 8
jb 0x4ff432
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
sub ebx, 8
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
mov eax, esi
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
cmp ebx, 8
mov eax, esi
jae 0x4ff376
test ebx, ebx
je 0x4ff44f
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ecx + esi*4]
xor esi, eax
dec ebx
mov eax, esi
jne 0x4ff436
xor eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret
Function at 0x5002b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x22]
mov eax, dword [ebx + 0x32]
sub eax, dword [ebx + 0x6a]
sub eax, dword [ebx + 0x62]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5002e9
cmp dword [ebx + 0x62], 0
jne 0x5002e9
cmp dword [ebx + 0x6a], 0
jne 0x5002e9
mov dword [ebp - 8], esi
jmp 0x500378
cmp dword [ebp - 8], 0xffffffff
jne 0x5002f7
dec dword [ebp - 8]
jmp 0x500378
mov edx, dword [ebx + 0x22]
sub edx, 0x106
add edx, esi
cmp edx, dword [ebx + 0x62]
ja 0x500378
push esi
mov eax, dword [ebx + 0x2e]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.004e4830
add esp, 0xc
sub dword [ebx + 0x66], esi
sub dword [ebx + 0x62], esi
sub dword [ebx + 0x52], edi
mov eax, dword [ebx + 0x42]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3a]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x500345
mov cx, word [ebp - 4]
sub cx, si
jmp 0x500347
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x50032e
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x36]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x50036d
mov cx, word [ebp - 4]
sub cx, si
jmp 0x50036f
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x500356
add dword [ebp - 8], esi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
je 0x5003da
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebx + 0x2e]
add edx, dword [ebx + 0x62]
add edx, dword [ebx + 0x6a]
push edx
push edi
call fcn.0050004c
add esp, 0xc
add dword [ebx + 0x6a], eax
cmp dword [ebx + 0x6a], 3
jb 0x5003c5
mov ecx, dword [ebx + 0x2e]
mov eax, dword [ebx + 0x62]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x3e], eax
mov ecx, dword [ebx + 0x4e]
shl eax, cl
mov edx, dword [ebx + 0x2e]
mov ecx, dword [ebx + 0x62]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4a]
mov dword [ebx + 0x3e], eax
cmp dword [ebx + 0x6a], 0x106
jae 0x5003da
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5002c3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x520a00
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x520a26
cmp dword [esp + 4], 5
jb 0x520a26
mov bl, 1
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x503200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x576018
mov dword [esp], eax
mov dword [esp + 4], 0x55bc2c
mov dword [esp + 8], 0x55bc3c
mov dword [esp + 0xc], 0x56d354
mov dword [esp + 0x10], 0x56d350
mov dword [esp + 0x14], 0x55b0c8
mov dword [esp + 0x18], 0x55af48
mov dword [esp + 0x1c], 0x56d34c
mov dword [esp + 0x20], 0x562eb4
mov dword [esp + 0x24], str.___:
mov dword [esp + 0x28], 0x5764dc
mov dword [esp + 0x2c], 0x559d68
mov dword [esp + 0x30], 0x559f4c
mov dword [esp + 0x34], 0x56d348
mov dword [esp + 0x38], 0x55ad34
mov dword [esp + 0x3c], 0x5764e0
mov dword [esp + 0x40], 0x5764ec
mov dword [esp + 0x44], str.0123456789
mov dword [esp + 0x48], 0x56d050
mov dword [esp + 0x4c], str.BDMS
mov dword [esp + 0x50], 0x56d338
mov dword [esp + 0x54], 0x56d334
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x56d330
mov dword [esp + 0x64], 0x56d32c
mov dword [esp + 0x68], 0x576284
mov dword [esp + 0x6c], 0x5764d8
mov dword [esp + 0x70], 0x56d054
mov dword [esp + 0x74], 0x56aa94
mov dword [esp + 0x78], 0x55b0c0
mov dword [esp + 0x7c], 0x56aae8
mov dword [esp + 0x80], 0x56d018
mov dword [esp + 0x84], 0x56d010
mov dword [esp + 0x88], 0x56d008
mov dword [esp + 0x8c], 0x56d04c
mov dword [esp + 0x90], 0x5764e8
mov dword [esp + 0x94], 0x55a930
mov dword [esp + 0x98], 0x576518
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x576514
mov dword [esp + 0xc0], 0x56d0d8
mov dword [esp + 0xc4], 0x56d0c0
mov dword [esp + 0xc8], 0x56b4f8
mov dword [esp + 0xcc], str.ZYXWVUTRQPOLKJIHGFA
mov dword [esp + 0xd0], 0x56d0f8
mov dword [esp + 0xd4], 0x56d328
mov dword [esp + 0xd8], 0x56d024
mov dword [esp + 0xdc], 0x56d0dc
mov dword [esp + 0xe0], 0x55b0c4
mov dword [esp + 0xe4], 0x56d324
mov dword [esp + 0xe8], 0x56d0e8
mov dword [esp + 0xec], 0x56d0d4
cmp cl, 0x3c
jae 0x50341d
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret

Function at 0x516d58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a1574]
jne 0x516d62
repz ret
jmp fcn.00521cec
Function at 0x41c784
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c78a
ret
Function at 0x401000
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 0x401030
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x401240
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x401dd0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x214
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
push ebx
push esi
push edi
mov edi, str.SYSTEMCurrentControlSetServicesEventlogApplication_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
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]
mov edi, str.NscAuthService
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401f52
call dword [sym.imp.MSVCRT.dll___p___argv]
mov eax, dword [eax]
or ecx, 0xffffffff
lea edx, [esp + 0x11c]
push 0x5c
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
mov byte [eax + 1], 0
mov edi, str.RealLog.DLL
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xc]
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 + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 2
push eax
push str.EventMessageFile
push edx
call esi
test eax, eax
jne 0x401f52
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.TypesSupported
push ecx
mov dword [esp + 0x28], 7
call esi
test eax, eax
jne 0x401f52
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x214
ret
Function at 0x401f60
Capabilities:
Access the windows event log

Disassembly:
push ecx
push esi
push str.NscAuthService
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
cmp eax, 0x800003ea
ja 0x401fa6
je 0x401f9f
cmp eax, 0x3e8
je 0x401f9b
cmp eax, 0x400003e9
jne 0x401fb2
mov ecx, 4
jmp 0x401fb6
xor ecx, ecx
jmp 0x401fb6
mov ecx, 2
jmp 0x401fb6
cmp eax, 0xc00003eb
mov ecx, 1
je 0x401fb6
mov ecx, dword [esp + 0x10]
test esi, esi
je 0x401fe9
push edi
lea edx, [esp + 8]
push 0
push edx
push 0
push 1
push 0
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
test edi, edi
pop edi
je 0x401fe9
mov eax, 1
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x401ff0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
push esi
mov esi, dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___char_const__]
push edi
push eax
call esi
push eax
call dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
mov edi, dword [esp + 0x14]
mov ecx, dword [sym.imp.MSVCIRT.dll_class_ostream_withassign_cout]
add esp, 4
push edi
push str.Error_number:
call esi
mov ecx, eax
call dword [sym.imp.MSVCIRT.dll_public:_class_ostream____thiscall_ostream::operator___unsigned_long_int_]
push eax
call dword [sym.imp.MSVCIRT.dll_class_ostream____cdecl_endl_class_ostream__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402410
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x40244d
push 0x10
push str.Sensor_Service
push 0x406208
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop esi
add esp, 0x10
ret
mov eax, dword [str.NscAuthService]
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x402220
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x402489
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.In_StartServiceCtrlDispatcher
call fcn.00401ff0
add esp, 8
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x402880
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x9410
call fcn.00404110
push ebx
push esi
push edi
mov ecx, 0x2500
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [0x4068b4]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x4028b1
call eax
mov dword [esp + 0x18], eax
jmp 0x4028b5
mov dword [esp + 0x18], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x4028e1
push 0x406304
call fcn.00403e50
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x9410
ret
lea eax, [esp + 0x1c]
push ebp
push eax
push esi
mov dword [esp + 0x28], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402a19
mov esi, dword [esp + 0x9424]
lea eax, [esp + 0x44]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40292c
cmp cl, bl
je 0x402928
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40292c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x402908
xor eax, eax
jmp 0x402931
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40296e
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x402a15
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x402a15
mov dword [esp + 0x14], 1
jmp 0x402a15
mov ebp, 1
lea edi, [esp + 0x148]
mov eax, dword [esp + 0x18]
push edi
push eax
mov dword [edi], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x402a15
mov esi, str.NscAuth.exe
lea eax, [edi + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4029bf
cmp cl, bl
je 0x4029bb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4029bf
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40299b
xor eax, eax
jmp 0x4029c4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x402a02
mov ecx, dword [edi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4029f5
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x402a02
mov dword [esp + 0x14], 1
jmp 0x402a02
push str.ProcessIdToSessionId
call fcn.00403e50
add esp, 4
inc ebp
add edi, 0x128
cmp ebp, 0x80
jl 0x40297a
mov esi, dword [esp + 0x18]
cmp esi, ebx
pop ebp
je 0x402a25
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0x9410
ret
Function at 0x402a40
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
mov eax, 0x9404
call fcn.00404110
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ecx, 0x2500
lea edi, [esp + 0x14]
push eax
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
jne 0x402a86
push 0x406334
call fcn.00403e50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9404
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402b98
mov esi, str.NscAuth.exe
lea eax, [esp + 0x38]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x402ad2
test cl, cl
je 0x402ace
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x402ad2
add eax, 2
add esi, 2
test cl, cl
jne 0x402aaa
xor eax, eax
jmp 0x402ad7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402b09
mov eax, dword [esp + 0x1c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402bae
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402b98
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, 1
lea edi, [esp + 0x13c]
mov ecx, dword [esp + 0x10]
push edi
push ecx
mov dword [edi], 0x128
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x402b94
mov esi, str.NscAuth.exe
lea eax, [edi + 0x24]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402b5c
test cl, cl
je 0x402b58
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402b5c
add eax, 2
add esi, 2
test cl, cl
jne 0x402b38
xor eax, eax
jmp 0x402b61
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402b85
mov eax, dword [edi + 8]
push eax
push 0
push 1
call ebx
mov esi, eax
test esi, esi
je 0x402bae
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
add edi, 0x128
cmp ebp, 0x80
jl 0x402b1b
mov edi, dword [esp + 0x10]
test edi, edi
je 0x402ba3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9404
ret
push 0x40631c
call fcn.00403e50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9404
ret
Function at 0x402f10
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x158
push ebp
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x61]
mov byte [esp + 0x60], al
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x4068e0
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], 0x44
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x48], 0x101
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov word [esp + 0x4c], ax
rep movsb byte es:[edi], byte [esi]
mov edi, str.UpdatePacket.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x64]
push ecx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402ffa
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403007
push eax
call esi
pop edi
pop esi
pop ebp
add esp, 0x158
ret
push str.CreateUpdateProcess
call fcn.00403e50
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x158
ret