joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eab30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004bb400
mov eax, dword [0x544af0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x101c], ecx
xor eax, eax
mov word [ebp - 0x1010], ax
push 0xffe
push 0
lea ecx, [ebp - 0x100e]
push ecx
call fcn.004b5f20
add esp, 0xc
push 0x5167fc
mov edx, dword [ebp - 0x101c]
add edx, 0xa8
push edx
lea eax, [ebp - 0x1018]
push eax
call fcn.00404ae0
add esp, 0xc
mov dword [ebp - 0x1020], eax
mov ecx, dword [ebp - 0x1020]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
push 0x800
lea ecx, [ebp - 0x1010]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
lea ecx, [ebp - 0x1018]
call fcn.004079a0
mov dword [ebp - 0x1014], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
lea eax, [ebp + edx*2 - 0x1010]
push eax
call fcn.004b5e21
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4eac0e
mov ecx, dword [ebp - 0x1014]
add ecx, 1
mov dword [ebp - 0x1014], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 1]
mov dword [ebp - 4], ecx
jmp 0x4eabd4
mov eax, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b5e12
mov esp, ebp
pop ebp
ret
Function at 0x4eae60
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa576
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x544af0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x30]
call fcn.00408470
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4eaef2
cmp dword [ebp - 0x3c], 0x6f
je 0x4eaef2
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402df0
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403010
mov eax, dword [ebp + 8]
jmp 0x4eb027
mov eax, dword [ebp - 0x38]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4eaf33
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402df0
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403010
mov eax, dword [ebp + 8]
jmp 0x4eb027
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x4eaf7a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402df0
mov ecx, dword [ebp - 0x40]
or ecx, 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403010
mov eax, dword [ebp + 8]
jmp 0x4eb027
lea ecx, [ebp - 0x34]
call fcn.004032e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x199]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x198]
push edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x197]
push ecx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x196]
push eax
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + 0x195]
push edx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x194]
push ecx
push str._02X_02X_02X_02X_02X_02X
lea edx, [ebp - 0x34]
push edx
call fcn.00407ea0
add esp, 0x20
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [ebp - 0x34]
call fcn.004079c0
push eax
lea ecx, [ebp - 0x30]
call fcn.00408450
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402df0
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004079a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403010
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b5e12
mov esp, ebp
pop ebp
ret
Function at 0x4eb140
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa725
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x544af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
add eax, 0x29c
push eax
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x4eb257
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x14]
call fcn.004032e0
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 0x16]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
movzx edx, word [ebp - 0x1a]
push edx
movzx eax, word [ebp - 0x1c]
push eax
movzx ecx, word [ebp - 0x1e]
push ecx
movzx edx, word [ebp - 0x22]
push edx
movzx eax, word [ebp - 0x24]
push eax
push str._r_n_d__02d__02d__02d:_02d:_02d._03d_:__s
lea ecx, [ebp - 0x14]
push ecx
call fcn.00404050
add esp, 0x28
lea ecx, [ebp - 0x14]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x290], 0xffffffff
je 0x4eb225
lea ecx, [ebp - 0x14]
call fcn.00403780
shl eax, 1
push eax
lea ecx, [ebp - 0x14]
call sym.QiyiInstaller.exe_public:_enum_eScriptType___thiscall_CScriptModule::Type_void_
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x28c
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x28c]
mov eax, dword [edx + 0x38]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004079a0
jmp 0x4eb240
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x29c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004079a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4eb8e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fad96
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x544af0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x25c], 0
lea ecx, [ebp - 0x24c]
call fcn.004032e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x244], 0
push 0x228
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.004b5f20
add esp, 0xc
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x250], eax
push 0
push 0x40000002
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
je 0x4eb9fd
lea ecx, [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4eb9fd
mov eax, dword [ebp - 0x23c]
cmp eax, dword [ebp - 0x250]
jne 0x4eb9d9
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x258], ecx
jmp 0x4eb9f0
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x254]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4eb9bd
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0
jbe 0x4eba7e
push 0
push 0x40000002
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
je 0x4eba7e
lea edx, [ebp - 0x244]
push edx
mov eax, dword [ebp - 0x254]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4eba7e
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [ebp - 0x258]
jne 0x4eba5a
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x24c]
call fcn.00403c80
jmp 0x4eba71
lea eax, [ebp - 0x244]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4eba38
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402580
mov ecx, dword [ebp - 0x25c]
or ecx, 1
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004079a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5e12
mov esp, ebp
pop ebp
ret 4
Function at 0x4ec4d0
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
add eax, 0x29c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x290], 0xffffffff
je 0x4ec532
mov ecx, dword [ebp - 0x1c]
add ecx, 0x28c
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x28c]
mov edx, dword [eax + 0x48]
call edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x28c
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x28c]
mov eax, dword [edx + 0x4c]
call eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x124
call fcn.004012b0
jmp 0x4ec554
push 0
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 8]
call fcn.004094e0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x124
call fcn.00495890
push eax
lea ecx, [ebp - 8]
call fcn.00409440
movzx ecx, al
test ecx, ecx
je 0x4ec5a5
push 0x3e8
lea ecx, [ebp - 8]
call fcn.00407980
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4ec5a3
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.00407980
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4ec546
mov ecx, dword [ebp - 0x1c]
call fcn.004ebad0
mov ecx, dword [ebp - 0x1c]
call fcn.004ea940
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x1c]
call fcn.00497dab
mov esp, ebp
pop ebp
ret
Function at 0x4ee870
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], vtable.CPoster.0
mov ecx, dword [ebp - 4]
mov dword [ecx + method.DuiLib::CContainerUI.virtual_0], vtable.CPoster.1.0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x3fc], 0
je 0x4ee8c1
push 0x64
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3fc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4ee8c1
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3fc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
add ecx, 0x3f8
call fcn.004079a0
mov ecx, dword [ebp - 4]
add ecx, 0x3f4
call fcn.004079a0
mov ecx, dword [ebp - 4]
add ecx, 0x3f0
call fcn.004079a0
mov ecx, dword [ebp - 4]
call sym.QiyiInstaller.exe_public_virtual:_void___thiscall_DuiLib::CContainerUI::destructor_void_
mov esp, ebp
pop ebp
ret
Function at 0x4efcb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa4a4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x544af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x18]
call fcn.004032e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallPPStream
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4efd6a
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0x517c84
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4efd60
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403a50
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.SetupType
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00406880
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
call fcn.00404ce0
movzx eax, al
test eax, eax
jne 0x4efd91
mov byte [ebp - 0x1d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004079a0
mov al, byte [ebp - 0x1d]
jmp 0x4efda7
mov byte [ebp - 0x1e], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004079a0
mov al, byte [ebp - 0x1e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4f3210
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x544af0]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x21c], ecx
cmp dword [ebp + 8], 0
je 0x4f3235
cmp dword [ebp + 0xc], 0
jne 0x4f323c
xor eax, eax
jmp 0x4f3340
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x201
push 0
push str.SOFTWAREkingsoft_antivirus
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4f3269
xor eax, eax
jmp 0x4f3340
mov dword [ebp - 8], 0
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004b5f20
add esp, 0xc
mov dword [ebp - 4], 0x208
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.ProgramPath
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f32c0
cmp dword [ebp - 8], 1
je 0x4f32ce
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4f3340
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x218], cx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4f3309
xor eax, eax
jmp 0x4f3340
lea ecx, [ebp - 0x218]
push ecx
call fcn.004b5e21
add esp, 4
add eax, 1
cmp dword [ebp + 8], eax
jae 0x4f3324
xor eax, eax
jmp 0x4f3340
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b6947
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5e12
mov esp, ebp
pop ebp
ret 8
Function at 0x4ad740
Capabilities:
Delete file
Encode data using xor
Query environment variable

