joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b772
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40b7a0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40b7a7
cmp ebx, dword [eax + 4]
jae 0x40b7a7
xor eax, eax
jmp 0x40b997
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b7b8
xor eax, eax
inc eax
jmp 0x40b996
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b7ce
cmp ecx, edx
jae 0x40b913
cmp dword [eax + 4], 0
je 0x40b7d7
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b7bf
cmp dword [ebp + 8], 0
je 0x40b7f9
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b913
cmp eax, esi
jae 0x40b913
mov eax, dword [0x419a38]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b81e
cmp dword [esi*4 + 0x419a40], edi
je 0x40b917
inc esi
cmp esi, eax
jl 0x40b80c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b993
cmp dword [ebp - 8], 0x1000000
jne 0x40b993
test byte [ebp - 0xc], 0xcc
je 0x40b89c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40b993
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b993
cmp word [eax + 0x18], 0x10b
jne 0x40b993
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40b993
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b89c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b89c
test byte [ecx + 0x27], 0x80
jne 0x40b913
push 1
push 0x419a80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b7b0
mov ecx, dword [0x419a38]
test ecx, ecx
mov edx, ecx
jle 0x40b8d0
lea eax, [ecx*4 + 0x419a3c]
cmp dword [eax], edi
je 0x40b8d0
dec edx
sub eax, 4
test edx, edx
jg 0x40b8c4
test edx, edx
jne 0x40b901
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b8dd
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b8f5
lea eax, [edx*4 + 0x419a40]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b8e3
cmp ecx, 0x10
jge 0x40b901
inc ecx
mov dword [0x419a38], ecx
push 0
push 0x419a80
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b7b0
xor eax, eax
jmp 0x40b996
test esi, esi
jle 0x40b7b0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x419a80
call ebx
test eax, eax
jne 0x40b7b0
cmp dword [esi*4 + 0x419a40], edi
je 0x40b96d
mov eax, dword [0x419a38]
lea esi, [eax - 1]
test esi, esi
jl 0x40b95b
cmp dword [esi*4 + 0x419a40], edi
je 0x40b957
dec esi
jns 0x40b94b
test esi, esi
jge 0x40b96b
cmp eax, 0x10
jge 0x40b966
inc eax
mov dword [0x419a38], eax
lea esi, [eax - 1]
jmp 0x40b96d
je 0x40b985
xor ecx, ecx
test esi, esi
jl 0x40b985
lea eax, [ecx*4 + 0x419a40]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b973
push 0
push 0x419a80
call ebx
jmp 0x40b7b0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bd97
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bdb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040be9d
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40bdda
test byte [esp + 8], 2
je 0x40bdda
call fcn.0040be8b
mov dword [eax], 0xd
call fcn.0040be94
mov dword [eax], 5
jmp 0x40bdb3
xor eax, eax
ret

Function at 0x40d10d
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x419b0c]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x40d156
call ebp
mov esi, eax
cmp esi, ebx
je 0x40d13c
mov dword [0x419b0c], 1
jmp 0x40d15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40d151
push 2
pop eax
mov dword [0x419b0c], eax
jmp 0x40d156
mov eax, dword [0x419b0c]
cmp eax, 1
jne 0x40d1b3
cmp esi, ebx
jne 0x40d16e
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40d16e
xor eax, eax
jmp 0x40d25a
cmp word [esi], bx
mov eax, esi
je 0x40d183
inc eax
inc eax
cmp word [eax], bx
jne 0x40d175
inc eax
inc eax
cmp word [eax], bx
jne 0x40d175
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040a4e8
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40d1a6
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40d25a
push ebp
push esi
push edi
call fcn.0040a500
add esp, 0xc
jmp 0x40d198
cmp eax, 2
je 0x40d1bc
cmp eax, ebx
jne 0x40d167
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x40d167
cmp byte [ebp], bl
mov esi, ebp
je 0x40d1f2
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40d167
push esi
add edi, eax
call fcn.00409de0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40d1cf
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040a4e8
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40d26b
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40d24c
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40d261
push edi
call fcn.00409de0
push esi
lea edi, [edi + eax + 1]
call fcn.0040be23
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40d212
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040a3d0
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40d167
Function at 0x40d483
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00409660
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d51e
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x419758]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40d51e
cmp eax, 1
je 0x40d53f
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d51e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d4eb
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d51a
xor eax, eax
inc eax
jmp 0x40d55e
cmp edi, eax
jae 0x40d522
xor eax, eax
jmp 0x40d55e
cmp eax, esi
jae 0x40d529
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x419758]
jmp 0x40d542
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40da40
Capabilities:
Get file version info

