joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c13a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00402c7b
xor ebx, ebx
cmp dword [0x4176ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40c210
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c2f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c2f0
push eax
call fcn.00402c0d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4176ec], eax
call esi
push eax
call fcn.00402c0d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4176f0], eax
call esi
push eax
call fcn.00402c0d
mov dword [0x4176f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040337c
test eax, eax
pop ecx
pop ecx
je 0x40c1de
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004069a2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40c210
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402c0d
cmp eax, ebx
pop ecx
mov dword [0x4176fc], eax
je 0x40c210
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402c0d
pop ecx
mov dword [0x4176f8], eax
mov eax, dword [0x4176f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40c295
cmp dword [0x4176fc], ecx
je 0x40c295
push eax
call fcn.00402c84
push dword [0x4176fc]
mov esi, eax
call fcn.00402c84
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40c295
cmp edi, ebx
je 0x40c295
call esi
cmp eax, ebx
je 0x40c262
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c262
test byte [ebp - 0x18], 1
jne 0x40c295
lea eax, [ebp - 0x10]
push eax
call fcn.004033b3
test eax, eax
pop ecx
je 0x40c27d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004069a2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40c28c
or dword [ebp + 0x10], 0x200000
jmp 0x40c2d0
or dword [ebp + 0x10], 0x40000
jmp 0x40c2d0
mov eax, dword [0x4176f0]
cmp eax, dword [ebp - 8]
je 0x40c2d0
push eax
call fcn.00402c84
cmp eax, ebx
pop ecx
je 0x40c2d0
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c2d0
mov eax, dword [0x4176f4]
cmp eax, dword [ebp - 8]
je 0x40c2d0
push eax
call fcn.00402c84
cmp eax, ebx
pop ecx
je 0x40c2d0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4176ec]
call fcn.00402c84
cmp eax, ebx
pop ecx
je 0x40c2f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c2f2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436d64
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0x1c
mov eax, 0x4dd4f2
call fcn.004c1f48
push ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp + 8]
push str.Loader_SetVirtEnvVariables:_in___s_
push eax
call fcn.0046d760
add esp, 0xc
call fcn.00433dd5
pop ecx
mov dword [ebp - 0x1c], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x4f1be8
lea edi, [ebp - 0x1c]
call fcn.004247f7
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 1
call fcn.00424ec9
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], bl
call fcn.004714b0
add esp, 8
mov eax, esp
mov dword [ebp - 0x28], esp
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
push str.Loader_SetVirtEnvVariables:_setting_Env_variable:__s
push eax
call fcn.0046d760
add esp, 0xc
call fcn.00433dd5
pop ecx
push ebx
push 0x3d
lea ecx, [ebp - 0x10]
call fcn.00426eb1
mov esi, eax
cmp esi, 0xffffffff
jne 0x436e1a
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push str.Loader_SetVirtEnvVariables:__error:_Env_variable_doesnt_contain_
push eax
call fcn.0046d760
pop ecx
pop ecx
call fcn.00433dd5
pop ecx
jmp 0x436f07
push esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.004249e6
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00424ec9
push ebx
lea ecx, [ebp - 0x14]
lea eax, [esi + 1]
push ecx
mov byte [ebp - 4], 4
call fcn.0042488e
push str._ExistingValue_
xor ecx, ecx
lea esi, [ebp - 0x14]
call fcn.0042490a
mov esi, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x436eec
call fcn.004ad3ae
push eax
lea ecx, [ebp - 0x18]
call fcn.0042249b
push ebx
push ebx
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
call edi
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x436eb4
push eax
lea ecx, [ebp - 0x18]
call fcn.004224c3
push dword [ebp - 0x24]
push eax
push esi
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.00424b05
cmp edi, ebx
jne 0x436eb4
push 0x4eea54
lea ecx, [ebp - 0x18]
call fcn.004253c0
mov edi, dword [ebp - 0x18]
push edi
push str._ExistingValue_
lea eax, [ebp - 0x14]
push eax
call fcn.0042b4cd
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
lea ecx, [ebp - 0x14]
push ecx
push str.Loader_SetVirtEnvVariables:_replacing__ExistingValue__with_existing_value:
push eax
call fcn.00424a9b
add esp, 0xc
call fcn.00433dd5
pop ecx
lea ecx, [edi - 0x10]
call fcn.0042201a
mov edi, dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [edi - 0x10]
call fcn.0042201a
lea ecx, [esi - 0x10]
call fcn.0042201a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x436d95
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042201a
call fcn.004c2020
ret
Function at 0x401310
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x401327
pop edi
pop ebx
ret
push esi
push edi
call fcn.004024dc
push edi
mov esi, eax
push 0
push esi
call fcn.00405ca0
add esp, 0x10
push edi
push esi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401345
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x401364
push 0x41182c
call fcn.00401210
add esp, 4
pop esi
pop edi
pop ebx
ret

Function at 0x401370
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x401387
pop edi
pop ebx
ret
push esi
push edi
call fcn.004024dc
push edi
mov esi, eax
push 0
push esi
call fcn.00405ca0
add esp, 0x10
push edi
push esi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013a5
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x4013c4
push 0x41182c
call fcn.00401210
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x401440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, str.temp
mov eax, str.windows
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401470
test dl, dl
je 0x40146c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401470
add eax, 2
add ecx, 2
test dl, dl
jne 0x401450
xor eax, eax
jmp 0x401475
sbb eax, eax
sbb eax, 0xffffffff
push esi
test eax, eax
jne 0x4014da
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push eax
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x401495
pop edi
pop ebx
pop esi
pop ebp
jmp fcn.00401210
push edi
call fcn.004024dc
push edi
mov esi, eax
push 0
push esi
call fcn.00405ca0
add esp, 0x10
push esi
push edi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014b2
sub eax, edx
cmp byte [eax + esi - 1], 0x5c
mov eax, esi
je 0x4014d1
push 0x41182c
call fcn.00401210
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
jmp fcn.00401210
mov ecx, str.current
mov eax, str.windows
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401504
test dl, dl
je 0x401500
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401504
add eax, 2
add ecx, 2
test dl, dl
jne 0x4014e4
xor eax, eax
jmp 0x401509
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40153d
call fcn.004013d0
mov esi, eax
push 0x5c
push esi
call fcn.00402840
add esp, 8
test eax, eax
jne 0x40152a
pop esi
pop ebp
jmp fcn.00401210
sub eax, esi
inc eax
push esi
call fcn.004012a0
add esp, 4
pop esi
pop ebp
jmp fcn.00401210
mov ecx, str.system
mov eax, str.windows
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401567
test dl, dl
je 0x401563
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401567
add eax, 2
add ecx, 2
test dl, dl
jne 0x401547
xor eax, eax
jmp 0x40156c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401584
mov eax, dword [ebp + 8]
push eax
call fcn.00401310
call fcn.00401210
add esp, 4
pop esi
pop ebp
ret
mov ecx, str.windows
mov eax, ecx
jmp 0x401590
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4015b0
test dl, dl
je 0x4015ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4015b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401590
xor eax, eax
jmp 0x4015b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4015cd
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401370
call fcn.00401210
add esp, 4
pop esi
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov eax, str.windows
call fcn.00401210
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4015e3
sub ecx, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x401600
push 0x41182c
call fcn.00401210
add esp, 4
pop esi
pop ebp
ret
Function at 0x401610
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x41329c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x13c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x140], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x124
lea ecx, [ebp - 0x130]
push 0
push ecx
mov dword [ebp - 0x138], 0
call fcn.00405ca0
add esp, 0xc
lea edx, [ebp - 0x134]
push edx
push esi
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00402570
add esp, 8
test eax, eax
je 0x4016d9
mov edx, dword [ebp - 0x12c]
push edx
push 0
push 1
call edi
mov esi, eax
lea eax, [ebp - 0x138]
push eax
push esi
call ebx
mov ecx, dword [ebp - 0x138]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4016d9
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x134]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40168b
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004020bc
mov esp, ebp
pop ebp
ret 4
Function at 0x401710
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41329c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 1
mov dword [ebp - 0x114], eax
call esi
push 1
call esi
push 0xa
push str.IDR_LUA
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x401766
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004020bc
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov dword [ebp - 0x118], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x401752
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401752
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.00401440
add esp, 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
mov dword [ebp - 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x401752
push 1
call esi
push 1
call esi
mov eax, dword [ebp - 0x118]
push 0
lea edx, [ebp - 0x120]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.resource.exe
call fcn.00401610
push str.resource.tmp
call fcn.00401610
push str.Navigator
lea ecx, [ebp - 0x110]
push str.Software_s
push ecx
call fcn.00402360
add esp, 0xc
cmp byte [0x415bd7], 0
je 0x401889
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x80000001
mov dword [ebp - 0x11c], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [ebp - 0x118]
push 4
lea ecx, [ebp - 0x11c]
push ecx
push 4
push 0
push str.InstallMode
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
call esi
mov ecx, dword [ebp - 0x114]
push 0
push 0
push str._VERYSILENT__SP_
push ecx
jmp 0x40189d
push 1
call esi
mov edx, dword [ebp - 0x114]
push 0
push 0
push 0x4118ad
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004020bc
mov esp, ebp
pop ebp
ret
Function at 0x4020bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41329c]
jne 0x4020c6
repz ret
jmp fcn.0040386a

Function at 0x40954c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41329c]
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.0040438d
and dword [ebp - 0x14], 0
cmp dword [0x415350], 0
mov dword [ebp - 0x18], eax
jne 0x4095ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4096a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4096a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x415350], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x415354], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x415358], eax
call edi
push eax
call esi
mov dword [0x415360], eax
test eax, eax
je 0x4095ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41535c], eax
mov eax, dword [0x41535c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409658
cmp dword [0x415360], ecx
je 0x409658
push eax
call esi
push dword [0x415360]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409658
test ebx, ebx
je 0x409658
call edi
test eax, eax
je 0x40964f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40964f
test byte [ebp - 8], 1
jne 0x409658
or dword [ebp + 0x10], 0x200000
jmp 0x40968b
mov eax, dword [0x415354]
cmp eax, dword [ebp - 0x18]
je 0x40968b
push eax
call esi
test eax, eax
je 0x40968b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40968b
mov eax, dword [0x415358]
cmp eax, dword [ebp - 0x18]
je 0x40968b
push eax
call esi
test eax, eax
je 0x40968b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x415350]
call esi
test eax, eax
je 0x4096a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4096a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020bc
leave
ret
Function at 0x4ccfa0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8c000]
push edi
or ebp, 0xffffffff
jmp 0x4ccfc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ccfc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ccfb8
mov eax, 1
add ebx, ebx
jne 0x4ccfdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ccfec
jne 0x4cd00b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4cd00b
dec eax
add ebx, ebx
jne 0x4ccff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ccfd0
add ebx, ebx
jne 0x4cd007
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4cd05d
xor ecx, ecx
sub eax, 3
jb 0x4cd023
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4cd092
sar eax, 1
mov ebp, eax
jmp 0x4cd02e
add ebx, ebx
jne 0x4cd02e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ccffc
inc ecx
add ebx, ebx
jne 0x4cd03c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ccffc
add ebx, ebx
jne 0x4cd049
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4cd03e
jne 0x4cd05a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4cd03e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4cd07c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4cd06e
jmp 0x4ccfbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4cd07c
add edi, ecx
jmp 0x4ccfbe
pop esi
mov edi, esi
mov ecx, 0x7c1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4cd09a
cmp byte [edi], 1
jne 0x4cd09a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4cd09f
lea edi, [esi + 0xca000]
mov eax, dword [edi]
or eax, eax
je 0x4cd117
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcd340]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcd40c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cd0cc
mov ecx, edi
jns 0x4cd0fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcd414]
or eax, eax
je 0x4cd111
mov dword [ebx], eax
add ebx, 4
jmp 0x4cd0e9
call dword [esi + 0xcd410]
mov ebp, dword [esi + 0xcd418]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4cd14b
sub esp, 0xffffff80
jmp 0x4053d2
Function at 0x406c90
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x4241c0
push 0x41a1eb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x427038]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x406cf1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.00406dc0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x406d23
test bl, bl
jne 0x406d9a
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x406d38
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00402bb0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0041945c
lea esp, [ebp + 0x414]
pop ebp
ret
mov edx, dword [esp + 4]
jmp 0x406c90

Function at 0x407010
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x4241c0
push 0x41a1eb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x427038]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x406cf1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.00406dc0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x406d23
test bl, bl
jne 0x406d9a
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x406d38
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00402bb0
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.0041945c
lea esp, [ebp + 0x414]
pop ebp
ret
mov edx, dword [esp + 4]
jmp 0x406c90
Function at 0x407020
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x427038]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0041946d
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40707c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.0041945c
add esp, 0x120
ret
Function at 0x4097c0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x427ac0], 0
mov word [0x427ac4], 0
cmp dword [eax + 0x10], 0
je 0x4097e7
cmp dword [eax + 0x14], 8
jb 0x4097e9
mov eax, dword [eax]
jmp 0x4097e9
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x427ac0], eax
test eax, eax
je 0x40981d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [0x427ac5]
cmp eax, 0xb7
mov edx, 1
cmove ecx, edx
mov byte [0x427ac5], cl
mov eax, 0x427ac0
ret 4

Function at 0x409880
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ba58
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x427038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4098c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004106a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x4098ec
lea eax, [esi + 8]
jmp 0x4098ee
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x4098fe
cmp dword [ebx + 0x14], 8
jb 0x409900
mov ebx, dword [ebx]
jmp 0x409900
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x409921
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409921
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x40994a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40995f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0041949d
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041945c
mov esp, ebp
pop ebp
ret 4