joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060a0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e0f8]
jne 0x4060aa
repz ret
jmp fcn.0040b052

Function at 0x40ad75
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.00407ea4
and dword [ebp - 4], 0
cmp dword [0x460ddc], 0
mov ebx, eax
jne 0x40ae26
push 0x401b14
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40aed7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b08
push edi
call esi
test eax, eax
je 0x40aed7
push eax
call fcn.00407e32
mov dword [esp], 0x401af8
push edi
mov dword [0x460ddc], eax
call esi
push eax
call fcn.00407e32
mov dword [esp], 0x401ae4
push edi
mov dword [0x460de0], eax
call esi
push eax
call fcn.00407e32
mov dword [esp], 0x401ac8
push edi
mov dword [0x460de4], eax
call esi
push eax
call fcn.00407e32
pop ecx
mov dword [0x460dec], eax
test eax, eax
je 0x40ae26
push 0x401ab0
push edi
call esi
push eax
call fcn.00407e32
pop ecx
mov dword [0x460de8], eax
mov eax, dword [0x460de8]
cmp eax, ebx
je 0x40ae7e
cmp dword [0x460dec], ebx
je 0x40ae7e
push eax
call fcn.00407ead
push dword [0x460dec]
mov esi, eax
call fcn.00407ead
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ae7e
test edi, edi
je 0x40ae7e
call esi
test eax, eax
je 0x40ae75
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ae75
test byte [ebp - 0xc], 1
jne 0x40ae7e
or dword [ebp + 0x10], 0x200000
jmp 0x40aeb7
mov eax, dword [0x460de0]
cmp eax, ebx
je 0x40aeb7
push eax
call fcn.00407ead
pop ecx
test eax, eax
je 0x40aeb7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40aeb7
mov eax, dword [0x460de4]
cmp eax, ebx
je 0x40aeb7
push eax
call fcn.00407ead
pop ecx
test eax, eax
je 0x40aeb7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x460ddc]
call fcn.00407ead
pop ecx
test eax, eax
je 0x40aed7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40aed9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418010
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x634038]
mov edx, dword [0x63403c]
mov dword [esp + 0x14], 0
push esi
lea ecx, [eax + eax]
push edi
or ecx, edx
lea edx, [esp + 0x10]
mov dword [esp + 0x18], ecx
push edx
fild qword [esp + 0x1c]
push 0x20019
push 0
mov esi, 0x190
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
fadd qword [0x634050]
push SysFreeString
mov edi, esi
fstp qword [0x634050]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4180de
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0xc]
push ebp
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
mov ebp, 4
push str.Browse_For_Folder_Width
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
jne 0x4180a4
mov edi, dword [esp + 0x1c]
xor esi, esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Browse_For_Folder_Height
push ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], ebp
call ebx
pop ebp
pop ebx
test eax, eax
jne 0x4180d3
or esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
mov eax, esi
pop edi
pop esi
add esp, 0x18
ret
Function at 0x43bf47
Capabilities:
Encode data using xor