Disassembly:
sub esp, 0x214
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x1c]
push eax
push ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x40dab8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40dab8
mov ecx, dword [esp + 0x10]
push esi
push edi
push ecx
lea edx, [esp + 0x24]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4048dc
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40dab1
movzx ebx, word [eax + 2]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x214
ret
Function at 0x410700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
mov edi, eax
mov esi, 1
call fcn.00410560
test eax, eax
je 0x41072f
mov esi, dword [eax + 0x34]
shr esi, 0xb
push eax
and esi, 1
call fcn.0040e1c0
add esp, 4
pop edi
mov eax, esi
pop esi
add esp, 8
ret
push edi
call fcn.00410680
mov edi, eax
test edi, edi
je 0x410797
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x404ec4
push edi
mov dword [esp + 0x24], 4
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410782
mov esi, dword [esp + 8]
shr esi, 0xb
push edi
and esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
push eax
push 0x404e8c
call fcn.004129d0
add esp, 8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x410ac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
call fcn.00410560
mov esi, eax
test esi, esi
je 0x410b1a
mov edi, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov eax, edi
push eax
call ebx
cmp word [edi + eax*2 - 2], 0x3a
jne 0x410afb
push edi
call ebx
mov ecx, dword [esi + 0xc]
mov word [ecx + eax*2 - 2], 0
mov edi, dword [esi + 0xc]
call fcn.00410a70
push esi
mov edi, eax
call fcn.0040e1c0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push edi
call fcn.00410680
mov esi, eax
test esi, esi
je 0x410b7f
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x404f84
push esi
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410b6a
lea edi, [esp + 0x10]
call fcn.00410a70
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20c
ret
push eax
push 0x404f48
call fcn.004129d0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20c
ret
Function at 0x410b90
Capabilities:
Accept command line arguments
Check mutex on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0xb0
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x41ac10
call fcn.0040be07
add esp, 8
push 0x41ac10
push 0x4163e0
call fcn.0040ff20
mov esi, eax
test esi, esi
je 0x410d35
cmp word [esi], 0
je 0x410d35
push edi
xor eax, eax
mov ecx, 0x2b
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x41ac10
lea eax, [esp + 0xc]
push eax
call fcn.0040ff20
push 0x41a458
call fcn.00412a10
mov eax, dword [esp + 0x10]
test eax, eax
pop edi
je 0x410c0b
call fcn.004111d0
test eax, eax
je 0x410d42
mov eax, esi
call fcn.00410700
test eax, eax
mov dword [0x41a664], eax
jne 0x410c3d
mov eax, dword [0x4181d8]
test eax, eax
jne 0x410c3d
push 0x4050a8
call fcn.004129d0
add esp, 4
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10
mov eax, dword [0x401e80]
test eax, eax
jne 0x410c6a
mov eax, esi
call fcn.00410ac0
test eax, eax
je 0x410c6a
push 0x405068
call fcn.004129d0
add esp, 4
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10
call fcn.00407170
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [0x41aa04], eax
jne 0x410ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405030
call fcn.004129d0
add esp, 8
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410cda
mov eax, dword [0x41aa04]
test eax, eax
je 0x410d42
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41aa04], 0
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10
push 0x104
push 0x41aa08
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x410d19
push 0x41aa08
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x410d26
push 0x405000
call fcn.004129d0
add esp, 4
mov eax, 1
pop esi
add esp, 0xb0
ret 0x10
push 0x404fd0
call fcn.004129d0
add esp, 4
mov eax, 1
pop esi
add esp, 0xb0
ret 0x10
push 0x404f90
call fcn.004129d0
add esp, 4
xor eax, eax
pop esi
add esp, 0xb0
ret 0x10

