joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410e80
Capabilities:
Read .ini file

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

Function at 0x410ea0
Capabilities:
Read .ini file

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

Function at 0x41144d
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
push ebx
push ebp
push esi
mov eax, dword [eax + 0xc]
push edi
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x14]
mov edi, eax
mov dword [esp + 0x1c], eax
mov esi, dword [edi + 0x10]
mov edi, dword [edi]
test esi, esi
je 0x4114be
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
test ebx, ebx
je 0x4114be
mov ecx, dword [ebx + esi + 0xc]
add ecx, esi
call fcn.0041142b
mov dword [esp + 0x10], eax
xor ebp, ebp
mov eax, dword [ebx + esi + 0x20]
add eax, esi
mov dword [esp + 0x18], eax
cmp dword [ebx + esi + 0x18], ebp
jbe 0x4114be
mov ecx, dword [eax + ebp*4]
add ecx, esi
call fcn.0041142b
add eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
je 0x4114ce
mov eax, dword [esp + 0x18]
inc ebp
cmp ebp, dword [ebx + esi + 0x18]
jb 0x41149f
cmp edi, dword [esp + 0x1c]
jne 0x41146a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [ebx + esi + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
add eax, esi
jmp 0x4114c6
Function at 0x413580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x42f4cc]
xor eax, ebp
push ebx
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x20], bl
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.WININET.DLL
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x413641
push 0x104
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x413641
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x413641
push edi
call fcn.004199c4
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x413638
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x428428
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x413658
push esi
call fcn.00419a1e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str.MSIE__d._d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.00419a1e
mov ecx, dword [esp + 0x140]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret
Function at 0x4136a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x42f4cc]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x41370e
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
jne 0x41370e
mov byte [esi], al
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x41378d
dec eax
je 0x413738
dec eax
jne 0x41379c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
push str.Windows_NT__d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x41379c
cmp dword [esp + 0xc], 4
jne 0x41379c
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x413761
push str.Windows_95
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x41379c
cmp dword [esp + 0x10], 0xa
jne 0x41377c
push str.Windows_98
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x41379c
cmp dword [esp + 0x10], 0x5a
jne 0x41379c
push str.Windows_Me
push esi
call edi
jmp 0x413799
push str.Windows
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [esp + 0xac]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004199fa
mov esp, ebp
pop ebp
ret
Function at 0x4137c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x42f4cc]
xor eax, ebp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x413823
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x413823
push esi
call edi
cmp eax, 0x104
jbe 0x41383a
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
push 0x103
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x41385d
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x41388b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.0041a681
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x4138dc
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esi], 0
call edi
and ebx, eax
jne 0x4138c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4138c7
mov ebx, 1
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.0041a681
mov esi, eax
add esp, 8
test esi, esi
jne 0x4138a2
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call edi
and ebx, eax
jne 0x4138fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4138fe
mov ebx, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret
Function at 0x414250
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42701e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x42f4cc]
push ebx
push esi
mov esi, ecx
xor eax, ebp
mov dword [esp + 0x220], eax
mov dword [esi], 0x42a568
mov eax, dword [0x430588]
push edi
mov ecx, 0x430588
mov dword [esp + 0xc], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [0x430588]
xor ebx, ebx
mov ecx, 0x430588
mov dword [esp + 0x234], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x234], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov edx, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x234], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x234], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov edx, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x234], 4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x234], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x3c], eax
mov edx, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x234], 6
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x40], eax
mov eax, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x234], 7
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x4c], eax
mov byte [esp + 0x234], 8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x44], ebx
mov byte [esp + 0x118], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x118]
push 0x104
push ecx
mov word [esi + 0x18], 0x50
mov word [esi + 0x30], bx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
stosb byte es:[edi], al
call fcn.00413580
mov byte [esp + 0x18], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push 0x104
push edx
stosb byte es:[edi], al
call fcn.004136a0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x12c]
push ecx
lea eax, [esi + 0x10]
push str.Mozilla_4.0__compatible___s___s__Rising_
push eax
call fcn.0040c120
mov ecx, dword [esp + 0x24c]
add esp, 0x20
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret
Function at 0x415f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x42f4cc]
xor eax, ebp
mov dword [esp + 0x11c], eax
xor eax, eax
push esi
mov esi, ecx
mov byte [esi], al
mov ecx, dword [0x42a634]
mov edx, dword [0x42a638]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [str.SOFTWARERising_]
mov dword [esp + 0x14], eax
mov eax, dword [0x42a63c]
mov dword [esp + 0x18], ecx
mov cl, byte [0x42a640]
push edi
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], cl
mov dword [esp + 0x20], edx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x29]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edx
call edi
mov ecx, 0x105
sub ecx, eax
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
call edi
lea eax, [esp + eax + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
lea edx, [esp + 0x24]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4160bc
mov edx, dword [esp + 0xc]
lea eax, [ebp + 8]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.installpath
push edx
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x416097
push 0x5c
push esi
call fcn.0041a78f
add esp, 8
test eax, eax
je 0x416071
mov cl, byte [eax + 1]
test cl, cl
jne 0x416071
mov byte [eax], 0
mov eax, dword [esp + 0xc]
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.004199fa
mov esp, ebp
pop ebp
ret

Function at 0x4178e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDCAA2D3B2_4BB5_4a45_A17A_122773379D99
push SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x417949
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x24], eax
call edi
test eax, eax
jne 0x417948
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x18], eax
mov esi, eax
jb 0x417948
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push edx
call edi
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x417958
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x418350
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x42f4cc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x26c], eax
mov esi, ecx
xor eax, eax
mov ecx, 0x26
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x9c
call ebx
test eax, eax
je 0x4183b7
movzx ecx, word [esp + 0xa4]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
jmp 0x418401
xor eax, eax
lea edx, [esp + 0xb0]
mov ecx, 0x24
lea edi, [esp + 0xb4]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0xb4], 0x94
call ebx
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
xor eax, eax
push str.RtlGetVersion
mov ecx, 0x46
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
push str.ntdll.dll
mov dword [esp + 0x150], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x41845b
lea ecx, [esp + 0x148]
push ecx
call eax
test eax, eax
jne 0x41845b
mov edx, dword [esp + 0x14c]
mov eax, dword [esp + 0x150]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov ecx, 1
cmp eax, ecx
jne 0x41846a
mov dword [esi + 0x14], ecx
cmp eax, 2
jne 0x418478
cmp dword [esi + 0xc], 4
jne 0x418478
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0xc]
cmp eax, 6
jne 0x4184a9
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x41848c
mov dword [esi + 0x1c], ecx
jmp 0x4184b1
cmp eax, ecx
jne 0x418495
mov dword [esi + 0x20], ecx
jmp 0x4184b1
cmp eax, 2
jne 0x41849f
mov dword [esi + 0x24], ecx
jmp 0x4184b1
cmp eax, 3
jne 0x4184b1
mov dword [esi + 0x28], ecx
jmp 0x4184b1
cmp eax, 0xa
jne 0x4184b1
mov dword [esi + 0x2c], ecx
push str.IsWow64Process
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
mov edi, eax
test edi, edi
je 0x4184d7
add esi, 0x30
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret
Function at 0x418550
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4272d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x42f4cc]
xor eax, esp
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], eax
call fcn.00417ae0
mov eax, dword [0x430588]
mov ecx, 0x430588
mov dword [esp + 0x140], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x140], 1
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x10]
push 0x428d80
push ecx
mov byte [esp + 0x14c], 2
call fcn.0040c120
mov edx, dword [esi + 0x10]
push edx
lea eax, [esp + 0x20]
push 0x428d80
push eax
call fcn.0040c120
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
add esp, 0x18
push esi
push edi
push 0x428d90
push 0x428d90
push 0x428d90
push 0x428d90
push str.IsWin10OS
lea ecx, [esp + 0x30]
call fcn.004182f0
mov ebp, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x140], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418644
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x140], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x140], 0xffffffff
call fcn.00417ba0
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004199fa
add esp, 0x138
ret

Function at 0x4187b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x42f4cc]
push edi
xor eax, ebp
push str.isExistReg....begin
push 0x80
mov dword [esp + 0x124], eax
call fcn.00409a50
add esp, 8
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.Software_risinglockie
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418879
mov byte [esp + 0x10], al
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0
push str.RapUrl
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418879
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.isExistReg....success_end
push 0x80
call fcn.00409a50
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.004199fa
mov esp, ebp
pop ebp
ret
push str.isExistReg....failed
push 0x80
call fcn.00409a50
mov ecx, dword [esp + 0x124]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004199fa
mov esp, ebp
pop ebp
ret
Function at 0x4188a0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [esp + 0x14]
jne 0x418911
mov eax, dword [esp + 8]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
pop ebp
je 0x418936
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 2
jbe 0x418943
cmp esi, 0x7fffffff
mov byte [edi + 2], 0
ja 0x418936
push str.Program_Files
push esi
push edi
call fcn.00403430
pop edi
mov eax, 1
pop esi
add esp, 8
ret 8
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x41b3a4
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42ae20
call fcn.0041bcd0
push 8
call fcn.0041c103
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4305f0], esi
jne 0x41b3d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4305ec], esi
mov al, byte [ebp + 0x10]
mov byte [0x4305e8], al
cmp dword [ebp + 0xc], edi
jne 0x41b422
cmp dword [0x431f74], edi
je 0x41b412
mov eax, dword [0x431f70]
sub eax, 4
mov dword [0x431f70], eax
cmp eax, dword [0x431f74]
jb 0x41b412
mov eax, dword [eax]
cmp eax, edi
je 0x41b3f3
call eax
jmp 0x41b3f3
push 0x42f050
mov eax, 0x42f048
call fcn.0041b322
pop ecx
push 0x42f05c
mov eax, 0x42f054
call fcn.0041b322
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.0041b453
cmp dword [ebp + 0x10], edi
jne 0x41b461
mov dword [0x4305f0], esi
push dword [ebp + 8]
call fcn.0041b2e0
xor edi, edi
xor esi, esi
inc esi
call fcn.0041bd0b
ret

Function at 0x41b4a7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041add0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b542
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4305b0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41b542
cmp eax, 1
je 0x41b563
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41b542
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41b50f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41b53e
xor eax, eax
inc eax
jmp 0x41b582
cmp edi, eax
jae 0x41b546
xor eax, eax
jmp 0x41b582
cmp eax, esi
jae 0x41b54d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4305b0]
jmp 0x41b566
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41b8a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41b8c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041ef3b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41b8e3
test byte [esp + 8], 2
je 0x41b8e3
call fcn.0041ef29
mov dword [eax], 0xd
call fcn.0041ef32
mov dword [eax], 5
jmp 0x41b8bc
xor eax, eax
ret