Disassembly:
and byte [ebp + 0x698b6a43], 0x92
sbb al, 0xeb
mov edx, 0x7cd2b8db
jg 0x43bfab
xor al, 0x79
adc eax, 0x5687738
cmp byte [esi - 0x14c315], bl
in al, 0xcf
clc
inc esp
dec ebp
cmp eax, 0xdf1533a2
aaa
invalid
mov cl, 8
sal ah, cl
sti
insb byte es:[edi], dx
xchg ebp, eax
xor byte [ebx - 0x71], 0x3d
lodsb al, byte [esi]
xchg ebx, eax
sub eax, 0x3478f900
stosb byte es:[edi], al
cmc
iretd
insd dword es:[edi], dx
xchg ebp, eax
in al, dx
leave
jno 0x43c00a
std
les ebp, [edi]
lgs ebx, cs:[ebp + 0x6ba62330]
pop eax
je 0x43bf83
insb byte es:[edi], dx
cmpsb byte [esi], byte es:[edi]
stc
clc
and al, 0xd6
and ebp, dword [eax - 0x505dbe0d]
out dx, al
cmc
out 0x18, eax
xchg byte [ecx - 0x7d], ch
cmp bh, ch
adc byte [ecx + 0x7c], dh
das
sub dword [ecx + edi - 0x5e], ecx
movsd dword es:[edi], dword [esi]
push ebp
sub dword [ebx - 0x546f7ea7], edi
mov ecx, 0x3506f8bb
xor dword [edi], esp
test eax, 0x8f3eb2e9
pop edx
xchg edx, eax
or al, 0x67
pop ecx
mov edx, 0xae3923cd
and al, 0x82
scasd eax, dword es:[edi]
inc byte [ebp + 0x4e1f4e6c]
invalid
clc
push es
xor eax, 0xe9a92731
mov dl, 0x3e
invalid
imul edx, ebx, 0xfffffff9
stc
dec ebp
salc
sbb dh, dh
jne 0x43bfe6
test eax, 0x98c1e32
xchg esp, eax
stc
cmp al, 0xa9
push ebp
pop edi
cmp cl, dh
mov eax, 0xb42ea43c
call 0x9d0bea22
out 0xdf, eax
mov ecx, 0x212d6796
insb byte es:[edi], dx
nop
mov al, 0x71
mov ecx, 0x8c7f24fa
test ch, bh
inc edx
mov dword [0x3736a033], eax
cmp esi, dword [ecx]
xlatb
mov bl, 0xd2
push ebp
jne 0x43c008
jne 0x43c036
rcl byte gs:[edi - 0xe], cl
dec byte [eax]
cmp dword [esi], esi
push 0x92fcf376
sbb eax, 0xa954e98b
add eax, 0x947eb841
or esp, dword [ebx]
dec edi
xchg edi, eax
fnstcw word [ecx]
xchg esi, eax
xor dword [ebp - 0x540aa188], ebp
cld
cmp ecx, 0xfffffffb
invalid
Function at 0x47cedb
Capabilities:
Encode data using xor

Disassembly:
adc bh, 0xd0
pushal
loopne 0x47cee4
cmc
dec ebx
inc esp
shl byte [edx - 0x6b0449ac], 1
mov dword [0x781e1047], eax
xor dword [ebx + 0x704babeb], 0xffffffe0
mov al, byte [0x53060d0]
sub dword [edi], ecx
dec eax
arpl bp, si
shl byte [edx + 0x508043d8], 1
in al, dx
int1
add byte [eax + eax*4 - 0x77], bh
mov al, 0xca
mov byte [0xb74d2931], al
add ecx, ebx
xor byte cs:[0x459d4d72], dl
test al, 0xbd
mov ebp, 0x40f72897
popfd
mov byte [0x40962364], al
fadd dword [eax - 0x7f]
mov al, dh
ret 0xda1
mov ecx, 0x7335400f
pop es
xor edi, dword [eax - 0x18c318c2]
dec edi
out 0x3c, eax
out 0x4f, eax
pop es
pop ss
and dword [edi], eax
shr byte [edi], 1
push eax
jo 0x47cf50
nop
je 0x47ce79
scasb al, byte es:[edi]
mov al, byte [0x8fba634f]
add byte [edi + 0x2de09d78], cl
adc al, dh
cwde
scasd eax, dword es:[edi]
test dword [edi], 0xd6e0e087
mov esp, 0xb2e1ac1e
je 0x47cf32
loopne 0x47cf87
cmp byte [edi - 0x59], 0xef
inc eax
ret 0x8bfb
xchg esi, eax
call 0xc9f25b43
dec ebx
sub al, 0x60
invalid
xor al, 0xfb
push edi
aas
fst qword [eax + 0x7d]
inc esi
pushal
enter 0x99e, 0x1a
cmp bl, byte [edi]
sbb bh, byte [edx]
pop ds
mov al, 0x72
cld
jo 0x47cf1b
push ebx
xchg ebp, eax
jge 0x47cf72
aas
cwde
push eax
mov dword [0x5236db50], eax
xor byte [eax], 0x90
invalid
push eax
xchg ebx, eax
add edi, esp
xor dword [esi + 0x3110b10d], ecx
push 0x91807020
push ecx
loop 0x47cf25
adc dl, byte [ecx - 0x50]
jo 0x47cef1
adc byte [ebp + ebx + 0x50], ah
invalid
push eax
ror byte [eax + 0x1f], 0xc1
arpl word [eax], cx
in eax, dx
push esp
inc eax
dec esi
invalid
mov byte [eax + 0x57], ah
invalid
Function at 0x481ff7
Capabilities:
Encode data using base64

