joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cfd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x40cfdb
push edi
mov dword [ebp - 0x10], 0
cmp dword [0x4343b4], 0
jne 0x40d012
cmp dword [0x4345d4], 0
jne 0x40d012
cmp dword [0x4343e0], 0
jne 0x40d012
mov eax, 0xffffffff
jmp 0x40d0e2
call fcn.0040c895
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.0040cd96
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jge 0x40d04d
call fcn.0040c895
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 8], edi
je 0x40d04d
dec dword [ebp + 0x10]
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
push 0xa
call sub.KERNEL32.dll_Sleep
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jge 0x40d05b
cmp dword [ebp + 0x10], 0
jg 0x40d01d
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 4], edi
jl 0x40d0d0
cmp dword [0x4343b4], 0
je 0x40d085
push 0
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4343b4]
call sub.KERNEL32.dll_ReadFile
jmp 0x40d0d0
cmp dword [0x4345d4], 0
je 0x40d0a6
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4345d4]
call dword [0x43459c]
jmp 0x40d0d0
cmp dword [0x4343e0], 0
je 0x40d0d0
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x4343d8
call fcn.0041242f
add esp, 0xc
cmp eax, 0
jne 0x40d0d0
mov edi, dword [0x4343e4]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
je 0x40d0df
mov eax, 0
jmp 0x40d0e2
mov eax, dword [ebp - 0x10]
pop edi
leave
ret

Function at 0x40d149
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x40d154
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call fcn.0040c895
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
jmp 0x40d19a
call fcn.0040c895
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
je 0x40d19a
inc dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
push 0
call sub.KERNEL32.dll_Sleep
call fcn.0040d0e5
cmp eax, 0
je 0x40d1af
mov edi, dword [0x45ed1c]
cmp dword [ebp - 8], edi
jle 0x40d17a
mov edi, dword [0x45ed1c]
cmp dword [ebp - 8], edi
jle 0x40d1c1
mov eax, 0
jmp 0x40d240
cmp dword [0x4343b4], 0
je 0x40d1e3
push 0
lea edi, [ebp - 0x10]
push edi
push 1
lea edi, [ebp + 8]
push edi
push dword [0x4343b4]
call sub.KERNEL32.dll_WriteFile
jmp 0x40d22e
cmp dword [0x4345d4], 0
je 0x40d204
lea edi, [ebp - 0x10]
push edi
push 1
lea edi, [ebp + 8]
push edi
push dword [0x4345d4]
call dword [0x434614]
jmp 0x40d22e
cmp dword [0x4343e0], 0
je 0x40d22e
lea edi, [ebp + 8]
push edi
push 1
push 0x4343d8
call fcn.004123b9
add esp, 0xc
cmp eax, 0
jne 0x40d22e
mov edi, dword [0x4343e8]
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], 1
je 0x40d23b
mov eax, 0
jmp 0x40d240
mov eax, 1
pop edi
leave
ret
Function at 0x40d243
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x40d24e
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call fcn.0040c895
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
jmp 0x40d294
call fcn.0040c895
mov dword [ebp - 4], eax
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
je 0x40d294
inc dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], edi
push 0
call sub.KERNEL32.dll_Sleep
call fcn.0040d0e5
cmp eax, 0
je 0x40d2a9
mov edi, dword [0x45ed1c]
cmp dword [ebp - 8], edi
jle 0x40d274
mov edi, dword [0x45ed1c]
cmp dword [ebp - 8], edi
jle 0x40d2be
mov eax, 0
jmp 0x40d33f
cmp dword [0x4343b4], 0
je 0x40d2e0
push 0
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4343b4]
call sub.KERNEL32.dll_WriteFile
jmp 0x40d32b
cmp dword [0x4345d4], 0
je 0x40d301
lea edi, [ebp - 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x4345d4]
call dword [0x434614]
jmp 0x40d32b
cmp dword [0x4343e0], 0
je 0x40d32b
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x4343d8
call fcn.004123b9
add esp, 0xc
cmp eax, 0
jne 0x40d32b
mov edi, dword [0x4343e8]
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
je 0x40d33a
mov eax, 0
jmp 0x40d33f
mov eax, 1
pop edi
leave
ret

Function at 0x40e82a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 1
push 0
push 0
push dword [ebp + 8]
push 0x40e77c
push 0
push 0
call sub.KERNEL32.dll_CreateThread
pop edi
leave
ret

Function at 0x40e928
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 1
push 0
push 0
push dword [ebp + 8]
push 0x40e84f
push 0
push 0
call sub.KERNEL32.dll_CreateThread
pop edi
leave
ret

Function at 0x40ea20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 1
push 0
push 0
push dword [ebp + 8]
push 0x40e94d
push 0
push 0
call sub.KERNEL32.dll_CreateThread
pop edi
leave
ret
Function at 0x41143f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 3
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x41144a
push edi
mov dword [ebp - 4], 0
push 0
call sub.USER32.DLL_OpenClipboard
cmp eax, 0
je 0x4114c1
call sub.USER32.DLL_EmptyClipboard
mov edi, dword [ebp + 8]
push dword [edi + 4]
push 0x2000
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 8], eax
cmp eax, 0
je 0x4114bc
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 8]
push dword [edi + 4]
push dword [edi]
push dword [ebp - 0xc]
call sub.CRTDLL.DLL_memcpy
add esp, 0xc
push dword [ebp - 8]
push 8
call sub.USER32.DLL_SetClipboardData
push dword [ebp - 8]
call sub.KERNEL32.dll_GlobalUnlock
mov dword [ebp - 4], 1
call sub.USER32.DLL_CloseClipboard
mov eax, dword [ebp - 4]
pop edi
leave
ret

Function at 0x4114c7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, 6
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4114d2
push esi
push edi
mov word [ebp - 0xe], 0x4d42
mov edi, dword [ebp + 8]
mov edi, dword [edi + 4]
add edi, 0xe
mov dword [ebp - 0xc], edi
mov word [ebp - 8], 0
mov word [ebp - 6], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov eax, dword [edi + 0xc]
mov edi, dword [edi + 0x10]
mul dword [edi + 8]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x18]
mov dword [ebp - 4], esi
push 0x45f18c
push dword [ebp + 0xc]
call sub.CRTDLL.DLL_fopen
add esp, 8
mov dword [ebp - 0x14], eax
cmp eax, 0
jne 0x411536
mov eax, 0
jmp 0x41156e
push dword [ebp - 0x14]
push 0xe
push 1
lea edi, [ebp - 0xe]
push edi
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 0x14]
mov edi, dword [ebp + 8]
push dword [edi + 4]
push 1
push dword [edi]
call sub.CRTDLL.DLL_fwrite
add esp, 0x10
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov dword [0x4346b8], 0
push str.IJL15.DLL
call sub.KERNEL32.dll_GetFileAttributesA
mov edi, eax
cmp edi, 0xffffffff
je 0x41228a
push str.libfreetype_6.dll
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41228a
push str.eaconvert.dll
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x4346b8], eax
cmp eax, 0
je 0x41228a
call fcn.00412184
cmp eax, 0
jne 0x41228a
call fcn.004122a5
cmp dword [0x4346b8], 0
je 0x41229a
mov ebx, 1
jmp 0x41229f
mov ebx, 0
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x4122f3
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push esi
push edi
mov edi, dword [ebp + 8]
push 6
push 1
push 2
call sub.WS2_32.DLL_socket
mov dword [edi + 8], eax
and dword [edi + 0x14], 0
and dword [edi + 0x18], 0
cmp dword [edi + 8], 0xffffffff
jne 0x41236a
call sub.WS2_32.DLL_WSAGetLastError
mov dword [edi + 0x14], eax
cmp dword [edi + 0x14], 0x276d
jne 0x412365
lea eax, [ebp - 0x1a0]
push eax
push 0x102
call sub.WS2_32.DLL_WSAStartup
or eax, eax
je 0x41234d
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0x14], eax
jmp 0x4123b5
or byte [edi + 0x18], 1
and dword [edi + 0x14], 0
push 6
push 1
push 2
call sub.WS2_32.DLL_socket
mov dword [edi + 8], eax
jmp 0x41236a
mov eax, dword [edi + 0x14]
jmp 0x4123b5
mov word [ebp - 0x10], 2
push dword [edi]
call sub.WS2_32.DLL_inet_addr
mov dword [ebp - 0xc], eax
movzx eax, word [edi + 4]
push eax
call sub.WS2_32.DLL_htons
mov esi, eax
mov word [ebp - 0xe], si
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [edi + 8]
call sub.WS2_32.DLL_connect
cmp eax, 0xffffffff
jne 0x4123a5
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0x14], eax
cmp dword [edi + 0x14], 0
je 0x4123b2
push edi
call fcn.004122c8
pop ecx
mov eax, dword [edi + 0x14]
pop edi
pop esi
leave
ret

Function at 0x4123b9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
or ebx, ebx
jle 0x4123cf
cmp dword [ebp + 0x10], 0
jne 0x4123d6
mov dword [esi + 0x14], 0x2726
cmp dword [esi + 8], 0xffffffff
jne 0x4123e3
mov dword [esi + 0x14], 0x2749
cmp dword [esi + 0x14], 0
jne 0x412427
and dword [esi + 0x10], 0
push 0
push ebx
push dword [ebp + 0x10]
push dword [esi + 8]
call sub.WS2_32.DLL_send
mov edi, eax
cmp edi, 0xffffffff
je 0x41240f
add dword [esi + 0x10], edi
mov eax, edi
add eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
jmp 0x412419
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 0x14], eax
jmp 0x412427
or edi, edi
je 0x412427
cmp edi, 0xffffffff
je 0x412427
cmp dword [esi + 0x10], ebx
jl 0x4123ed
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41242f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
jle 0x412442
cmp dword [ebp + 0x10], 0
jne 0x412449
mov dword [edi + 0x14], 0x2726
cmp dword [edi + 8], 0xffffffff
jne 0x412456
mov dword [edi + 0x14], 0x2749
cmp dword [edi + 0x14], 0
jne 0x412471
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [edi + 8]
call sub.WS2_32.DLL_recv
mov dword [edi + 0xc], eax
jmp 0x412475
and dword [edi + 0xc], 0
mov eax, dword [edi + 0xc]
cmp eax, 0x2746
je 0x412484
cmp eax, 0xffffffff
jne 0x412490
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 0x14], eax
and dword [edi + 0xc], 0
mov eax, dword [edi + 0x14]
pop edi
pop ebp
ret
Function at 0x4174d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.dll_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x417504
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x41751f
mov edi, eax
inc edi
jmp 0x4174fc
inc edi
cmp byte [edi], 0x20
je 0x4174fb
jmp 0x41751f
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x417510
cmp eax, 0x20
jne 0x417503
jmp 0x417513
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x41751f
cmp eax, 0x20
je 0x417512
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.00403a9b
pop edi
leave
ret
Function at 0x17b7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x17b71a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x17b707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17b706a
add dl, dl
jne 0x17b7089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17b70dc
xor eax, eax
add dl, dl
jne 0x17b7096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17b717d
add dl, dl
jne 0x17b70a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17b70b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17b70bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17b70c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17b70d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x17b7075
mov eax, 1
add dl, dl
jne 0x17b70ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17b70f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17b70e1
sub eax, ebx
mov ebx, 1
jne 0x17b7128
mov ecx, 1
add dl, dl
jne 0x17b710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17b7119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17b7105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17b7075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x17b713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17b714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17b7136
cmp eax, 0x7d00
jae 0x17b716d
cmp eax, 0x500
jb 0x17b7168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17b7075
cmp eax, 0x7f
ja 0x17b7170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17b7075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x17b719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x17b7075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x17f6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.017f61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x17f607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17f606a
add dl, dl
jne 0x17f6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17f60dc
xor eax, eax
add dl, dl
jne 0x17f6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17f617d
add dl, dl
jne 0x17f60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17f60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17f60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17f60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17f60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x17f6075
mov eax, 1
add dl, dl
jne 0x17f60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17f60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17f60e1
sub eax, ebx
mov ebx, 1
jne 0x17f6128
mov ecx, 1
add dl, dl
jne 0x17f610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17f6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17f6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17f6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x17f613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17f614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17f6136
cmp eax, 0x7d00
jae 0x17f616d
cmp eax, 0x500
jb 0x17f6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17f6075
cmp eax, 0x7f
ja 0x17f6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17f6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x17f619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x17f6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x407e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407f09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407e68
mov eax, dword [ebp - 4]
call fcn.00407220
jmp 0x407e70
mov eax, dword [ebp - 4]
call fcn.00407c1c
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407ebc
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ea6
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.00407220
jmp 0x407eb8
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407c1c
inc ebx
dec esi
jne 0x407e80
push 1
push dword [ebp - 4]
push 0x407f20
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f84
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f10
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0xae9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xae938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xb12074
push ecx
mov edi, eax
call fcn.00afd198
mov esi, eax
add esp, 8
test esi, esi
jne 0xae93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00afd02e
push esi
call fcn.00afcfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xaec850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xaec8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xb17720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xaec8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00afd1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xaec8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xb17720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xaec92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00afe082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xaec957
mov word [eax], si
add eax, 2
push eax
call fcn.00afe030
add esp, 4
jmp 0xaec959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xaec8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xaec8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xaecff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xaed080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xaed0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xb12458
push ecx
call fcn.00afd1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00afd1e1
add esp, 0x10
jmp 0xaed0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00afd20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00afcdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00aed050
mov eax, dword [0xb17728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xaed13b
push esi
call fcn.00aecfb0
add esp, 4
mov dword [0xb17728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xaed14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00aecff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xaf0440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xaf04b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xaf048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xaf0471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xaf047e
add edx, ecx
cmp ebx, edx
jb 0xaf048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xaf0467
xor ecx, ecx
jmp 0xaf04a2
test eax, eax
jne 0xaf0492
xor ecx, ecx
jmp 0xaf04a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00af03c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xaf08f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xaf0921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xaf0946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xaf096e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xaf0993
push ecx
push esi
call fcn.00af04c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret