joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dde0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4c2a65], 0
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
je 0x47de68
mov dword [esp + 4], 0x4a1df6
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x47dee0
mov ebx, dword [0x4c29c0]
jmp 0x47de24
lea ebx, [eax + ecx + 4]
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 1]
mov ecx, dword [eax]
test edi, edi
jne 0x47de20
lea ecx, [eax + 6]
movzx eax, word [eax + 4]
mov edx, ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0046d690
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
sub esp, 4
mov dword [0x4c29c0], eax
add eax, 8
mov ebx, dword [eax - 8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [0x4c29c0], eax
call fcn.0047d330
cmp eax, ebx
jne 0x47df37
mov byte [0x4c2a65], 1
jmp 0x47de00
cmp byte [0x4c2a64], 0
jne 0x47de18
mov ebx, dword [sym.imp.python311.dll_PyDict_New]
call ebx
mov dword [0x4c3234], eax
call ebx
mov dword [0x4c3230], eax
call ebx
mov dword [0x4c322c], eax
call ebx
mov dword [0x4c3228], eax
call ebx
mov dword [0x4c3224], eax
call ebx
mov dword [0x4c3220], eax
call ebx
mov dword [0x4c321c], eax
call ebx
mov byte [0x4c2a64], 1
mov dword [0x4c3218], eax
jmp 0x47de18
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
lea esi, [esi]
nop

Function at 0x486058
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00495a18
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00495a18
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x486c2c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x486c4b
mov eax, 0
jmp 0x486c8f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x486c6e
mov eax, 0
jmp 0x486c8f
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x486c8a
mov eax, 0
jmp 0x486c8f
mov eax, 1
leave
ret
Function at 0x486c91
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x486cf0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x486ce8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x486ce8
mov eax, dword [ebp - 4]
jmp 0x486d04
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x486cc5
mov eax, 0
leave
ret
Function at 0x4058b0
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx + 0x48], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0xf3bcc908
mov dword [ecx + 0xc], 0x6a09e667
mov dword [ecx + 0x10], 0x84caa73b
mov dword [ecx + 0x14], 0xbb67ae85
mov dword [ecx + 0x18], 0xfe94f82b
mov dword [ecx + 0x1c], 0x3c6ef372
mov dword [ecx + 0x20], 0x5f1d36f1
mov dword [ecx + 0x24], 0xa54ff53a
mov dword [ecx + 0x28], 0xade682d1
mov dword [ecx + 0x2c], 0x510e527f
mov dword [ecx + 0x30], 0x2b3e6c1f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0xfb41bd6b
mov dword [ecx + 0x3c], 0x1f83d9ab
mov dword [ecx + 0x40], 0x137e2179
mov dword [ecx + 0x44], 0x5be0cd19
ret
Function at 0x410c6e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a8e8
mov dword [ebp - 0x14], eax
cmp dword [0x4202cc], esi
jne 0x410d61
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x410cee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x410e41
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x410e41
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x410e41
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4202cc], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4202d0], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4202d4], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4202dc], eax
test eax, eax
je 0x410d5e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4202d8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x410d86
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410d79
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x410d9b
push 4
pop eax
jmp 0x410e43
cmp dword [ebp - 0x14], esi
je 0x410d9b
push dword [0x4202cc]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x410d80
mov eax, dword [0x4202d8]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, edi
je 0x410df9
cmp dword [0x4202dc], edi
je 0x410df9
push eax
call ebx
push dword [0x4202dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x410df9
test eax, eax
je 0x410df9
call ecx
test eax, eax
je 0x410dee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410dee
test byte [ebp - 8], 1
jne 0x410df9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x410e29
mov eax, dword [0x4202d0]
cmp eax, edi
je 0x410e26
push eax
call ebx
test eax, eax
je 0x410e26
call eax
mov esi, eax
test esi, esi
je 0x410e26
mov eax, dword [0x4202d4]
cmp eax, edi
je 0x410e26
push eax
call ebx
test eax, eax
je 0x410e26
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4202cc]
call ebx
test eax, eax
je 0x410e41
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x410e43
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c9d
mov esp, ebp
pop ebp
ret
Function at 0x100014e0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1003c0a0]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.1001c3e0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, 1
je 0x10001536
xor al, al
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1001c3c5
add esp, 0xa0
ret
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x10001552
jne 0x1000151f
cmp dword [esp + 8], 2
jb 0x1000151f
cmp byte [esp + 0x9a], 1
je 0x1000151f
mov ecx, dword [esp + 0x9c]
xor ecx, esp
mov al, 1
call fcn.1001c3c5
add esp, 0xa0
ret