Disassembly:
adc bh, 0x25
fmul dword [edx - 0x69]
sub al, 0x3d
fsubr st(3), st(0)
fimul dword [eax]
cdq
cmpsd dword [esi], dword es:[edi]
push 0x37
or dword [ecx + 0x4e], 0x1f4d23cb
dec esp
jge 0x481f57
mov ebx, 0x3ecec351
push es
invalid
pushfd
mov dword [eax], edi
cmp ebx, edi
inc ebx
invalid
aad 0x58
jl 0x481ee5
dec esi
inc edx
cmp byte [edx], bl
invalid
cdq
mov dl, 0xc
xchg edi, eax
cmc
add dl, byte gs:[eax - 0x6de84d96]
cdq
test eax, 0xb926d9fd
js 0x481f24
pop eax
mov ecx, 0x3e90d4f9
call [eax + 0x5e]
add al, 0xfd
sub byte [edi + 0x586b3a7e], bh
loopne 0x481ff8
pop ecx
sbb dword [edi], ecx
std
invalid
jnp 0x481f4b
sar dh, cl
invalid
xor dword [edx + 0x4dec2156], edi
mov edx, 0x4dec2156
mov al, 0x53
adc eax, 0xff01cd62
sbb byte [eax - 0x4b3fcb73], bh
jge 0x481fb3
cmp byte [eax - 0x47027cb4], bh
mov al, byte [0x88ff397d]
aaa
push edx
in eax, dx
lcall 0x41b9, 0xe2b566c4
loop 0x4820a1
in al, 0xd3
shr ebx, 0xd9
jne fcn.00482037
push esp
insd dword es:[edi], dx
adc edx, dword [edi + 0x7f]
outsd dx, dword [esi]
aaa
invalid
fdivp st(6)
call 0x2e5cc2f5
mov dword [0x4c80eb4d], eax
xor eax, 0x5c9ee621
sub eax, 0x24610ebf
mov dword [0x5b87f259], eax
jge 0x4820d2
ljmp 0xdd27:0x6dea7157
dec ebp
pushfd
push ebp
jns 0x482129
cmp byte [ebp - 0x60], al
mov dword [0xeeb60dbf], eax
cmc
adc dword [ecx], ebp
iretd
ja 0x48209f
cmp ch, ah
outsb dx, byte [esi]
popfd
xchg esi, eax
push ebx
sbb eax, dword [0x7d03decd]
cmp eax, 0x86f84f11
mov byte [ebx], al
mov edx, 0xc9ac999e
sbb al, 0x30
imul ebx, dword [ecx + 0x68], 0xb3794d09
xor byte [ecx + 0x59], ch
push 0xb3794d09
sti
dec ebp
add dword [edi], ebx
sahf
out dx, al
test eax, 0xefbb70d5
scasd eax, dword es:[edi]
mov bl, 0xe9
clc
int 0x50
into
cmovle esp, dword [ebx - 0x7a]
add al, 0xcc
adc ah, byte [ecx + esi*2 + 0x1f]
jno 0x48214a
mov byte [0xe8e406d3], al
jge 0x4820eb
std
cwde
imul ecx, dword [edi - 0x4b], 0x4188b6ab
mov dl, byte [ebp - 0x5a]
pop ss
invalid
imul ebx, dword [eax + 0x40b8a7a4], 0x183fb8a3
out dx, al
loope 0x4821cf
sub al, bl
sbb ecx, dword [ebp - 0x68]
adc eax, 0xe1bb7af8
push edi
jmp 0x482107
push es
in al, dx
adc eax, 0xb0497829
pop ds
aam 0x1d
sub eax, 0x582f37d2
shl dh, 1
push ds
mov dl, 0xdc
enter 0xffffffffffffa1fe, 0x3f
sti
and dword [eax + 1], eax
mov bl, 0x2e
imul eax, dword [ebx - 0x7b], 0x36
or eax, 0xd5d85661
adc byte [esi - 0x74922df3], cl
mov ebp, 0x45f4f5af
dec esi
or eax, 0x8394e8a7
xor eax, 0xeb3af252
adc dword [ecx + 0x1d], ebp
cmp byte [ebx], dl
int1
scasb al, byte es:[edi]
sbb byte [ebp - 0x56], 0xf
stc
ficomp word [edx]
sbb ecx, 0xa812dba6
bound esi, qword [ecx]
jnp 0x48221d
fist dword [edx]
test al, 0x62
xor dword [ebx - 7], edi
pop edi
mov edx, 0xfc43a86d
xchg esi, eax
dec edx
mov ah, 0x34
sbb eax, 0xc78ef6f3
dec edx
jmp 0x482263
pushal
push ss
invalid
Function at 0x1004b473
Capabilities:
Get number of processors

Disassembly:
jmp 0x1003f794
call fcn.1003f77f
salc
arpl word [ebp - 0x79], cx
loop 0x1003f78a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x100653b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x1005e1dd
jmp 0x1004a476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x10059856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x10061e32
jmp 0x1005986d
call fcn.10059858
adc byte [eax - 0x77], dl
loopne 0x1005987c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x1003f77d
jmp 0x1005e1f4
call fcn.1005e1df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x1003fbce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x10040698
jmp 0x10041265

Function at 0x1006a6f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x10059a70

Function at 0x10246408
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x10246466
jmp 0x10246425
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x10246425
jmp 0x10246466
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret
Function at 0x4011c6
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040114f
call section..text
movzx eax, al
cmp eax, 1
jne 0x4011e9
push 5
pop eax
jmp 0x4013b8
and dword [ebp - 0x40], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x44], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401234
cmp esi, dword [ebp - 0x2c]
je 0x401249
mov eax, dword [eax]
cmp eax, ebx
jne 0x40122a
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
nop
popal
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x412cbc
push dword [0x412c98]
push 0x412c9c
push dword [0x412cbc]
push 0x412cc0
call fcn.0040102b
add esp, 0x14
push 0x412cc0
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push 0x412cdc
push dword [0x412c98]
push 0x412c9c
push dword [0x412cdc]
push 0x412ce0
call fcn.0040102b
add esp, 0x14
push 0x412ce0
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x412cfc
push dword [0x412c98]
push 0x412c9c
push dword [0x412cfc]
push 0x412d00
call fcn.0040102b
add esp, 0x14
push 0x412d00
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x404030]
mov dword [ebp - 0x10], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x404038
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
push dword [section..data]
push 0x404004
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x20
push dword [0x404030]
push dword [ebp - 4]
call dword [ebp - 0x24]
push 0x404704
push dword [0x404034]
push 0x4046d8
push dword [0x404704]
push 0x404708
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [0x412d4c], eax
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [0x412d4c]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002f00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.KoLog
push 0x100521a8
lea eax, [ebp - 0x3ec]
push eax
call fcn.10001760
add esp, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x3f0], ecx
mov edx, dword [ebp - 0x3f0]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3e6]
push ecx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov dword [ebp - 0x3f0], 0
lea edx, [ebp - 0x3ec]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10024f16
mov esp, ebp
pop ebp
ret

Function at 0x10002f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
push 0x1000
mov eax, dword [ebp + 0x10]
add eax, 5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x40
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10026db0
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + edx]
cmp ecx, 0xe9
jne 0x10003001
mov edx, dword [ebp + 8]
push edx
call fcn.10023270
add esp, 4
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.10023130
add esp, 8
cmp dword [ebp + 0x10], 9
jne 0x1000305a
mov ecx, 1
shl ecx, 2
mov edx, dword [ebp - 0xc]
movzx eax, byte [edx + ecx]
cmp eax, 0xe8
jne 0x1000305a
mov ecx, 1
imul edx, ecx, 3
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax + edx]
cmp ecx, 0x56
jne 0x1000305a
mov edx, 1
shl edx, 2
add edx, dword [ebp + 8]
push edx
call fcn.10023230
add esp, 4
push eax
mov eax, 1
shl eax, 2
add eax, dword [ebp - 0xc]
push eax
call fcn.100231b0
add esp, 8
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0xe9
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0xc]
sub edx, 5
mov eax, dword [ebp - 0xc]
mov dword [eax + 1], edx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx], 0xe9
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
sub ecx, 5
mov edx, dword [ebp + 8]
mov dword [edx + 1], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10024f16
mov esp, ebp
pop ebp
ret

Function at 0x10004d30
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp fcn.1025a055
Function at 0x100060c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
movzx eax, byte [0x10057db6]
test eax, eax
jne 0x100060ea
jmp 0x100062a7
mov ecx, 4
shl ecx, 0
mov edx, dword [0x100581c0]
mov eax, dword [edx + ecx + 4]
mov dword [ebp - 0xc], eax
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + eax]
cmp edx, 0xffffffb8
je 0x10006118
jmp 0x100062a7
mov eax, 1
shl eax, 0
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + eax]
cmp edx, 0x34
je 0x10006131
jmp 0x100062a7
mov eax, 1
shl eax, 2
mov ecx, dword [ebp - 0xc]
movsx edx, byte [ecx + eax]
cmp edx, 0x72
jne 0x10006159
mov eax, 1
shl eax, 2
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0
jmp 0x100062a7
mov edx, 1
shl edx, 2
mov eax, dword [ebp - 0xc]
movsx ecx, byte [eax + edx]
cmp ecx, 0xffffffe1
je 0x10006172
jmp 0x100062a7
jmp 0x102919a3
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10024f16
mov esp, ebp
pop ebp
ret

Function at 0x100085c0
Capabilities:
Execute anti-debugging instructions
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10053620
push 0x100269f0
mov eax, dword fs:[0]
push eax
add esp, 0xfffff9dc
mov eax, dword [0x1005606c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
jmp fcn.1030c48c

Function at 0x10009960
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp loc.10235a51

Function at 0x1000af20
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004134f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
jmp fcn.10341981

Function at 0x1000b940
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp fcn.10346478

Function at 0x1000bc30
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
jmp fcn.1034cf7a

Function at 0x1000e0f0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp fcn.103bb80e

Function at 0x10010400
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp fcn.103d4115
Function at 0x10012990
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp fcn.10421461

Function at 0x1001ba70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0xc0
mov dword [ebp - 4], 0
jmp 0x1001ba92
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xb
jge 0x1001bad1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x4e860d32]
xor edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 4]
mov byte [eax], dl
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
and edx, 0x800000ff
jns 0x1001bacc
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
jmp 0x1001ba89
mov eax, 1
imul ecx, eax, 0xb
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10022f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1005606c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
push 0x1000
mov eax, dword [ebp + 0x10]
add eax, 5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push 0x40
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.10026db0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0xe9
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0xc]
sub edx, 5
mov eax, dword [ebp - 0xc]
mov dword [eax + 1], edx
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov byte [eax + edx], 0xe9
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
sub ecx, 5
mov edx, dword [ebp + 8]
mov dword [edx + 1], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10024f16
mov esp, ebp
pop ebp
ret