joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40302c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41703c]
sub esi, dword [0x40afa8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423eac], eax
jle 0x403196
push dword [0x41f04c]
call fcn.004031da
push ebx
push ebx
push dword [0x40afa8]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f048], esi
mov dword [0x417038], ebx
mov ebp, 0x40b038
mov eax, dword [0x417040]
mov edi, 0x4000
sub eax, dword [0x41f04c]
cmp eax, edi
jg 0x4030a1
mov edi, eax
mov esi, 0x413038
push edi
push esi
call fcn.004031a8
test eax, eax
je 0x403188
add dword [0x41f04c], edi
mov dword [0x40afc8], esi
mov dword [0x40afcc], edi
cmp dword [0x423eb0], ebx
je 0x4030f8
cmp dword [0x423f40], ebx
jne 0x4030f8
mov eax, dword [0x41f048]
push ebx
sub eax, dword [0x41703c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afa8]
mov dword [0x417038], eax
call fcn.00402bc5
pop ecx
mov ecx, 0x40afb0
mov dword [0x40afd0], ebp
mov dword [0x40afd4], 0x8000
call fcn.00405e9d
test eax, eax
jl 0x403191
mov esi, dword [0x40afd0]
sub esi, ebp
je 0x403152
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40318d
cmp esi, dword [esp + 0x10]
jne 0x40318d
add dword [0x40afa8], esi
cmp dword [0x40afcc], ebx
jne 0x4030c7
jmp 0x40315e
cmp dword [0x40afcc], ebx
jne 0x403191
cmp edi, ebx
je 0x403191
mov eax, dword [0x41703c]
mov ecx, eax
sub ecx, dword [0x40afa8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40308b
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403196
or eax, 0xffffffff
jmp 0x4031a0
push 0xfffffffffffffffe
jmp 0x403193
push 0xfffffffffffffffd
pop eax
jmp 0x4031a0
push 1
call fcn.00402bc5
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4052e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224a0], 0x44
push eax
xor eax, eax
push 0x4224a0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405320
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053aa
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405659
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4053de
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f28], eax
jmp 0x405572
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4053fc
test eax, eax
je 0x40551d
test byte [ebp + 0xc], 2
je 0x40551d
mov esi, 0x4214a0
push edi
push esi
call fcn.00405a85
test ebx, ebx
je 0x405419
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40541f
push edi
call fcn.004055bf
cmp byte [edi], 0
jne 0x40542d
cmp byte [0x4214a0], 0x5c
jne 0x405438
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405513
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004055a3
cmp byte [eax], 0
je 0x40547e
cmp byte [ebp - 0x18], 0
je 0x40547e
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405494
mov al, byte [esi + 1]
test al, al
je 0x4054f2
cmp al, 0x2e
jne 0x405494
cmp byte [esi + 2], 0
je 0x4054f2
push esi
push ebx
call fcn.00405a85
test byte [ebp - 0x148], 0x10
je 0x4054b9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054f2
push dword [ebp + 0xc]
push edi
call fcn.004053aa
jmp 0x4054f2
push edi
call fcn.0040573d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054ea
test byte [ebp + 0xc], 4
je 0x4054e2
push edi
push 0xfffffffffffffff1
call fcn.00404e23
push 0
push edi
call fcn.004057d3
jmp 0x4054f2
inc dword [0x423f28]
jmp 0x4054f2
push edi
push 0xfffffffffffffff2
call fcn.00404e23
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40545c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40551d
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405572
cmp dword [ebp - 8], esi
jne 0x405532
inc dword [0x423f28]
jmp 0x405572
push edi
call fcn.00405d7c
test eax, eax
je 0x405572
push edi
call fcn.00405578
push edi
call fcn.0040573d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40556a
test byte [ebp + 0xc], 4
je 0x40552a
push edi
push 0xfffffffffffffff1
call fcn.00404e23
push esi
push edi
call fcn.004057d3
jmp 0x405572
push edi
push 0xffffffffffffffe5
call fcn.00404e23
pop edi
pop esi
leave
ret 8
Function at 0x405659
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4218a0
push esi
call fcn.00405a85
push esi
call fcn.0040560c
mov edi, eax
test edi, edi
jne 0x40567a
xor eax, eax
jmp 0x4056cc
push edi
call fcn.00405ce3
test byte [0x423eb8], 0x80
je 0x405693
mov al, byte [edi]
test al, al
je 0x405676
cmp al, 0x5c
je 0x405676
sub edi, esi
jmp 0x4056ab
call fcn.00405d7c
test eax, eax
je 0x4056a5
test byte [eax], 0x10
je 0x405676
push esi
call fcn.004055bf
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405697
call fcn.00405578
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40573d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405759
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40575c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40578b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4057cf
test edi, edi
jne 0x405796
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4057c9
Function at 0x4057d3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405da3
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4057f7
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405930
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422628], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422628
je 0x40583b
push 1
push 0
push esi
call fcn.0040575c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405936
cmp eax, edi
jg 0x405936
mov esi, 0x4220a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405936
cmp eax, edi
jg 0x405936
push esi
push ebp
push str._s_s_r_n
push 0x421ca0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423eb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405aa7
push 4
push 0xc0000000
push esi
call fcn.0040575c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405930
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405929
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405929
cmp edi, dword [esp + 0x18]
jne 0x405929
push str._Rename__r_n
push esi
call fcn.004056d1
test eax, eax
jne 0x40593d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a85
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421ca0
push eax
call fcn.0040571d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423f30]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409348
push eax
call fcn.004056d1
test eax, eax
je 0x4058f4
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405964
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405959
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058f6
Function at 0x40596c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059dd
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4059cc
cmp dword [ebp + 0x14], 1
je 0x4059ce
cmp dword [ebp + 0x14], 2
je 0x4059ce
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405e0f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a2c], 0
push esi
jne 0x405e46
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405e20
mov dword [ecx*4 + 0x422a28], eax
inc ecx
cmp ecx, 0x100
jl 0x405e1b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e77
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a28]
xor eax, esi
inc ecx
dec edx
jne 0x405e59
pop edi
not eax
pop esi
ret 0xc
Function at 0x10001370
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
fld dword [0x10016bf0]
xor eax, eax
push ebx
fstp dword [0x101df3cc]
fld dword [0x10016dd4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
fstp dword [0x101df3d0]
fld dword [0x10016c70]
mov dword [0x101df3bc], eax
mov dword [0x101df3c0], eax
fstp dword [0x101df3dc]
mov dword [0x101df3c4], eax
mov dword [0x101df3c8], eax
mov dword [0x101df410], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push 0x60d9e4
mov dword [0x101df3b8], 0x100162f4
mov dword [0x101df3e0], 0x626681
mov dword [0x101df3e4], 0x7d171a0
mov dword [0x101df3e8], 0x6a9798
mov dword [0x101df3ec], 0x6a7770
mov dword [0x101df3f0], 0x6a9684
mov dword [0x101df3f4], 0x6a967c
mov dword [0x101df3f8], 0x5e9d4e
mov dword [0x101df3fc], 0x62696e
mov dword [0x101df400], 0x6a9694
mov dword [0x101df404], 0x6a9688
mov dword [0x101df408], 0x5e9cfe
mov dword [0x101df40c], 0x62694f
call esi
mov eax, 0x90909090
mov ecx, 0x60d9e4
mov dword [ecx], eax
mov word [ecx + 4], ax
mov edx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push edx
push 6
push 0x60d9e4
call esi
push 0x10001da0
push 0x60da50
mov bl, 0xe9
call fcn.100131f0
add esp, 8
pop esi
mov eax, 0x101df3b8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001dc0
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001dd0
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x10001ddc
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001de6
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001df0
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x10001dfa
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001e04
or eax, 4
shr ecx, 1
test cl, 1
je 0x10001e0e
or eax, 2
test cl, 2
je 0x10001e16
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x10001ed0
test al, 1
je 0x10001edd
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001ed0
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001dc4
pop edi
pop ebx
ret

Function at 0x10001f00
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100162f8
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x10001f32
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10001f60
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001fc3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10001fa9
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10001f88
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10001f80
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10003ad0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x38
push 0x6a94d0
call esi
push 0x38
push 0x100a6180
push 0x6a94d0
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 0x38
push 0x6a94d0
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 0x38
push 0x6a9508
call esi
push 0x38
push 0x100a61b8
push 0x6a9508
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 0x38
push 0x6a9508
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 0x30
push 0x6a9470
call esi
push 0x30
push 0x100a61f0
push 0x6a9470
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 0x30
push 0x6a9470
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 0x30
push 0x6a94a0
call esi
push 0x30
push 0x100a6220
push 0x6a94a0
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 0x30
push 0x6a94a0
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 0x30
push 0x6a9540
call esi
push 0x30
push 0x100a6250
push 0x6a9540
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 0x30
push 0x6a9540
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 0x30
push 0x6a9570
call esi
push 0x30
push 0x100a6280
push 0x6a9570
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 0x30
push 0x6a9570
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 0x38
push 0x6a7acc
call esi
push 0x38
push 0x100a62b0
push 0x6a7acc
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 0x38
push 0x6a7acc
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 0x38
push 0x6a7b04
call esi
push 0x38
push 0x100a62e8
push 0x6a7b04
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edx
push 0x38
push 0x6a7b04
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x5a5e63
call esi
lea ecx, [ebp - 4]
push ecx
mov dword [0x5a5e63], 0x270f
mov edx, dword [ebp - 4]
push edx
push 4
push 0x5a5e63
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x433148
call esi
lea ecx, [ebp - 4]
push ecx
mov dword [0x433148], 0x270f
mov edx, dword [ebp - 4]
push edx
push 4
push 0x433148
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003ef0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.10003e80
test eax, eax
je 0x10003fb1
push ebx
push esi
push 0x10004080
push 0x4b4e0e
mov bl, 0xe8
call fcn.100131f0
push 0x100040c0
push 0x4b4e4e
call fcn.100131f0
push 0x10004100
push 0x4b4e90
call fcn.100131f0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push 0x4b4e13
call esi
mov bl, 0x90
lea ecx, [ebp - 4]
push ecx
mov byte [0x4b4e13], bl
mov edx, dword [ebp - 4]
push edx
push 1
push 0x4b4e13
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push 0x4b4e53
call esi
lea ecx, [ebp - 4]
push ecx
mov byte [0x4b4e53], bl
mov edx, dword [ebp - 4]
push edx
push 1
push 0x4b4e53
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push 0x4b4e95
call esi
lea ecx, [ebp - 4]
push ecx
mov byte [0x4b4e95], bl
mov edx, dword [ebp - 4]
push edx
push 1
push 0x4b4e95
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x100a6179], 0
je 0x100041d6
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x5e57b6
call esi
fld dword [0x10016dbc]
lea ecx, [ebp - 4]
fstp dword [0x5e57b6]
mov edx, dword [ebp - 4]
push ecx
push edx
push 4
push 0x5e57b6
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x5e57d5
call esi
fld dword [0x10016dbc]
lea ecx, [ebp - 4]
fstp dword [0x5e57d5]
mov edx, dword [ebp - 4]
push ecx
push edx
push 4
push 0x5e57d5
call esi
push 0x100041e0
push 0x5e4be0
mov bl, 0xe9
call fcn.100131f0
push 0x10004580
push 0x5d4ca0
call fcn.100131f0
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push eax
call fcn.10004860
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add esp, 4
test al, al
je 0x10004990
xor ecx, ecx
test edi, edi
jle 0x10004990
mov dl, byte [0x10137e39]
mov al, dl
imul byte [0x10137e38]
push ebx
mov bl, byte [ecx + esi]
add bl, al
xor bl, dl
mov byte [ecx + esi], bl
inc ecx
cmp ecx, edi
jl 0x10004980
pop ebx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push edi
push esi
push edx
call dword [0x10137e3c]
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x100049b0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ecx, ecx
mov edi, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x14], edi
lea esi, [ecx + 1]
mov eax, 0xf0f0f0f1
mul ecx
shr edx, 4
mov eax, edx
shl eax, 4
add eax, edx
mov edx, ecx
sub edx, eax
movzx eax, byte [edx + 0x100a6028]
mov byte [ebp - 1], al
mov eax, 0xf0f0f0f1
mul esi
shr edx, 4
mov eax, edx
shl eax, 4
add eax, edx
mov edx, ecx
sub edx, eax
movzx eax, byte [edx + 0x100a6029]
movzx edx, byte [edi + 0x100a5fbb]
mov byte [ebp - 3], al
mov byte [ebp - 2], dl
mov eax, 0xf0f0f0f1
mul edi
mov edi, dword [ebp - 0xc]
shr edx, 4
mov eax, edx
shl eax, 4
add eax, edx
mov edx, ecx
sub edx, eax
movzx eax, byte [edx + 0x100a602a]
movzx edx, byte [edi + 0x100a5fbb]
mov byte [ebp - 5], al
mov byte [ebp - 4], dl
mov bl, byte [esi + 0x100a5fbb]
mov eax, 0xf0f0f0f1
mul edi
shr edx, 4
mov eax, edx
shl eax, 4
add eax, edx
mov edx, ecx
sub edx, eax
movzx eax, byte [edx + 0x100a602b]
movzx edx, byte [ecx + 0x100a5fbf]
mov byte [ebp - 6], al
mov al, byte [ebp - 1]
mov byte [ebp - 7], dl
mov dl, bl
sub bl, al
xor dl, al
movzx eax, bl
movzx edi, dl
add di, word [ebp - 0x10]
mov dl, byte [ebp - 3]
xor di, ax
mov al, byte [ebp - 2]
mov bl, al
xor bl, dl
sub al, dl
movzx ebx, bl
add di, bx
movzx edx, al
mov al, byte [ebp - 4]
xor di, dx
mov dl, byte [ebp - 5]
mov bl, al
xor bl, dl
movzx ebx, bl
sub al, dl
mov dl, byte [ebp - 6]
add di, bx
movzx eax, al
xor di, ax
mov al, byte [ebp - 7]
mov bl, dl
xor bl, al
movzx ebx, bl
add di, bx
sub al, dl
add dword [ebp - 0xc], 4
movzx edx, al
xor di, dx
movzx eax, di
mov edi, dword [ebp - 0x14]
add esi, 4
add edi, 4
add ecx, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
cmp esi, 0x21
jb 0x100049d0
mov edx, dword [0x6a7574]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [eax - 0x4e]
mov byte [0x10137e39], cl
lea ecx, [ebp - 0x14]
push ecx
shr eax, 8
sub al, 6
push 0x40
mov byte [0x10137e38], al
mov eax, dword [0x6a7584]
push 4
push 0x6a7574
mov dword [0x10137e40], edx
mov dword [0x10137e3c], eax
call esi
lea edx, [ebp - 0x14]
push edx
mov dword [0x6a7574], 0x100048f0
mov eax, dword [ebp - 0x14]
push eax
push 4
push 0x6a7574
call esi
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push 4
push 0x6a7584
call esi
lea edx, [ebp - 0x14]
push edx
mov dword [0x6a7584], 0x10004950
mov eax, dword [ebp - 0x14]
push eax
push 4
push 0x6a7584
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret