joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403090
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42ae98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.0041e1de
mov dword [esp + 0x30], 0
mov dword [esi], method.CImageList.virtual_0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d890
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], 1
and eax, 0xffff
push eax
push 0
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0xc]
call fcn.00426000
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 1
push 0
push 0x11
mov dword [esi + 0xc], ecx
push ecx
push eax
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0041e270
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
mov edx, dword [esi + 4]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov dword [esp + 8], vtable.CGdiObject.0
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
call fcn.00426057
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 8

Function at 0x403c20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42aff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x403cca
mov eax, dword [0x439b90]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.00423a28
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00423a77
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004239d4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x403cb1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x403cb1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x64], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004236d2
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x403ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x403d42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x403f50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x404042
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocString
mov ecx, edi
call fcn.00403ce0
test eax, eax
jne 0x404042
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push SysReAllocString
mov ecx, edi
call fcn.00403ce0
test eax, eax
jne 0x404042
lea edx, [esp + 0x10]
push 0x4394ac
push edx
call fcn.00410620
mov esi, eax
add esp, 8
test esi, esi
jne 0x404013
lea eax, [esp + 0x10]
push 0x4394a8
push eax
call fcn.004105a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x404013
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x404016
mov byte [esi], 0
push 0x4394a4
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x405f20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42b858
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
mov edi, dword [esp + 0x70]
mov esi, ecx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405f60
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
add esp, 0x64
ret 0x10
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x2c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
lea ecx, [esp + 0x50]
lea edx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x7c]
mov edx, dword [esi]
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x74], 0
call dword [edx + 0xc]
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 0x10

Function at 0x408450
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [esp + 0x18]
push edi
xor ebx, ebx
lea edi, [esi + 0x10]
mov dword [esp + 0x10], ebx
push edi
mov dword [esp + 0x18], ebx
call ebp
mov edx, dword [esi + 8]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x24], ebx
je 0x408546
push edi
call ebp
mov edx, dword [esi + 8]
lea ebx, [esi + 0x40]
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4084f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov dword [esp + 0x10], eax
je 0x4084cf
push str.ReadFile__
jmp 0x4084ea
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push 1
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4084f1
push str.GetOverlappedResults___in_ReadFile__
mov ecx, esi
call fcn.00408310
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x88]
mov ecx, dword [esi + 0x84]
and eax, 0xff
push edx
push eax
mov edx, dword [ecx + 0x1c]
push 0x407
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call ebp
mov edx, dword [esi + 8]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call ebx
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x408496
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x415001
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43add8
cmp edx, dword [eax]
je 0x415023
add eax, 8
inc ecx
cmp eax, 0x43ae68
jl 0x415014
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43add8]
jne 0x415151
mov eax, dword [0x43dc74]
cmp eax, 1
je 0x41512b
test eax, eax
jne 0x415054
cmp dword [0x43a794], 1
je 0x41512b
cmp edx, 0xfc
je 0x415151
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41508b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416130
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413ca0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4150ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413ca0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x430fb0
push edi
call fcn.004178f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416130
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416140
lea eax, [ebp - 0xa0]
push 0x430f90
push eax
call fcn.00416140
push dword [esi + 0x43addc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416140
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00417864
add esp, 0x2c
pop edi
jmp 0x415151
lea eax, [ebp + 8]
lea esi, [esi + 0x43addc]
push 0
push eax
push dword [esi]
call fcn.00413ca0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41cca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00411470
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41cd6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41cd6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41cd1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41cd29
or bh, 8
and edi, 0x8000000
je 0x41cd44
mov eax, dword [0x43f41c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41cd6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41d16b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41d18f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41d1aa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d362
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00413049
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41d385
test byte [esp + 8], 2
je 0x41d385
call fcn.004130bc
mov dword [eax], 0xd
call fcn.004130c5
mov dword [eax], 5
jmp 0x41d35e
xor eax, eax
ret
Function at 0x420ea1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420ed9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00423a9f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00423a77
jmp 0x420ee5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x422444
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x422486
call fcn.00427ad6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x422486
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42247d
xor eax, eax
jmp 0x42248e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00422494
pop edi
pop esi
pop ebx
ret 4

Function at 0x426335
Capabilities:
Set registry value

Disassembly:
mov eax, 0x42c1e0
call fcn.00410914
push ecx
push ecx
push esi
push 0x10
call fcn.00422bd9
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x426382
mov ecx, esi
call fcn.0042472b
mov eax, dword [0x439b90]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.0042385b
jmp 0x426384
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x435218
push eax
mov dword [ebp - 0x10], esi
call fcn.004104a2
pop esi

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x40915c
mov ecx, 0x27da18d3
nop
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x61e26921
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x40141d
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 1
push eax
and edi, 0x300
mov eax, edi
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.004069c6
test eax, eax
jne 0x40152f
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401492
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40150b
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
push dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
call ebp
test eax, eax
jne 0x4014e0
test esi, esi
jne 0x40150b
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141d
test eax, eax
jne 0x4014e0
push 0x105
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014b1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00407295
test eax, eax
jne 0x40151c
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40152f
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x40152f
push 0
push edi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403787
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x4037b0
mov eax, dword [0x46f5b8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40c014]
mov dword [0x420154], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403608
test eax, eax
js 0x403886
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40c014]
call fcn.004072f7
test eax, eax
je 0x403881
push dword [ebp + 8]
add dword [0x420154], 4
call fcn.00403608
mov esi, eax
test esi, esi
js 0x40387d
cmp dword [ebp + 0x10], edi
jne 0x403851
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x40387d
mov ebx, 0x4000
mov edi, 0x4281f8
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40c014]
mov dword [ebp - 4], eax
call fcn.004072f7
test eax, eax
je 0x403881
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.004073ba
test eax, eax
je 0x40384d
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x420154], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x403809
jmp 0x40387d
push 0xfffffffffffffffe
jmp 0x403883
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40c014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403881
mov esi, dword [ebp - 4]
add dword [0x420154], esi
mov eax, esi
jmp 0x403884
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x4038a9
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [ebp + 8], 0
je 0x4038d1
mov eax, dword [0x420168]
test eax, eax
je 0x4038c8
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x420168], 0
leave
ret
cmp dword [0x420168], 0
je 0x4038e3
push 0
call fcn.004068fd
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x46f560]
jbe 0x40394d
cmp dword [0x467558], 0
je 0x403928
test byte [0x46f654], 1
je 0x40394d
call fcn.0040388b
push eax
lea eax, [ebp - 0x80]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0
call fcn.0040643d
leave
ret
push 0
push 0x403c07
push 0
push 0x6f
push dword [0x467554]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x420168], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x406521
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40653b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x406892
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
cmp eax, esi
pop esi
cmovbe ecx, eax
lea eax, [ebp - 0x23c]
lea eax, [eax + ecx*2]
test ecx, ecx
je 0x4068d0
cmp word [eax - 2], 0x5c
mov ecx, 0x4098b4
jne 0x4068d5
mov ecx, 0x4098b6
push dword [ebp + 8]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40692b
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40694e
push dword [esp + 8]
push dword [esp + 8]
call fcn.004069f4
pop ecx
pop ecx
inc dword [0x46f630]
ret 8

Function at 0x4069f4
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x45ce80], 0x55004e
mov ebp, 0x45ce80
mov dword [0x45ce84], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x406a4a
push 1
push 0
push esi
call fcn.004072ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406b2a
cmp eax, ebx
jg 0x406b2a
push ebx
mov esi, 0x45c680
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406b2a
cmp eax, ebx
jg 0x406b2a
push esi
push ebp
push str._ls_ls_r_n
push 0x45c280
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x46f570]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.0040659c
push 4
push 0xc0000000
push esi
call fcn.004072ca
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406b2a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 0xa]
add ecx, ebp
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406b23
push esi
push edi
push ebx
call fcn.004072f7
test eax, eax
je 0x406b23
push str._Rename__r_n
push edi
call fcn.004074e5
test eax, eax
jne 0x406b2f
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x45c280
lea eax, [ecx + edi]
push eax
call fcn.00407009
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.004073ba
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40a374
add eax, 0xa
push eax
call fcn.004074e5
mov ecx, eax
test ecx, ecx
je 0x406af4
lea edx, [edi + esi]
jmp 0x406b4e
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406b48
sub ecx, edi
inc ecx
jmp 0x406af6