joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450b40
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x54257c]
cmp dword [eax + 0x30], 0
je 0x450bea
cmp dword [ebx + 0x94], 0
jne 0x450be4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450ad0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450be4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x450baa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450be4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004141f0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450bb9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451904
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x451939
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040478c
jmp 0x451946
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452ca8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452d16
mov eax, esi
call fcn.0043d538
test al, al
je 0x452d16
mov eax, dword [ebx + 0x84]
call fcn.0043d23c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452d16
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x452d0a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d23c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004356d4
jmp 0x452d16
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00452ae4
pop esi
pop ebx
ret

Function at 0x453ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b50
xor eax, eax
push ebp
push 0x453d5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b60
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404894
mov eax, dword [ebp - 8]
mov edx, 0x8000
call fcn.0040d6c8
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00404b60
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x542628], eax
push 0x542624
push 0x40
push 0x1869f
push 0x54262c
call sub.kernel32.dll_VirtualProtect
mov edx, 0x54262c
mov eax, sub.kernel32.dll_GetCPInfo
mov ecx, 4
call fcn.00453c84
mov edx, 0x54262c
mov eax, 0x45d74c
mov ecx, 4
call fcn.00402e8c
mov eax, dword [0x542628]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453d64
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046c0
ret
Function at 0x402610
Capabilities:
Copy file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x405e50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov al, byte [0x4089fc]
push esi
mov esi, ecx
push edi
mov byte [esp + 0x10], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString
xor edi, edi
lea ecx, [esp + 8]
mov dword [esp + 0x7c], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push 0x64
push ecx
mov byte [esp + 0x84], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push str._s__Dbserver.ini
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push str._s__DbGen.ini
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add esp, 0xc
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push edi
push str.Selected_DB_Type
push str.FACON_DB_TYPE
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
cmp eax, 1
jne 0x40277c
mov dword [esi + 0x114], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push edi
push str.Cycle_Storage_Period
push str.DAO_DATABASE_Type_1_
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x100], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push edi
push str.Hour_Storage_Period
push str.DAO_DATABASE_Type_1_
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x104], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push edi
push str.Day_Storage_Period
push str.DAO_DATABASE_Type_1_
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x108], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push edi
push str.Month_Storage_Period
push str.DAO_DATABASE_Type_1_
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x10c], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push edi
push str.Year_Storage_Period
push str.DAO_DATABASE_Type_1_
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileIntA
mov dword [esi + 0x110], eax
jmp 0x402782
mov dword [esi + 0x114], edi
lea ecx, [esp + 8]
mov byte [esp + 0x7c], 0
call fcn.0040561c
lea ecx, [esp + 0xc]
mov dword [esp + 0x7c], 0xffffffff
call fcn.0040561c
mov ecx, dword [esp + 0x74]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x78
ret
Function at 0x405930
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407570
push 0x405ae6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x408a20], 0xffffffff
mov dword [0x408a24], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x408a14]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x408a10]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x408a1c], ecx
call fcn.00405b30
mov eax, dword [0x4088a0]
test eax, eax
jne 0x4059c1
push 0x405b20
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00405b00
push 0x408014
push 0x408010
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x408a0c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x408a08]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40800c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x405acf
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x405a35
cmp al, 0x22
jne 0x405a27
cmp byte [esi], 0x22
jne 0x405a3e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x405a4e
cmp al, 0x20
ja 0x405a4e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x405a3e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x405a6f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x405a74
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x405ab4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x405a3e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x405acf

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x6472320
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x4a597193
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x406605
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43f76c], 0
jne 0x406643
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406619
mov dword [ecx*4 + 0x43f768], eax
inc ecx
cmp ecx, 0x100
jl 0x406614
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406670
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f768]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406651
not eax
pop ebp
ret 0xc

