joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd86f90
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 0xd86ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd87035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00d86e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xd86fc5
mov edi, 0xda18b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xd87035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00d86e00
add edi, 4
add esp, 0xc
cmp edi, 0xda18c0
jb 0xd87000
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 0xd87070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00d8d082
mov esi, eax
add esp, 8
test esi, esi
je 0xd87107
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 0xd87102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00d8c946
add esp, 8
test eax, eax
je 0xd870e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xd870e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00d8c946
add esp, 8
test eax, eax
jne 0xd870c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xd87102
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 0xd87f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xd9c9fb
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 0xd88002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00d8bdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xd88002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00d836e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00d8c20b
push 0x10
call fcn.00d8c1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xd87fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00d781c0
jmp 0xd87fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00d87b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xd87ff0
mov ecx, edi
call fcn.00d782c0
push edi
call fcn.00d8c1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xd88021
inc ebx
cmp ebx, 0x20
jb 0xd87f3e
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 0xd89250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd9d808
push 0xd8d288
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 0xd89329
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 0xd89329
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.00d8c1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xd89329
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 0xd89329
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 0xd8932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00d89351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xd89d20
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 0xd89d58
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 0xd89d60
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 0xd89d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xd89d94
push eax
push esi
call fcn.00d8c20b
add esp, 8
pop esi
ret 0x10

Function at 0xd89da0
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 0xd89e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xd89e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xda2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d8bdff
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 0xd89dda
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 0xd89e30
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 0xd89ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xd89eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xda2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00d8bdff
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 0xd89eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xd89e6a
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 0xd8a000
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 0xd8a131
push esi
call fcn.00d8d145
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.00d7c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd8a131
push 0
push ebp
call fcn.00d7c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d7c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd8a08b
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.00d7c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd8a121
push 0xda2918
push edi
call fcn.00d8b3f0
push eax
push ebx
push esi
call fcn.00d89f60
push 0xda28f8
push edi
call fcn.00d8b3f0
push eax
push ebx
push esi
call fcn.00d89f60
push 0xda28d8
push edi
call fcn.00d8b3f0
push eax
push ebx
push esi
call fcn.00d89f60
push 0xda28c0
push edi
call fcn.00d8b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d89f60
push 0xda28a0
push edi
call fcn.00d8b3f0
push eax
push ebx
push esi
call fcn.00d89f60
push 0xda2888
push edi
call fcn.00d8b3f0
push eax
push ebx
push esi
call fcn.00d89f60
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 0xd8b1b0
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.00d8b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d8b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d8b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d8b140
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 0xd8bbfa
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 0xd8bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd9d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd8bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd8bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402820
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x48], 0
push 0x3f
push 0
lea eax, [ebp - 0x47]
push eax
call fcn.0041ee30
add esp, 0xc
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + ecx - 0x48], 0x48
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov byte [ebp + eax - 0x48], 0x45
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov byte [ebp + edx - 0x48], 0x4c
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + ecx - 0x48], 0x4c
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov byte [ebp + eax - 0x48], 0x4f
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov byte [ebp + edx - 0x48], 0x20
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + ecx - 0x48], 0x57
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov byte [ebp + eax - 0x48], 0x4e
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov byte [ebp + edx - 0x48], 0x52
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + ecx - 0x48], 0x4c
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov byte [ebp + eax - 0x48], 0x44
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov byte [ebp + edx - 0x48], 0x21
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov byte [ebp + ecx - 0x48], 0xa
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov byte [ebp + eax - 0x48], 0xc
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
push 1
mov edx, dword [ebp - 0x4c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004033f0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 8], eax
xor eax, eax
mov word [ebp - 0x48], ax
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call fcn.0041ee30
add esp, 0xc
mov edx, dword [0x44490c]
add edx, 4
push edx
call fcn.0041eecb
add esp, 4
mov dword [ebp - 0x45c], eax
xor eax, eax
mov word [ebp - 0x458], ax
push 0x40e
push 0
lea ecx, [ebp - 0x456]
push ecx
call fcn.0041ee30
add esp, 0xc
mov edx, dword [ebp - 0x45c]
mov eax, dword [0x44490c]
movzx ecx, word [eax + edx*2 + 2]
cmp ecx, 0x3a
jne 0x402ae6
mov edx, dword [ebp - 0x45c]
sub edx, 1
push edx
mov eax, dword [0x44490c]
add eax, 4
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0041ef32
add esp, 0xc
jmp 0x402afc
mov edx, dword [0x44490c]
add edx, 4
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0041ef13
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402b4d
push 1
push 0x435770
lea edx, [ebp - 0x458]
push edx
push 0x43577c
call fcn.0041d9c0
add esp, 8
push eax
mov eax, dword [0x444910]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x402c8b
cmp dword [0x4448fc], 0
jne 0x402b90
push 1
push 0x435794
lea ecx, [ebp - 0x458]
push ecx
push 0x4357a0
call fcn.0041d9c0
add esp, 8
push eax
mov edx, dword [0x444910]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402c8b
mov ecx, dword [0x4448fc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
jne 0x402bdf
push 1
push 0x4357bc
lea eax, [ebp - 0x458]
push eax
push 0x4357c8
call fcn.0041d9c0
add esp, 8
push eax
mov ecx, dword [0x444910]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402c8b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x460], eax
push 0
lea ecx, [ebp - 0x460]
push ecx
mov edx, dword [ebp - 0x460]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402c48
cmp dword [ebp + 0x10], 0
je 0x402c38
push 1
push 0x4357e0
lea edx, [ebp - 0x458]
push edx
push 0x4357f0
call fcn.0041d9c0
add esp, 8
push eax
mov eax, dword [0x444910]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402c8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x464], eax
push 1
push 0x435804
lea edx, [ebp - 0x458]
push edx
push 0x435814
call fcn.0041d9c0
add esp, 8
push eax
mov eax, dword [0x444910]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret
Function at 0x402ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x48], ax
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call fcn.0041ee30
add esp, 0xc
mov edx, dword [0x44490c]
add edx, 4
push edx
call fcn.0041eecb
add esp, 4
mov dword [ebp - 0x464], eax
xor eax, eax
mov word [ebp - 0x460], ax
push 0x40e
push 0
lea ecx, [ebp - 0x45e]
push ecx
call fcn.0041ee30
add esp, 0xc
mov edx, dword [ebp - 0x464]
mov eax, dword [0x44490c]
movzx ecx, word [eax + edx*2 + 2]
cmp ecx, 0x3a
jne 0x402d36
mov edx, dword [ebp - 0x464]
sub edx, 1
push edx
mov eax, dword [0x44490c]
add eax, 4
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0041ef32
add esp, 0xc
jmp 0x402d4c
mov edx, dword [0x44490c]
add edx, 4
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0041ef13
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x402d9d
push 1
push 0x435828
lea edx, [ebp - 0x460]
push edx
push 0x435834
call fcn.0041d9c0
add esp, 8
push eax
mov eax, dword [0x444910]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x402e48
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x468], ecx
push 0
lea edx, [ebp - 0x468]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402e04
cmp dword [ebp + 0x10], 0
je 0x402df4
push 1
push 0x43584c
lea eax, [ebp - 0x460]
push eax
push 0x43585c
call fcn.0041d9c0
add esp, 8
push eax
mov ecx, dword [0x444910]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x402e48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x46c], eax
push 1
push 0x435870
lea eax, [ebp - 0x460]
push eax
push 0x435880
call fcn.0041d9c0
add esp, 8
push eax
mov ecx, dword [0x444910]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret
Function at 0x403280
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x41c], 0
xor eax, eax
mov word [ebp - 0x418], ax
push 0x40e
push 0
lea ecx, [ebp - 0x416]
push ecx
call fcn.0041ee30
add esp, 0xc
push 0
push 0x8000080
push 4
push 0
push 3
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
jne 0x403317
push 1
push 0x435a00
lea eax, [ebp - 0x418]
push eax
push 0x435a0c
call fcn.0041d9c0
add esp, 8
push eax
mov ecx, dword [0x444910]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4033d5
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403382
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x41c], eax
push 1
push 0x435a24
lea ecx, [ebp - 0x418]
push ecx
push 0x435a30
call fcn.0041d9c0
add esp, 8
push eax
mov edx, dword [0x444910]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4033d5
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
je 0x4033c3
push 1
push 0x435a48
lea edx, [ebp - 0x418]
push edx
push 0x435a54
call fcn.0041d9c0
add esp, 8
push eax
mov eax, dword [0x444910]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4033d5
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret

Function at 0x405850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0041ee30
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4058c6
cmp dword [ebp - 0x11c], 5
jae 0x4058ba
cmp dword [ebp - 0x11c], 4
jne 0x4058c6
cmp dword [ebp - 0x118], 0x5a
jb 0x4058c6
mov dword [ebp - 0x128], 0
jmp 0x4058d0
mov dword [ebp - 0x128], 1
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret

Function at 0x40eae0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x40eac0
push 0
push 0
call fcn.0041f80c
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40eb10
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x410d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x410d19
xor ecx, ecx
jne 0x410d19
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410d60
mov eax, dword [ebp - 0xc]
jmp 0x410dbd
cmp dword [ebp - 4], 1
je 0x410d73
cmp dword [ebp - 4], 2
je 0x410d73
mov eax, 0xd
jmp 0x410dbd
cmp dword [ebp + 0xc], 0
je 0x410db1
cmp dword [ebp - 8], 0
je 0x410da9
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x410da0
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x410da7
mov eax, 0xd
jmp 0x410dbd
jmp 0x410db1
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415790
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x443564]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0041ee30
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4157f4
cmp dword [ebp - 0x11c], 6
jb 0x4157f4
mov dword [ebp - 0x128], 1
jmp 0x4157fe
mov dword [ebp - 0x128], 0
mov al, byte [ebp - 0x128]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041edc6
mov esp, ebp
pop ebp
ret