joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402930
Capabilities:
Get disk information
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov edi, dword [sym.imp.advapi32.dll_RegCreateKeyExA]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x4044b8
push 0x80000002
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xff0ff
call edi
test eax, eax
jne 0x4029fd
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0x4044a8
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.shlwapi.dll_PathAddBackslashA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x4044b4
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4029e0
sub eax, edx
mov edx, dword [ebp - 4]
inc eax
push eax
push esi
push 1
push 0
lea ecx, [ebp - 0x10c]
push ecx
push edx
jmp 0x402a3e
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x4044f0
push 0x80000001
call edi
test eax, eax
jne 0x402a44
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a25
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0x404520
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
pop edi
test eax, eax
je 0x402a5d
push eax
call dword [sym.imp.advapi32.dll_RegFlushKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x402d30
Capabilities:
Get session integrity level
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x404f2c
call dword [sym.imp.kernel32.dll_LoadLibraryA]
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
call fcn.00403a20
test eax, eax
je 0x402d6c
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
call fcn.004021d0
call fcn.004020e0
push 0
push 0x404de0
call dword [sym.imp.user32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x402da1
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
push 0x10001
push 0x466
push esi
call dword [sym.imp.user32.dll_PostMessageA]
call fcn.00402360
call fcn.00402450
call fcn.00402540
call fcn.00402680
mov ebx, dword [sym.imp.shell32.dll_IsUserAnAdmin]
call ebx
test eax, eax
jne 0x402de3
call fcn.00401ea0
test eax, eax
je 0x402dd2
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
call fcn.00403560
test eax, eax
je 0x402de3
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
call ebx
push 0x404578
mov edi, eax
mov dword [ebp - 8], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x402e1c
push 0x404588
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402e1c
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 8], 0
je 0x402e6e
test edi, edi
je 0x402e3c
push 0x404eec
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.shlwapi.dll_StrStrIA]
test eax, eax
je 0x402e5f
lea esi, [ebp - 0x10c]
call fcn.00402930
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
call fcn.00401670
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x402f58
call fcn.00402a70
call fcn.004012b0
jmp 0x402f58
test edi, edi
je 0x402efd
push 0x404eec
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.shlwapi.dll_StrStrIA]
test eax, eax
je 0x402ea1
lea esi, [ebp - 0x10c]
call fcn.00402930
call fcn.004028d0
jmp 0x402f58
call fcn.00402a70
push 0x404eb0
call dword [sym.imp.kernel32.dll_GlobalFindAtomA]
test ax, ax
jne 0x402ef6
push 0x404eb0
call dword [sym.imp.kernel32.dll_GlobalAddAtomA]
call ebx
test eax, eax
je 0x402ed7
lea ecx, [ebp - 1]
push ecx
push 0
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call ebx
test eax, eax
mov eax, 0x404ecc
jne 0x402ee7
mov eax, 0x404edc
push eax
call fcn.004015a0
test eax, eax
je 0x402ef6
call fcn.00401670
call fcn.004012b0
jmp 0x402f58
lea esi, [ebp - 0x10c]
call fcn.00402930
push 0x404eb0
call dword [sym.imp.kernel32.dll_GlobalFindAtomA]
test ax, ax
jne 0x402f58
push 0x404eb0
call dword [sym.imp.kernel32.dll_GlobalAddAtomA]
call ebx
test eax, eax
je 0x402f39
lea edx, [ebp - 1]
push edx
push 0
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
call ebx
test eax, eax
mov eax, 0x404ecc
jne 0x402f49
mov eax, 0x404edc
push eax
call fcn.004015a0
test eax, eax
je 0x402f58
call fcn.00401670
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4034c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
lea eax, [ebp - 0x9c]
push eax
mov esi, 0x80004005
mov dword [ebp - 4], 0
mov dword [ebp - 0x9c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x40354d
cmp dword [ebp - 0x8c], 2
jne 0x40354d
cmp dword [ebp - 0x98], 6
jb 0x40354d
lea ecx, [ebp - 4]
push ecx
push 8
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x40354d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 4
push eax
push 0x12
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.advapi32.dll_GetTokenInformation]
test eax, eax
je 0x403543
cmp dword [ebp - 8], 4
jne 0x403543
xor esi, esi
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403a20
Capabilities:
Check for sandbox username or hostname
Get disk information
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push edi
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push 0x405214
push 0x80000002
mov dword [ebp - 0x14], 0x104
mov dword [ebp - 8], 0
mov edi, 1
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 7
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403acd
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x405230
push 0x80000002
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x403a9b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403acd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp byte [ebp - 0x61c], 0x51
jne 0x403acd
cmp byte [ebp - 0x61b], 0x45
jne 0x403acd
cmp byte [ebp - 0x61a], 0x4d
jne 0x403acd
cmp byte [ebp - 0x619], 0x55
je 0x403bec
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.advapi32.dll_GetUserNameA]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.user32.dll_CharUpperA]
mov esi, dword [sym.imp.msvcrt.dll_strstr]
lea eax, [ebp - 0x21c]
push 0x405244
push eax
call esi
add esp, 8
test eax, eax
jne 0x403beb
lea ecx, [ebp - 0x21c]
push 0x40524c
push ecx
call esi
add esp, 8
test eax, eax
jne 0x403beb
lea edx, [ebp - 0x21c]
push 0x405258
push edx
call esi
add esp, 8
test eax, eax
jne 0x403beb
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.kernel32.dll_GetSystemWindowsDirectoryA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
lea edx, [ebp - 0x118]
push edx
mov byte [ebp - 0x115], 0
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
cmp eax, 0xcd1a40
je 0x403beb
cmp eax, 0x6cbbc508
je 0x403beb
cmp eax, 0x774e1682
je 0x403beb
cmp eax, 0x837f873e
je 0x403beb
cmp eax, 0x8b6f64bc
je 0x403beb
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.shlwapi.dll_StrStrIA]
push 0x405264
lea ecx, [ebp - 0x118]
push ecx
call esi
test eax, eax
jne 0x403beb
push 0x405270
lea edx, [ebp - 0x118]
push edx
call esi
test eax, eax
jne 0x403beb
push 0x40527c
lea eax, [ebp - 0x118]
push eax
call esi
test eax, eax
jne 0x403beb
xor edi, edi
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403c00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403c29
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x406000]
inc esi
xor eax, edx
dec ecx
jne 0x403c14
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x46fd27
Capabilities:
Parse pe header