Function at 0x40add0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp eax, 0x10
cdq
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x57c12b4d
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5a243f4c
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x4d85656f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0xed162a5
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100010e3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateMutexA
mov dword [ebp - 4], eax
or eax, eax
je 0x10001115
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x10001115
push dword [ebp - 4]
call fcn.100010c6
push 0
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x10001134
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.1000111c
push 0x10
lea eax, [ebp - 0x54]
push eax
call fcn.1000111c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.kernel32.dll_CreateProcessA
lea edi, [ebp - 0x54]
push dword [edi]
push dword [edi + 4]
call sub.kernel32.dll_CloseHandle
call sub.kernel32.dll_CloseHandle
leave
ret 4

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x180fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.01806e52
and dword [ebp - 0x14], 0
cmp dword [0x185d558], 0
mov dword [ebp - 0x18], eax
jne 0x180fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x180fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x180fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x185d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x185d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x185d560], eax
call edi
push eax
call esi
mov dword [0x185d568], eax
test eax, eax
je 0x180fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x185d564], eax
mov eax, dword [0x185d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x180fc78
cmp dword [0x185d568], ecx
je 0x180fc78
push eax
call esi
push dword [0x185d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x180fc78
test ebx, ebx
je 0x180fc78
call edi
test eax, eax
je 0x180fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x180fc6f
test byte [ebp - 8], 1
jne 0x180fc78
or dword [ebp + 0x10], 0x200000
jmp 0x180fcab
mov eax, dword [0x185d55c]
cmp eax, dword [ebp - 0x18]
je 0x180fcab
push eax
call esi
test eax, eax
je 0x180fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x180fcab
mov eax, dword [0x185d560]
cmp eax, dword [ebp - 0x18]
je 0x180fcab
push eax
call esi
test eax, eax
je 0x180fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x185d558]
call esi
test eax, eax
je 0x180fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x180fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.018013cb
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x7561925
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x3cbe7166
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401410
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, eax
mov ebx, esi
mov dword [esi + 0xc], edi
call fcn.0040187e
cmp dword [esi + 0x428], 0
je 0x401433
push esi
call fcn.00401b34
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
lea ebx, [ebp - 0x14]
call fcn.0040a4b7
pop ecx
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
push 5
sub eax, dword [ebp - 0x10]
xor ecx, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x10]
push ecx
push ecx
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x14]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 4]
add eax, 0x18
push eax
push 0x3e9
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, 0x3eb
push ebx
push dword [esi + 0xc]
call edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
and eax, 2
push eax
push ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [esi + 4]
test byte [eax + 4], 0x20
je 0x4014cb
push 5
jmp 0x4014cd
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x428], 0
je 0x4014ff
push 0
push ebx
push dword [esi + 0xc]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x3ed
push dword [esi + 0xc]
call edi
push eax
call ebx
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret
Function at 0x401b34
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2630
call fcn.00414e90
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
xor ebx, ebx
push ebx
push 0x3eb
push dword [esi + 0xc]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push 0x3ed
push dword [esi + 0xc]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x868], ebx
mov dword [ebp - 8], ebx
jne 0x401bfd
lea eax, [esi + 0x42c]
push eax
lea eax, [ebp - 0x2630]
push 0x416350
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x2630]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401bfd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401bf4
mov eax, dword [esi + 4]
add eax, 0x18
push ebx
push eax
lea ecx, [ebp - 0x218]
call fcn.00401e39
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x636]
cmp word [eax], bx
je 0x401d1b
xor eax, eax
mov word [ebp - 0x424], bx
mov ecx, 0x82
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00409316
lea esi, [ebp - 0x218]
call fcn.00408d9b
mov eax, dword [ebp + 8]
add eax, 0x636
push eax
mov dword [ebp - 4], eax
mov eax, esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
push ebx
push dword [eax + 8]
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.0040248a
add esp, 0x20
cmp eax, 1
jne 0x401c97
push 0x8920
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x401cad
call fcn.0040320e
jmp 0x401caf
push 0x320
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x401cad
call fcn.00404203
jmp 0x401caf
xor eax, eax
cmp eax, ebx
je 0x401d1b
mov ecx, dword [edi + 4]
push ebx
push dword [ecx + 8]
mov esi, eax
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 0x424]
push ecx
mov ecx, esi
call dword [eax + 4]
test eax, eax
jne 0x401d13
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 4]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
jne 0x401d13
lea eax, [ebp - 0x630]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [ebp - 0x630]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40278a
Capabilities:
Create process on windows
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc50
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0x838]
push eax
call fcn.00401dfa
lea eax, [ebp - 0x420]
push str..EXE
push eax
xor eax, eax
inc eax
call fcn.0040b0fb
add esp, 0x14
neg eax
sbb eax, eax
inc eax
xor ebx, ebx
test byte [edi + 4], 0x10
jne 0x4027e4
cmp eax, ebx
jne 0x40281e
xor eax, eax
inc eax
jmp 0x40291b
cmp eax, ebx
jne 0x40281e
lea eax, [ebp - 0xa44]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [ebp - 0xa44]
push eax
push ebx
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x40291b
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x62c]
push eax
mov eax, esi
call fcn.00409821
add esp, 0xc
test eax, eax
je 0x402866
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x214]
push eax
push str.ZIP_SOURCE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp + 0xc]
lea esi, [ebp - 4]
call fcn.0040bd8d
cmp dword [edi + 0x222], ebx
jbe 0x4028a5
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
mov eax, esi
push str._s__ZIP_SOURCE__s_
push eax
call fcn.0040c489
add esp, 0x10
mov eax, dword [0x41d0e8]
xor ecx, ecx
cmp eax, ebx
je 0x4028b2
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x4028be
mov eax, 0x4162fc
push ecx
push 1
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x838]
call fcn.0040da1f
add esp, 0x10
cmp dword [ebp + 0x10], ebx
mov esi, eax
je 0x402904
mov edi, 0x103
mov dword [ebp - 8], edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4028f4
mov dword [ebp - 8], ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 8], edi
je 0x4028e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
call fcn.0040bda0
xor eax, eax
cmp esi, ebx
setne al
pop esi
pop edi
pop ebx
leave
ret