Function at 0x10001f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001f99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001fd4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001fd0
lea ebx, [ebx]
cmp esi, eax
jae 0x10001fd4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001fc0
cmp esi, eax
jb 0x10001fda
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10002090
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1003c0a0]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
lea eax, [esp + 4]
push eax
xor bl, bl
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100020d7
cmp dword [esp + 8], 6
jb 0x100020d7
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x100020ef
cmp byte [esp + 0x9e], al
je 0x100020f1
mov al, bl
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1001c3c5
add esp, 0xa0
ret
jbe 0x100020d7
mov ecx, dword [esp + 0xa0]
pop ebx
xor ecx, esp
mov al, 1
call fcn.1001c3c5
add esp, 0xa0
ret
Function at 0x10002930
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
mov eax, dword [0x1003c0a0]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov esi, 0x100
push 0x7f2
push str.._src_sdiActions.cpp
push esi
call fcn.10010cb0
add esp, 0xc
push esi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x100029a2
call ebp
push 0x7f9
push str.._src_sdiActions.cpp
push ebx
mov edi, eax
call fcn.10010ce0
add esp, 0xc
xor ebx, ebx
add esi, esi
cmp edi, 0x7a
je 0x10002953
test edi, edi
je 0x100029a2
lea eax, [ebx + 1]
jmp 0x10002a31
cmp byte [ebx], 0
mov edi, ebx
je 0x10002a1c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
nop
push edi
call fcn.1001cc1c
push str.volume
push edi
call fcn.1001c840
add esp, 0xc
test eax, eax
je 0x10002a0a
push str.._
lea eax, [esp + 0x14]
push eax
call ebp
push edi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0
push 3
push 0
push 3
push 0x40000000
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x100029b0
push 0x81c
push str.._src_sdiActions.cpp
push ebx
call fcn.10010ce0
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001c3c5
add esp, 0x108
ret 4
Function at 0x100057b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x38]
push esi
push 0xffffffffffffffff
lea eax, [esp + 0x40]
push eax
mov esi, ecx
mov ecx, dword [esi + 4]
push 0
push ebp
call fcn.100109c0
test eax, eax
jne 0x100057de
pop esi
mov eax, 0x3e
pop ebp
add esp, 0x30
ret 0x14
push ebx
push edi
push 0x30
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.1001c3e0
mov edx, dword [esp + 0x54]
mov ecx, dword [esi]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x34], edx
push 0x30
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
push edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 4]
push ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], 0x30
call fcn.10010870
mov edi, dword [esp + 0x54]
test edi, edi
je 0x100058b4
push 0xcd
lea ebx, [edi + 1]
push str.._src_sdiEvents.cpp
push ebx
call fcn.10010cb0
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100058bd
cmp dword [esp + 0x24], 0
je 0x10005880
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x24]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10005891
push eax
call edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1000589c
push eax
call edi
mov ecx, dword [esi + 4]
push ebp
call fcn.10010940
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x30
ret 0x14
cmp dword [esp + 0x2c], 0
jne 0x1000585e
jmp 0x100058dd
push ebx
push 0
push eax
call fcn.1001c3e0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x38]
push edi
push eax
push ecx
call fcn.1001c060
add esp, 0x18
mov dword [esp + 0x28], edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0
mov dword [esp + 0x2c], eax
call ebx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x20], eax
je 0x1000585e
test eax, eax
je 0x1000585e
mov ecx, dword [esi + 4]
push 0
push 0
push ebp
call fcn.10010850
push eax
push 0x10005560
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10005880
mov ecx, dword [esi + 4]
lea eax, [edi + 0x31]
push eax
lea edx, [esp + 0x14]
push edx
push ebp
mov dword [esp + 0x50], eax
call fcn.10010870
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x30
ret 0x14
Function at 0x10007660
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1002f139
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
mov eax, dword [0x1003c0a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0
mov byte [esp + 0xf], 0
call fcn.10003430
mov ecx, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.10003430
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.10002ea0
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
mov ebx, 1
mov byte [esp + 0x24], 2
mov dword [esp + 0x14], ebx
test ecx, ecx
jne 0x100076f5
push 0x80004005
call fcn.10001f30
mov ecx, dword [esp + 0xc]
push eax
push ecx
call fcn.1001cf42
add esp, 8
test eax, eax
sete al
test al, al
jne 0x10007758
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 0xc]
cmp eax, 0xe
jl 0x10007751
push 0xe
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.10002ea0
mov eax, dword [eax]
mov ebx, 3
test eax, eax
je 0x10007751
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 0xc], 0
jl 0x10007751
push eax
push ecx
call fcn.1001d7df
add esp, 8
test eax, eax
je 0x10007751
sub eax, dword [esp + 0xc]
jns 0x10007758
mov byte [esp + 0x2c], 0
jmp 0x1000775d
mov byte [esp + 0x2c], 1
test bl, 2
je 0x10007789
mov eax, dword [esp + 0x30]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007789
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 1
test bl, 1
je 0x100077b6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100077b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x2c], 0
mov bl, 1
jne 0x100077c3
mov bl, byte [esp + 0xb]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100077e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10007810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x20
ret 8
Function at 0x1000aeb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1002f55b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x1003c0a0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1003c0a0]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov eax, dword [esp + 0x258]
mov esi, dword [esp + 0x254]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
call fcn.100119d1
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x1000af1d
push 0x80004005
call fcn.10001f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x13
push str.SOFTWAREIntelIRST
lea ecx, [esp + 0x2c]
mov dword [esp + 0x254], edi
mov dword [esp + 0x20], 0x104
call fcn.10003150
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push edi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x2b], 0
call fcn.10010dd0
mov ebx, eax
add esp, 0x14
cmp ebx, edi
jne 0x1000b09a
push esi
lea eax, [esp + 0x140]
push 0x104
push eax
call fcn.1001d1aa
add esp, 0xc
mov dword [esp + 0x28], edi
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x1c]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x4c]
push ecx
push esi
push edx
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x3c], 0
call edi
mov ebx, eax
test ebx, ebx
jne 0x1000b086
mov eax, dword [esp + 0x1c]
push 0xab
inc eax
push str.._src_raidVer.cpp
push eax
call fcn.10010cb0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x1000b076
mov ecx, dword [esp + 0x1c]
inc ecx
push ecx
push ebx
push ebp
call fcn.1001c3e0
inc dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
push eax
call edi
mov ebx, eax
inc esi
mov dword [esp + 0x2c], esi
test ebx, ebx
jne 0x1000b061
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.1001cf42
add esp, 8
test eax, eax
jne 0x1000b061
mov edi, dword [esp + 0x34]
mov ecx, 9
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x17], 1
push 0xc8
push str.._src_raidVer.cpp
push ebp
call fcn.10010ce0
add esp, 0xc
jmp 0x1000b07e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x1000af94
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x17], 0
je 0x1000b09a
xor ebx, ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000b0c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1001c3c5
add esp, 0x23c
ret
Function at 0x10010c70
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, 0x811c9dc5
test esi, esi
je 0x10010ca1
mov edx, dword [esp + 0xc]
xor ecx, ecx
test edx, edx
jbe 0x10010ca1
push edi
lea esp, [esp]
movsx edi, byte [ecx + esi]
add eax, 0x1000193
inc ecx
xor eax, edi
cmp ecx, edx
jb 0x10010c90
pop edi
pop esi
ret

Function at 0x10010d40
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1003c0a0]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
mov esi, 0x100
call fcn.1001c3e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10010d87
xor esi, esi
cmp dword [esp + 8], 5
jne 0x10010dad
cmp dword [esp + 0xc], 0
jne 0x10010dad
xor eax, eax
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1001c3c5
add esp, 0xa0
ret
mov ecx, dword [esp + 0xa0]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1001c3c5
add esp, 0xa0
ret

Function at 0x10010e20
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push esi
push edi
call fcn.10010dd0
add esp, 0x14
test eax, eax
je 0x10010e55
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10010e85
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret 0x18
Function at 0x10010e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
call fcn.10010dd0
add esp, 0x14
test eax, eax
jne 0x10010fe7
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push 0
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov ebx, eax
test edi, edi
je 0x10010f08
cmp dword [ebp], esi
jae 0x10010f08
mov ecx, dword [esp + 0x14]
push ecx
mov ebx, 0xea
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x18
test ebx, ebx
jne 0x10010fd6
test edi, edi
je 0x10010fd3
mov ecx, dword [ebp]
push ecx
push ebx
push edi
call fcn.1001c3e0
push 0xa4
inc esi
push 0x10031ca8
push esi
mov dword [esp + 0x30], esi
call fcn.10010cb0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10010fba
mov edx, dword [esp + 0x18]
push edx
push ebx
push esi
call fcn.1001c3e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push esi
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x10010f93
mov ecx, dword [ebp]
push ecx
push eax
push edi
call fcn.1001c3e0
mov edx, dword [esp + 0x24]
push edx
push esi
push edi
call fcn.1001c060
mov eax, dword [esp + 0x30]
add esp, 0x18
mov dword [ebp], eax
push 0xb5
push 0x10031ca8
push esi
call fcn.10010ce0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x18
mov ecx, dword [esp + 0x14]
push ecx
mov ebx, 0x7a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x18
mov dword [ebp], esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x18