joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402161
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4021a0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4021a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4021a0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4021a0
cmp dword [ecx + 0x74], 0xe
jbe 0x4021a0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406a19
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x414014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406a64
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406c36
test al, al
jne 0x406a5e
sub edx, 2
cmp edx, edi
jne 0x406a44
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406a86
lea eax, [edi + 2]
cmp edx, eax
je 0x406a86
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406965
add esp, 0x10
jmp 0x406b80
push esi
lea ecx, [ebp - 0x255]
call fcn.00406c36
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406ac9
push dword [ebp - 0x25c]
jmp 0x406a76
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406b06
cmp word [ebp - 0x226], 0
je 0x406b27
cmp word [ebp - 0x226], ax
jne 0x406b06
cmp word [ebp - 0x224], 0
je 0x406b27
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406965
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406b73
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406ae0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x406b5b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406b80
push 0x406795
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004097e0
add esp, 0x10
jmp 0x406b50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040192b
leave
ret

Function at 0x4086b3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffac
push 0x40ffa4
push 0x40ebd4
push 0x1f
call fcn.004085ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4086e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e104]
call esi
jmp 0x4086ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x408731
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffbc
push 0x40ffb4
push 0x40ebf8
push 0x21
call fcn.004085ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408768
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e104]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408770
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffc4
push 0x40ffbc
push 0x40ec0c
push 0x22
call fcn.004085ee
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4087aa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e104]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d500
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d52d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d52d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404f21
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xorps xmm0, xmm0
lea ecx, [ebp - 4]
xor edx, edx
movlpd qword [ebp - 0x14], xmm0
call fcn.0040dc79
cmp eax, 1
jne 0x404f82
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0xb
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 8
push eax
lea eax, [ebp - 0xc]
mov edx, 0x30bfd0fa
push eax
push 0
push 0x4c53b028
mov ecx, 0x679058e
call fcn.00401674
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x407a1d
Capabilities:
Terminate thread

Disassembly:
push dword [0x52ab10]
mov dword [0x52aa34], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x52aba0]
test ecx, ecx
je 0x407a42
call fcn.00407e5f
push 0x2710
push dword [0x52ab0c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407a68
push 0
push dword [0x52ab0c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x52ab0c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov ecx, fcn.00407fe4
jmp fcn.0040807d

Function at 0x407e19
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x407dfd
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407e57
push eax
call edi
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi]
call edi
pop edi
pop esi
pop ecx
ret
Function at 0x40818a
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x72c
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x728], eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov edi, edx
push 0x35
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, 0x7f01
mov esi, eax
call fcn.00408114
push eax
push 1
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov eax, 0x3e8
push eax
push eax
push ebp
call dword [sym.imp.USER32.dll_SetTimer]
push 0x3c
push 0xffffffffffffffeb
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov al, byte [edi + 0x6a]
mov ecx, edi
mov esi, dword [edi + 0x74]
mov byte [esp + 0x13], al
call fcn.004256b7
mov ebx, eax
cmp esi, 0x20
je 0x408363
cmp esi, 0x1a
je 0x408363
cmp esi, 0x21
jne 0x408266
mov ecx, dword [0x52aa50]
lea eax, [esp + 0x20]
mov esi, 0x104
push esi
push eax
push 0x1b
call fcn.0042126e
test eax, eax
jne 0x40824e
movzx edx, word [0x51f8c0]
lea eax, [esp + 0x20]
push esi
push eax
xor edx, 0x9191
mov ecx, 0x51f8c2
call fcn.00412903
pop ecx
pop ecx
mov ecx, dword [0x52aa58]
lea eax, [esp + 0x228]
push eax
call fcn.0040df75
jmp 0x4083b3
push 0
push 4
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x52aa50]
mov eax, ebx
shr eax, 0x14
and ebx, 0xfffff
mov dword [esp + 0x14], eax
mov esi, 0x104
movzx eax, bl
mov edi, ebx
mov dword [esp + 0x1c], eax
mov ebp, ebx
push esi
lea eax, [esp + 0x24]
shr edi, 0x10
push eax
shr ebp, 8
and edi, 0xf
push 0x1c
and ebp, 0xff
call fcn.0042126e
test eax, eax
jne 0x4082dc
movzx edx, word [0x51f8ee]
lea eax, [esp + 0x20]
push esi
push eax
xor edx, 0x9191
mov ecx, 0x51f8f0
call fcn.00412903
pop ecx
pop ecx
push dword [esp + 0x14]
mov edx, 0xdf11fdeb
mov ecx, 0x28b4e195
push 0x9fe279fb
call fcn.00401330
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
push eax
lea eax, [esp + 0x230]
push eax
call esi
add esp, 0xc
lea eax, [esp + eax*2 + 0x228]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x40833d
push dword [esp + 0x1c]
mov edx, 0x7c5679b3
mov ecx, 0x8bf365c5
push ebp
push edi
push 0x3ca5fdae
call fcn.00401330
pop ecx
push eax
push dword [esp + 0x24]
call esi
add esp, 0x14
lea eax, [esp + 0x228]
push eax
movzx eax, byte [esp + 0x17]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x43c]
push eax
call esi
mov ebp, dword [esp + 0x28]
add esp, 0x10
jmp 0x4083d1
mov ecx, dword [0x52aa50]
lea eax, [esp + 0x20]
mov esi, 0x104
push esi
push eax
push 0x1a
call fcn.0042126e
test eax, eax
jne 0x40839e
movzx edx, word [0x51f880]
lea eax, [esp + 0x20]
push esi
push eax
xor edx, 0x9191
mov ecx, 0x51f882
call fcn.00412903
pop ecx
pop ecx
mov ecx, dword [0x52aa58]
lea eax, [esp + 0x228]
push 0
push eax
call fcn.0040ddbd
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x438]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x430]
push eax
push 0x32
push ebp
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [esp + 0x738]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x72c
ret
Function at 0x408cef
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], edx
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov esi, eax
mov dword [esp + 0x18], 0x30
push 0xa
xor eax, eax
mov dword [esp + 0x20], 0x43
pop ecx
lea edi, [esp + 0x20]
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [0x52aa50]
mov edi, eax
mov ebp, 0x110
lea eax, [esp + 0x48]
push ebp
push eax
push 0x2a
call fcn.0042126e
test eax, eax
jne 0x408d7f
movzx edx, word [0x51fa24]
lea eax, [esp + 0x48]
push ebp
push eax
xor edx, 0x9191
mov ecx, 0x51fa26
call fcn.00412903
pop ecx
pop ecx
and dword [esp + 0x24], 0
lea eax, [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_InsertMenuItemW]
xor ecx, ecx
push eax
inc ecx
push ecx
push 0xffffffffffffffff
push edi
mov dword [esp + 0x38], ecx
call ebp
mov ecx, dword [0x52aa50]
lea eax, [esp + 0x48]
push 0x110
push eax
push 0x6a
call fcn.0042126e
test eax, eax
jne 0x408dda
movzx edx, word [0x520318]
lea eax, [esp + 0x48]
push 0x110
push eax
xor edx, 0x9191
mov ecx, 0x52031a
call fcn.00412903
pop ecx
pop ecx
and dword [esp + 0x24], 0
lea eax, [esp + 0x18]
push eax
push 1
push 0xffffffffffffffff
push edi
mov dword [esp + 0x38], 2
call ebp
movsx eax, word [esp + 0x16]
xor ebp, ebp
push ebp
push ebx
push ebp
push eax
movsx eax, si
push eax
push 0x180
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp esi, 1
jne 0x408e2c
mov edx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0040a67d
jmp 0x408ecf
cmp esi, 2
jne 0x408ecf
push 0xfe1870e3
mov edx, 0x56aab0a0
mov ecx, 0xdad6df4c
call fcn.004013ab
lea edx, [esp + 0x4c]
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x408e50
lea eax, [esp + 0x58]
push eax
call fcn.0042c99a
pop ecx
mov esi, eax
mov edx, 0x907a15fa
mov eax, dword [esp + 0x10]
movzx ecx, ax
push ecx
push 0x38c8d5bb
mov ecx, 0x1c067a2a
call fcn.004013ab
pop ecx
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x48]
mov edx, 0xf7bc5868
mov ecx, 0x7bc0375c
push 1
push ebp
push eax
push 0x5f0e982b
call fcn.004013ab
pop ecx
push eax
push 0x9166169a
mov edx, 0x39d4d6d5
mov ecx, 0xb5a8b9ed
call fcn.004013ab
pop ecx
push eax
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x264
ret
Function at 0x408ee8
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x108
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, 0xaea4f333
push 0xdf1ce210
mov ecx, 0xffe0c01c
call fcn.00401485
pop ecx
lea edx, [esp + 0x14]
push 2
sub edx, eax
pop ebp
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebp
test cx, cx
jne 0x408f20
lea esi, [esp + 0x14]
xor ebx, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, ebp
cmp ax, bx
jne 0x408f37
sub esi, ecx
mov edx, 0xcf4bfb88
push 0xbef3ea92
mov ecx, 0x9e0fc8cb
sar esi, 1
call fcn.00401485
lea edx, [esp + 0x18]
lea edx, [edx + esi*2]
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebp
test cx, cx
jne 0x408f63
test edi, edi
je 0x40903e
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40904e
push 0x80
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebp
cmp ax, bx
jne 0x408fae
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push ebx
push dword [esp + 0x24]
call esi
lea eax, [esp + 0x14]
push 0x5c
push eax
call fcn.004bb2a8
pop ecx
pop ecx
test eax, eax
je 0x409032
xor ecx, ecx
mov word [eax + 2], cx
lea ecx, [esp + 0x14]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, ebp
cmp ax, bx
jne 0x408ff8
sub ecx, edx
mov edx, 0xb268d93d
sar ecx, 1
lea eax, [ecx*2 + 2]
mov ecx, 0xe32cea94
push eax
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push 0xc3d0c82e
call fcn.00401485
pop ecx
push eax
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40904e
lea eax, [esp + 0x14]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x108
ret
Function at 0x409067
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov edx, 0xbff7ecd2
mov ecx, 0xeeb3df37
push esi
push eax
push 1
xor esi, esi
push esi
push 0xce4ffd8a
call fcn.00401485
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4090a3
xor eax, eax
jmp 0x409146
lea eax, [ebp - 4]
mov edx, 0x43279ad
push eax
push esi
lea eax, [ebp - 0xc]
mov ecx, 0x55764bea
push eax
push esi
push 0x758a68b6
call fcn.00401485
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40913b
cmp dword [ebp - 4], esi
jbe 0x40913b
push edi
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov edx, 0x78005b2c
lea eax, [ebp - 4]
mov ecx, 0x29446987
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push 0x9b84a37
call fcn.00401485
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40913a
jmp 0x409130
push 0x4ef5ec
push edi
call fcn.004baea8
pop ecx
pop ecx
test eax, eax
je 0x409137
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], si
jne 0x409112
jmp 0x40913a
xor esi, esi
inc esi
pop edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40914b
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x424
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push ebp
push esi
push edi
mov ebx, 0x4ef5ec
mov edx, 0x5287c180
push ebx
push 0x233fd08e
mov ecx, 0x3c3f30f
xor edi, edi
call fcn.00401485
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
push eax
lea eax, [esp + 0x230]
push eax
call esi
add esp, 0xc
mov edx, 0x9b0333b8
mov ecx, 0xca470145
push ebx
push 0xeabb228b
call fcn.00401485
pop ecx
push eax
lea eax, [esp + 0x28]
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x14]
xor ebp, ebp
inc ebp
push eax
push ebp
push edi
lea eax, [esp + 0x2c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40927c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x208
push eax
lea eax, [esp + 0x24]
mov edx, 0x126755b8
push eax
lea eax, [esp + 0x20]
mov ecx, 0x43236489
push eax
push edi
push 0x63df44a4
call fcn.00401485
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop ecx
push eax
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x409272
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004baea8
pop ecx
pop ecx
test eax, eax
jne 0x409272
push 4
pop ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
lea eax, [esp + 0x20]
mov edx, 0x7ce96a52
push eax
lea eax, [esp + 0x20]
mov ecx, 0x2dad5b49
push eax
push edi
push 0xd517b42
call fcn.00401485
pop ecx
push eax
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x409272
cmp dword [esp + 0x18], ebx
jne 0x409272
cmp dword [esp + 0x1c], 3
cmove edi, ebp
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x430]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x424
ret
Function at 0x409297
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0x20c
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov ebx, 0x4ef5ec
mov esi, ecx
push ebx
push 0xc31e2f6b
mov edx, 0xb2a63e58
mov ecx, 0xe3e20f35
call fcn.00401485
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
push eax
lea eax, [esp + 0x1c]
push eax
call edi
add esp, 0xc
test esi, esi
je 0x409422
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x409304
xor eax, eax
jmp 0x409437
push ebp
push ebx
push 0x21e321e0
mov edx, 0x505b30ee
mov ecx, 0x11f014f
call fcn.00401485
pop ecx
push eax
lea eax, [esp + 0x20]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x24]
add esp, 0xc
push eax
call esi
xor ebp, ebp
mov edx, 0x1502c98
mov ecx, 0x50141d77
lea eax, [eax*2 + 2]
push eax
lea eax, [esp + 0x1c]
push eax
push 2
push ebp
push 0x70e83d84
call fcn.00401485
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ecx
push eax
push dword [esp + 0x24]
call edi
push ebx
call esi
mov edx, 0x27c982b0
mov ecx, 0x768db349
lea eax, [eax*2 + 2]
push eax
push ebx
xor ebx, ebx
inc ebx
push ebx
push ebp
push 0x567193aa
call fcn.00401485
pop ecx
push eax
push dword [esp + 0x24]
call edi
push 4
pop esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push esi
push ebp
push 0x5f78a86e
mov edx, 0x2ec0b975
mov ecx, 0x7f8488aa
call fcn.00401485
pop ecx
push eax
push dword [esp + 0x24]
call edi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 3
push eax
push esi
push ebp
push 0xe6eb40fe
mov edx, 0x975351ee
mov ecx, 0xc61761cd
call fcn.00401485
pop ecx
push eax
push dword [esp + 0x24]
call edi
mov dword [esp + 0x14], ebx
push esi
lea eax, [esp + 0x18]
mov edx, 0x52b3ef82
push eax
push esi
push ebp
push 0x230bfe91
mov ecx, 0x3f7dfb7
call fcn.00401485
pop ecx
push eax
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebp
jmp 0x409437
lea eax, [esp + 0x14]
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x20c
ret
Function at 0x4094f6
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
xor ebx, ebx
mov edx, 0x2956e76
push 3
push ebx
push 0x732d7f2e
mov ecx, 0x53d15e7f
mov dword [ebp - 0x10], ebx
call fcn.00401485
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409538
xor eax, eax
jmp 0x40966b
lea eax, [ebp - 4]
mov edx, 0xecced152
push eax
push ebx
lea eax, [ebp - 0xc]
mov ecx, 0xbd8ae1b9
push eax
push ebx
push 0x9d76c049
call fcn.00401485
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ecx
test eax, eax
je 0x40956f
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x40957c
cmp dword [ebp - 0xc], 7
jne 0x409660
mov eax, dword [ebp - 4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0xc]
mov edx, 0x71059e91
push eax
push ebx
push 0xbd8f8a
mov ecx, 0x2041ae5e
call fcn.00401485
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
test eax, eax
push 2
pop eax
cmovne ecx, eax
push 0x4ef5ec
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, dword [ebp - 4]
lea eax, [eax*2 + 8]
push eax
push 8
call edi
push eax
call esi
mov edi, dword [ebp - 0x14]
mov esi, eax
lea eax, [ebp - 0x10]
mov edx, edi
push eax
push ecx
mov ecx, dword [ebp - 0x18]
push esi
call fcn.0040944f
add esp, 0xc
cmp dword [ebp - 0x10], ebx
jbe 0x40962e
add eax, eax
mov edx, 0xc6205346
push eax
push esi
push 7
push ebx
push 0xb798425d
mov ecx, 0x97646395
call fcn.00401485
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40964d
push 0x416fae66
mov edx, 0x30d7bf7d
mov ecx, 0x6193884a
call fcn.00401485
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call fcn.0040507c
push edi
call fcn.0040507c
pop ecx
pop ecx
xor ebx, ebx
pop edi
inc ebx
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409670
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, edx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5c
mov edx, 0xa600a3c1
mov ecx, 0xf74494da
lea esi, [esi + eax*2]
pop eax
push 0xd7b8b2de
mov word [esi], ax
call fcn.00401485
lea edx, [esi + 2]
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x4096a2
lea edx, [esi + 0x12]
mov ecx, str.xreveal.sys
sub edx, ecx
pop esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4096bc
xor eax, eax
inc eax
ret
Function at 0x409737
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x518450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea edx, [ebp - 0x20c]
mov esi, ecx
call fcn.00409670
xor edx, edx
movzx eax, word [ebp + edx - 0x20c]
lea edx, [edx + 2]
mov word [ebp + edx - 0x416], ax
test ax, ax
jne 0x40975a
lea eax, [ebp - 0x414]
push 0x2e
push eax
call fcn.004bb2a8
pop ecx
pop ecx
push 0x74
pop ecx
push 0x6d
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
push 0x70
pop ecx
mov word [eax + 6], cx
xor ecx, ecx
mov word [eax + 8], cx
test esi, esi
je 0x409832
push 0x104
lea eax, [ebp - 0x61c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push 0x5c
push eax
call fcn.004bb2a8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40984a
push str.xreveal.sys
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test esi, esi
je 0x40984a
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
test eax, eax
jne 0x40984a
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
jmp 0x40984a
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b9a6c
mov esp, ebp
pop ebp
ret