Disassembly:
lea ecx, [eax]
add bl, al
push 0
call dword [0x4853b4]
test eax, eax
Function at 0x401246
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x40126d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40126d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
test al, al
je 0x401307
push ebx
mov ebx, edi
mov ecx, edi
cmp al, 0x2f
je 0x401287
cmp al, 0x5c
jne 0x401289
mov ebx, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x40127f
cmp ebx, edi
je 0x4012bc
sub ebx, edi
lea eax, [ebp - 0x208]
push ebx
push edi
push eax
call fcn.004191b0
lea eax, [ebp - 0x208]
mov byte [ebp + ebx - 0x208], 0
push eax
push esi
call fcn.00401246
add esp, 0x14
mov byte [ebp - 0x104], 0
pop ebx
test esi, esi
je 0x4012d7
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0041cf50
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.0041cf60
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401307
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret

Function at 0x40180a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4018b3
cmp dword [esi + 4], 0xffffffff
jne 0x4018b3
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.0041d0e0
pop ecx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x40185a
cmp al, 0x2f
je 0x40185a
push 0x42fc74
push edi
call fcn.0041cf60
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x40187c
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40187c
mov eax, 0x2000000
jmp 0x4018b8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403fd0
add esp, 0x10
test eax, eax
jne 0x40189a
mov eax, dword [ebp - 4]
jmp 0x4018b8
push eax
call fcn.0040456b
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4018b8
mov eax, 0x1000000
pop esi
leave
ret 0xc
Function at 0x401df5
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
movsx eax, byte [esp + 8]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x42f540]
movzx eax, cl
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
mov dword [edx], ecx
mov ecx, dword [edx + 8]
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
mov dword [edx + 8], ecx
ret

Function at 0x4040da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x40410d
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404108
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x404137
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004191b0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x4041f8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x404203
xor eax, eax
ret
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
not ecx
cmp esi, 8
jb 0x4042c4
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
sub edi, 1
jne 0x40421d
pop edi
test esi, esi
je 0x4042e0
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42f540]
inc edx
sub esi, 1
jne 0x4042c8
not ecx
mov eax, ecx
pop esi
ret
Function at 0x40440a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x404562
xor ebx, ebx
cmp dword [edi + 0x18], ebx
je 0x404562
cmp dword [edi + 0x7c], ebx
je 0x404432
push edi
call fcn.00404314
pop ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.0040490b
add esp, 0x10
test eax, eax
je 0x404455
push 0xffffffffffffff99
jmp 0x404564
push 0x84
call fcn.0041d191
mov esi, eax
pop ecx
test esi, esi
jne 0x40446d
push 0xffffffffffffff98
jmp 0x404564
push 0x4000
call fcn.0041d191
mov dword [esi], eax
mov dword [esi + 0x4c], ebx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x48], ecx
test eax, eax
jne 0x404498
push esi
call fcn.0041d176
pop ecx
jmp 0x404466
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], ebx
test ecx, ecx
je 0x4044da
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
push eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040276b
pop ecx
test eax, eax
jne 0x4044da
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x4044fe
mov al, byte [edi + 0x39]
jmp 0x404501
mov al, byte [edi + 0x3f]
mov ebx, dword [esp + 0x1c]
mov byte [esi + 0x80], al
xor eax, eax
push ebp
push 0xc
test cl, cl
mov dword [esi + 0x74], 0x23456789
pop edx
cmovne eax, edx
mov dword [esi + 0x78], 0x34567890
mov dword [esi + 0x7c], eax
lea ebp, [esi + 0x70]
mov dword [ebp], 0x12345678
test ebx, ebx
je 0x404549
mov al, byte [ebx]
test al, al
je 0x404549
push eax
push ebp
call fcn.00401df5
pop ecx
pop ecx
add ebx, 1
jne 0x404535
mov eax, dword [esp + 0x14]
and dword [esi + 8], 0
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
pop ebp
jmp 0x404565
push 0xffffffffffffff9a
pop eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x40aa27
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
push edi
test esi, esi
je 0x40aa8b
cmp dword [esp + 0x60], 0
je 0x40aa8b
mov eax, dword [esi + 0x3c]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov edi, dword [eax + esi + 0x78]
add edi, esi
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, esi
add eax, esi
mov dword [esp + 0x5c], eax
cmp dword [edi + 0x18], ebx
jbe 0x40aa8b
mov eax, dword [ebp]
add eax, esi
push eax
call fcn.0040afc4
pop ecx
cmp eax, dword [esp + 0x60]
je 0x40aa95
mov eax, dword [esp + 0x10]
add ebp, 4
add dword [esp + 0x5c], 2
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x18]
jb 0x40aa63
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
mov eax, dword [esp + 0x5c]
movzx ecx, word [eax]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + esi]
add ecx, esi
cmp ecx, edi
jbe 0x40ab29
mov eax, dword [esp + 0x14]
mov eax, dword [eax + esi + 0x7c]
add eax, edi
cmp ecx, eax
jae 0x40ab29
mov dl, byte [ecx]
mov eax, ebx
cmp dl, 0x2e
je 0x40aad6
lea edi, [esp + 0x18]
mov esi, ecx
sub edi, ecx
mov byte [edi + esi], dl
inc eax
inc esi
mov dl, byte [esi]
cmp dl, 0x2e
jne 0x40aaca
lea esi, [ecx + 1]
mov dword [esp + eax + 0x18], 0x6c6c642e
add esi, eax
mov byte [esp + eax + 0x1c], bl
mov dword [esp + 0x5c], ebx
cmp byte [esi], 0x23
jne 0x40ab11
inc esi
mov al, byte [esi]
test al, al
je 0x40ab0d
imul ecx, ebx, 0xa
movsx ebx, al
add ebx, 0xffffffd0
add ebx, ecx
inc esi
mov al, byte [esi]
test al, al
jne 0x40aaf7
mov dword [esp + 0x5c], ebx
lea esi, [esp + 0x5c]
lea eax, [esp + 0x18]
push eax
call dword [0x43ace0]
push esi
push eax
call dword [0x43ace4]
jmp 0x40aa8d
mov eax, ecx
jmp 0x40aa8d

Function at 0x40abd5
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov esi, eax
push 0xc03e4272
push esi
call fcn.0040aa27
push 0x3683e000
push esi
mov dword [0x43ace0], eax
call fcn.0040aa27
add esp, 0x10
mov dword [0x43ace4], eax
pop esi
ret
Function at 0x40c7e5
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push 0x6c078965
push dword [esp + 0xc]
or dword [esi + 0x1384], 0xffffffff
call fcn.00410e41
mov eax, esi
pop esi
ret 4

Function at 0x40cbba
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebp, 1
jne 0x40cbcd
lea edi, [esi + 0xd50]
mov ebp, 0x18c
mov ebx, dword [edi]
mov eax, ebx
lea edi, [edi + 4]
mov ebx, dword [edi]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebp, 1
jne 0x40cc12
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], ebp
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x40cc84
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x40cc8d
pop esi
ret
Function at 0x410e41
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [esp + 0x14]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jb 0x410e56
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
ret 8

Function at 0x410fbf
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x41108e
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411007
cmp eax, 2
je 0x41108e
xor eax, eax
jmp 0x411091
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [edi + eax]
cmp byte [esi - 1], 0x5c
je 0x411046
mov byte [esi], 0x5c
inc esi
xor ecx, ecx
mov byte [esi], cl
jmp 0x411048
lea eax, [ebp - 0x114]
mov byte [esi], 0
push eax
push 0x208
push edi
call fcn.00411094
push edi
push dword [ebp + 8]
call fcn.00410fbf
pop ecx
pop ecx
test eax, eax
je 0x41106f
xor ecx, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x411022
mov byte [esi - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop esi
sbb eax, eax
inc eax
jmp 0x411091
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x4111bb
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movaps xmm0, xmmword [0x430980]
xor ecx, ecx
movups xmmword [ebp - 0x1e], xmm0
mov dword [ebp - 0xe], 0x726c5d72
mov dword [ebp - 0xa], 0x7564722c
mov dword [ebp - 6], 0x666f6875
mov word [ebp - 2], 0x72
mov al, byte [ebp - 0x1e]
xor byte [ebp + ecx - 0x1d], al
inc ecx
cmp ecx, 0x1c
jb 0x4111e9
lea eax, [ebp - 0x1d]
mov byte [ebp - 1], 0
push eax
push SysReAllocStringLen
call fcn.00410f8f
pop ecx
pop ecx
leave
ret