joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409bd4
Capabilities:
Create directory

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push edi
mov edi, eax
push esi
lea edx, [ebp - 0x21c]
lea eax, [ebp - 0x218]
push ebx
or ebx, 0xffffffff
sub esp, 0x22c
mov dword [ebp - 0x21c], 0x100
mov dword [esp], 0xffffffff
call fcn.0040abb8
test eax, eax
je 0x409cf5
mov esi, eax
movsx ax, byte [edi]
mov ebx, eax
cmp al, 0x2f
je 0x409c60
cmp ax, 0x5c
je 0x409c60
mov dword [esp], edi
call sub.msvcrt.dll_strlen
cmp eax, 1
jbe 0x409c60
or ebx, 0x20
sub ebx, 0x61
cmp bl, 0x19
ja 0x409c60
cmp byte [edi + 1], 0x3a
jne 0x409c60
cmp eax, 2
je 0x409c62
movsx dx, byte [edi + 2]
cmp dx, 0x2f
je 0x409c59
xor eax, eax
cmp dx, 0x5c
jne 0x409c62
mov eax, 2
jmp 0x409c62
xor eax, eax
add eax, eax
lea ebx, [esi + eax]
mov ax, word [ebx]
cmp ax, 0x2f
je 0x409c76
cmp ax, 0x5c
jne 0x409c79
add ebx, 2
mov di, word [ebx]
cmp di, 0x2f
sete dl
cmp di, 0x5c
sete al
or dl, al
jne 0x409c93
test di, di
jne 0x409c76
mov word [ebx], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edx
push edx
mov word [ebx], di
test eax, eax
je 0x409cbc
cmp word [ebx], 0
jne 0x409c76
xor ebx, ebx
jmp 0x409cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409cb2
mov ebx, 1
lea eax, [ebp - 0x218]
cmp esi, eax
je 0x409cf5
mov eax, dword [0x40d078]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x409f6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
mov edx, 0x44
sub esp, 0x4c
mov dword [ebp - 0x2c], eax
call fcn.00409db8
cmp eax, 0xffffffff
je 0x409fe0
mov edi, dword [ebx]
mov esi, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov eax, dword [ebx + 4]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
sub esp, 0x14
or eax, 0xffffffff
test ecx, ecx
je 0x409fbf
mov eax, dword [ebp - 0x1c]
cmp eax, edi
mov dword [esp], esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
test eax, eax
je 0x409fd8
xor eax, eax
test bl, bl
je 0x409fe5
mov eax, dword [ebp - 0x2c]
call fcn.00409f00
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40af8c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x208]
lea edx, [ebp - 0x20c]
mov eax, esi
sub esp, 0x230
mov dword [ebp - 0x20c], 0x100
mov dword [esp], 0xffffffff
call fcn.0040abb8
test eax, eax
je 0x40b018
mov dword [esp + 0x14], 1
mov ebx, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
sub esp, 0x18
cmp ebx, esi
je 0x40b018
mov eax, dword [0x40d078]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40b02c], 0x8088405
inc edx
mov dword [0x40b02c], edx
mul edx
mov eax, edx
ret

Function at 0x40515c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40519e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4051a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x4051c9
mov al, byte [esp]
jmp 0x4051cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4067c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406808
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040675c
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40680f
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406ab8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d30
add esp, 0x104
pop ebx
ret
Function at 0x406c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406d21
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406d0b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406c59
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406d0b
cmp dword [ebp - 0xc], 0
jne 0x406c6e
mov eax, dword [ebp - 4]
call fcn.00403198
mov bl, 1
jmp 0x406d0b
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403420
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406c25
test eax, eax
jne 0x406d0b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406cb5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406d0b
jmp 0x406cb5
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406cc8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406cb2
cmp dword [ebp - 8], 7
jne 0x406cd7
cmp dword [ebp - 0xc], 0
je 0x406cd7
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004034f0
cmp dword [ebp - 8], 7
jne 0x406cfe
cmp dword [ebp - 0xc], 0
je 0x406cfe
lea eax, [ebp - 0x10]
call fcn.00403420
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d28
lea eax, [ebp - 0x10]
call fcn.00403198
ret

Function at 0x40765c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40b55c
mov eax, esi
mov edx, 8
test al, 1
je 0x407678
shr eax, 1
xor eax, 0xedb88320
jmp 0x40767a
shr eax, 1
dec edx
jne 0x40766b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x407664
pop esi
ret

Function at 0x407690
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40b558], 0
jne 0x4076b3
call fcn.0040765c
push 1
push 0x40b558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4076de
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40b55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4076b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408c90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408c44
test al, al
jne 0x408cb1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408cfd
xor eax, eax
push ebp
push 0x408ced
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cf4
lea eax, [ebp - 0xc]
call fcn.00408c80
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409004
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4090f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406ae4
mov edx, dword [ebp - 8]
mov ecx, 0x40910c
xor eax, eax
call fcn.00408ef8
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4090c1
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x409024
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408ab0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404be4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040705c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408a80
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045b0
call fcn.004057e0
call fcn.00402eb4
jmp 0x409024
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090fa
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x40913c
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40a07c], 2
jne 0x4091a9
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x409161
call fcn.0040911c
jmp 0x4091bb
lea eax, [esp + 8]
push eax
push 0x4091c0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x4091a9
call fcn.0040911c
jmp 0x4091bb
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x4091bb
call fcn.0040911c
add esp, 0x14
ret
Function at 0x4091d4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40922e
inc esi
xor edi, edi
cmp edi, 1
jne 0x4091fa
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409208
cmp edi, 1
jle 0x409208
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408c90
test eax, eax
jne 0x40922e
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40922e
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40922e
inc edi
dec esi
jne 0x4091ea
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x409620
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x409710
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409728
push esi
push 0x409734
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4096a4
mov al, 0x62
call fcn.00409238
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x4096bb
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4096af
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x4096bb
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409717
lea eax, [ebp - 8]
call fcn.00403198
ret
Function at 0x4097c8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
jmp 0x409871
cmp dword [esi + 0x10], 0x1000
jne 0x40985d
test byte [esi + 0x15], 1
jne 0x40985d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40981c
cmp eax, 2
je 0x40981c
cmp eax, 0x10
je 0x40981c
cmp eax, 0x20
jne 0x409831
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409831
mov bl, 1
xor ebp, ebp
jmp 0x409842
mov eax, dword [esi]
add eax, ebp
call fcn.004097c0
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409835
test bl, bl
je 0x40985d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40987c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097f4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xc3698d
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c3698d
ret
Function at 0x40fcb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
or ebp, 0xffffffff
jmp 0x40fcd2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40fcd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40fcc8
mov eax, 1
add ebx, ebx
jne 0x40fceb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40fce0
jne 0x40fcfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fce0
xor ecx, ecx
sub eax, 3
jb 0x40fd10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40fd82
mov ebp, eax
add ebx, ebx
jne 0x40fd1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40fd28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40fd4c
inc ecx
add ebx, ebx
jne 0x40fd38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40fd2d
jne 0x40fd49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40fd2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40fd6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40fd5d
jmp 0x40fcce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40fd6c
add edi, ecx
jmp 0x40fcce
pop esi
mov edi, esi
mov ecx, 0x313
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40fd8a
cmp byte [edi], 5
jne 0x40fd8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40fd8f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40fdfe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf0b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40fdbc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf118]
or eax, eax
je 0x40fdf8
mov dword [ebx], eax
add ebx, 4
jmp 0x40fdd9
call dword [esi + 0xf11c]
popal
jmp 0x406c7c
Function at 0x402370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor esi, esi
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x218], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4023cd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x214]
mov dword [ebp - 0x264], esi
cmp dword [ebp - 0x218], esi
je 0x4023f7
push str.Wow64DisableWow64FsRedirection
push str.Kernel32.dll
call edi
push eax
call ebx
test eax, eax
je 0x4023f7
lea ecx, [ebp - 0x264]
push ecx
call eax
push str.C:WindowsSystem32WindowsPowerShell_v1.0powershell.exe__ExecutionPolicy_Bypass__File
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004084bd
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x41e08c
push 0x104
push eax
call fcn.00408521
add esp, 0xc
lea eax, [ebp - 0x210]
push dword [ebp - 0x278]
push 0x104
push eax
call fcn.00408521
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x41e08c
push 0x104
push eax
call fcn.00408521
add esp, 0xc
mov dword [ebp - 0x260], 0x44
lea eax, [ebp - 0x274]
xorps xmm0, xmm0
movlpd qword [ebp - 0x25c], xmm0
movlpd qword [ebp - 0x254], xmm0
push eax
lea eax, [ebp - 0x260]
movlpd qword [ebp - 0x24c], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
movlpd qword [ebp - 0x244], xmm0
push eax
push 0
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
movlpd qword [ebp - 0x224], xmm0
movups xmmword [ebp - 0x274], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402510
push 0xffffffffffffffff
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40253c
mov esi, dword [ebp - 0x214]
jmp 0x402518
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40253c
cmp byte [0x421620], 0
je 0x40253c
push 0
push str._ws_r_n
call fcn.00401480
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x218], 0
je 0x402560
push str.Wow64RevertWow64FsRedirection
push str.Kernel32.dll
call edi
push eax
call ebx
test eax, eax
je 0x402560
push dword [ebp - 0x264]
call eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040296b
mov esp, ebp
pop ebp
ret

Function at 0x40e423
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040df76
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5c9853f5
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x2bde2dba
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x408439
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d948
cmp edx, dword [eax]
je 0x40845b
add eax, 8
inc ecx
cmp eax, 0x40d9d8
jl 0x40844c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d948]
jne 0x408589
mov eax, dword [0xf0c640]
cmp eax, 1
je 0x408563
test eax, eax
jne 0x40848c
cmp dword [0x40d274], 1
je 0x408563
cmp edx, 0xfc
je 0x408589
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4084c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408506
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c484
push edi
call fcn.00405e30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405280
lea eax, [ebp - 0xa0]
push 0x40c464
push eax
call fcn.00405280
push dword [esi + 0x40d94c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a603
add esp, 0x2c
pop edi
jmp 0x408589
lea eax, [ebp + 8]
lea esi, [esi + 0x40d94c]
push 0
push eax
push dword [esi]
call fcn.00405360
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret