joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403280
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x10c
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x108], eax
cmp dword [0x413358], 0
push edi
mov edi, dword [esp + 0x114]
jne 0x403310
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.FTSafeNetRockey4NDService
push 0
mov dword [0x413354], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
mov eax, dword [0x413354]
push eax
push str.FTSafeNetRockey4NDService
lea ecx, [esp + 0x18]
push str._s_error:__d
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
test esi, esi
lea edx, [esp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
je 0x40330f
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 2
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x10c]
pop edi
xor ecx, esp
call fcn.0040c056
add esp, 0x10c
ret

Function at 0x403330
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
sub esp, 0x208
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x204], eax
push 0x200
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40337c
push 0x1ff
call fcn.00402da0
add esp, 4
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0040c056
add esp, 0x208
ret
push edi
push str.__dispatch
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40348a
push ebp
push esi
push 0xf01ff
push str.FTSafeNetRockey4NDService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4033cf
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebp
push 0
push 0
push 0x40d791
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push str.FTSafe_Net_Rockey4ND_Service
push str.FTSafeNetRockey4NDService
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x403462
push ebx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x403443
push str.ChangeServiceConfig2A
push ebx
mov dword [esp + 0x18], str.FTSafe_Net_Service
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x413350], eax
je 0x40343c
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call ebp
pop ebx
push edi
call ebp
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0040c056
add esp, 0x208
ret
push 0x200
call fcn.00402da0
add esp, 4
push edi
call ebp
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.0040c056
add esp, 0x208
ret
push 0x201
call fcn.00402da0
mov ecx, dword [esp + 0x20c]
add esp, 4
pop edi
xor ecx, esp
call fcn.0040c056
add esp, 0x208
ret
Function at 0x4034b0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x118
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
push 0x100
lea eax, [esp + 0x1c]
push eax
push 0x207
push 0
mov esi, 1
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x34
push str.Warning
lea ecx, [esp + 0x20]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x403564
lea edx, [esp + 4]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403514
xor esi, esi
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [esp + 4]
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40355a
xor esi, esi
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040c056
add esp, 0x118
ret
Function at 0x4035e0
Capabilities:
Modify service
Print debug messages
Start service

Disassembly:
sub esp, 0x204
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x200], eax
push ebp
mov ebp, dword [esp + 0x210]
push esi
push 0xf003f
push 0
push 0
mov dword [0x41335c], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40379c
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
push 0xf003f
push str.FTSafeNetRockey4NDService
push esi
call ebx
mov edi, eax
test edi, edi
je 0x403756
push 0x200
lea eax, [esp + 0x14]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 0x14]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40368f
push 0x1ff
call fcn.00402da0
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040c056
add esp, 0x204
ret
push str.__dispatch
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x4036c8
push str.change_service_config
jmp 0x40372d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x421
ja 0x403702
je 0x4036fb
sub eax, 5
je 0x4036f4
sub eax, 1
je 0x4036ed
sub eax, 0x51
jne 0x403713
push 0x40d7f8
jmp 0x40372d
push 0x40d7f4
jmp 0x40372d
push 0x40d7f0
jmp 0x40372d
push 0x40d7ec
jmp 0x40372d
sub eax, 0x423
je 0x403728
sub eax, 0xd
je 0x403721
sub eax, 6
je 0x40371a
push 0x40d7e8
jmp 0x40372d
push 0x40d7e4
jmp 0x40372d
push 0x40d7e0
jmp 0x40372d
push 0x40d7dc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push 0x20000000
push str.FTSafeNetRockey4NDService
push esi
call ebx
mov ecx, dword [esp + 0x218]
push ebp
mov ebx, eax
push ecx
jmp 0x403781
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
call edi
call fcn.00403330
push 0x20000000
push str.FTSafeNetRockey4NDService
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x403794
mov edx, dword [esp + 0x218]
push ebp
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x403791
call fcn.00403580
push ebx
call edi
push esi
call edi
jmp 0x403676
push 0x201
call fcn.00402da0
mov ecx, dword [esp + 0x20c]
add esp, 4
pop esi
pop ebp
xor ecx, esp
call fcn.0040c056
add esp, 0x204
ret
Function at 0x4037c0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
push 0xa0000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x40387f
push esi
push 0xa0000000
push str.FTSafeNetRockey4NDService
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40386a
push 0x413334
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403859
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x413334
push esi
call ebx
test eax, eax
je 0x403841
cmp dword [0x413338], 3
jne 0x403841
push 0x3e8
call edi
push 0x413334
push esi
call ebx
test eax, eax
jne 0x403825
cmp dword [0x413338], 1
pop edi
pop ebx
je 0x403859
push 0x202
call fcn.00402da0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret
push 0x201
call fcn.00402da0
add esp, 4
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
ret

Function at 0x403920
Capabilities:
Delete service
Query service status
Shutdown system
Stop service

Disassembly:
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x4039f3
push esi
push 0xf003f
push str.FTSafeNetRockey4NDService
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4039e9
push 0x413334
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4039c4
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x413334
push esi
call ebx
test eax, eax
je 0x4039ac
lea esp, [esp]
cmp dword [0x413338], 3
jne 0x4039ac
push 0x3e8
call edi
push 0x413334
push esi
call ebx
test eax, eax
jne 0x403990
cmp dword [0x413338], 1
pop edi
pop ebx
je 0x4039c4
push 0x202
call fcn.00402da0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4039e2
push 0x203
call fcn.00402da0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
jmp 0x403a00
push 0x201
call fcn.00402da0
add esp, 4
call fcn.004034b0
test eax, eax
pop ebp
jne 0x403a13
push eax
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
ret
Function at 0x4049a0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
push esi
mov esi, dword [esp + 8]
je 0x4049d2
push ebx
push edi
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ecx + edi*4 + 4]
sub edx, 1
add esi, 1
test edx, edx
jne 0x4049b2
pop edi
pop ebx
not eax
pop esi
ret 8

Function at 0x4049e0
Capabilities:
Print debug messages
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push ebp
push esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x34]
push 0x40d8d4
push eax
mov dword [esp + 0x10], ecx
xor ebp, ebp
call dword [sym.imp.MSVCR80.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x404a2a
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040c056
add esp, 0x20
ret 0xc
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_fseek]
push edi
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
push esi
push edi
mov ebx, eax
push 1
push ebx
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x30
cmp eax, edi
jne 0x404a85
mov ecx, dword [esp + 0x14]
mov edx, edi
sub edx, dword [esp + 0x38]
push edx
push ebx
call fcn.004049a0
mov ebp, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404a85
mov ecx, dword [edi + ebx - 4]
mov dword [eax], ecx
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
push ebx
call dword [sym.imp.MSVCR80.dll_free]
push ebp
lea edx, [esp + 0x24]
push str._04x
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x14
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x2c]
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0040c056
add esp, 0x20
ret 0xc

Function at 0x404b10
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ebx, [edi + 4]
lea ebx, [ebx]
push 8
push esi
mov ecx, edi
call fcn.00404960
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
push 0x20
push eax
mov ecx, edi
call fcn.00404960
mov dword [ebx], eax
add esi, 1
add ebx, 4
cmp esi, 0xff
jle 0x404b20
pop edi
pop esi
pop ebx
ret
Function at 0x404cc0
Capabilities:
Read .ini file

Disassembly:
push eax
mov eax, dword [esp + 0xc]
push 0x100
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret

Function at 0x405790
Capabilities:
Create thread

Disassembly:
test byte [esp + 4], 2
mov dword [0x414cb8], 0
je 0x4057fc
cmp dword [0x4135f8], 0
mov eax, dword [esp + 8]
je 0x4057d5
cmp dword [0x4135fc], 0
je 0x4057de
test eax, eax
je 0x4057d5
mov cx, word [0x40d46c]
mov word [eax + 0x400], cx
mov dl, byte [0x40d46e]
mov byte [eax + 0x402], dl
cmp dword [0x4135fc], 0
jne 0x4057fc
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x405600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x405ec0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x40c9db
mov eax, dword fs:[0]
push eax
sub esp, 0xe78
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0xe74], eax
push esi
push edi
mov eax, dword [0x411ce4]
xor eax, esp
push eax
lea eax, [esp + 0xe84]
mov dword fs:[0], eax
mov esi, dword [esp + 0xe94]
push 1
lea ecx, [esp + 0x14]
call fcn.00404ce0
push 0x104
lea eax, [esp + 0xd80]
push eax
push 0
mov dword [esp + 0xe98], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4135dc
push 8
lea ecx, [esp + 0xd84]
push ecx
mov ecx, 0x414e10
call fcn.004049e0
push 0x8761223
push eax
mov ecx, 0x414e10
mov dword [0x4135d8], eax
call fcn.00404ad0
push 0x4135e0
mov dword [0x4135dc], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test esi, esi
mov dword [0x413608], eax
mov dword [0x410828], 0xea60
mov ecx, 0x413610
je 0x405f9d
push esi
push str.FTRockeyIVSwordhui
call fcn.00406210
push esi
jmp 0x405fae
push 0
push str.FTRockeyIVSwordhui
call fcn.00406210
push str.._svrcfg.ini
lea ecx, [esp + 0x14]
call fcn.004050d0
mov edx, dword [esp + 0x964]
imul edx, edx, 0xea60
push 0x4056b0
mov ecx, 0x413610
mov dword [0x41082c], edx
call fcn.00406460
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x405640
push 0
push 0
call esi
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x405ce0
push 0
push 0
mov edi, eax
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
push esi
call edi
xor eax, eax
cmp dword [esp + 0x18], eax
je 0x406024
mov eax, 3
cmp dword [esp + 0x330], 0
je 0x406031
or eax, 4
cmp dword [esp + 0x648], 0
je 0x40603e
or eax, 8
push 0
push eax
call fcn.00405790
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0xe8c], 0xffffffff
call fcn.00404d00
xor eax, eax
mov ecx, dword [esp + 0xe84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xe74]
xor ecx, esp
call fcn.0040c056
add esp, 0xe84
ret
Function at 0x406210
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x294
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
mov ebx, dword [esp + 0x29c]
push esi
push edi
mov edi, dword [esp + 0x2a8]
lea eax, [esp + 0xc]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x406252
push 0x66
jmp 0x406317
mov ax, word [esp + 0xc]
cmp al, 2
jne 0x40630f
cmp ah, al
jne 0x40630f
test ebx, ebx
jne 0x4062bb
mov ecx, dword [str.FTRockeyIVSwordhui]
mov edx, dword [0x40d9e4]
mov eax, dword [0x40d9e8]
mov dword [esp + 0x19c], ecx
mov ecx, dword [0x40d9ec]
mov dword [esp + 0x1a0], edx
mov dx, word [0x40d9f0]
mov dword [esp + 0x1a4], eax
mov al, byte [0x40d9f2]
mov dword [esp + 0x1a8], ecx
mov word [esp + 0x1ac], dx
mov byte [esp + 0x1ae], al
jmp 0x4062ca
push ebx
lea ecx, [esp + 0x1a0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x19c]
push edx
mov byte [esp + 0x29f], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x1a0]
push eax
mov ecx, esi
call fcn.00408460
test edi, edi
lea ecx, [esi + 4]
je 0x406301
push edi
call fcn.00405180
xor eax, eax
jmp 0x406326
push str.._svrcfg.ini
call fcn.00405180
xor eax, eax
jmp 0x406326
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push 0x67
mov ecx, 0x414df0
call fcn.00405400
mov eax, 0x7d1
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c056
add esp, 0x294
ret 8
Function at 0x408130
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x411ce4]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x408170
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
sbb esi, esi
neg esi
add esi, 1
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x4081e6
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40819e
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret
cmp eax, 0xa
jne 0x4081c0
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret
cmp eax, 0x32
jbe 0x4082b1
mov esi, 6
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret
cmp eax, 2
jne 0x4082b1
mov ecx, dword [esp + 8]
cmp ecx, 6
mov eax, dword [esp + 0xc]
jne 0x408261
test eax, eax
jne 0x40821d
mov esi, 9
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret
cmp eax, 2
jne 0x40823f
mov esi, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret
cmp eax, 1
jne 0x408283
mov esi, 0xa
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret
cmp ecx, 4
jne 0x408283
mov esi, 2
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret
test eax, eax
jne 0x4082a4
mov esi, 5
mov eax, esi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret
xor ecx, ecx
cmp eax, 1
setne cl
add ecx, 7
mov esi, ecx
mov ecx, dword [esp + 0x98]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040c056
add esp, 0x98
ret

Function at 0x4082e0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
shr eax, 8
movzx edx, al
mov eax, dword [edx*4 + 0x411088]
push esi
movzx esi, cl
add eax, dword [esi*4 + 0x410c88]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
xor eax, dword [edx*4 + 0x411488]
shr ecx, 0x18
add eax, dword [ecx*4 + 0x411888]
pop esi
ret 4

Function at 0x408340
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp]
mov dword [esp + 0x14], ecx
mov esi, 0x410c40
jmp 0x408364
mov eax, dword [esp + 0x18]
xor eax, dword [esi]
mov ecx, edi
push eax
mov dword [esp + 0x1c], eax
call fcn.004082e0
xor dword [esp + 0x14], eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00408320
add esi, 4
cmp esi, 0x410c80
jl 0x408360
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00408320
mov ecx, dword [0x410c84]
mov eax, dword [esp + 0x14]
xor eax, dword [0x410c80]
xor ecx, dword [esp + 0x18]
pop edi
mov dword [ebx], ecx
pop esi
mov dword [ebp], eax
pop ebp
pop ebx
ret 8
Function at 0x408460
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebx
push ebp
push esi
movsx esi, word [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
xor eax, eax
mov ebx, 0x410c40
movsx ecx, byte [eax + edi]
add eax, 1
cmp eax, esi
jl 0x408483
xor eax, eax
movsx edx, byte [eax + edi]
shl ecx, 8
add eax, 1
or edx, ecx
cmp eax, esi
jl 0x408495
xor eax, eax
movsx ecx, byte [eax + edi]
shl edx, 8
add eax, 1
or ecx, edx
cmp eax, esi
jl 0x4084a7
xor eax, eax
movsx edx, byte [eax + edi]
shl ecx, 8
add eax, 1
or edx, ecx
cmp eax, esi
jl 0x4084b9
xor eax, eax
xor dword [ebx], edx
add ebx, 4
cmp ebx, 0x410c88
jl 0x408476
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov esi, 0x410c44
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.00408340
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esi - 4], edx
mov dword [esi], eax
add esi, 8
cmp esi, 0x410c8c
jl 0x4084d5
mov esi, 0x410c8c
mov edi, 0x80
jmp 0x408510
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.00408340
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi - 4], eax
mov dword [esi], ecx
add esi, 8
sub edi, 1
jne 0x408510
cmp esi, str.Rockey4ND_08x
jl 0x408503
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x40a260
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
pop edi
cmp eax, 4
jne 0x40a2b7
mov eax, dword [esp + 8]
cmp eax, 0xa
je 0x40a2ab
cmp eax, 0x5a
je 0x40a2ab
mov eax, str.Global_
add esp, 0x94
ret
mov eax, 0x418bac
add esp, 0x94
ret
cmp eax, 5
mov eax, str.Global_
je 0x40a2c6
mov eax, str.Local_
add esp, 0x94
ret

Function at 0x40ab10
Capabilities:
Encode data using xor

Disassembly:
xor al, al
xor ecx, ecx
mov dl, byte [esp + ecx + 5]
xor al, dl
inc ecx
cmp ecx, 5
jl 0x40ab14
xor ecx, ecx
mov dl, byte [esp + ecx + 0xa]
xor al, dl
inc ecx
cmp ecx, 0x12
jl 0x40ab22
ret

Function at 0x40ab30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
push 0x418bb0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x418bb0
mov ecx, dword [esp + 0x50]
mov eax, ecx
shl eax, 4
add eax, ecx
lea ebp, [eax + eax*2]
shl ebp, 3
mov eax, dword [ebp + 0x4159a8]
test eax, eax
mov dword [esp + 0x50], eax
jne 0x40ab7b
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xa0100002
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.MSVCR80.dll_srand
call sub.MSVCR80.dll_rand
sub esp, 0x18
mov bl, al
mov ecx, 6
lea esi, [esp + 0x2c]
mov edi, esp
mov byte [esp + 0x2d], 0xb
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x31], 0
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040ab10
lea esi, [ebp + 0x4159b8]
add esp, 0x1c
mov ecx, esi
mov byte [esp + 0x28], al
call fcn.0040bfe0
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call fcn.0040a5f0
push 0
mov ebp, eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov ecx, esi
call fcn.0040c010
mov eax, dword [esp + 0x50]
lea esi, [esp + 0x32]
sub esi, eax
mov edi, 4
mov cl, byte [esi + eax]
xor cl, bl
mov byte [eax], cl
inc eax
dec edi
jne 0x40ac1a
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8