joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a5f0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x234
mov eax, dword [0x491870]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [str.InstallTag]
mov ecx, dword [0x478a54]
mov edx, dword [0x478a58]
mov dword [esp + 0x10], eax
mov eax, dword [0x478a5c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x478a60]
mov dword [esp + 0x1c], eax
xor eax, eax
push 0x206
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov dx, word [0x478a64]
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x30], dx
mov dword [esp + 0xc], 0x31
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x34], ax
call fcn.00451570
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x47865c
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.0044e2ae
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 8
lea edx, [esp + 8]
push edx
push 0x478a68
lea eax, [esp + 0x20]
push eax
push str.Qs60557
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x28]
push ecx
push 0x478c24
lea edx, [esp + 0x18]
push edx
push str.Qs60557
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
xor ecx, ecx
mov eax, 0x31
cmp ax, word [esp]
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0044dee5
add esp, 0x234
ret

Function at 0x41a910
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x491870]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push 0x114
xor esi, esi
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00451570
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a9c7
cmp dword [esp + 0x18], 5
jbe 0x41a9c7
lea edx, [esp + 4]
push edx
push 0x20019
push esi
mov eax, 4
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a9c7
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push str.EnableLUA
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a9bc
xor ecx, ecx
cmp dword [esp + 8], 1
sete cl
mov esi, ecx
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0044dee5
add esp, 0x128
ret
Function at 0x41c8a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x290
mov eax, dword [0x491870]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x29c]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9a]
push ecx
mov word [esp + 0x9c], ax
call fcn.00451570
mov ebx, str.Statistic.ini
lea edi, [esp + 0x9c]
call fcn.0040f460
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x66]
push eax
mov word [esp + 0x68], dx
call fcn.00451570
xor ecx, ecx
push 0x3e
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.00451570
add esp, 0x24
mov eax, edi
push eax
push 0x20
lea ecx, [esp + 0x18]
push ecx
push str.0_121
push str.ShortKey
push str.Qs60557
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00407570
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jle 0x41c983
push 0x2c
push eax
call fcn.0044ef45
add esp, 8
test eax, eax
je 0x41c983
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x41c983
lea edx, [esp + eax*2 + 0x12]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x14], cx
lea eax, [esp + 0x54]
push 0x20
push eax
call fcn.0044e23f
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call fcn.0044eaf8
lea edx, [esp + 0x54]
push edx
mov dword [esi], eax
call fcn.0044eaf8
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebp
pop ebx
test edx, edx
jg 0x41c9c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28c]
xor ecx, esp
mov eax, 1
call fcn.0044dee5
add esp, 0x290
ret 4
Function at 0x41c9e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x290
mov eax, dword [0x491870]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x29c]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9a]
push ecx
mov word [esp + 0x9c], ax
call fcn.00451570
mov ebx, str.Statistic.ini
lea edi, [esp + 0x9c]
call fcn.0040f460
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x66]
push eax
mov word [esp + 0x68], dx
call fcn.00451570
xor ecx, ecx
push 0x3e
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.00451570
add esp, 0x24
mov eax, edi
push eax
push 0x20
lea ecx, [esp + 0x18]
push ecx
push 0x47d1bc
push str.AltWndKey
push str.Qs60557
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00407570
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jle 0x41cac3
push 0x2c
push eax
call fcn.0044ef45
add esp, 8
test eax, eax
je 0x41cac3
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x41cac3
lea edx, [esp + eax*2 + 0x12]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x14], cx
lea eax, [esp + 0x54]
push 0x20
push eax
call fcn.0044e23f
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call fcn.0044eaf8
lea edx, [esp + 0x54]
push edx
mov dword [esi], eax
call fcn.0044eaf8
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebp
pop ebx
test edx, edx
jg 0x41cb02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28c]
xor ecx, esp
mov eax, 1
call fcn.0044dee5
add esp, 0x290
ret 4
Function at 0x41cb20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x290
mov eax, dword [0x491870]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x29c]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9a]
push ecx
mov word [esp + 0x9c], ax
call fcn.00451570
mov ebx, str.Statistic.ini
lea edi, [esp + 0x9c]
call fcn.0040f460
xor edx, edx
push 0x3e
push edx
lea eax, [esp + 0x66]
push eax
mov word [esp + 0x68], dx
call fcn.00451570
xor ecx, ecx
push 0x3e
push ecx
lea edx, [esp + 0x32]
push edx
mov word [esp + 0x34], cx
call fcn.00451570
add esp, 0x24
mov eax, edi
push eax
push 0x20
lea ecx, [esp + 0x18]
push ecx
push str.2_81
push str.SndKey
push str.Qs60557
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x10]
call fcn.00407570
mov eax, dword [esp + 0xc]
cmp dword [eax - 0xc], 0
jle 0x41cc03
push 0x2c
push eax
call fcn.0044ef45
add esp, 8
test eax, eax
je 0x41cc03
sub eax, dword [esp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x41cc03
lea edx, [esp + eax*2 + 0x12]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x14], cx
lea eax, [esp + 0x54]
push 0x20
push eax
call fcn.0044e23f
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call fcn.0044eaf8
lea edx, [esp + 0x54]
push edx
mov dword [esi], eax
call fcn.0044eaf8
mov dword [ebp], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop ebp
pop ebx
test edx, edx
jg 0x41cc42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28c]
xor ecx, esp
mov eax, 1
call fcn.0044dee5
add esp, 0x290
ret 4
Function at 0x41d284
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x910
mov eax, dword [0x491870]
xor eax, esp
mov dword [esp + 0x90c], eax
push esi
mov esi, ecx
call fcn.0042a06d
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x112]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x114], ax
call fcn.00451570
xor edx, edx
push 0xfe
push edx
lea eax, [esp + 0x1e]
push eax
mov word [esp + 0x20], dx
call fcn.00451570
mov ecx, dword [esi + 0x78]
push ecx
mov edx, ecx
push edx
push str._DEFAULT__r_nBASEURL_s_r_n_000214A0_0000_0000_C000_000000000046__r_n19_2_r_n_InternetShortcut__r_nURL_s_r_nIDList_r_n
lea eax, [esp + 0x534]
push 0x200
push eax
call fcn.0044e418
add esp, 0x2c
push 0
push 0
push 0x200
lea ecx, [esp + 0x31c]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x524]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x108]
push eax
push 0
push 0
push 6
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x80
lea ecx, [esp + 0xc]
push ecx
push 0x3fa
mov ecx, esi
call fcn.0042b1e7
push 0x47a654
lea edx, [esp + 0x10c]
push 0x104
push edx
call fcn.0044e2ae
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x118]
push 0x104
push ecx
call fcn.0044e2ae
push str..url
lea edx, [esp + 0x124]
push 0x104
push edx
call fcn.0044e2ae
push 0x478fa4
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.0044f776
add esp, 0x30
lea eax, [esp + 0x310]
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d3a4
sub eax, edx
mov edx, dword [esp]
push edx
push 1
push eax
lea eax, [esp + 0x318]
push eax
call fcn.0044f92b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0044fa24
mov ecx, dword [esp + 0x920]
add esp, 0x14
xor ecx, esp
call fcn.0044dee5
add esp, 0x910
ret
Function at 0x423327
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42336f
call fcn.0042e9e8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42336f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4233b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42339b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42339b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4233af
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x429ece
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x429f15
call fcn.0042e9e8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429f15
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x429f31
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00429a46
mov esi, eax
test edi, edi
je 0x429f2f
test ebx, ebx
je 0x429f2f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42a8ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042e9e8
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42a8e7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042a4fa
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x42a945
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42a969
cmp dword [edi + 0x54], 0
jne 0x42a969
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042e9e8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042a906
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42b988
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x469be7
call fcn.00451387
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42b9ad
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42b9f3
lea ecx, [ebp - 0x10]
call fcn.00406ce0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004212c4
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004072a0
mov eax, esi
call fcn.0045145f
ret 8

Function at 0x4394a2
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x4394c6
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x4394d4
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x4394c0
xor eax, eax
inc eax
pop esi
ret

Function at 0x441551
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x46ad76
call fcn.00451387
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00407570
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4415b3
call fcn.0042e2c2
cmp eax, 1
jne 0x4415b3
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x4700f0
push eax
call fcn.0040c5a0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00406f70
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004072a0
mov dword [ebp + 8], reloc.DSOUND.dll_DirectSoundCreate
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004072a0
mov eax, esi
call fcn.0045145f
ret 0x10
Function at 0x4415dc
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x46ad76
call fcn.00451387
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00407570
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44163e
call fcn.0042e2c2
cmp eax, 1
jne 0x44163e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x4700f0
push eax
call fcn.0040c5a0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00406f70
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004072a0
mov dword [ebp + 8], reloc.DSOUND.dll_DirectSoundCreate
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004072a0
mov eax, esi
call fcn.0045145f
ret 0x14

Function at 0x44dee5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x491870]
jne 0x44deef
repz ret
jmp fcn.004534b2

Function at 0x45d0dd
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.00452ec1
and dword [ebp - 4], 0
cmp dword [0x49660c], 0
mov ebx, eax
jne 0x45d18e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45d23f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45d23f
push eax
call fcn.00452e4f
mov dword [esp], 0x475ae0
push edi
mov dword [0x49660c], eax
call esi
push eax
call fcn.00452e4f
mov dword [esp], 0x475acc
push edi
mov dword [0x496610], eax
call esi
push eax
call fcn.00452e4f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x496614], eax
call esi
push eax
call fcn.00452e4f
pop ecx
mov dword [0x49661c], eax
test eax, eax
je 0x45d18e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00452e4f
pop ecx
mov dword [0x496618], eax
mov eax, dword [0x496618]
cmp eax, ebx
je 0x45d1e6
cmp dword [0x49661c], ebx
je 0x45d1e6
push eax
call fcn.00452eca
push dword [0x49661c]
mov esi, eax
call fcn.00452eca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45d1e6
test edi, edi
je 0x45d1e6
call esi
test eax, eax
je 0x45d1dd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45d1dd
test byte [ebp - 0xc], 1
jne 0x45d1e6
or dword [ebp + 0x10], 0x200000
jmp 0x45d21f
mov eax, dword [0x496610]
cmp eax, ebx
je 0x45d21f
push eax
call fcn.00452eca
pop ecx
test eax, eax
je 0x45d21f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45d21f
mov eax, dword [0x496614]
cmp eax, ebx
je 0x45d21f
push eax
call fcn.00452eca
pop ecx
test eax, eax
je 0x45d21f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49660c]
call fcn.00452eca
pop ecx
test eax, eax
je 0x45d23f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45d241
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x463f90
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x48a608
push 0x4518f0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x491870]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x463fda
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x464010
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x46419b
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x464048
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x46419b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x464074
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x46419b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x464097
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x464146
push str..detour
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
add eax, dword [ebp - 0x20]
push eax
call fcn.00453da0
add esp, 8
test eax, eax
jne 0x464141
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0xc], 0
je 0x4640e2
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax + 0x10], 0
jne 0x4640e4
jmp 0x464146
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x40
jb 0x464111
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0x727444
je 0x464113
jmp 0x464146
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 8], 0
jne 0x464127
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x46419b
jmp 0x46408e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x46419b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x464450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0x678
jne 0x464471
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x464483
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4645cb
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4645c8
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4645ac
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
call fcn.00453650
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call fcn.00453650
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
je 0x464589
lea ecx, [ebp - 0x10]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x464587
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x664
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00453650
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x464590
mov dword [ebp - 8], 1
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8