joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412400
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x423c14]
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], eax
mov ax, word [0x423c18]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
lea edi, [ebx + 2]
mov dword [ebp - 0x10], 0x43
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x18], eax
lea esi, [ebx + 0x43]
mov ecx, edi
mov eax, 1
shl eax, cl
inc edi
test dword [ebp - 0x18], eax
je 0x4124cd
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], si
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4124cd
mov ecx, esi
call fcn.00412120
test al, al
jne 0x4124cd
mov ecx, esi
call fcn.00412220
test al, al
je 0x4124cd
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4124cd
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
jb 0x4124cd
mov eax, dword [ebp - 0x20]
ja 0x4124c0
cmp eax, dword [ebp - 0x14]
jbe 0x4124cd
movzx edx, si
mov ebx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
jmp 0x4124d0
mov edx, dword [ebp - 0x10]
inc esi
cmp si, 0x5a
jbe 0x412453
mov ebx, dword [ebp - 0x24]
xor eax, eax
mov word [ebp - 0xc], dx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0xc], ax
jne 0x4124ff
xor ecx, ecx
jmp 0x412514
lea ecx, [ebp - 0xc]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412505
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xc]
mov ecx, ebx
push eax
call fcn.00406520
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
Function at 0x412c90
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420b29
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x42b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00411c60
mov ecx, eax
test ecx, ecx
jne 0x412cde
push 0x80004005
call fcn.00412060
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x105
mov dword [ebp - 0x10], 1
or ecx, eax
jge 0x412d16
push 0x105
mov ecx, esi
call fcn.00409cf0
mov ecx, dword [esi]
cmp dword [ecx - 8], 0x105
jge 0x412d2b
push 0x80070057
call fcn.00412060
push 1
mov dword [ecx - 0xc], 0x105
xor edx, edx
mov eax, dword [esi]
push 0x23
push ecx
push edx
mov word [eax + 0x20a], dx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
test eax, eax
jne 0x412d53
xor ecx, ecx
jmp 0x412d66
push dword [eax - 8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x412d21
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x412d21
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x412d9b
lea eax, [ecx - 1]
test eax, eax
js 0x412d21
cmp eax, ecx
jg 0x412d21
cmp word [edx + eax*2], 0x5c
je 0x412d9b
push ecx
mov ecx, esi
call fcn.004144c0
push 0x1c
push str.TencentTxGameAssistantLog_
mov ecx, esi
call fcn.00414cb0
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412dbf
push eax
push dword [esi]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413470
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420cb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x42c060], 0
je 0x413614
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [0x42c4a0]
cmp eax, 0x927c0
jb 0x413614
cmp dword [0x42c050], 0x400000
jg 0x413614
mov esi, 0x800000
mov ebx, 0x42c050
lock xadd dword [ebx], esi
cmp esi, 0x400000
je 0x413512
test esi, esi
je 0x413512
cmp esi, 0x400000
jle 0x4134fa
mov eax, 0xff800000
jmp 0x413610
lea eax, [esi - 1]
cmp eax, 0x3ffffe
ja 0x413614
mov eax, 0xffc00000
jmp 0x413610
call edi
cmp dword [0x42b028], 0xffffffff
mov dword [0x42c4a0], eax
je 0x413609
mov ecx, 0x42c068
call fcn.00413420
test edx, edx
jb 0x413609
ja 0x413546
cmp eax, dword [0x42b028]
jb 0x413609
push 0x42c068
lea ecx, [ebp - 0x10]
call fcn.00405cb0
push 0x423ec0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00414520
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x42c060]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
mov dword [0x42c060], 0
push 0x42c068
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push 2
sub esp, 8
push 0x42c068
call fcn.00412890
test eax, eax
js 0x4135f7
sub esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.004128f0
cmp byte [0x42c064], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [0x42c060], eax
je 0x413601
push str.NewFile
push 0
push 0
call fcn.00413ab0
add esp, 0xc
jmp 0x413601
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x413601
push eax
call edi
lea ecx, [ebp - 0x10]
call fcn.00405c90
mov eax, 0xff800000
sub eax, esi
lock xadd dword [ebx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4138d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420d40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00411c60
mov ecx, eax
test ecx, ecx
jne 0x41390d
push 0x80004005
call fcn.00412060
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x10]
push str.:__Tid_d_
push eax
call fcn.00414e50
mov ebx, dword [ebp + 8]
add esp, 0xc
push 2
push ecx
mov ecx, ebx
call fcn.00414bf0
lea ecx, [ebp - 0x20]
call fcn.00413360
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00414020
add esp, 4
push ebx
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00414020
add esp, 4
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [eax]
mov edi, dword [ebx]
sub edi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4139c7
cmp dword [edi + 0xc], 0
jl 0x4139bc
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4139bc
call fcn.00414810
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4139b5
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4139c7
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.00414870
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4139e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413a03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413a21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00413470
cmp dword [0x42c050], 0x400000
jge 0x413a72
mov eax, 1
lock xadd dword [0x42c050], eax
inc eax
cmp eax, 0x400000
jge 0x413a6b
mov ecx, dword [0x42c060]
test ecx, ecx
je 0x413a6b
mov eax, dword [ebx]
lea edx, [ebp - 0x14]
push 0
push edx
mov dword [ebp - 0x14], 0
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lock dec dword [0x42c050]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x413a91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413d50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420df8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x42b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00411c60
mov ecx, eax
test ecx, ecx
jne 0x413d8a
push 0x80004005
call fcn.00412060
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
jge 0x413dc0
push 0x105
lea ecx, [ebp - 0x10]
call fcn.00409cf0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x105
jge 0x413dd3
push 0x80070057
call fcn.00412060
xor eax, eax
mov dword [esi - 0xc], 0x105
push eax
push 0x23
push esi
push eax
mov word [esi + 0x20a], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
mov edi, eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x413dc9
cmp eax, dword [esi - 8]
jg 0x413dc9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x413e90
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x413e90
lea eax, [ecx - 1]
test eax, eax
js 0x413dc9
cmp eax, ecx
jg 0x413dc9
cmp word [esi + eax*2], 0x5c
je 0x413e35
push ecx
lea ecx, [ebp - 0x10]
call fcn.004144c0
push 0x28
push str.TencentQQPCMgrTAVWfsDBTrojanLogEx.dll
lea ecx, [ebp - 0x10]
call fcn.00414cb0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413e59
mov edi, 0x80004002
jmp 0x413e95
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x413e89
push str.fnTrojanLogAssert
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x42c058], eax
mov eax, 0x42c05c
xchg dword [eax], edi
test edi, edi
je 0x413e89
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, 0x80004005
jmp 0x413e95
mov edi, 0x80070057
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413eb4
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x2c], esi
call fcn.004058f0
mov ecx, eax
call fcn.004013f0
cmp dword [eax + 0x14], 8
jb 0x415d33
mov eax, dword [eax]
push 0x2001f
push eax
push 0x80000002
lea ecx, [ebp - 0x40]
call fcn.00411ef0
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x415d5a
inc eax
push eax
push dword [ebp - 0x28]
call fcn.004078f0
test edi, edi
mov edi, dword [ebp - 0x40]
jne 0x415d98
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.AutoStart
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415d98
cmp dword [ebp - 0x34], 4
jne 0x415d98
cmp dword [ebp - 0x2c], 0
mov eax, 1
cmovne esi, eax
test edi, edi
je 0x415da3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret

Function at 0x415ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x42b014]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
lea eax, [esp + 4]
mov byte [esp + 0x38], 0
push eax
push 0x20019
push 0
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
push ecx
push 0x80000002
mov esi, edx
movlpd qword [esp + 0x1c], xmm0
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x3c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415f5b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x20
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push str.Version
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415f51
cmp byte [esp + 0x18], al
jne 0x415f26
xor ecx, ecx
jmp 0x415f39
lea ecx, [esp + 0x18]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415f30
sub ecx, edx
push ecx
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004067b0
lea edx, [esp + 8]
mov ecx, esi
call fcn.00415dc0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop esi
xor ecx, esp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
Function at 0x416870
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.0041ede0
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x218]
mov dword [ebp - 0x1228], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1218]
push 0x1000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x121c], 0
lea eax, [ebp - 0x121c]
mov dword [ebp - 0x1224], 0
push eax
push 0x1000
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x41697d
mov edi, dword [ebp - 0x121c]
xor esi, esi
shr edi, 2
test edi, edi
je 0x41697d
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsupr_s]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1220], 0
lea eax, [ebp - 0x1220]
lea edx, [ebp - 0x218]
push eax
push ecx
mov ecx, dword [ebp + esi*4 - 0x1218]
call fcn.004169d0
add esp, 8
test eax, eax
je 0x416978
lea eax, [ebp - 0x218]
push 0x105
push eax
call ebx
lea eax, [ebp - 0x218]
push str.EXPLORER.EXE
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 0x10
test eax, eax
jne 0x416990
inc esi
cmp esi, edi
jb 0x416910
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1224]
push eax
push dword [ebp - 0x1220]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x41697d
mov ecx, dword [ebp - 0x1228]
mov eax, dword [ebp - 0x1224]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
Function at 0x4169d0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
push edi
push str.ZwQueryInformationProcess
xor esi, esi
mov dword [ebp - 0x28], edx
push str.ntdll.dll
mov ebx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
xor edi, edi
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x416a89
push ebx
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x416a89
push edi
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
call dword [ebp - 0x20]
test eax, eax
jne 0x416a79
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
test ecx, ecx
je 0x416a4c
mov dword [ecx], eax
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x416a79
push 0x104
push dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
mov ecx, 1
cmovne esi, ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
test edi, edi
je 0x416a89
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
Function at 0x418fa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42143b
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x41915e
cmp dword [esi + 0xa8], 0
jne 0x41915e
lea edi, [esi + 0x58]
mov dword [ebp - 0x134], 1
push edi
mov dword [ebp - 0x138], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x20], 0
mov dword [ebp - 4], 0
je 0x419157
push str.RtlGetVersion
push 0x422968
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x128]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
test eax, eax
je 0x419063
lea ecx, [ebp - 0x12c]
push ecx
call eax
test eax, eax
je 0x4190b9
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4190b9
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4190b9
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov word [eax + 0x30], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x32], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x36], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x34], cx
jmp 0x4190ee
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x128]
mov word [ecx + 0x30], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x124]
mov word [ecx + 0x32], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x18]
mov word [ecx + 0x36], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x120]
mov word [ecx + 0x34], ax
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
push str.GetNativeSystemInfo
push 0x425f54
movups xmmword [ebp - 0x15c], xmm0
movups xmmword [ebp - 0x14c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41912f
lea ecx, [ebp - 0x15c]
push ecx
call eax
jmp 0x41913c
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esi + 0x20]
mov ax, word [ebp - 0x15c]
mov word [ecx + 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x3a], ax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
Function at 0x4193d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
push 0
push eax
mov dword [ebp - 0x214], 0
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0041a730
add esp, 0x14
lea eax, [ebp - 0x210]
push str.dr.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp - 0x210]
jne 0x41946b
push 0x104
push eax
call fcn.0041e040
add esp, 8
test eax, eax
je 0x41946e
push str.dr.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
jmp 0x419473
push 0x4223c0
mov ecx, esi
call fcn.00405b10
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret 4
Function at 0x41ca70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebx + 0x10]
mov dword [ebp - 4], ebx
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], esi
mov ebx, 1
mov dword [ebp + 0xc], eax
push dword [ebp + 0x14]
xor eax, eax
mov ecx, esi
push dword [ebp + 0x10]
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.0041ecf0
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x41ca93
mov ebx, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx], 0x138
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41ccd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42193d
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x42b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x234], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41cd37
mov eax, dword [esi]
jmp 0x41cd39
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
push 0x20019
push 0x422fb0
push 0x80000001
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.00411ef0
mov edi, dword [ebp - 0x230]
test eax, eax
jne 0x41ce3e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0x422fec
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ce3e
mov eax, dword [ebp - 0x224]
cmp eax, 1
je 0x41cde0
cmp eax, 2
jne 0x41ce3e
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41ce04
test al, 1
jne 0x41ce3e
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
jne 0x41ce3e
mov dx, word [ebp - 0x218]
jmp 0x41ce0d
xor edx, edx
mov word [ebp - 0x218], dx
lea ecx, [ebp - 0x218]
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ce16
sub ecx, ebx
sar ecx, 1
je 0x41ce3e
xor eax, eax
test dx, dx
cmove ecx, eax
lea eax, [ebp - 0x218]
push ecx
push eax
mov ecx, esi
call fcn.00406520
test edi, edi
je 0x41ce49
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret