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

Disassembly:
sub esp, 0x61c
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x618], eax
push 0x105
push 0x4295c0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4041ef
xor al, al
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0040b1b0
add esp, 0x61c
ret
push edi
push str.4657C1B0_4595_4005_A55C_7AC73D8A31B4
mov edx, 0x105
mov edi, 0x4295c0
call fcn.004034d0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x216]
push ecx
mov word [esp + 0x218], ax
call fcn.00412210
add esp, 0xc
push 0x104
lea edx, [esp + 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x404273
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00412210
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 0x40428b
xor al, al
pop edi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0040b1b0
add esp, 0x61c
ret
push ebx
push 0
push 0x4295c0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push 0x4295c0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x423640
mov edx, 0x105
mov edi, 0x4295c0
call fcn.004034d0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov edx, 0x105
call fcn.004034d0
push 0x4238a8
mov edx, 0x105
call fcn.004034d0
push 0x4238ac
mov edx, 0x105
call fcn.004034d0
push 0x4238a8
mov edx, 0x105
call fcn.004034d0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x422]
push eax
mov word [esp + 0x424], dx
call fcn.00412210
add esp, 0xc
lea ebx, [esp + 0x418]
call fcn.00403fc0
mov ecx, ebx
push ecx
mov edx, 0x105
call fcn.004034d0
push str..dat
mov edx, 0x105
call fcn.004034d0
mov ecx, dword [esp + 0x620]
pop ebx
pop edi
xor ecx, esp
mov al, 1
call fcn.0040b1b0
add esp, 0x61c
ret

Function at 0x404a40
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 0x404aa9
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 0x404aa8
mov esi, dword [esp + 0xc]
cmp esi, 0x104
ja 0x404aa8
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 0x404ab8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x404ff0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [0x42134c]
push esi
push edi
mov esi, edx
mov dword [esi], eax
mov edi, ecx
mov ecx, dword [0x421350]
mov dword [esi + 4], ecx
mov edx, dword [0x421354]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
mov dword [esi + 8], edx
mov eax, dword [0x421358]
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 0x4050bd
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22]
push eax
mov word [esp + 0x24], dx
call fcn.00412210
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 0x4050b2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x26
jne 0x4050b2
lea edi, [esp + 0x18]
call fcn.00404eb0
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.0040b1b0
add esp, 0x224
ret
Function at 0x4050e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x427074]
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.00412210
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.0040bb20
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 0x4051ca
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 0x4051ca
xor eax, eax
jmp 0x405215
lea eax, [esp + 0x24]
mov esi, 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4051d6
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 0x405208
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.0040b1b0
add esp, 0x220
ret 0x14
Function at 0x405230
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x420250
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427074]
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.00412210
add esp, 0xc
cmp esi, edi
je 0x4052b4
cmp word [esi], di
je 0x4052b4
push 0x105
push esi
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x405316
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.0040b6ae
add esp, 8
cmp eax, edi
je 0x4052de
xor ecx, ecx
mov word [eax + 2], cx
mov ecx, 0x20a
lea eax, [esp + 0x24]
cmp word [eax], di
je 0x4052f6
add eax, 2
sub ecx, 1
jne 0x4052e7
jmp 0x405316
cmp ecx, edi
je 0x405316
mov eax, 0x20a
sub eax, ecx
mov edx, 0x20a
sub edx, eax
lea ecx, [esp + eax*2 + 0x24]
mov eax, 0x423a94
call fcn.00403480
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 0x405455
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.0040bc81
push esi
mov ebp, eax
push edi
push ebp
call fcn.00412210
push esi
call fcn.0040bc81
push esi
mov edi, eax
push 0
push edi
call fcn.00412210
add esp, 0x20
test ebp, ebp
je 0x405444
test edi, edi
je 0x405444
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 0x405444
push edi
mov eax, ebp
mov ecx, esi
call fcn.00409380
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
push str._nSN
push edi
call fcn.0040bc90
push str._nID
push edi
call fcn.0040bc90
push str._nACTIONID
push edi
call fcn.0040bc90
add esp, 0x18
test eax, eax
je 0x405422
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x405422
add eax, 0xa
xor ebx, ebx
cmp byte [eax], bl
je 0x40541e
sub ecx, eax
mov esi, eax
mov dword [esp + 0x14], ecx
movsx edx, byte [esi]
push edx
push str._r_n_b
call fcn.0040bd30
add esp, 8
test eax, eax
jne 0x40541a
cmp ebx, 0x20
jge 0x40541a
mov al, byte [esi]
mov ecx, dword [esp + 0x14]
mov byte [ecx + esi], al
inc esi
inc ebx
cmp byte [esi], 0
jne 0x4053f0
mov ecx, dword [esp + 0x18]
mov byte [ecx + ebx], 0
push str._nTITLE
push edi
call fcn.0040bc90
push ebp
mov dword [esp + 0x20], 1
call fcn.0040ba66
push edi
call fcn.0040ba66
add esp, 0x10
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
jmp 0x405457
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.0040b1b0
add esp, 0x22c
ret
Function at 0x4063b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x427074]
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.00412210
lea eax, [esp + 0x28]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406411
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 0x406430
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 0x406506
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 0x4064dd
push 0x5c
push ebx
call fcn.0040b6ae
add esp, 8
test eax, eax
je 0x4064e1
cmp word [eax + 2], 0
jne 0x4064e1
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.0040b1b0
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.0040b1b0
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.0040b1b0
add esp, 0x220
ret

Function at 0x406530
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x427074]
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.00412210
add esp, 0xc
push 0x208
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x40658b
lea eax, [esp]
push 0x5c
push eax
call fcn.0040b6ae
add esp, 8
test eax, eax
je 0x40658b
xor ecx, ecx
mov word [eax], cx
push edi
push str.NetConfig.ini
mov edx, 0x104
lea edi, [esp + 8]
call fcn.004034d0
mov edx, edi
push edx
push 0x104
push esi
push 0x423cbc
push 0x423d04
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x4065d9
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040b1b0
add esp, 0x20c
ret
push 0x2e
push esi
call fcn.0040c076
add esp, 8
test eax, eax
je 0x4065ed
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040b1b0
add esp, 0x20c
ret
Function at 0x408c80
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 str.SOFTWARERISINGlockie
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 0x408d80
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 0x408d04
cmp dword [esp + 0xc], 1
je 0x408d5b
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 0x408d70
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x10]
je 0x408d75
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 0x408d40
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 0x408d90
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 0x408db4
xor eax, eax
pop edi
add esp, 0xc
ret
push esi
push edi
call fcn.0040b491
mov esi, eax
add esp, 4
test esi, esi
je 0x408e13
push edi
push 0
push esi
call fcn.00412210
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 0x408e0a
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x423640
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x408e1b
push esi
call fcn.0040b55b
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.00403530
push esi
call fcn.0040b55b
add esp, 0x18
pop esi
mov eax, 1
pop edi
add esp, 0xc
ret
Function at 0x408e60
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x427074]
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 0x408ebb
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x408ec6
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 4]
cmp ax, 9
je 0x408ed6
cmp ax, 6
jne 0x408eeb
mov eax, 1
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0040b1b0
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b1b0
add esp, 0x28
ret

Function at 0x408f00
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x427074]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.00412210
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x408f53
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0040b1b0
add esp, 0x118
ret
mov eax, dword [esp + 4]
mov dword [0x428634], 0x63
cmp eax, 5
jne 0x408f7d
cmp dword [esp + 8], 1
jne 0x408fd2
call fcn.00408e60
test eax, eax
jne 0x408fd2
mov dword [0x428634], eax
jmp 0x408fd2
cmp eax, 6
jne 0x408fb3
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x408f99
call fcn.00408e60
neg eax
sbb eax, eax
neg eax
inc eax
jmp 0x408fcd
cmp eax, 2
je 0x408fa3
cmp eax, 3
jne 0x408fd2
call fcn.00408e60
neg eax
sbb eax, eax
neg eax
add eax, 3
jmp 0x408fcd
cmp eax, 0xa
jne 0x408fd2
cmp dword [esp + 8], 0
jne 0x408fd2
call fcn.00408e60
neg eax
sbb eax, eax
neg eax
add eax, 5
mov dword [0x428634], eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.0040b1b0
add esp, 0x118
ret
Function at 0x40b1b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427074]
jne 0x40b1ba
repz ret
jmp fcn.0040cb63

Function at 0x4177e2
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.00413a91
and dword [ebp - 4], 0
cmp dword [0x429224], 0
mov ebx, eax
jne 0x417893
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417944
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417944
push eax
call fcn.00413a1f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429224], eax
call esi
push eax
call fcn.00413a1f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x429228], eax
call esi
push eax
call fcn.00413a1f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42922c], eax
call esi
push eax
call fcn.00413a1f
pop ecx
mov dword [0x429234], eax
test eax, eax
je 0x417893
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413a1f
pop ecx
mov dword [0x429230], eax
mov eax, dword [0x429230]
cmp eax, ebx
je 0x4178eb
cmp dword [0x429234], ebx
je 0x4178eb
push eax
call fcn.00413a9a
push dword [0x429234]
mov esi, eax
call fcn.00413a9a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4178eb
test edi, edi
je 0x4178eb
call esi
test eax, eax
je 0x4178e2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4178e2
test byte [ebp - 0xc], 1
jne 0x4178eb
or dword [ebp + 0x10], 0x200000
jmp 0x417924
mov eax, dword [0x429228]
cmp eax, ebx
je 0x417924
push eax
call fcn.00413a9a
pop ecx
test eax, eax
je 0x417924
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417924
mov eax, dword [0x42922c]
cmp eax, ebx
je 0x417924
push eax
call fcn.00413a9a
pop ecx
test eax, eax
je 0x417924
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429224]
call fcn.00413a9a
pop ecx
test eax, eax
je 0x417944
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417946
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41abf0
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4249e8
push 0x410b30
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
mov eax, dword [0x427074]
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 0x41ac35
mov dword [ebp - 0x1c], 0x10000
jmp 0x41ac40
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.00412210
add esp, 0xc
jmp 0x41ac5b
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 0x41ac78
jmp 0x41ad97
mov eax, dword [ebp - 0x2c]
and eax, 0xfff
cmp eax, 0xfff
jne 0x41ac8c
jmp 0x41ad97
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jae 0x41ac9c
jmp 0x41ad97
cmp dword [ebp - 0x28], 0x1000
jne 0x41acbd
mov edx, dword [ebp - 0x24]
and edx, 0xff
cmp edx, 1
je 0x41acbd
mov eax, dword [ebp - 0x24]
and eax, 0x100
je 0x41acbf
jmp 0x41ac52
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 0x41acec
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ac52
movzx ecx, word [ebp - 0x80]
cmp ecx, 0x5a4d
jne 0x41ad06
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
ja 0x41ad06
cmp dword [ebp - 0x44], 0x40
jae 0x41ad12
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ac52
push 0
push pe_nt_image_headers32
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 0x41ad3e
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ac52
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x41ad55
mov dword [ebp - 4], 0xfffffffe
jmp 0x41ac52
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x84]
jmp 0x41ad99
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.0040b1b0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40894d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x41757c], 0
je 0x40897b
xor eax, eax
cmp dword [0x417588], eax
setne al
jmp 0x408ab4
push esi
push edi
push 0x90
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x88], 2
push 0x4018cc
sete al
mov dword [0x417578], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x408a7c
push 0x4018dc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x417598], eax
test eax, eax
je 0x408a7c
push 0x4018f0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x417594], eax
test eax, eax
je 0x408a7c
push 0x401904
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x417590], eax
test eax, eax
je 0x408a7c
push 0x401914
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41758c], eax
test eax, eax
je 0x408a7c
push 0x401928
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x417584], eax
test eax, eax
je 0x408a7c
push 0x40193c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x417580], eax
test eax, eax
je 0x408a7c
cmp dword [0x417578], esi
je 0x408a62
push 0x401950
jmp 0x408a67
push 0x401960
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x417588], eax
test eax, eax
je 0x408a7c
xor esi, esi
inc esi
jmp 0x408aa6
mov dword [0x417598], esi
mov dword [0x417594], esi
mov dword [0x417590], esi
mov dword [0x41758c], esi
mov dword [0x417588], esi
mov dword [0x417584], esi
mov dword [0x417580], esi
pop edi
mov eax, esi
mov dword [0x41757c], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004153e0
mov esp, ebp
pop ebp
ret