Function at 0x4123f0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x41b868
push 0
mov dword [0x41b658], eax
mov eax, dword [esp + 0xc]
push eax
push 0x412380
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x41b86c], eax
je 0x412436
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret 4
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0x405218
call fcn.004129e0
mov edx, dword [0x41b86c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41b86c], 0
ret 4

Function at 0x4129e0
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp + 0x408]
push eax
push ecx
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret
Function at 0x412b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
xor esi, esi
push esi
push 0xf003f
push 1
push esi
push esi
push 0x41b8e0
push 0x80000002
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412bee
mov eax, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412bdf
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x412bee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret 8

Function at 0x412c00
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
xor esi, esi
push esi
push 0xf003f
push 1
push esi
push esi
push 0x41b8e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412c60
mov ecx, dword [esp + 4]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x412c51
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x412c60
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x413410
Capabilities:
Delete file

Disassembly:
sub esp, 0x250
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [ebp + 4]
push edi
mov ebx, 0x405554
call fcn.0040be23
add esp, 4
cmp eax, 2
jbe 0x413447
cmp word [edi], 0x5c
jne 0x413447
cmp word [edi + 2], 0x5c
jne 0x413447
mov ebx, 0x405540
add edi, 4
push edi
call fcn.0040be23
push ebx
mov esi, eax
call fcn.0040be23
add esi, eax
lea eax, [esi + esi + 4]
push eax
call fcn.0040e4d0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4134e0
push ebx
push esi
call fcn.0040be07
push edi
push esi
call fcn.0040bddd
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x413495
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4134d0
push 0
push 0x80
push 1
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4134c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4134d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4134d7
mov dword [ebp + 8], 6
push esi
call fcn.0040e1c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret

Function at 0x413ab0
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
mov eax, dword [esi + 0x4c]
je 0x413b29
test eax, eax
jne 0x413b4e
mov dword [esi + 0x4c], 1
call fcn.004071f0
test eax, eax
je 0x413ad7
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
call fcn.004071f0
test eax, eax
je 0x413b18
mov eax, dword [esi + 0x44]
push edi
push 9
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x44]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x13
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call edi
mov edx, dword [esi + 0x44]
push 0x13
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edx
call edi
pop edi
call fcn.004071f0
test eax, eax
je 0x413b4e
mov dword [esi + 0x50], 1
ret
test eax, eax
je 0x413b4e
mov eax, dword [esi + 0x50]
test eax, eax
mov dword [esi + 0x4c], 0
je 0x413b4e
mov eax, dword [esi + 0x44]
push 0
push eax
mov dword [esi + 0x50], 0
call dword [sym.imp.USER32.dll_FlashWindow]
ret

Function at 0x4141b0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x41bce0]
test eax, eax
jne 0x41421f
push 0x14
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x41bce0], eax
je 0x41421f
mov ecx, dword [esp + 8]
push 0
push 0
mov dword [eax], ecx
push 0
mov dword [eax + 0xc], 0
push 0
mov dword [eax + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [0x41bce0]
lea edx, [esp]
push edx
push 0
push ecx
push 0x4141a0
push 0
push 0
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x41bce0]
mov dword [ecx + 4], eax
pop ecx
ret 4
Function at 0x414230
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
push esi
lea eax, [esp + 4]
push eax
push 0x104
push ebx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
mov esi, eax
test esi, esi
je 0x4142a4
push edi
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x11c
call edi
test eax, eax
jne 0x414289
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x114
call edi
cmp dword [esp + 0x10], 5
pop edi
jb 0x414298
push 0x403828
jmp 0x41429d
push 0x403820
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x120
ret

Function at 0x4143f0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov edi, dword [esp + 0x218]
xor ebx, ebx
cmp edi, ebx
mov esi, ecx
je 0x414443
cmp word [edi], bx
je 0x414443
cmp byte [esp + 0x21c], bl
jne 0x4144d0
lea ebx, [esp + 0xc]
call fcn.00414230
test al, al
je 0x414441
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
xor ebx, ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x414502
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4055e8
push eax
call edi
mov edx, dword [esi + 4]
push 0x4055d0
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push 0x4055b8
push eax
call edi
mov ecx, dword [esi + 4]
push 0x4055a0
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi + 4]
push 0x405588
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push 0x40556c
push eax
call edi
cmp dword [esi + 0xc], ebx
mov dword [esi + 0x20], eax
je 0x4144df
cmp dword [esi + 0x10], ebx
je 0x4144df
cmp dword [esi + 0x14], ebx
je 0x4144df
cmp dword [esi + 0x18], ebx
je 0x4144df
cmp dword [esi + 0x1c], ebx
je 0x4144df
cmp eax, ebx
je 0x4144df
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x208
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
jmp 0x414443
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x414502
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x208
ret 8

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4031f4
Capabilities:
Link many functions at runtime
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, dword [ebp + 8]
push str.Py_Initialize
push edi
call esi
push str.PySys_SetArgv
push edi
mov dword [ebp + 8], eax
call esi
push str.PyRun_SimpleString
push edi
mov dword [ebp - 4], eax
call esi
push str.Py_Finalize
push edi
mov dword [ebp - 8], eax
call esi
push str.Py_BuildValue
push edi
mov dword [ebp - 0xc], eax
call esi
push str.PyCFunction_New
push edi
mov ebx, eax
call esi
push str.PyArg_ParseTuple
push edi
mov dword [ebp - 0x14], eax
call esi
push str.PyErr_Format
push edi
mov dword [ebp - 0x10], eax
call esi
xor ecx, ecx
cmp dword [ebp + 8], ecx
je 0x40336b
cmp dword [ebp - 4], ecx
je 0x40336b
cmp dword [ebp - 8], ecx
je 0x40336b
cmp dword [ebp - 0xc], ecx
je 0x40336b
cmp ebx, ecx
je 0x40336b
cmp dword [ebp - 0x10], ecx
je 0x40336b
cmp eax, ecx
je 0x40336b
cmp dword [ebp - 0x14], ecx
je 0x40336b
mov esi, dword [ebp + 0xc]
cmp esi, ecx
je 0x403367
cmp byte [esi], cl
je 0x403367
push ecx
push esi
call dword [sym.imp.MSVCR71.dll__open]
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
jne 0x4032e5
mov eax, dword [sym.imp.MSVCR71.dll__iob]
push esi
add eax, 0x40
push str.Could_not_open_postinstall_script__s_n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
add esp, 0xc
push 3
jmp 0x40336d
push str.Running_Script...
push 0x3ec
push dword [0x40e930]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
call dword [ebp + 8]
push edi
call fcn.00402a99
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [ebp - 4]
push 3
lea eax, [ebp - 0x38]
pop esi
push eax
push ebx
mov dword [ebp + 8], esi
call dword [sym.imp.MSVCR71.dll__fstat]
add esp, 0x14
test eax, eax
jne 0x403357
mov edi, dword [ebp - 0x24]
lea eax, [edi + 5]
add eax, esi
and al, 0xfc
call fcn.00406cb0
mov esi, esp
push edi
push esi
push ebx
call dword [sym.imp.MSVCR71.dll__read]
add esp, 0xc
test eax, eax
jle 0x403357
add eax, esi
push esi
mov byte [eax], 0xa
and byte [eax + 1], 0
call dword [ebp - 8]
pop ecx
mov dword [ebp + 8], eax
call dword [ebp - 0xc]
push ebx
call dword [sym.imp.MSVCR71.dll__close]
mov eax, dword [ebp + 8]
pop ecx
jmp 0x40336e
push 2
jmp 0x40336d
push 1
pop eax
lea esp, [ebp - 0x44]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403590
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push 1
push 0
push 0x40d454
push 0x40d480
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4035df
push eax
lea eax, [ebp - 0x80]
push str.Failed_to_start_elevated_process__ShellExecute_returned__d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x80]
push 0x10
push 0x40ce44
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
leave
ret