joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420b40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x420c65
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00420948
mov esi, eax
mov eax, dword [0x654868]
cmp byte [eax], 0
je 0x420c0d
mov eax, dword [0x653fbc]
call fcn.00404ff4
call fcn.00404c00
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x420b10]
call fcn.00408ba0
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x420c80
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x420c49
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x653ea0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x657c50]
call fcn.00408c64
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420c6c
lea eax, [ebp - 4]
mov edx, dword [0x420b10]
call fcn.00408bac
ret

Function at 0x4220e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406f70
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a710
mov edi, eax
cmp edi, 0x104
jbe 0x42208b
mov eax, edi
add eax, eax
call fcn.00404a3c
mov esi, eax
jmp 0x42208d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a710
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4220c8
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4220b2
mov eax, esp
cmp esi, eax
je 0x4220d5
mov eax, esi
call fcn.00404a58
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x422110
cmp bl, 0
je 0x42210c
cmp bl, 0x41
jl 0x422107
cmp bl, 0x5a
jg 0x422107
or bl, 0x20
xor al, bl
inc esi
jmp 0x4220eb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42204c
Function at 0x42df80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetEnvironmentStringsW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42dfd5
xor eax, eax
push ebp
push 0x42dfce
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004329d0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42dfd5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsW
ret
movzx eax, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x42e050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406a84
test esi, esi
jne 0x42e08f
push 0x105
lea eax, [ebp - 0x20a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20a]
mov eax, ebx
call fcn.00406bf0
jmp 0x42e0ad
call sub.kernel32.dll_GetCommandLineW_1
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0042dec0
mov edi, eax
test esi, esi
je 0x42e0ad
cmp dword [ebx], 0
je 0x42e0ad
dec esi
jmp 0x42e096
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e0c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42e219
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [esi], eax
test ebx, ebx
je 0x42e1fe
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e90
mov eax, dword [ebp - 4]
cmp word [eax], 0x22
je 0x42e122
push 0x42e238
push dword [ebp - 4]
push 0x42e238
lea eax, [ebp - 4]
mov edx, 3
call fcn.004078f4
lea eax, [ebp - 8]
push eax
mov ecx, 0x42e248
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00432200
mov eax, dword [ebp - 8]
call fcn.0040767c
mov ebx, eax
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.004318a0
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], 1
lea eax, [ebp - 0x68]
mov edx, 0x10
call fcn.004318a0
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x42e1fe
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42e1f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
jne 0x42e1ba
call fcn.00406244
jmp 0x42e1fe
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x42e1d7
call fcn.00406244
jmp 0x42e1fe
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e1fe
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42e220
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ae4
ret

Function at 0x42e5d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040767c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42e5f0
test al, 0x10
sete al
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x42e630
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.0040767c
mov edi, eax
push edi
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x42e687
push edi
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x42e687
test edi, 1
je 0x42e687
and edi, 0xfffffffe
push edi
mov eax, esi
call fcn.0040767c
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesW
push ebx
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42e690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040767c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42e6b4
test eax, 0x10
seta al
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x42fa80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov edi, eax
mov dword [ebx + 0x10], edi
test edi, edi
jne 0x42faae
push ebp
call fcn.0042f9d0
pop ecx
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.kernel32.dll_LoadResource
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x42fac8
push ebp
call fcn.0042f9d0
pop ecx
mov edi, ebx
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.kernel32.dll_SizeofResource
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x430c10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x430c18
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x430e3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
sub dl, 1
jb 0x430c44
je 0x430cd9
jmp 0x430df9
push ebx
push 0x430e5c
call sub.kernel32.dll_GetCurrentProcessId
lea edx, [ebp - 0x1c]
call fcn.0041b3e8
push dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004078f4
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00432ed0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x430e0d
xor eax, eax
push ebp
push 0x430cd2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00407020
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x14]
dec eax
je 0x430cb0
call fcn.00406244
jmp 0x430e0d
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430e0d
mov eax, dword [ebp - 0x14]
call fcn.004053d8
mov eax, dword [ebp - 4]
call fcn.0042e630
ret
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406e90
jmp 0x430d07
mov eax, dword [ebp - 4]
call fcn.0042e690
test al, al
jne 0x430d20
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00432cd0
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 4]
call fcn.00406e90
mov eax, dword [ebp - 4]
call fcn.00406f58
cmp eax, 2
jle 0x430d20
mov eax, dword [ebp - 4]
call fcn.00430ba0
test al, al
je 0x430ce5
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00432af0
push dword [ebp - 0x24]
push 0x430e6c
call sub.kernel32.dll_GetCurrentProcessId
lea edx, [ebp - 0x28]
call fcn.0041b3e8
push dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004078f4
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406e90
xor eax, eax
push ebp
push 0x430d98
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.0040767c
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430d9f
lea eax, [ebp - 8]
call fcn.00406a84
ret
mov ecx, 0x51
mov edx, 0x430e8c
mov eax, 0x430ef8
call fcn.004068d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430e44
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00406ae4
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406ae4
lea eax, [ebp - 4]
call fcn.00406a84
ret
Function at 0x4318b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push esi
push edi
add esp, 0xffffffc8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
mov edi, dword [esp + 4]
test edi, edi
jle 0x431a2b
mov eax, 0x431a38
mov dword [esp + 8], eax
movzx eax, word [esi]
mov edx, dword [esp + 8]
cmp ax, 0xff
ja 0x4318e6
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0xc], al
cmp byte [esp + 0xc], 0
je 0x4318f8
mov al, 1
jmp 0x431920
mov eax, 0x431a58
mov dword [esp + 0x10], eax
movzx eax, word [esi]
mov edx, dword [esp + 0x10]
cmp ax, 0xff
ja 0x431914
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x14], al
movzx eax, byte [esp + 0x14]
test al, al
je 0x431928
mov dl, 1
jmp 0x43198c
mov eax, 0x431a38
mov dword [esp + 0x18], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x18]
cmp ax, 0xff
ja 0x431945
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x1c], al
cmp byte [esp + 0x1c], 0
je 0x43195a
mov byte [esp + 0x25], 1
jmp 0x431987
mov eax, 0x431a58
mov dword [esp + 0x20], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x20]
cmp ax, 0xff
ja 0x431977
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x24], al
movzx eax, byte [esp + 0x24]
mov byte [esp + 0x25], al
movzx edx, byte [esp + 0x25]
test dl, dl
jne 0x431a2b
mov eax, 0x431a78
mov dword [esp + 0x28], eax
movzx eax, word [esi]
mov edx, dword [esp + 0x28]
cmp ax, 0xff
ja 0x4319b0
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x2c], al
cmp byte [esp + 0x2c], 0
jne 0x4319c5
mov byte [esp + 0x35], 1
jmp 0x4319f4
mov eax, 0x431a78
mov dword [esp + 0x30], eax
movzx eax, word [esi + 2]
mov edx, dword [esp + 0x30]
cmp ax, 0xff
ja 0x4319e2
movzx eax, ax
bt dword [edx], eax
setb al
mov byte [esp + 0x34], al
movzx eax, byte [esp + 0x34]
xor al, 1
mov byte [esp + 0x35], al
cmp byte [esp + 0x35], 0
jne 0x431a2b
movzx eax, byte [esi]
movzx eax, word [eax*2 + 0x64ff70]
shl eax, 4
movzx edx, byte [esi + 2]
movzx edx, word [edx*2 + 0x64ff70]
add al, dl
mov edx, dword [esp]
mov byte [edx], al
inc dword [esp]
add esi, 4
dec edi
test edi, edi
jg 0x4318ca
mov eax, dword [esp + 4]
sub eax, edi
add esp, 0x38
pop edi
pop esi
ret
Function at 0x432f00
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 ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x433062
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x43303a
mov bl, 1
lea edx, [ebp - 4]
mov eax, esi
call fcn.00432b40
mov eax, dword [ebp - 4]
call fcn.0042e690
test al, al
jne 0x43303a
mov eax, dword [ebp - 4]
test eax, eax
je 0x432f4f
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jge 0x432f58
mov al, 1
jmp 0x432f71
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00432cd0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00407a04
sete al
test al, al
je 0x432fca
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406e90
xor eax, eax
push ebp
push 0x432fbd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.0040767c
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432fc4
lea eax, [ebp - 8]
call fcn.00406a84
ret
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00432cd0
mov eax, dword [ebp - 0x18]
call fcn.00432f00
test al, al
je 0x433036
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406e90
xor eax, eax
push ebp
push 0x433029
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
call fcn.0040767c
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xe], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433030
lea eax, [ebp - 0xc]
call fcn.00406a84
ret
xor eax, eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433069
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406ae4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406ae4
ret
Function at 0x435900
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov word [ebp - 0x12], dx
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 8], eax
movzx edx, word [ebp - 0x12]
mov eax, dword [ebp - 0x10]
call fcn.0041b910
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4359ea
mov ax, word [ebp - 0x12]
and ax, 0xf
cmp ax, 2
jne 0x435955
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x20], 1
jmp 0x435963
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x20], 4
push 0
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43598a
push ebp
call fcn.004358a0
pop ecx
jmp 0x4359ea
push 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4359af
push ebp
call fcn.004358a0
pop ecx
jmp 0x4359ea
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4359cc
push ebp
call fcn.004358a0
pop ecx
jmp 0x4359ea
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x435668]
call fcn.00435f60
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x436a30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x436acc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
jne 0x436acc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x3c]
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0x4550
jne 0x436acc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
movzx eax, word [eax + 0x14]
cmp eax, 0xe0
jne 0x436acc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0xc]
cmp word [eax + 0x18], 0x10b
jne 0x436acc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx + 4], eax
pop ecx
pop ebp
ret

Function at 0x437d60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x437dc8
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x437dc8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x437dc8
mov eax, dword [ebp - 4]
call fcn.004357b0
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x3c]
call fcn.004357d0
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x437dc3
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x437dc8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x437dd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x437e38
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x437e38
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x437e38
mov eax, dword [ebp - 4]
call fcn.004357b0
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x3c]
call fcn.004357d0
mov dword [ebp - 8], eax
push 0x108
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x437e33
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x437e38
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x43f7f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x11], 0
je 0x43f813
mov eax, dword [ebp - 8]
call fcn.0040767c
push eax
call sub.kernel32.dll_OutputDebugStringW
pop ecx
pop ecx
pop ebp
ret
Function at 0x440a40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x440a75
cmp dword [ebp - 0x108], 2
jne 0x440a75
cmp dword [ebp - 0x114], 6
jae 0x440a79
xor eax, eax
jmp 0x440a7b
mov al, 1
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x440a90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
mov edx, 0x3c
call fcn.004318a0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], pe_nt_image_headers32
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
call fcn.0040767c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
call fcn.0040767c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
call fcn.0040767c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
call fcn.0040767c
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 8

Function at 0x441650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
mov edx, 0x3c
call fcn.004318a0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x500
mov eax, dword [ebp - 4]
call fcn.0040767c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
call fcn.0040767c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0xc], 0
je 0x4416a1
mov eax, dword [ebp - 0xc]
call fcn.0040767c
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0xc], 0
je 0x4416b2
mov eax, dword [ebp + 0xc]
call fcn.0040767c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x4416d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
mov edx, 0x3c
call fcn.004318a0
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x540
mov eax, dword [ebp - 4]
call fcn.0040767c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
call fcn.0040767c
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0xc], 0
je 0x441721
mov eax, dword [ebp - 0xc]
call fcn.0040767c
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0x10], 0
je 0x441732
mov eax, dword [ebp + 0x10]
call fcn.0040767c
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
cmp dword [ebp - 0x2c], 0x20
jbe 0x441756
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x44175e
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x441860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4418de
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0042b75c
test al, al
je 0x4418c0
push ebp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00441810
pop ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00406e48
push ebp
lea eax, [ebp - 0xc]
call fcn.00441770
pop ecx
jmp 0x4418c8
mov eax, dword [ebp - 8]
call fcn.00406a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4418e5
lea eax, [ebp - 0x10]
call fcn.00406a84
ret