joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4186c0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x418761
cmp dword [esi + 4], 0xffffffff
jne 0x418761
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4186f0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x418729
cmp ax, 0x2f
je 0x418729
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x418716
mov eax, dword [0x4690d8]
mov dword [edi], eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.00417490
add esp, 4
test eax, eax
jne 0x418747
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.004178c0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x418d60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x479920]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov esi, dword [esp + 0x424]
test esi, esi
je 0x418da0
push esi
call ebp
cmp eax, 0xffffffff
jne 0x418da0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x418e86
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x418dbf
cmp ax, 0x5c
jne 0x418dc1
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x418db3
push edi
cmp ecx, ebx
je 0x418e04
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [esp + 0x21c]
push ebx
push eax
call fcn.0044c8b0
lea edx, [esp + 0x224]
push edx
xor ecx, ecx
push esi
mov word [esp + edi + 0x22c], cx
call fcn.00418d60
add esp, 0x14
xor eax, eax
mov word [esp + 0x10], ax
test esi, esi
je 0x418e2f
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x418e20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x418e20
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418e33
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x418e50
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x418e50
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
pop edi
cmp eax, 0xffffffff
jne 0x418e86
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00446330
add esp, 0x414
ret
Function at 0x419b20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x419bfb
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x419b54
cmp dword [esi + 0x40], edi
jae 0x419b54
push eax
call fcn.0042801d
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x419b6b
lea eax, [edi + edi]
push eax
call fcn.00428028
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.0044c8b0
add esp, 0xc
cmp edi, ebp
jbe 0x419bf7
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46a198]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x46a198]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x419b80
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x419c34
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x419c1c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.0044c8b0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x419c55
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x41c520
Capabilities:
Parse url

Disassembly:
mov eax, 0x2f28
call fcn.00448250
mov eax, dword [0x479920]
xor eax, esp
mov dword [esp + 0x2f24], eax
cmp dword [ecx + 0x18], 8
mov eax, dword [esp + 0x2f34]
mov dword [esp + 4], eax
lea eax, [esp + 0xfe4]
mov dword [esp], edx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x44]
lea eax, [esp + 0x1f84]
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x814]
lea eax, [esp + 0x17b4]
push ebp
mov ebp, dword [esp + 0x2f34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov eax, 0x3e8
lea edx, [esp + 0x2758]
push esi
mov esi, dword [esp + 0x2f34]
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
jb 0x41c5c5
mov ecx, dword [ecx + 4]
jmp 0x41c5c8
add ecx, 4
push ebx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov eax, dword [esp + 0x24]
mov ecx, eax
lea ebx, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41c5e2
sub ecx, ebx
sar ecx, 1
push ecx
call fcn.004047d0
mov cx, word [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov word [edi], cx
mov ecx, eax
lea esi, [ecx + 2]
pop ebx
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41c610
sub ecx, esi
sar ecx, 1
push ecx
mov esi, ebp
call fcn.004047d0
mov eax, dword [esp + 0x44]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41c630
sub ecx, esi
mov esi, dword [esp + 0xc]
sar ecx, 1
push ecx
call fcn.004047d0
mov ecx, dword [esp + 0x2f2c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 8]
pop esi
pop ebp
xor ecx, esp
mov dword [eax], edx
call fcn.00446330
add esp, 0x2f28
ret 0xc
Function at 0x423cc0
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, edx
push edi
mov edi, eax
test esi, esi
je 0x423dcb
test edi, edi
jle 0x423dcb
cmp edi, 3
jl 0x423d65
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx*4]
sub eax, edx
neg eax
add edi, eax
push ebx
jmp 0x423d00
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x423d00
pop ebx
test edi, edi
jle 0x423dc3
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
inc ecx
shl al, 4
cmp edi, 1
jle 0x423d8d
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
cmp edi, 2
jge 0x423dae
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov byte [ecx], 0
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x423f60
Capabilities:
Create thread
Resume thread

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi]
test eax, eax
jne 0x423f6d
xor al, al
pop edi
ret
cmp dword [eax + 4], 0
je 0x423f69
push esi
lea ecx, [eax + 0xc]
push ecx
push 4
push eax
push 0x423e60
push 0
push 0
call fcn.00447f4b
mov edx, dword [edi]
mov dword [edx + 0x10], eax
mov eax, dword [edi]
add esp, 0x18
cmp dword [eax + 0x10], 0
jne 0x423fc2
or esi, 0xffffffff
mov dword [eax + 0x10], esi
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
cmp eax, esi
je 0x423fb2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], esi
pop esi
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
xor al, al
pop edi
ret
mov byte [eax + 8], 1
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x423fe4
mov esi, dword [edi]
call fcn.00423ef0
mov edx, dword [edi]
mov byte [edx + 8], 0
pop esi
mov al, 1
pop edi
ret
Function at 0x428b5a
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x428b85
call fcn.0042da12
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x428ba8
push eax
push dword [esi + 4]
call fcn.00428ae0
push esi
push eax
mov ecx, 0x47b084
call fcn.00428767
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x429628
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x45daa6
call fcn.00448734
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004295e8
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401800
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x42968f
push eax
push dword [esi + 8]
call fcn.00428ae0
push dword [esi + 0xc]
mov ecx, 0x47b084
push eax
call fcn.00428767
mov eax, esi
call fcn.0044880c
ret 0x1c

Function at 0x42bfe3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42c02b
call fcn.0042da12
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42c02b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42c06e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x42c057
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x42c057
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42c06b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42e378
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45eaaa
call fcn.00448734
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42e39d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42e3e3
lea ecx, [ebp - 0x10]
call fcn.00401800
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042839b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401160
mov eax, esi
call fcn.0044880c
ret 8

Function at 0x434491
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4344d8
call fcn.0042da12
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4344d8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4344f4
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00434009
mov esi, eax
test edi, edi
je 0x4344f2
test ebx, ebx
je 0x4344f2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x444328
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x44434c
cmp dword [edi + 0x54], 0
jne 0x44434c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042da12
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004442e9
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x446330
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479920]
jne 0x44633a
repz ret
jmp fcn.0044c6ae
Function at 0x456e20
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.0044c012
and dword [ebp - 4], 0
cmp dword [0x47db40], 0
mov ebx, eax
jne 0x456ed1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x456f82
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x456f82
push eax
call fcn.0044bfa0
mov dword [esp], 0x466be8
push edi
mov dword [0x47db40], eax
call esi
push eax
call fcn.0044bfa0
mov dword [esp], 0x466bd4
push edi
mov dword [0x47db44], eax
call esi
push eax
call fcn.0044bfa0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47db48], eax
call esi
push eax
call fcn.0044bfa0
pop ecx
mov dword [0x47db50], eax
test eax, eax
je 0x456ed1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044bfa0
pop ecx
mov dword [0x47db4c], eax
mov eax, dword [0x47db4c]
cmp eax, ebx
je 0x456f29
cmp dword [0x47db50], ebx
je 0x456f29
push eax
call fcn.0044c01b
push dword [0x47db50]
mov esi, eax
call fcn.0044c01b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x456f29
test edi, edi
je 0x456f29
call esi
test eax, eax
je 0x456f20
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x456f20
test byte [ebp - 0xc], 1
jne 0x456f29
or dword [ebp + 0x10], 0x200000
jmp 0x456f62
mov eax, dword [0x47db44]
cmp eax, ebx
je 0x456f62
push eax
call fcn.0044c01b
pop ecx
test eax, eax
je 0x456f62
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x456f62
mov eax, dword [0x47db48]
cmp eax, ebx
je 0x456f62
push eax
call fcn.0044c01b
pop ecx
test eax, eax
je 0x456f62
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47db40]
call fcn.0044c01b
pop ecx
test eax, eax
je 0x456f82
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x456f84
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x401000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb6c
and byte [ebp - 0xb6c], 0
push ebx
push esi
push edi
mov ecx, 0x255
xor eax, eax
lea edi, [ebp - 0xb6b]
xor esi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x212]
mov word [ebp - 0x214], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x214]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push 0x40803c
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
push 2
push esi
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push ebx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
lea eax, [edi + 0x3e8]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
lea eax, [edi + 1]
push ebx
push eax
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
adc eax, sym.imp.MSVCRT.dll_fread
Function at 0x403b44
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406b78
push 0x903ed4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
nop
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
pop edi
push edi
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x408600], 0xffffffff
or dword [0x408604], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4085f4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4085f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4085fc], eax
call fcn.00403ed3
cmp dword [0x408510], ebx
jne 0x403bc9
push 0x403ed0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00403ebe
push 0x408014
push 0x408010
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4085ec]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x4085e8]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x40800c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__wcmdln]
mov esi, dword [eax]
cmp esi, ebx
jne 0x403c31
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0x90], ecx
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 0x74], esi
cmp word [esi], 0x22
jne 0x403c7f
add esi, edi
mov dword [ebp - 0x74], esi
mov ax, word [esi]
cmp ax, bx
je 0x403c4d
cmp ax, 0x22
jne 0x403c3a
cmp word [esi], 0x22
jne 0x403c58
add esi, edi
mov dword [ebp - 0x74], esi
mov ax, word [esi]
cmp ax, bx
je 0x403c66
cmp ax, 0x20
jbe 0x403c53
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x30], 1
je 0x403c8c
movzx eax, word [ebp - 0x2c]
jmp 0x403c8f
cmp word [esi], 0x20
jbe 0x403c58
add esi, edi
mov dword [ebp - 0x74], esi
jmp 0x403c7f
nop
or bl, byte [eax + 0x50]
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x40b29c
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0x7d18a7f5
cmpsd dword [esi], dword es:[edi]
sbb byte [ebp + 0x6e], bh
xchg dl, ah
or eax, 0x7d7913ef
in al, dx
jl 0x40b231
ja 0x40b233
sub al, 0xf

Function at 0x417a10
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x50
test eax, eax
push esi
je 0x417a36
mov eax, dword [0x4baa90]
test eax, eax
je 0x417a2c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
pop esi
add esp, 0x50
ret
push ebx
push edi
lea eax, [esp + 0xc]
inc esp
and al, 0xc
push 0x50
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4ba070
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
push edx
scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [0x4baa90], eax
test eax, eax
pop ebx
je 0x417ad1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ba05c
push eax
call esi
mov ecx, dword [0x4baa90]
push 0x4ba044
push ecx
mov dword [0x4baa8c], eax
call esi
mov ecx, dword [0x4baa8c]
mov dword [0x4baa94], eax
test ecx, ecx
je 0x417ac7
test eax, eax
je 0x417ac7
mov eax, 1
pop esi
add esp, 0x50
ret
mov dword [0x4baa90], 0
xor eax, eax
pop esi
add esp, 0x50
ret
Function at 0x4453f7
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
adc bl, byte [edi]
les ecx, [ecx + ebx*8]
pop es
daa
punpckhbw mm5, mm7
cmpsd dword [esi], dword es:[edi]
and ebx, dword [ebx]
insb byte es:[edi], dx
rcr byte [esi + ebx*8], 0x57
dec eax
ficom word [edi + 0x48]
and ebx, dword [esi]
test al, 0x74
lds edx, [eax + esi*4]
test al, 0xd6
cmc
xor eax, 0xebe895cb
js 0x445408
cmp byte [ebx + ecx*2 + 0x67], al
fstpnce st(4), st(0)
rcr byte [ecx - 0x25], 0xe3
pop esi
sbb eax, 0x202b082e
or byte cs:[ebx], ch
and byte [ebx], ah
out dx, al