joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403920
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
sub esp, 0x61c
mov eax, dword [0x425074]
xor eax, esp
mov dword [esp + 0x618], eax
push 0x105
push 0x4275c0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40395f
xor al, al
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0040a920
add esp, 0x61c
ret
push edi
push str.4657C1B0_4595_4005_A55C_7AC73D8A31B4
mov edx, 0x105
mov edi, 0x4275c0
call fcn.00402f30
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call fcn.00411980
add esp, 0xc
push 0x104
lea edx, [esp + 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4039e3
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00411980
add esp, 0xc
push 0x104
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x4039fb
xor al, al
pop edi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0040a920
add esp, 0x61c
ret
push ebx
push 0
push 0x4275c0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push 0x4275c0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4225d8
mov edx, 0x105
mov edi, 0x4275c0
call fcn.00402f30
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, 0x105
call fcn.00402f30
push 0x4227f8
mov edx, 0x105
call fcn.00402f30
push 0x4227fc
mov edx, 0x105
call fcn.00402f30
push 0x4227f8
mov edx, 0x105
call fcn.00402f30
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x422]
push eax
mov word [esp + 0x424], dx
call fcn.00411980
add esp, 0xc
lea ebx, [esp + 0x418]
call fcn.00403730
mov ecx, ebx
push ecx
mov edx, 0x105
call fcn.00402f30
push str..dat
mov edx, 0x105
call fcn.00402f30
mov ecx, dword [esp + 0x620]
pop ebx
pop edi
xor ecx, esp
mov al, 1
call fcn.0040a920
add esp, 0x61c
ret

Function at 0x4041d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDCAA2D3B2_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404239
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x24], esi
call edi
test eax, eax
jne 0x404238
mov esi, dword [esp + 0xc]
cmp esi, 0x104
ja 0x404238
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push edx
call edi
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x404248
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x404780
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x425074]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x42031c]
push esi
push edi
mov esi, edx
mov dword [esi], eax
mov edi, ecx
mov ecx, dword [0x420320]
mov dword [esi + 4], ecx
mov edx, dword [0x420324]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
mov dword [esi + 8], edx
mov eax, dword [0x420328]
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
mov dword [esi + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40484d
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00411980
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi + 0x10]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404842
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x26
jne 0x404842
lea edi, [esp + 0x18]
call fcn.00404640
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a920
add esp, 0x224
ret
Function at 0x404870
Capabilities:
Set registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x425074]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x234]
push ebx
mov ebx, dword [esp + 0x234]
push ebp
mov ebp, dword [esp + 0x22c]
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [esp + 0x238]
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x2e]
push edx
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], cx
call fcn.00411980
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov edx, eax
shr ecx, 0x18
push ecx
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
push edx
mov eax, ebx
shr eax, 0x18
push eax
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
push edx
mov eax, ebx
shr eax, 8
movzx ecx, al
push ecx
movzx edx, bl
push edx
mov eax, esi
shr eax, 0x10
push eax
movzx ecx, si
push ecx
push edi
push str._08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x60]
push 0x104
push edx
call fcn.0040b290
add esp, 0x44
lea eax, [esp + 0x10]
push eax
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x40495a
lea ecx, [esp + 0x10]
push ecx
push str.CLSIDCAA2D3B1_4BB5_4a45_A17A_122773379D99
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40495a
xor eax, eax
jmp 0x4049a5
lea eax, [esp + 0x24]
mov esi, 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404966
mov ecx, dword [ebp + 0x10]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x404998
xor esi, esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a920
add esp, 0x220
ret 0x14
Function at 0x4049c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41f9d0
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x425074]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425074]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
xor edi, edi
push 0x208
mov esi, ecx
lea edx, [esp + 0x2a]
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
mov word [esp + 0x30], cx
call fcn.00411980
add esp, 0xc
cmp esi, edi
je 0x404a44
cmp word [esi], di
je 0x404a44
push 0x105
push esi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x404aa6
push 0x105
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x24]
push 0x5c
push edx
call fcn.0040ae1e
add esp, 8
cmp eax, edi
je 0x404a6e
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x20a
lea eax, [esp + 0x24]
cmp word [eax], di
je 0x404a86
add eax, 2
sub ecx, 1
jne 0x404a77
jmp 0x404aa6
cmp ecx, edi
je 0x404aa6
mov eax, 0x20a
sub eax, ecx
mov edx, 0x20a
sub edx, eax
lea ecx, [esp + eax*2 + 0x24]
mov eax, 0x4229e4
call fcn.00402ee0
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x404be5
push edi
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.0040b3f1
push esi
mov ebp, eax
push edi
push ebp
call fcn.00411980
push esi
call fcn.0040b3f1
push esi
mov edi, eax
push 0
push edi
call fcn.00411980
add esp, 0x20
test ebp, ebp
je 0x404bd4
test edi, edi
je 0x404bd4
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push eax
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404bd4
push edi
mov eax, ebp
mov ecx, esi
call fcn.00408ae0
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
push str._nSN
push edi
call fcn.0040b400
push str._nID
push edi
call fcn.0040b400
push str._nACTIONID
push edi
call fcn.0040b400
add esp, 0x18
test eax, eax
je 0x404bb2
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x404bb2
add eax, 0xa
xor ebx, ebx
cmp byte [eax], bl
je 0x404bae
sub ecx, eax
mov esi, eax
mov dword [esp + 0x14], ecx
movsx edx, byte [esi]
push edx
push str._r_n_b
call fcn.0040b4a0
add esp, 8
test eax, eax
jne 0x404baa
cmp ebx, 0x20
jge 0x404baa
mov al, byte [esi]
mov ecx, dword [esp + 0x14]
mov byte [ecx + esi], al
inc esi
inc ebx
cmp byte [esi], 0
jne 0x404b80
mov ecx, dword [esp + 0x18]
mov byte [ecx + ebx], 0
push str._nTITLE
push edi
call fcn.0040b400
push ebp
mov dword [esp + 0x20], 1
call fcn.0040b1d6
push edi
call fcn.0040b1d6
add esp, 0x10
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x404be7
mov eax, edi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a920
add esp, 0x22c
ret
Function at 0x405b20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x425074]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebp
mov ebp, dword [esp + 0x228]
push esi
push edi
xor ecx, ecx
mov word [ebx], cx
mov ecx, 8
mov esi, str.SOFTWARERising_
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x1e8
push eax
lea edx, [esp + 0x46]
push edx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
movsw word es:[edi], word [esi]
call fcn.00411980
lea eax, [esp + 0x28]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405b81
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x1c]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ba0
mov ecx, 0x20a
sub ecx, edx
sub eax, esi
push ecx
sar eax, 1
push ebp
lea edx, [esp + eax*2 + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [esp + 0xc]
push eax
mov esi, 1
push esi
push 0
lea ecx, [esp + 0x28]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405c76
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x20]
push eax
push 0
push str.installpath
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c4d
push 0x5c
push ebx
call fcn.0040ae1e
add esp, 8
test eax, eax
je 0x405c51
cmp word [eax + 2], 0
jne 0x405c51
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a920
add esp, 0x220
ret
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a920
add esp, 0x220
ret
mov ecx, dword [esp + 0x228]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040a920
add esp, 0x220
ret

Function at 0x405ca0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425074]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00411980
add esp, 0xc
push 0x208
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x405cfb
lea eax, [esp]
push 0x5c
push eax
call fcn.0040ae1e
add esp, 8
test eax, eax
je 0x405cfb
xor ecx, ecx
mov word [eax], cx
push edi
push str.NetConfig.ini
mov edx, 0x104
lea edi, [esp + 8]
call fcn.00402f30
mov edx, edi
push edx
push 0x104
push esi
push 0x422c0c
push 0x422c54
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x405d49
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040a920
add esp, 0x20c
ret
push 0x2e
push esi
call fcn.0040b7e6
add esp, 8
test eax, eax
je 0x405d5d
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040a920
add esp, 0x20c
ret
Function at 0x4083e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x28
push esi
lea ecx, [esp + 8]
xor eax, eax
push ecx
push 0x422e7c
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
mov word [esp + 0x24], ax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4084e0
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
push str.always
push ecx
call esi
test eax, eax
jne 0x408464
cmp dword [esp + 0xc], 1
je 0x4084bb
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1e]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push 0
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
push str.lasttime
push ecx
call esi
test eax, eax
jne 0x4084d0
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x10]
je 0x4084d5
mov ecx, dword [esp + 8]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.lasttime
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x28
ret
cmp eax, 2
je 0x4084a0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x28
ret

Function at 0x4084f0
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
push ebx
mov dword [esp + 0xc], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
ja 0x408514
xor eax, eax
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.0040ac01
mov esi, eax
add esp, 4
test esi, esi
je 0x408573
push edi
push 0
push esi
call fcn.00411980
mov ecx, dword [esp + 0x14]
add esp, 0xc
push esi
push edi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40856a
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4225d8
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40857b
push esi
call fcn.0040accb
add esp, 4
pop esi
xor eax, eax
pop edi
add esp, 0xc
ret
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
mov edi, dword [esp + 0x18]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push str._u._u._u._u
mov eax, 0x104
call fcn.00402f90
push esi
call fcn.0040accb
add esp, 0x18
pop esi
mov eax, 1
pop edi
add esp, 0xc
ret
Function at 0x4085c0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x425074]
xor eax, esp
mov dword [esp + 0x24], eax
xor eax, eax
push esi
push str.GetNativeSystemInfo
push str.kernel32.dll
xor esi, esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40861b
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x408626
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
cmp ax, 9
je 0x408636
cmp ax, 6
jne 0x40864b
mov eax, 1
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040a920
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a920
add esp, 0x28
ret

Function at 0x408660
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x425074]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00411980
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4086b3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040a920
add esp, 0x118
ret
mov eax, dword [esp + 4]
mov dword [0x426634], 0x63
cmp eax, 5
jne 0x4086dd
cmp dword [esp + 8], 1
jne 0x408732
call fcn.004085c0
test eax, eax
jne 0x408732
mov dword [0x426634], eax
jmp 0x408732
cmp eax, 6
jne 0x408713
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x4086f9
call fcn.004085c0
neg eax
sbb eax, eax
neg eax
inc eax
jmp 0x40872d
cmp eax, 2
je 0x408703
cmp eax, 3
jne 0x408732
call fcn.004085c0
neg eax
sbb eax, eax
neg eax
add eax, 3
jmp 0x40872d
cmp eax, 0xa
jne 0x408732
cmp dword [esp + 8], 0
jne 0x408732
call fcn.004085c0
neg eax
sbb eax, eax
neg eax
add eax, 5
mov dword [0x426634], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.0040a920
add esp, 0x118
ret
Function at 0x40a920
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425074]
jne 0x40a92a
repz ret
jmp fcn.0040c2d3

Function at 0x416f53
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.00413201
and dword [ebp - 4], 0
cmp dword [0x427224], 0
mov ebx, eax
jne 0x417004
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4170b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4170b5
push eax
call fcn.0041318f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x427224], eax
call esi
push eax
call fcn.0041318f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x427228], eax
call esi
push eax
call fcn.0041318f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42722c], eax
call esi
push eax
call fcn.0041318f
pop ecx
mov dword [0x427234], eax
test eax, eax
je 0x417004
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041318f
pop ecx
mov dword [0x427230], eax
mov eax, dword [0x427230]
cmp eax, ebx
je 0x41705c
cmp dword [0x427234], ebx
je 0x41705c
push eax
call fcn.0041320a
push dword [0x427234]
mov esi, eax
call fcn.0041320a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41705c
test edi, edi
je 0x41705c
call esi
test eax, eax
je 0x417053
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417053
test byte [ebp - 0xc], 1
jne 0x41705c
or dword [ebp + 0x10], 0x200000
jmp 0x417095
mov eax, dword [0x427228]
cmp eax, ebx
je 0x417095
push eax
call fcn.0041320a
pop ecx
test eax, eax
je 0x417095
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417095
mov eax, dword [0x42722c]
cmp eax, ebx
je 0x417095
push eax
call fcn.0041320a
pop ecx
test eax, eax
je 0x417095
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x427224]
call fcn.0041320a
pop ecx
test eax, eax
je 0x4170b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4170b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a360
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x423938
push 0x4102a0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
mov eax, dword [0x425074]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x3c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 0xc], 0
jne 0x41a3a5
mov dword [ebp - 0x1c], 0x10000
jmp 0x41a3b0
mov eax, dword [ebp + 0xc]
add eax, 0x10000
mov dword [ebp - 0x1c], eax
push 0x1c
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.00411980
add esp, 0xc
jmp 0x41a3cb
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x41a3e8
jmp 0x41a507
mov eax, dword [ebp - 0x2c]
and eax, 0xfff
cmp eax, 0xfff
jne 0x41a3fc
jmp 0x41a507
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jae 0x41a40c
jmp 0x41a507
cmp dword [ebp - 0x28], 0x1000
jne 0x41a42d
mov edx, dword [ebp - 0x24]
and edx, 0xff
cmp edx, 1
je 0x41a42d
mov eax, dword [ebp - 0x24]
and eax, 0x100
je 0x41a42f
jmp 0x41a3c2
mov dword [ebp - 4], 0
push 0
push 0x40
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x41a45c
mov dword [ebp - 4], 0xfffffffe
jmp 0x41a3c2
movzx ecx, word [ebp - 0x80]
cmp ecx, 0x5a4d
jne 0x41a476
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
ja 0x41a476
cmp dword [ebp - 0x44], 0x40
jae 0x41a482
mov dword [ebp - 4], 0xfffffffe
jmp 0x41a3c2
push 0
push 0xf8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x41a4ae
mov dword [ebp - 4], 0xfffffffe
jmp 0x41a3c2
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x41a4c5
mov dword [ebp - 4], 0xfffffffe
jmp 0x41a3c2
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x84]
jmp 0x41a509
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0040a920
mov esp, ebp
pop ebp
ret 0xc