joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460890
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x23
je 0x4608d3
cmp edi, 0x1a
je 0x4608d3
push 0x576bd0
mov ecx, esi
call fcn.004597f0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0051d250
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x46093c
xor eax, eax
push eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x576bd0
mov ecx, esi
mov word [esi + 4], ax
call fcn.0044fc50
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov edi, 7
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 0
mov word [ebp - 0x224], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460963
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.0044fc50
push 0x11
push str.360TotalSecurity
lea ecx, [ebp - 0x228]
call fcn.00451500
cmp byte [ebp + 0x10], 0
jne 0x4609e8
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x228]
push ecx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], 0
mov ecx, esi
mov word [esi + 4], ax
call fcn.0044f8b0
cmp dword [ebp - 0x210], 8
jb 0x460a22
mov edx, dword [ebp - 0x224]
push edx
call fcn.0051d230
add esp, 4
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x228]
push eax
call fcn.004da3d0
add esp, 4
test al, al
je 0x460a0b
lea ecx, [ebp - 0x228]
push ecx
mov ecx, esi
call fcn.00455700
jmp 0x460a17
push 0x576bd0
mov ecx, esi
call fcn.004597f0
lea ecx, [ebp - 0x228]
call fcn.00449950
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret

Function at 0x464350
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 5
push 0xffffffffffffffff
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x4643b0
mov edx, dword [ebp - 4]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464384
mov ecx, dword [ebp + 8]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.0044fc50
mov edx, dword [ebp - 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x464490
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0044b360
mov eax, dword [ebp + 8]
test eax, eax
je 0x4645a5
push esi
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4645a4
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x41c], 0
mov word [ebp - 0x20c], ax
call fcn.0051d250
add esp, 0xc
lea edx, [ebp - 0x41c]
push edx
push 4
lea eax, [ebp - 0x418]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x464543
mov edx, dword [ebp - 0x418]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x464543
lea eax, [ebp - 0x20c]
jmp 0x464595
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.00436930
test eax, eax
je 0x46459d
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.0051d250
push 0x104
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call fcn.00438e20
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.00459860
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor ecx, ecx
cmp ecx, dword [edi + 0x14]
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
pop edi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret

Function at 0x466d70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 1
mov dword [ebp - 0x214], 0x104
mov word [ebp - 0x20c], ax
call fcn.0051d250
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
push ecx
push str.Path
push 0x5602b0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, esi
test eax, eax
je 0x466e19
xor edx, edx
push edx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x576bd0
mov word [esi + 4], dx
call fcn.0044fc50
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x210], 1
je 0x466e29
push 0x576bd0
jmp 0x466e30
lea eax, [ebp - 0x20c]
push eax
call fcn.004597f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x484b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
cmp dword [eax - 0xc], 0
mov dword [ebp - 0xc], esi
jne 0x484bac
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x34]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x484ba5
cmp dword [ebp - 0x18], 0
jne 0x484bd1
mov edx, dword [esi + 0x18c]
shl edx, 0x14
cmp dword [ebp - 0x14], edx
jb 0x484ba5
mov eax, dword [esi + 0x20]
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x10000000
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x484c26
call fcn.00414c40
test eax, eax
jne 0x484c1e
push 2
push 0
push 0xfffb5000
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x484c2d
test edi, edi
je 0x484c1e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x484bfe
push ebx
push 0x5995a6
push 0x4b000
call fcn.0051f00a
mov ebx, eax
add esp, 8
lea ecx, [ebp - 4]
test ebx, ebx
je 0x484d02
push 0x4b000
push ebx
call fcn.0041a920
test eax, eax
jne 0x484ce7
push 0x4b000
push ebx
mov ecx, esi
call fcn.0043a770
mov esi, eax
test esi, esi
je 0x484ce4
mov eax, ebx
sub eax, esi
add eax, 0x4b000
mov dword [ebp - 8], eax
je 0x484ce4
push 0
push 0
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x484ce4
mov edx, dword [ebp - 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x484cb2
call fcn.00414c40
test eax, eax
jne 0x484ce4
mov eax, dword [ebp - 8]
add eax, 0x64
push 0
push eax
lea ecx, [ebp - 4]
call fcn.0041aa10
test eax, eax
jne 0x484ce4
push ebx
call fcn.0051d538
add esp, 4
lea ecx, [ebp - 4]
call fcn.00438c80
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
push ebx
call fcn.0051d538
add esp, 4
lea ecx, [ebp - 4]
call fcn.004150e0
mov ecx, esi
call fcn.004841f0
lea ecx, [ebp - 4]
call fcn.00438c80
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bfb70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push eax
mov bl, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4bfbcc
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfbb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov edx, dword [0x599458]
mov eax, dword [edx + 0xc]
push edi
mov ecx, 0x599458
call eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x258]
add eax, 0x10
push str._s________.log
push edx
mov dword [ebp - 0x258], eax
call fcn.0044ff30
mov ecx, dword [ebp - 0x258]
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4bfcbf
lea ecx, [ecx]
push esi
lea edx, [ebp - 0x228]
push edx
push 0x560120
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x260]
push ecx
call fcn.0044f400
add esp, 0xc
push eax
lea edx, [ebp - 0x25c]
push edx
call fcn.0044f400
add esp, 0xc
push eax
call fcn.004bf900
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x25c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfc80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x254]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4bfc20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
movzx esi, bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x4bfce5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bfd04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x4ce230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
test ebx, ebx
je 0x4ce2de
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ce2de
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4ce2de
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
push edi
add eax, 0x10
push ebx
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push str._s_s
push eax
call fcn.004a19c0
mov edx, dword [ebp + 0x10]
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 4]
push eax
push esi
mov esi, dword [ebp + 0x14]
push esi
push ecx
mov bl, 1
mov dword [ebp - 4], 0
mov dword [ebp - 8], 8
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4ce2b7
cmp dword [ebp - 4], 0xb
je 0x4ce2b9
xor bl, bl
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ce2d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ce2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
test ebx, ebx
je 0x4ce39f
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ce39f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4ce39f
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
push edi
add eax, 0x10
push ebx
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push str._s_s
push eax
call fcn.004a19c0
mov edx, dword [ebp + 0x10]
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
push edx
lea eax, [ebp - 4]
push eax
push esi
mov esi, dword [ebp + 0x14]
push esi
push SysReAllocString
mov bl, 1
mov dword [ebp - 4], 0
mov dword [ebp - 8], 8
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4ce378
cmp dword [ebp - 4], 0xb
je 0x4ce37a
xor bl, bl
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ce396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ce460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
test esi, esi
je 0x4ce519
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ce519
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4ce519
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
push edi
add eax, 0x10
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str._s_s
push eax
call fcn.004a19c0
mov edi, dword [ebp + 0x1c]
add esp, 0x10
lea ecx, [ebp + 0x18]
push ecx
push esi
push edi
mov dword [ebp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4ce4db
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x18], 0
mov esi, dword [ebp - 4]
push 8
lea eax, [ebp + 0x10]
push eax
push 0xb
push ebx
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
lea eax, [esi - 0x10]
sete bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ce510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ce530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
test esi, esi
je 0x4ce5e8
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ce5e8
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4ce5e8
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
push edi
add eax, 0x10
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str._s_s
push eax
call fcn.004a19c0
add esp, 0x10
lea ecx, [ebp + 0x18]
push ecx
push esi
xor edi, edi
push SysReAllocString
mov dword [ebp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4ce5a6
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x18], edi
mov esi, dword [ebp - 4]
push 8
lea eax, [ebp + 0x10]
push eax
push 0xb
push ebx
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
lea eax, [esi - 0x10]
sete bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ce5df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ce600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
je 0x4ce687
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4ce687
cmp dword [ebp + 0xc], 0
je 0x4ce687
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4ce687
mov esi, dword [ebp + 0x14]
cmp dword [esi], 0
je 0x4ce687
lea ecx, [ebp - 4]
call fcn.00443d40
mov eax, dword [ebp + 0x18]
push ebx
push eax
lea ecx, [ebp - 4]
push str._s_s
push ecx
call fcn.004a19c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add esp, 0x10
push esi
push edi
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
push edx
mov bl, 1
mov dword [ebp - 8], 0
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4ce674
cmp dword [ebp - 8], 3
je 0x4ce676
xor bl, bl
lea ecx, [ebp - 4]
call fcn.00443d90
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ce690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
test esi, esi
je 0x4ce74b
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ce74b
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4ce74b
mov eax, dword [0x599458]
mov edx, dword [eax + 0xc]
mov ecx, 0x599458
call edx
push edi
add eax, 0x10
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str._s_s
push eax
call fcn.004a19c0
mov edi, dword [ebp + 0x1c]
add esp, 0x10
lea ecx, [ebp + 0x18]
push ecx
push esi
push edi
mov dword [ebp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4ce70b
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
push eax
push ecx
push 3
push ebx
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
lea eax, [esi - 0x10]
sete bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4ce742
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418fe0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4317f0
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x43d100]
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 ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x436230
push str.kernel32.dll
push ebx
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x45c], 0
call fcn.00416b60
push edx
push eax
push ebx
call fcn.00416e80
mov ecx, dword [0x43e310]
mov dword [ebp - 0x458], eax
or eax, edx
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0xffffffff
mov dword [ebp - 0x448], ecx
jne 0x41912c
test ebx, ebx
mov eax, ebx
cmove eax, dword [0x43e30c]
push eax
call dword [0x432364]
push eax
push 0x18
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4190f2
push 0x424
lea eax, [ebp - 0x434]
mov dword [ebp - 0x438], 0x428
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4190eb
lea eax, [ebp - 0x418]
push str.kernel32.dll
push eax
call sub.msvcrt.dll__wcsicmp
add esp, 8
test eax, eax
je 0x41914f
lea eax, [ebp - 0x438]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4190c2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movlpd qword [ebp - 0x440], xmm0
mov eax, dword [ebp - 0x440]
mov edx, dword [ebp - 0x43c]
push 0x436230
push edx
push eax
push ebx
call fcn.00417310
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], edx
mov dword [ebp - 0x448], 0
cmp dword [edi + 0x14], 7
mov dword [ebp - 4], 0
jbe 0x41913b
mov edi, dword [edi]
push edi
lea ecx, [ebp - 0x460]
call fcn.00412210
or eax, edx
je 0x41915f
mov bl, 1
jmp 0x419161
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x41c]
cdq
jmp 0x419109
xor bl, bl
mov esi, dword [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4191a7
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
mov dword [ebp - 4], 1
je 0x41919c
cmp dword [esi], 0
je 0x41919c
push 0x4000
push dword [esi + 0x10]
push ecx
push edx
push dword [esi + 4]
call fcn.00419360
push 0x18
push esi
call fcn.0042053f
add esp, 8
mov al, bl
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.0042074a
mov esp, ebp
pop ebp
ret
Function at 0x42b5b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0041f090
mov esi, dword [ebp + 8]
test al, al
je 0x42b5ce
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0042b5e0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x42b710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b76c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b76c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b76c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b76c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b76c
cmp dword [ecx + 0xe8], 0
je 0x42b76c
push dword [ebp + 8]
call fcn.0042b5e0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x2a6ed78
call fcn.0042b3c0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b7a1
push dword [ebp + 8]
call fcn.0042b5b0
mov esp, ebp
pop ebp
ret

Function at 0x42b7e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42b83c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b83c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b83c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42b83c
cmp dword [ecx + 0x74], 0xe
jbe 0x42b83c
cmp dword [ecx + 0xe8], 0
je 0x42b83c
push dword [ebp + 8]
call fcn.0042b5e0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x2a6ed78
call fcn.0042b3c0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x42b871
push dword [ebp + 8]
call fcn.0042b5b0
mov esp, ebp
pop ebp
ret

Function at 0x42fe70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42fe9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42fe9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx