joyce8/EMBER2024-capa huggingface dataset:
Function at 0x897e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x8ad8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x897ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.008947a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x897e61
mov edx, dword [eax]
jmp 0x897e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00896050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x897ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x897ebf
cmp esi, edi
je 0x897ebf
mov ecx, esi
call fcn.0088fa00
push esi
call fcn.0089d1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00894990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x897ef5
mov eax, dword [eax]
jmp 0x897ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00893640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x897f25
mov eax, dword [eax]
jmp 0x897f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x897f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x897f76
cmp esi, edi
je 0x897f76
mov eax, dword [esi]
cmp eax, edi
je 0x897f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x897f6d
push eax
call fcn.0089d1c8
add esp, 4
push esi
call fcn.0089d1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x897f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x897ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x898035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00897e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x897fc5
mov edi, 0x8b28b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x898035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00897e00
add edi, 4
add esp, 0xc
cmp edi, 0x8b28c0
jb 0x898000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x898070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.0089e082
mov esi, eax
add esp, 8
test esi, esi
je 0x898107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x898102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0089d946
add esp, 8
test eax, eax
je 0x8980e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x8980e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0089d946
add esp, 8
test eax, eax
jne 0x8980c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x898102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x898f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x8ad9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x899002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0089cdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x899002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.008946e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0089d20b
push 0x10
call fcn.0089d1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x898fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.008891c0
jmp 0x898fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00898b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x898ff0
mov ecx, edi
call fcn.008892c0
push edi
call fcn.0089d1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x899021
inc ebx
cmp ebx, 0x20
jb 0x898f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x89a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8ae808
push 0x89e288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x89a329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x89a329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0089d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x89a329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x89a329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x89a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0089a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x89ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x89ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x89ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x89ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x89ad94
push eax
push esi
call fcn.0089d20b
add esp, 8
pop esi
ret 0x10

Function at 0x89ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x89ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x89ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x8b3320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0089cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x89adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x89ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x89aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x89aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x8b3320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0089cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x89aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x89ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x89b000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x89b131
push esi
call fcn.0089e145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0088d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x89b131
push 0
push ebp
call fcn.0088d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0088d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x89b08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0088d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x89b121
push 0x8b3918
push edi
call fcn.0089c3f0
push eax
push ebx
push esi
call fcn.0089af60
push 0x8b38f8
push edi
call fcn.0089c3f0
push eax
push ebx
push esi
call fcn.0089af60
push 0x8b38d8
push edi
call fcn.0089c3f0
push eax
push ebx
push esi
call fcn.0089af60
push 0x8b38c0
push edi
call fcn.0089c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0089af60
push 0x8b38a0
push edi
call fcn.0089c3f0
push eax
push ebx
push esi
call fcn.0089af60
push 0x8b3888
push edi
call fcn.0089c3f0
push eax
push ebx
push esi
call fcn.0089af60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x89c1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0089c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0089c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0089c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0089c140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x89cbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x89cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x8ae87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x89cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x89cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404093
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x44
mov eax, 0x48f4c5
call fcn.00430318
mov edi, ecx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040c127
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.0040c127
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 3
call dword [eax + 4]
mov dword [edi + 0x32c], eax
jmp 0x4040ef
mov eax, dword [edi + 0x32c]
mov dword [ebp - 4], 2
cmp eax, 0x80004004
je 0x40413f
cmp dword [ebp - 0x34], 0
jne 0x40413f
test eax, eax
je 0x40413f
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00404021
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 6
call fcn.0040c14b
push dword [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.00430389
pop ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040c14b
lea eax, [edi + 0x2ac]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00403f40
xor esi, esi
pop ecx
pop ecx
cmp dword [edi + 0x298], esi
jbe 0x40417d
cmp esi, 0x20
jae 0x40417d
mov eax, dword [edi + 0x294]
push dword [eax + esi*4]
lea eax, [ebp - 0x38]
push eax
call fcn.00403f40
inc esi
pop ecx
pop ecx
cmp esi, dword [edi + 0x298]
jb 0x40415b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x18]
cmp eax, 0x3e8
ja 0x4041a7
cmp byte [edi + 0x328], 0
jne 0x40419c
cmp dword [ebp - 0x40], 0
je 0x4041a7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [edi + 0x14c]
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2e8]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0xb8]
call fcn.00403f6a
mov ecx, edi
call fcn.00402f8e
cmp dword [ebp - 0x34], 0
jne 0x40427d
cmp dword [edi + 0x2d4], 0
je 0x40433c
lea eax, [edi + 0x2c4]
push eax
lea ecx, [edi + 0xdc]
call fcn.00403f10
jmp 0x40433c
lea ecx, [ebp - 0x50]
call fcn.0040c127
xor ebx, ebx
mov byte [ebp - 4], 8
cmp dword [edi + 0xa4], ebx
jbe 0x4042ad
mov eax, dword [edi + 0xa0]
lea ecx, [ebp - 0x50]
push dword [eax + ebx*4]
call fcn.0040c2ef
inc ebx
cmp ebx, dword [edi + 0xa4]
jb 0x404293
cmp dword [ebp - 0x4c], 0
lea ebx, [edi + 0xc4]
mov ecx, ebx
lea eax, [ebp - 0x44]
je 0x4042c1
lea eax, [ebp - 0x50]
push eax
call fcn.0040c14b
cmp dword [edi + 0x298], 0
jbe 0x40430c
lea eax, [edi + 0x2ac]
mov ecx, ebx
push eax
call fcn.0040c2ef
push 0x496b14
mov ecx, ebx
call fcn.0040c37c
mov eax, dword [edi + 0x294]
mov ecx, ebx
push dword [eax]
call fcn.0040c2ef
mov eax, dword [edi + 0x294]
lea ecx, [edi + 0xd0]
push dword [eax]
call fcn.0040c14b
cmp dword [edi + 0xc8], 0
jne 0x404320
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.0040c14b
cmp dword [edi + 0x32c], 0
jne 0x404333
mov dword [edi + 0x32c], 0x80004005
push dword [ebp - 0x50]
call fcn.00430389
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x44]
call fcn.00430389
push dword [ebp - 0x38]
call fcn.00430389
pop ecx
pop ecx
mov ecx, edi
mov dword [ebp - 4], 9
call fcn.00402f57
call fcn.00430276
ret
Function at 0x404773
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], ecx
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
test edi, edi
je 0x4047a9
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jb 0x40479c
cmp esi, ecx
jae 0x40488c
mov eax, esi
sub eax, edi
lea eax, [ebx + eax*4]
mov dword [ebp - 4], eax
xor edx, edx
mov ecx, dword [ebx + esi*4 - 4]
mov eax, esi
mov dword [ebp + 8], ecx
div edi
mov dword [ebp - 8], eax
test edx, edx
jne 0x404822
movzx ecx, cl
movzx edx, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
shr ecx, 0x18
shl edx, 8
movzx eax, byte [ecx + str.cw]
mov ecx, dword [ebp + 8]
or edx, eax
mov eax, ecx
shl edx, 8
shr eax, 0x10
movzx eax, al
shr ecx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, cl
shl edx, 8
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x496c38]
xor ecx, eax
or ecx, edx
jmp 0x404872
cmp edi, 6
jbe 0x404872
cmp edx, 4
jne 0x404872
mov edx, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add edx, 4
xor eax, ecx
mov dword [ebp - 4], edx
mov dword [ebx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4047bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405cd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov edx, dword [edx]
and edx, 7
cmp eax, 5
jae 0x405ced
xor eax, eax
jmp 0x405e0a
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [eax - 4]
add ecx, ebx
push esi
mov dword [ebp + 0xc], ecx
lea esi, [edi + ebx]
jmp 0x405d08
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x405d0c
inc esi
cmp esi, ecx
jb 0x405cff
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, ebx
sub edi, ebx
cmp esi, dword [ebp + 0xc]
jae 0x405df7
cmp ecx, 2
jbe 0x405d62
xor edx, edx
movzx ebx, byte [esi + 4]
lea eax, [ebx + 1]
test al, 0xfe
jne 0x405de8
movzx eax, byte [esi + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x405d8e
add ebx, eax
jmp 0x405d90
shr edx, cl
test edx, edx
je 0x405d26
cmp edx, 4
ja 0x405d80
cmp edx, 3
je 0x405d80
mov eax, edx
shr eax, 1
movzx eax, byte [eax + esi + 1]
inc eax
test al, 0xfe
jne 0x405d26
or edx, 8
shr edx, 1
inc edi
mov ecx, dword [ebp + 0xc]
jmp 0x405cfa
sub ebx, eax
test edx, edx
je 0x405dc5
and edx, 6
mov eax, ebx
shl edx, 2
mov ecx, edx
shr eax, cl
inc eax
test al, 0xfe
jne 0x405dc3
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
add eax, edi
cmp dword [ebp + 0x18], 0
je 0x405dc1
add ebx, eax
jmp 0x405dc3
sub ebx, eax
xor edx, edx
mov eax, ebx
mov byte [esi + 1], bl
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
push 5
mov byte [esi + 4], bl
pop eax
jmp 0x405df0
or edx, 8
xor eax, eax
shr edx, 1
inc eax
mov ebx, dword [ebp + 8]
add edi, eax
jmp 0x405d86
xor eax, eax
shr edx, cl
cmp ecx, 2
pop esi
cmova edx, eax
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], edx
mov eax, edi
pop edi
pop ebp
ret

Function at 0x405ef9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x4c02d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405f54
cmp dword [ebp - 0x114], 5
sbb eax, eax
add eax, 1
je 0x405f54
lea eax, [ebp - 0x13c]
push eax
call fcn.00406051
pop ecx
test eax, eax
je 0x405f54
mov eax, dword [ebp - 0x124]
shr eax, 0x19
and eax, 1
jmp 0x405f56
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430265
mov esp, ebp
pop ebp
ret
Function at 0x40620d
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e8
mov eax, dword [0x4c02d0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3e8]
mov dword [ebp - 0x3e8], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40624d
cmp dword [ebp - 0x3e4], 6
jne 0x40624d
cmp dword [ebp - 0x3e0], 0
je 0x406277
push str.SetDefaultDllDirectories
push 0x496b18
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406277
push 0xc00
call eax
test eax, eax
jne 0x406311
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x406311
cmp eax, 0x104
ja 0x406311
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x4062bb
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [0x496c88], 0
push esi
mov esi, 0x496c88
je 0x406310
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movsx ax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x4062d6
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x4062d4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430265
mov esp, ebp
pop ebp
ret