Disassembly:
mov ecx, dword [0x51e228]
sub esp, 0xc
cmp ecx, 0xbb40e64e
push ebx
push esi
mov esi, dword [esp + 8]
push edi
je 0x4ad76b
test ecx, 0xffff0000
je 0x4ad76b
mov eax, ecx
not eax
mov dword [0x51e22c], eax
jmp 0x4ad7be
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, esi
xor eax, ebx
xor eax, edi
cmp eax, 0xbb40e64e
je 0x4ad788
test ecx, 0xffff0000
jne 0x4ad78d
mov eax, 0xbb40e64f
mov dword [0x51e228], eax
push 0x51e01a
not eax
mov dword [0x51e22c], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4ad7ad
call fcn.00468a70
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [0x51e228]
cmp ecx, 0xbb40e64e
je 0x4ad7eb
test ecx, 0xffff0000
je 0x4ad7eb
mov edx, dword [0x51dec8]
push 0xd
push 0xc
push 0x32
push 0x19
push edx
call dword [sym.imp.GDI32.dll_Ellipse]
mov edx, dword [0x51e228]
jmp 0x4ad83e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor esi, ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
mov dword [esp + 0x10], esi
mov edi, 5
mov ebx, dword [esp + 0x10]
call ebp
mov esi, eax
xor esi, ebx
dec edi
jne 0x4ad80b
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, 0xbb40e64e
je 0x4ad82c
test dword [0x51e228], 0xffff0000
jne 0x4ad834
mov dword [esp + 0xc], 0xbb40e64f
mov edx, dword [esp + 0xc]
mov dword [0x51e228], edx
cmp edx, 0xbb40e64e
je 0x4ad85a
test edx, 0xffff0000
je 0x4ad85a
mov edi, edx
not edi
mov dword [0x51e22c], edi
jmp 0x4ad88d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
xor esi, eax
mov edi, eax
xor esi, ecx
xor edi, ecx
cmp esi, 0xbb40e64e
je 0x4ad87a
test edx, 0xffff0000
jne 0x4ad87f
mov esi, 0xbb40e64f
mov dword [0x51e228], esi
not esi
mov dword [0x51e22c], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x51e104], eax
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x403203
pop dword [ebp - 0x14]
mov eax, 0xdd7e5501
add eax, 0x22c1dd02
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x682e2074
sub dword [ebp - 0x24], 0x19dbdb29
mov dword [ebp - 0x20], 0x2bf462ef
sub dword [ebp - 0x20], 0xf9c116aa
mov dword [ebp - 0x1c], 0xd542f6ea
add dword [ebp - 0x1c], 0x77094d44
mov dword [ebp - 0x18], 0x5996fae9
sub dword [ebp - 0x18], 0x5996fae9
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xadb988f4
add dword [ebp - 0x24], 0xc6b8e062
mov dword [ebp - 0x20], 0xf9e62c06
sub dword [ebp - 0x20], 0xb879ca91
mov dword [ebp - 0x1c], 0x7b824466
sub dword [ebp - 0x1c], 0x1812d7fa
mov dword [ebp - 0x18], 0x3d71dea7
sub dword [ebp - 0x18], 0x3d71dea7
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x37c85
push 0
call eax
mov ecx, 0x4cc1
mov edx, eax
mov ebx, 0xf6423be4
add ebx, 0x9fed41c
add ebx, dword [ebp - 0x14]
mov esi, 0x10c11a58
add esi, 0xad269d54
add dword [ebp - 0x10], 0xa4475fd9
mov edi, dword [ebx]
sub dword [ebp - 4], 0x32dd906d
sub edi, esi
add dword [ebp - 0xc], 0x9368461c
mov dword [edx], edi
xor dword [ebp - 0x10], edx
add edx, 0x653eab92
sub edx, 0x653eab8e
add ebx, 0x75f6d538
sub ebx, 0x75f6d534
loop 0x403315
add eax, 0x104bd551
add eax, 0xefb55086
xor ebx, ebx
add ebx, eax
add eax, 0x15f4a4eb
add eax, 0xea0b5b1a
mov ecx, 0x626daecc
add ecx, 0x9dd25134
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401729
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x40302c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
call fcn.004015e1
xor esi, esi
cmp dword [section..data], 5
jbe 0x4017a1
mov ecx, dword [0x40300c]
mov edx, 0x20000
and ecx, edx
mov eax, esi
or eax, ecx
je 0x4017a1
mov ecx, dword [0x403014]
mov eax, ecx
and eax, edx
cmp esi, dword [0x403010]
jne 0x4017a1
cmp eax, ecx
jne 0x4017a1
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], 0x401108
push eax
push 3
push esi
push esi
push 0x401221
push section..data
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x12
mov dword [ebp - 0xc], esi
call fcn.00401688
push 1
push esi
push esi
push 0x40111c
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004017d0
leave
ret 0x10

Function at 0x401d30
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402058
call fcn.00401f90
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401d90
cmp eax, 0xffffffff
je 0x401d90
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401d89
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401d89
cmp edx, 0x10000000
jae 0x401d89
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401d86
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401e10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401e4e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401e46
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401e50
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401e36
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401f30
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401f61
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401f61
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401f61
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4020ab
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x40100c
push 0x401011
lea eax, [ebp - 0x10]
mov esi, eax
push eax
call dword [sym.imp.MSVCRT.DLL_sprintf]
add esi, eax
lea eax, [ebp - 0x10]
push eax
push 1
call dword [sym.imp.USER32.DLL_SetWindowTextA]
push 0x10
lea eax, [ebp - 0x10]
push eax
push 1
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov esp, ebp
pop ebp
ret