joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
test al, 7
jne 0x402ee8
cmp dword [esp + 0x34], 1
je 0x402e8c
mov ecx, edi
lea edi, [edi + eax]
mov edx, ebp
mov dword [esp + 0x14], edi
mov ebp, ecx
test eax, eax
je 0x402e82
lea esi, [esi]
nop
mov eax, dword [esp + 0x30]
mov esi, dword [ebp]
mov dword [esp + 0x3c], edx
mov edi, dword [ebp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 4], ebp
mov dword [esp], eax
call sym._mbedtls_des3_crypt_ecb
test eax, eax
jne 0x402e84
mov edx, dword [esp + 0x3c]
lea esi, [esi]
lea esi, [esi]
movzx ecx, byte [edx + eax]
xor byte [ebx + eax], cl
add eax, 1
cmp eax, 8
jne 0x402e60
mov eax, dword [esp + 0x14]
add ebp, 8
mov dword [edx], esi
add ebx, 8
mov dword [edx + 4], edi
cmp ebp, eax
jne 0x402e30
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebx + eax]
test eax, eax
je 0x402e82
mov eax, esi
mov esi, ebp
mov ebp, eax
lea esi, [esi]
xor ecx, ecx
lea esi, [esi]
movzx eax, byte [edi + ecx]
xor al, byte [esi + ecx]
mov byte [ebx + ecx], al
add ecx, 1
cmp ecx, 8
jne 0x402ea8
mov eax, dword [esp + 0x30]
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._mbedtls_des3_crypt_ecb
test eax, eax
jne 0x402e84
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
add ebx, 8
add edi, 8
mov dword [esi], eax
mov dword [esi + 4], edx
cmp ebx, ebp
jne 0x402ea0
jmp 0x402e82
mov eax, 0xffffffce
jmp 0x402e84

Function at 0x404620
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x404680
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x411068]
test esi, esi
jle 0x4047a0
mov eax, dword [0x41106c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4046b4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x404737
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4046a0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4047c7
mov eax, dword [0x41106c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x41106c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4047a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x404730
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x404740
add dword [0x411068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x41106c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x404730
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4046be
mov eax, dword [0x41106c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x404ce0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x411084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x41107c]
sub esp, 4
test ebx, ebx
je 0x404d35
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x404d2e
test esi, esi
je 0x404d2e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x404d10
mov dword [esp], 0x411084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405070
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x405095
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4050a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x405095
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4050e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4050de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4050ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4050d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10001410
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x1000b00c]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push esi
push edi
push 0x800
lea eax, [esp + 0x24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, esi
lea edi, [esp + 0x20]
cdq
mov esi, eax
mov ebx, edx
mov ax, word [esp + 0x20]
shld ebx, esi, 0x14
shl esi, 0x14
test ax, ax
je 0x10001500
movzx ecx, ax
nop word [eax + eax]
mov eax, dword [0x1000883c]
mov dword [esp + 0x18], eax
mov eax, dword [0x10008840]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov word [esp + 0x1c], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x100014d6
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [esp + 0x24]
movlpd qword [esp + 0x1c], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100014d6
cmp dword [esp + 0x14], ebx
ja 0x10001517
jb 0x100014d6
cmp dword [esp + 0x10], esi
ja 0x10001517
mov eax, edi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100014e0
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x10001480
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.10006713
mov esp, ebp
pop ebp
ret
mov ax, word [edi]
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10006713
mov esp, ebp
pop ebp
ret
Function at 0x10003cd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007a3a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1000b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.10003500
mov ecx, eax
test ecx, ecx
je 0x10003e95
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.10003500
mov ecx, eax
test ecx, ecx
je 0x10003e9f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.10003500
mov ecx, eax
test ecx, ecx
je 0x10003ea9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x10003db2
xor ecx, ecx
jmp 0x10003dd0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003dc0
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10002850
push edi
mov ecx, ebx
call fcn.10003f90
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x10003dec
xor ecx, ecx
jmp 0x10003e04
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003df4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.10002850
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.10004aa0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.10003f90
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10003e45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x10003e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10003e7f
cmp dword [esi + 0x10], 0
je 0x10003e76
push dword [edi]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.100032e0
push 0x80004005
call fcn.100032e0
push 0x80004005
call fcn.100032e0
int3
Function at 0x100055b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10005609
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10005609
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100055fa
cmp esi, edx
jae 0x10005609
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100055e8
cmp esi, edx
jae 0x10005609
cmp word [esi], 0
je 0x10005609
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x402fb0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
xor eax, eax
mov ecx, 0x41
mov edi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40302b
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x24]
push str.ProgramFilesDir
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
mov byte [esi + 0x104], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
jne 0x40304c
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Program_Files
push esi
mov byte [esi + 2], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
add esp, 8
ret 4

Function at 0x403370
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 0x403389
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40339d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4033be
cmp esi, eax
jae 0x403397
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4033b0
cmp esi, eax
jae 0x403397
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4038c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x42b48c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov esi, ecx
mov dword [esp + 0x120], eax
mov eax, dword [esi + 8]
push edi
xor edi, edi
cmp eax, edi
je 0x4038f8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
mov dword [esp + 0x14], edi
xor eax, eax
test ebx, ebx
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x403919
mov edi, ebx
jmp 0x403921
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax*4 + 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.USER32.dll_CharUpperA]
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [edi], 0
jne 0x40396a
lea edx, [esp + 0x18]
mov dword [esp + 0x10], edx
jmp 0x40396e
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea edi, [esi + 4]
push edi
push 0
push 0
push ecx
mov ecx, esi
call fcn.00403620
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
lea ecx, [eax + edx*4 + 4]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 8], eax
jne 0x4039c2
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi]
lea edx, [esp + 0x14]
push edx
push edi
lea edx, [eax + ecx*4]
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.00403620
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x124]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 4
Function at 0x403fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x42b48c]
push ebx
mov ebx, dword [0x426814]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x426810]
lea edx, [esp + 0x10]
push edx
push 0x20019
xor eax, ebp
push 0
mov dword [esp + 0x148], eax
mov eax, dword [0x426808]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x42680c]
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocString
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4040d4
mov byte [esp + 0x30], al
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4040ae
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.00403df0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, esi
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebx
jmp 0x4040e9
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 4
Function at 0x404110
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x42b48c]
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, ebp
push esi
push edi
mov dword [esp + 0x13c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 0x10]
mov byte [esp + 0x30], 0
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, dword [ebp + 8]
mov eax, ebx
shr eax, 0x10
movzx ecx, ah
push ecx
movzx eax, al
push eax
movzx ecx, bh
push ecx
movzx eax, bl
push eax
mov eax, edx
mov ecx, edx
shr ecx, 0x18
push ecx
shr eax, 0x10
movzx eax, al
push eax
movzx eax, word [esp + 0x36]
movzx ecx, dh
push ecx
movzx ecx, word [esp + 0x38]
mov dword [esp + 0x3c], edx
movzx edx, dl
push edx
push eax
push ecx
push esi
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x60]
push 0x104
push edx
mov dword [esp + 0x5c], ebx
call fcn.0041668e
add esp, 0x38
lea eax, [esp + 0x10]
push eax
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4041f9
lea ecx, [esp + 0x10]
push ecx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4041f9
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x30]
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x10]
inc eax
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push esi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40422c
xor esi, esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x13c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404250
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4042be
push esi
lea ecx, [esp + 0xc]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x28]
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x404304
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 2
jbe 0x40430f
mov byte [edi + 2], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4042d0
mov edx, dword [str.Program_Files]
mov dword [edi], edx
mov eax, dword [0x42475c]
mov dword [edi + 4], eax
mov ecx, dword [0x424760]
mov dword [edi + 8], ecx
mov dx, word [0x424764]
mov word [edi + 0xc], dx
mov al, byte [0x424766]
mov byte [edi + 0xe], al
pop edi
mov eax, 1
pop ebp
add esp, 8
ret
pop edi
xor eax, eax
pop ebp
add esp, 8
ret
Function at 0x405160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x42b48c]
xor eax, ebp
mov dword [esp + 0x120], eax
xor eax, eax
cmp edx, eax
push edi
je 0x40525f
cmp esi, eax
je 0x40525f
mov byte [esp + 0x18], al
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push str.SOFTWARERising_s
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x104
push eax
mov dword [esp + 0x20], 1
call fcn.004047a0
add esp, 0x10
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40523e
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.datapath
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405210
sub eax, edx
mov dword [esp + 0x14], eax
je 0x405233
cmp ebx, 0x7fffffff
ja 0x405233
push 0x424408
push ebx
push esi
call fcn.004047d0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405243
sub eax, edx
pop edi
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.00415d1a
mov esp, ebp
pop ebp
ret
Function at 0x405280
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x42b48c]
xor eax, ebp
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or ebx, 0xffffffff
test esi, esi
mov dword [esp + 0x14], esi
stosb byte es:[edi], al
je 0x40538b
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052d4
sub eax, edi
cmp eax, 2
jb 0x40538b
cmp byte [esi + 1], 0x3a
jne 0x40531d
lea eax, [esp + 0x18]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
mov cl, byte [esi + eax]
test cl, cl
je 0x405313
mov byte [eax], cl
inc eax
dec edx
jne 0x405300
dec eax
mov byte [eax], 0
jmp 0x40535d
test edx, edx
jne 0x405318
dec eax
mov byte [eax], 0
jmp 0x40535d
mov ebx, 0x104
lea esi, [esp + 0x18]
call fcn.00405160
mov ecx, ebx
mov eax, esi
nop
cmp byte [eax], 0
je 0x40533b
inc eax
dec ecx
jne 0x405330
jmp 0x40535d
test ecx, ecx
je 0x40535d
mov edx, dword [esp + 0x14]
mov eax, 0x104
sub eax, ecx
push edx
mov ecx, 0x104
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x20]
push edx
call fcn.004033d0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret