joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x1c
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push ebp
push esi
push edi
push 0x314
push 5
push 1
push str._d._d._d
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
xor esi, esi
call fcn.004044e0
add esp, 0x10
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x402166
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x31f
push 5
push 0x1000
push str._d._d._d._d
call fcn.004044e0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x1c
ret
push edi
call fcn.0040b381
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402195
push 0x327
push 5
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
xor edi, edi
jmp 0x402275
push ebp
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x4021cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x333
push 5
push 0x1000
push str._d._d._d._d
call fcn.004044e0
add esp, 0x14
jmp 0x402275
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push eax
push 0x423640
push ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
cmp esi, edi
jne 0x402211
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x341
push 5
push 0x1000
push str._d._d._d._d
call fcn.004044e0
add esp, 0x14
jmp 0x402275
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp eax, edi
je 0x402222
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x40222f
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push str.VarFileInfoTranslation
push ebp
mov dword [esp + 0x28], edi
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
cmp esi, edi
jne 0x402270
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x35b
push 5
push 0x1000
push str._d._d._d._d
call fcn.004044e0
add esp, 0x14
jmp 0x402275
mov esi, 1
cmp ebp, edi
je 0x402282
push ebp
call fcn.0040b44b
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.0040b0a0
add esp, 0x1c
ret
Function at 0x403480
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
push 0x3d
push 0xb
push 1
push str._d._d._d
call fcn.004044e0
add esp, 0x10
lea eax, [esp + 8]
push eax
push 0x423644
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4034c8
push 0x45
push 0xb
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
xor eax, eax
add esp, 0x24
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0x20
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40351c
push 0x52
push 0xb
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
xor eax, eax
add esp, 0x24
ret
mov edx, dword [esp + 4]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x403554
push 0x5c
push 0xb
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
xor eax, eax
add esp, 0x24
ret
mov eax, 1
add esp, 0x24
ret

Function at 0x403630
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0xe3
push 0xc
push 1
push str._d._d._d
mov edi, eax
call fcn.004044e0
add esp, 0x10
test edi, edi
je 0x40368c
test ebx, ebx
je 0x40368c
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x42367c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
jne 0x403695
push 0xf3
push 0xc
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4036a0
sub eax, edx
push 4
sar eax, 1
push 0x1000
lea eax, [eax + eax + 2]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4036d1
push 0xfc
jmp 0x403678
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4036d6
sub eax, edx
push 0
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push esi
push ebp
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x403727
push 0x108
push 0xc
push 0x1000
push str._d._d._d
call fcn.004044e0
add esp, 0x10
jmp 0x403742
lea edx, [esp + 0x10]
push edx
push edi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp dword [esp + 0x10], 0
je 0x40368c
push 0x11e
push 0xc
push 0x10
push str._d._d._d
call fcn.004044e0
mov eax, dword [esp + 0x20]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x403780
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareTencentQQBrowserLaunch
push SysReAllocStringLen
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4037cb
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push str.LaunchOpenPageType
push eax
push edx
mov dword [esp + 0x1c], 2
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [esp]
test eax, eax
je 0x4037d9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 8
ret
Function at 0x403ce0
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x298
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x294], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push 0x4295c0
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x403e8d
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0x80000
jbe 0x403e22
cmp eax, 0xffffffff
je 0x403e22
push esi
call ebp
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x9e]
push ecx
mov word [esp + 0xa0], ax
call fcn.004120b0
add esp, 0xc
push 0x105
push 0x4295c0
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0x94]
push 0x2e
push eax
call fcn.0040b59e
add esp, 8
test eax, eax
je 0x403d97
xor ecx, ecx
mov word [eax], cx
mov ecx, 0x20a
lea eax, [esp + 0x94]
cmp word [eax], 0
je 0x403db3
add eax, 2
sub ecx, 1
jne 0x403da3
jmp 0x403dd6
test ecx, ecx
je 0x403dd6
mov eax, 0x20a
sub eax, ecx
mov edx, 0x20a
sub edx, eax
lea ecx, [esp + eax*2 + 0x94]
mov eax, str..2.dat
call fcn.00403370
push 0x80
lea edx, [esp + 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x94]
push ecx
push 0x4295c0
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
push 0x4295c0
call edi
mov esi, eax
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 3
lea edx, [esp + 0x18]
push ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], edx
call fcn.004045a0
mov edx, dword [esp + 0x10]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e54
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, edi
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
cmp eax, edx
je 0x403e82
push eax
call fcn.0040b44b
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call ebp
pop ebp
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
xor ecx, esp
call fcn.0040b0a0
add esp, 0x298
ret
Function at 0x403eb0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x424
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x420], eax
push edi
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x222]
push ecx
xor edi, edi
mov word [esp + 0x224], ax
call fcn.004120b0
xor edx, edx
push 0x208
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004120b0
mov eax, dword [0x4297cc]
add esp, 0x18
test eax, eax
jne 0x403f13
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4297cc], eax
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404066
push esi
push 0
lea edx, [esp + 0x14]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40407e
push ebp
push esi
call fcn.0040b381
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40404c
push ebp
push esi
push 0
lea eax, [esp + 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x404029
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x423640
push ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
cmp esi, edi
je 0x404029
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
mov eax, 0x105
lea edi, [esp + 0x234]
call fcn.00403420
add esp, 0x14
mov ecx, 0x104
mov eax, ebx
cmp word [eax], 0
je 0x403fe2
add eax, 2
sub ecx, 1
jne 0x403fd2
jmp 0x404024
test ecx, ecx
je 0x404024
mov eax, 0x104
sub eax, ecx
mov edx, 0x104
sub edx, eax
lea eax, [ebx + eax*2]
je 0x404024
lea esi, [esp + 0x220]
sub esi, eax
movzx ecx, word [esi + eax]
test cx, cx
je 0x404018
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x404002
jmp 0x40401c
test edx, edx
jne 0x40401f
sub eax, 2
xor edx, edx
mov word [eax], dx
mov esi, 1
push ebp
call fcn.0040b44b
add esp, 4
pop ebp
mov eax, esi
pop esi
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x424
ret
pop ebp
pop esi
mov eax, edi
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x424
ret
mov eax, edi
pop edi
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x424
ret
mov ecx, dword [esp + 0x428]
pop esi
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040b0a0
add esp, 0x424
ret
Function at 0x4040a0
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
sub esp, 0x61c
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x618], eax
push 0x105
push 0x4295c0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4040df
xor al, al
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x61c
ret
push edi
push str.4657C1B0_4595_4005_A55C_7AC73D8A31B4
mov edx, 0x105
mov edi, 0x4295c0
call fcn.004033c0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call fcn.004120b0
add esp, 0xc
push 0x104
lea edx, [esp + 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404163
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.004120b0
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x40417b
xor al, al
pop edi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x61c
ret
push ebx
push 0
push 0x4295c0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push 0x4295c0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x423640
mov edx, 0x105
mov edi, 0x4295c0
call fcn.004033c0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, 0x105
call fcn.004033c0
push 0x4238a8
mov edx, 0x105
call fcn.004033c0
push 0x4238ac
mov edx, 0x105
call fcn.004033c0
push 0x4238a8
mov edx, 0x105
call fcn.004033c0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x422]
push eax
mov word [esp + 0x424], dx
call fcn.004120b0
add esp, 0xc
lea ebx, [esp + 0x418]
call fcn.00403eb0
mov ecx, ebx
push ecx
mov edx, 0x105
call fcn.004033c0
push str..dat
mov edx, 0x105
call fcn.004033c0
mov ecx, dword [esp + 0x620]
pop ebx
pop edi
xor ecx, esp
mov al, 1
call fcn.0040b0a0
add esp, 0x61c
ret

Function at 0x404950
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 SysReAllocStringLen
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4049b9
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], esi
call edi
test eax, eax
jne 0x4049b8
mov esi, dword [esp + 0xc]
cmp esi, 0x104
ja 0x4049b8
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 0x4049c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x404f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x42134c]
push esi
push edi
mov esi, edx
mov dword [esi], eax
mov edi, ecx
mov ecx, dword [0x421350]
mov dword [esi + 4], ecx
mov edx, dword [0x421354]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
mov dword [esi + 8], edx
mov eax, dword [0x421358]
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esi + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404fcd
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.004120b0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404fc2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x26
jne 0x404fc2
lea edi, [esp + 0x18]
call fcn.00404dc0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b0a0
add esp, 0x224
ret
Function at 0x404ff0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x234]
push ebx
mov ebx, dword [esp + 0x234]
push ebp
mov ebp, dword [esp + 0x22c]
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x238]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2e]
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
call fcn.004120b0
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
push ecx
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
push edx
mov eax, ebx
shr eax, 0x18
push eax
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
push edx
mov eax, ebx
shr eax, 8
movzx ecx, al
push ecx
movzx edx, bl
push edx
mov eax, esi
shr eax, 0x10
push eax
movzx ecx, si
push ecx
push edi
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x60]
push 0x104
push edx
call fcn.0040ba10
add esp, 0x44
lea eax, [esp + 0x10]
push eax
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4050da
lea ecx, [esp + 0x10]
push ecx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4050da
xor eax, eax
jmp 0x405125
lea eax, [esp + 0x24]
mov esi, 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4050e6
mov ecx, dword [ebp + 0x10]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x405118
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b0a0
add esp, 0x220
ret 0x14
Function at 0x405140
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x420140
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427074]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
xor edi, edi
push 0x208
mov esi, ecx
lea edx, [esp + 0x2a]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov word [esp + 0x30], cx
call fcn.004120b0
add esp, 0xc
cmp esi, edi
je 0x4051c4
cmp word [esi], di
je 0x4051c4
push 0x105
push esi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x405226
push 0x105
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x24]
push 0x5c
push edx
call fcn.0040b59e
add esp, 8
cmp eax, edi
je 0x4051ee
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x20a
lea eax, [esp + 0x24]
cmp word [eax], di
je 0x405206
add eax, 2
sub ecx, 1
jne 0x4051f7
jmp 0x405226
cmp ecx, edi
je 0x405226
mov eax, 0x20a
sub eax, ecx
mov edx, 0x20a
sub edx, eax
lea ecx, [esp + eax*2 + 0x24]
mov eax, 0x423a94
call fcn.00403370
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x405365
push edi
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.0040bb71
push esi
mov ebp, eax
push edi
push ebp
call fcn.004120b0
push esi
call fcn.0040bb71
push esi
mov edi, eax
push 0
push edi
call fcn.004120b0
add esp, 0x20
test ebp, ebp
je 0x405354
test edi, edi
je 0x405354
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405354
push edi
mov eax, ebp
mov ecx, esi
call fcn.00409230
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
push str._nSN
push edi
call fcn.0040bb80
push str._nID
push edi
call fcn.0040bb80
push str._nACTIONID
push edi
call fcn.0040bb80
add esp, 0x18
test eax, eax
je 0x405332
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x405332
add eax, 0xa
xor ebx, ebx
cmp byte [eax], bl
je 0x40532e
sub ecx, eax
mov esi, eax
mov dword [esp + 0x14], ecx
movsx edx, byte [esi]
push edx
push str._r_n_b
call fcn.0040bc20
add esp, 8
test eax, eax
jne 0x40532a
cmp ebx, 0x20
jge 0x40532a
mov al, byte [esi]
mov ecx, dword [esp + 0x14]
mov byte [ecx + esi], al
inc esi
inc ebx
cmp byte [esi], 0
jne 0x405300
mov ecx, dword [esp + 0x18]
mov byte [ecx + ebx], 0
push str._nTITLE
push edi
call fcn.0040bb80
push ebp
mov dword [esp + 0x20], 1
call fcn.0040b956
push edi
call fcn.0040b956
add esp, 0x10
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x405367
mov eax, edi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x22c
ret
Function at 0x4062a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
mov ebp, dword [esp + 0x228]
push esi
push edi
xor ecx, ecx
mov word [ebx], cx
mov ecx, 8
mov esi, str.SOFTWARERising_
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x1e8
push eax
lea edx, [esp + 0x46]
push edx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
movsw word es:[edi], word [esi]
call fcn.004120b0
lea eax, [esp + 0x28]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406301
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x1c]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406320
mov ecx, 0x20a
sub ecx, edx
sub eax, esi
push ecx
sar eax, 1
push ebp
lea edx, [esp + eax*2 + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0xc]
push eax
mov esi, 1
push esi
push 0
lea ecx, [esp + 0x28]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4063f6
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push str.installpath
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4063cd
push 0x5c
push ebx
call fcn.0040b59e
add esp, 8
test eax, eax
je 0x4063d1
cmp word [eax + 2], 0
jne 0x4063d1
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x220
ret
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x220
ret
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040b0a0
add esp, 0x220
ret

Function at 0x406420
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.004120b0
add esp, 0xc
push 0x208
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x40647b
lea eax, [esp]
push 0x5c
push eax
call fcn.0040b59e
add esp, 8
test eax, eax
je 0x40647b
xor ecx, ecx
mov word [eax], cx
push edi
push str.NetConfig.ini
mov edx, 0x104
lea edi, [esp + 8]
call fcn.004033c0
mov edx, edi
push edx
push 0x104
push esi
push 0x423cbc
push 0x423d04
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x4064c9
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040b0a0
add esp, 0x20c
ret
push 0x2e
push esi
call fcn.0040bf66
add esp, 8
test eax, eax
je 0x4064dd
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040b0a0
add esp, 0x20c
ret