joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066b0
Capabilities:
Hash data with md5

Disassembly:
fld dword [0x49fe2c]
fadd qword [0x465620]
fadd dword [0x49ae34]
fld dword [0x4b190c]
fmul qword [0x47bc28]
fadd dword [0x4a5130]
fld dword [0x4b190c]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [0x4b190c]
fxch st(1)
fcompi st(2)
fstp st(1)
jb 0x406726
fld dword [0x4b48fc]
fmul qword [0x473a48]
fld qword [0x47fbe0]
fld dword [0x4b01e4]
fsubp st(2)
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jp 0x406738
movzx eax, word [0x4926b0]
xor eax, 0x86e7927c
mov word [0x4926b0], ax
jmp 0x406738
fld dword [0x4b3c64]
fadd dword [0x4ad804]
fstp dword [0x4b3c64]
mov dword [ecx], 0
fld qword [0x486d08]
fsub dword [0x4ae3c0]
fadd dword [0x4ab650]
fstp dword [0x49b0b8]
fsubr dword [0x4ae3c0]
fstp dword [0x4ae3c0]
mov dword [ecx + 4], 0
fld dword [0x4b3c14]
fsub qword [0x470be8]
fadd dword [0x4b3248]
fstp dword [0x4b3248]
mov dword [ecx + 8], 0x67452301
add dword [0x45342c], 0x16022c1
mov dword [ecx + 0xc], 0xefcdab89
fld dword [0x4ac86c]
fld dword [0x4a5848]
fmul qword [0x4751b0]
fadd qword [0x45f8f8]
fxch st(1)
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jp 0x4067d7
fld dword [0x4b0cc8]
fld dword [0x4a38d4]
fmul dword [0x4b2518]
fsubp st(1)
fstp dword [0x4b0cc8]
mov dword [ecx + 0x10], 0x98badcfe
movzx edx, word [0x490240]
sub edx, 0x29206
mov word [0x490240], dx
mov dword [ecx + 0x14], 0x10325476
add dword [0x4502dc], 0xfbdfb9de
ret

Function at 0x4080e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ax, word [0x497814]
movsx ecx, ax
cmp ecx, 0x6c33e620
jg 0x40810a
inc dword [0x453a40]
mov eax, dword [0x453a40]
and eax, 0x7d5ceb73
xor dword [0x44679c], eax
fld dword [0x4b1814]
mov edx, dword [ebp + 8]
fld dword [0x4b0458]
push ebx
fmul qword [0x48b708]
push esi
mov esi, dword [ebp + 0xc]
fsubp st(1)
fadd qword [0x481058]
fstp qword [0x481058]
fld dword [0x4b1814]
fsub qword [0x43ab38]
fstp dword [0x4b1814]
mov cl, byte [esi]
movzx eax, byte [edx]
movzx ebx, cl
sub eax, ebx
jne 0x408164
test cl, cl
je 0x408164
mov cl, byte [esi + 1]
movzx eax, byte [edx + 1]
inc esi
inc edx
movzx ebx, cl
sub eax, ebx
je 0x408150
fld dword [0x4a55b4]
pop esi
fsub dword [0x49deb4]
pop ebx
fadd dword [0x4ae07c]
fstp dword [0x4afc80]
test eax, eax
jge 0x4081ad
movzx edx, word [0x498b5e]
imul edx, edx, 0x201eb7d5
mov word [0x498b5e], dx
mov ecx, dword [0x44c948]
or eax, 0xffffffff
and ecx, 0xdb88cf7
mov dword [0x4562c4], ecx
jmp 0x4081cc
jle 0x4081cc
mov dx, word [0x497d24]
mov word [0x497c30], dx
mov eax, 1
mov dword [0x44d730], 0x70dfe8b6
inc dword [0x44dd20]
mov ecx, dword [0x44dd20]
and ecx, 0x420f9b8d
mov dword [0x43e8ec], ecx
pop ebp
ret
Function at 0x427090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
fld dword [0x4ab120]
fsub dword [0x4a6c3c]
fld dword [0x4a0a78]
fxch st(1)
fcompi st(1)
fstp st(0)
jb 0x4270e9
mov eax, dword [0x452708]
lea ecx, [eax + 0x16e2b6d3]
mov eax, dword [0x446d00]
mov edx, dword [0x4438c0]
and eax, ecx
or ecx, 0xffffffff
add dword [0x452708], ecx
or edx, 0x97aafeff
cmp edx, eax
jg 0x4270e9
add dword [0x44a710], ecx
mov eax, dword [0x44a710]
mov ecx, dword [0x445004]
fld qword [0x47fe10]
mov eax, dword [ebp + 8]
fsub dword [0x4ae758]
push esi
mov ecx, eax
fsub dword [0x4b21e0]
fstp dword [0x4aee1c]
fld qword [0x47fe10]
fadd qword [0x43ab38]
fstp qword [0x47fe10]
cmp byte [eax], 0
je 0x427141
mov edx, 0x39ed9245
mov esi, dword [0x43da14]
imul esi, esi, 0xad3091a0
mov dword [0x43da14], esi
xor dword [0x43e720], edx
inc ecx
cmp byte [ecx], 0
jne 0x427123
mov esi, dword [ebp + 0xc]
mov dl, byte [esi]
mov byte [ecx], dl
inc ecx
inc esi
test dl, dl
jne 0x427144
xor dword [0x441f78], 0x25029411
pop esi
pop ebp
ret
Function at 0x4050c3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403f48
and dword [ebp - 4], 0
cmp dword [0x40b694], 0
mov ebx, eax
jne 0x405174
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405225
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405225
push eax
call fcn.00403ed6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b694], eax
call esi
push eax
call fcn.00403ed6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b698], eax
call esi
push eax
call fcn.00403ed6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b69c], eax
call esi
push eax
call fcn.00403ed6
pop ecx
mov dword [0x40b6a4], eax
test eax, eax
je 0x405174
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403ed6
pop ecx
mov dword [0x40b6a0], eax
mov eax, dword [0x40b6a0]
cmp eax, ebx
je 0x4051cc
cmp dword [0x40b6a4], ebx
je 0x4051cc
push eax
call fcn.00403f51
push dword [0x40b6a4]
mov esi, eax
call fcn.00403f51
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4051cc
test edi, edi
je 0x4051cc
call esi
test eax, eax
je 0x4051c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4051c3
test byte [ebp - 0xc], 1
jne 0x4051cc
or dword [ebp + 0x10], 0x200000
jmp 0x405205
mov eax, dword [0x40b698]
cmp eax, ebx
je 0x405205
push eax
call fcn.00403f51
pop ecx
test eax, eax
je 0x405205
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405205
mov eax, dword [0x40b69c]
cmp eax, ebx
je 0x405205
push eax
call fcn.00403f51
pop ecx
test eax, eax
je 0x405205
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b694]
call fcn.00403f51
pop ecx
test eax, eax
je 0x405225
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405227
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403251
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d364
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push edi
mov dword [ebp - 0xac], ecx
push 0x411d5c
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x98]
call fcn.0040ae00
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4032d6
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.0040c7be
mov eax, dword [ebp - 0xa0]
jmp 0x403389
mov dword [ebp - 0x10], 1
mov byte [ebp - 0x90], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x94], 0x80
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40335a
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.0040c7be
mov eax, dword [ebp - 0xa4]
jmp 0x403389
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa8], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.0040c7be
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40339a
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d377
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x1c], ecx
push 0x411d5c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00403251
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040ae00
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403422
push 0x40030
push 0x4114a4
push 0x4114b0
mov ecx, dword [ebp - 0x1c]
call sub.MFC42.DLL_CWnd::MessageBoxA
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c7be
jmp 0x40350e
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40347e
push 0x40030
push 0x4114d8
push 0x4114e4
mov ecx, dword [ebp - 0x1c]
call sub.MFC42.DLL_CWnd::MessageBoxA
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c7be
jmp 0x40350e
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], 0
jne 0x4034ff
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ae00
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4034c1
push 0x40030
push 0x411504
push 0x411510
mov ecx, dword [ebp - 0x1c]
call sub.MFC42.DLL_CWnd::MessageBoxA
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x4034f5
mov edx, 1
test edx, edx
je 0x4034e5
mov dword [ebp - 0x20], 0
jmp 0x4034f5
push 0x411530
call fcn.0040ad40
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040c7be
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40366d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d3ba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push edi
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0
push 0x411d5c
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 1
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x98]
call fcn.0040ae00
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x403708
push 0x411d8c
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xa0]
or ecx, 1
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.0040c7be
mov eax, dword [ebp + 8]
jmp 0x4037d5
mov dword [ebp - 0x10], 1
mov byte [ebp - 0x90], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x94], 0x80
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403798
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x411d90
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0xa0]
or edx, 1
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.0040c7be
mov eax, dword [ebp + 8]
jmp 0x4037d5
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x90]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040ad50
mov edx, dword [ebp - 0xa0]
or edx, 1
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
call fcn.0040c7be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x406cf8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jge 0x406d22
mov ecx, dword [ebp - 8]
call fcn.00403581
jmp 0x406d0a
mov esp, ebp
pop ebp
ret 4

Function at 0x406d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d63e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
push 0xff
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xff
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0
push 0x4116e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x406dbb
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
lea ecx, [ebp + 8]
call fcn.0040ae00
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0040b070
jmp 0x406dc8
push 0x411d9c
mov ecx, dword [ebp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x406e05
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040c7be
mov eax, dword [ebp - 0x28]
jmp 0x406e1e
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040c7be
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x406e2e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d663
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c7f4
lea ecx, [ebp - 0x18]
push ecx
push 2
push 0
push 0x4116f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406eaf
push 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push str.SOFTWARE_boxcontrol
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
push 0x64
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x14]
call fcn.0040ae00
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0
jne 0x406efa
lea ecx, [ebp - 0x14]
call fcn.0040ada0
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 1
push 0
lea ecx, [ebp + 8]
call fcn.0040ae00
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x10], 0
jne 0x406f3a
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040c7be
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040c7be
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040c7be
mov eax, dword [ebp - 0x24]
jmp 0x406f6b
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040c7be
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040c7be
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040c7be
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x409c89
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x80000000
jae 0x409d04
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x409cbd
jmp 0x409d0e
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x409d02
jmp 0x409d0e
jmp 0x409d0e
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret

Function at 0x409d12
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
push 0x4119dc
call fcn.0040b720
add esp, 4
test eax, eax
je 0x409d5b
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push 0x4119ec
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
call fcn.0040a103
push 0
push 0x4119fc
push 0x411a0c
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x409d6d
push 0
push 0x411a1c
push str.BoxUpgrade.exe
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esp, ebp
pop ebp
ret

Function at 0x40a103
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40db5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040ae00
push eax
mov ecx, dword [ebp - 0x78]
call fcn.00401c54
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a169
mov dword [ebp - 0x70], 0x58
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x70]
push ecx
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov dword [ebp - 0x14], 0
push str.BoxControl.exe
call fcn.0040b720
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x40a1ca
mov edx, dword [ebp - 0x18]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
je 0x40a1b6
push 0
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40a1b6
mov dword [ebp - 0x14], 1
jmp 0x40a1c8
cmp dword [ebp - 0x74], 0
je 0x40a1c6
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a1ca
jmp 0x40a170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040c7be
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b969
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
mov al, byte [0x411e38]
mov byte [ebp - 0x118], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionPerflib009
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 0x411c0c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
push str.Counter
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
je 0x40bae1
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x40ba46
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x40ba15
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
je 0x40ba92
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dl, byte [eax]
mov byte [ebp + ecx - 0x118], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x40ba5f
mov edx, dword [ebp - 0x10]
mov byte [ebp + edx - 0x118], 0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
test edx, edx
jne 0x40bac3
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x118]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x40badc
jmp 0x40bae1
jmp 0x40ba09
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403310
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404a94
test esi, esi
jne 0x403346
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404b84
jmp 0x403364
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403214
mov edi, eax
test esi, esi
je 0x403364
cmp dword [ebx], 0
je 0x403364
dec esi
jmp 0x40334d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x483020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403af8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ad8
xor eax, eax
push ebp
push 0x403ad1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403b14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ad8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x483020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x483020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404914
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48604c], 0
je 0x404975
cmp word [0x486220], 0xd7b2
jne 0x40493d
cmp dword [0x486228], 0
jbe 0x40493d
mov eax, 0x48621c
call dword [0x486238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40499c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48302c], 0
jne 0x404991
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret