joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100147e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x10], 0x3c
mov al, 0x5e
xor al, byte [ebp - 0x10]
mov dl, 0x5d
mov byte [ebp - 0xf], al
mov dh, 0x63
mov al, byte [ebp - 0x10]
mov bl, 0x4f
push esi
xor dl, al
mov byte [ebp - 7], 0
xor dh, al
mov byte [ebp - 0xe], dl
push edi
mov esi, ecx
mov byte [ebp - 0xb], dh
sub esp, 0x18
mov byte [ebp - 7], 0
mov edx, esp
mov ch, bl
mov ah, 0x59
mov bh, 0x5f
mov cl, 0x53
xor bl, al
xor ah, al
mov byte [ebp - 0xd], bl
xor bh, al
mov byte [ebp - 0xc], ah
xor cl, al
mov byte [ebp - 0xa], bh
xor ch, al
mov byte [ebp - 9], cl
mov byte [ebp - 8], ch
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10014850
mov eax, dword [edx]
jmp 0x10014852
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0xf], 0
jne 0x1001485f
xor ecx, ecx
jmp 0x1001486e
lea ecx, [ebp - 0xf]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014865
sub ecx, edi
push ecx
lea eax, [ebp - 0xf]
mov ecx, edx
push eax
call fcn.10004ea0
mov ecx, dword [esi]
call fcn.1000e840
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0x18
mov dword [esi + 4], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001489d
mov dword [esi + 4], 0
movaps xmm0, xmmword [str.E1]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x100148b0
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x13], 0
jne 0x100148e1
xor ecx, ecx
jmp 0x100148f0
lea ecx, [ebp - 0x13]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100148e7
sub ecx, edi
push ecx
lea eax, [ebp - 0x13]
mov ecx, edx
push eax
call fcn.10004ea0
mov ecx, dword [esi + 4]
call fcn.1000e840
add esp, 0x18
mov dword [esi + 8], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001491a
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
je 0x10014934
cmp dword [0x100536ac], 0
mov ecx, 0x10b78ba
sete dl
call fcn.1000efc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movaps xmm0, xmmword [0x1004ab70]
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x554f6359
push edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0xc], 0x485d4948
xor ecx, ecx
mov dword [ebp - 8], 0x525355
nop dword [eax]
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x1a
jb 0x10019a60
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x1f], 0
jne 0x10019a91
xor ecx, ecx
jmp 0x10019aa0
lea ecx, [ebp - 0x1f]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019a97
sub ecx, edi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.10004ea0
mov ecx, dword [esi]
call fcn.1000e840
add esp, 0x18
mov dword [esi + 4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002ad90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043580
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10051018]
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
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x10053594], eax
mov ebx, dword [edi]
push 4
push ebx
call esi
test eax, eax
jne 0x1002af47
push 4
add ebx, 0xe5
push ebx
call esi
test eax, eax
jne 0x1002af47
mov al, byte [ebx]
test al, al
je 0x1002af47
cmp byte [ebp + 8], 0
jne 0x1002af47
movaps xmm0, xmmword [str.__KQ_W]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
nop dword [eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x1002ae10
lea eax, [ebp - 0x53]
mov byte [ebp - 0x45], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.10004570
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], 0x16
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 0x2b], 0
call fcn.10004570
mov byte [ebp - 4], 1
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002ae6a
push 4
push ebx
call esi
test eax, eax
jne 0x1002ae6a
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x10049ff8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002ae80
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005610
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10004570
mov byte [ebp - 4], 2
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002aeb4
push 4
push ebx
call esi
test eax, eax
jne 0x1002aeb4
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x1004a03c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002aeca
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005610
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x1002aee2
push 4
push ebx
call esi
test eax, eax
jne 0x1002aee2
mov ecx, ebx
call dword [0x1004a000]
lea eax, [ebp - 0x2b]
mov word [ebp - 0x2c], 0x76
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 0x2b], 0
call fcn.10004570
mov byte [ebp - 4], 3
mov ebx, dword [edi + 0x20]
test ebx, ebx
je 0x1002af18
push 4
push ebx
call esi
test eax, eax
jne 0x1002af18
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call dword [0x1004a040]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x1002af2e
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10005610
mov ecx, edi
call fcn.1002c4c0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002af47
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10005610
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100404d0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003c530
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10044028
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10051018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.1003c2c0
lea ecx, [ebp - 0x7c]
call fcn.1003c370
push esi
lea ecx, [ebp - 0x7c]
call fcn.1003c460
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1003c5d7
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10005610
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100404d0
mov esp, ebp
pop ebp
ret
Function at 0x1003d430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004412e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10051018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1003d466
xor ebx, ebx
jmp 0x1003d46f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003d4b1
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1003d4f0
test esi, esi
jne 0x1003d4f4
push 0x1003ccb0
push 0x10052b10
call fcn.1003c9a0
mov eax, dword [section..data]
add esp, 8
cmp eax, 0xffffffff
je 0x1003d4b1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003d4de
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003d4de
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1003d536
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003d51f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1003d4f4
cmp dword [ebx + 0x18], 0
je 0x1003d480
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1003d55d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1003d55d
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1003ccd0
cmp dword [ebx + 0x18], 0
jne 0x1003d540
jmp 0x1003d480
Function at 0x1003d800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003d9d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003d8dd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10051004]
jb 0x1003d84a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10051008]
ja 0x1003d84a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003d81a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003d86f
jmp 0x1003d8dd
cmp dword [ebp - 0x14], 0x10000
jne 0x1003d8c3
cmp dword [ebp - 0x18], 0x10000
jb 0x1003d8c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003d8a6
mov eax, dword [ebp - 8]
jmp 0x1003d8df
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003d8b6
xor eax, eax
jmp 0x1003d8df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003d8d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003d9d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003d81a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003d8f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003da00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003d9c5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10051004]
jb 0x1003d935
mov eax, dword [ebp - 4]
cmp eax, dword [0x10051008]
ja 0x1003d935
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003d905
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1003d95a
jmp 0x1003d9c5
cmp dword [ebp - 0x14], 0x10000
jne 0x1003d9ae
cmp dword [ebp - 0x18], 0x10000
jb 0x1003d9ae
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003d991
mov eax, dword [ebp - 8]
jmp 0x1003d9c7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1003d9a1
xor eax, eax
jmp 0x1003d9c7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003d9c0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003da00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003d905
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003da30
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003de20
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10052b24], 0
jne 0x1003da6d
cmp dword [0x10052b20], 0
je 0x1003da6d
mov eax, dword [0x10052b20]
mov dword [0x10052b24], eax
cmp dword [0x10052b24], 0
je 0x1003daea
mov ecx, dword [0x10052b24]
cmp dword [ecx + 8], 0
je 0x1003daea
mov edx, dword [0x10052b24]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003daea
mov ecx, dword [0x10052b24]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003daea
mov eax, dword [0x10052b24]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1003dab9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1003dac0
xor eax, eax
jmp 0x1003dc09
mov ecx, dword [0x10052b24]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1003dc09
mov edx, dword [0x10052b20]
mov dword [0x10052b24], edx
jmp 0x1003db06
mov eax, dword [0x10052b24]
mov ecx, dword [eax + 4]
mov dword [0x10052b24], ecx
cmp dword [0x10052b24], 0
je 0x1003db46
cmp dword [0x10052b24], 0
je 0x1003db44
mov edx, dword [0x10052b24]
cmp dword [edx + 8], 0
je 0x1003db44
mov eax, dword [0x10052b24]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1003db44
mov edx, dword [0x10052b24]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1003db44
jmp 0x1003da9e
jmp 0x1003daf8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1003dc10
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1003dc07
mov eax, dword [ebp - 0x18]
mov dword [0x10052b24], eax
mov ecx, dword [0x10052b24]
mov dword [ecx], 0x52727464
mov edx, dword [0x10052b24]
mov dword [edx + 8], 0
mov eax, dword [0x10052b24]
mov ecx, dword [0x10052b20]
mov dword [eax + 4], ecx
mov edx, dword [0x10052b24]
mov dword [0x10052b20], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10052b24]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1003dbd7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1003dbf7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003dbce
mov eax, dword [0x10052b24]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1003da9e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003e950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10052b20]
mov dword [ebp - 4], eax
jmp 0x1003e969
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1003e990
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003e98e
call sub.KERNEL32.dll_GetLastError
jmp 0x1003e992
jmp 0x1003e960
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003ee30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10052b30], eax
je 0x1003ee54
mov eax, 0x10dd
jmp 0x1003effc
cmp dword [0x10052b34], 0
je 0x1003ee67
mov eax, dword [0x10052b34]
jmp 0x1003effc
cmp dword [ebp + 0xc], 0
jne 0x1003ee77
mov eax, 0x57
jmp 0x1003effc
cmp dword [ebp + 8], 0
jne 0x1003ee87
mov eax, 6
jmp 0x1003effc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1003eeb0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10052b34], ecx
mov edx, dword [ebp + 8]
mov dword [0x10052b38], edx
mov eax, dword [ebp - 8]
jmp 0x1003effc
push 0x18
call fcn.10040736
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003ef0b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10052b34], ecx
cmp dword [ebp - 4], 0
je 0x1003eefa
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10040a9e
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10052b38], ecx
mov eax, dword [ebp - 8]
jmp 0x1003effc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1003ee10
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1003ee10
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1003ef4b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1003ef67
mov dword [ebp - 8], 9
cmp dword [0x10052b28], 0
je 0x1003ef62
jmp 0x1003eed9
jmp 0x1003eed0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1003ef8e
mov dword [ebp - 8], 9
cmp dword [0x10052b28], 0
je 0x1003ef89
jmp 0x1003eed9
jmp 0x1003eed0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1003efb9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003eed0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10052b40]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10052b40], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1003f010
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10052b30], eax
je 0x1003f02d
mov eax, 0x10dd
jmp 0x1003f110
mov eax, dword [0x10052b40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003f0ac
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003f088
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003f088
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003deb0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10040a9e
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003f035
mov dword [0x10052b40], 0
call fcn.1003e790
mov ecx, dword [0x10052b3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003f0fa
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10040a9e
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003f0c4
mov dword [0x10052b3c], 0
mov dword [0x10052b30], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003f5f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10052b34], 0
je 0x1003f609
mov eax, dword [0x10052b34]
jmp 0x1003f6a8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003f61a
xor eax, eax
jmp 0x1003f6a8
push 8
call fcn.10040736
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003f672
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003f65b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10040a9e
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10052b34], eax
mov dword [0x10052b38], 0
mov eax, dword [ebp - 8]
jmp 0x1003f6a8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003f68a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003f63a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10052b3c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10052b3c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x402a7c
Capabilities:
Encode data using xor

Disassembly:
mov byte [0x7c8603fc], al
mov bh, 0x6b
and ch, dl
xchg byte [edi + 0x5cbce886], cl
mov dh, ah
rol byte [ebp + 0x389fba57], 1
mov ch, 0x16
adc dword [edi], esp
invalid
jp 0x402a05
mov eax, 0x46b840
push eax
push dword fs:[0]
mov dword fs:[0], esp
add byte [eax], al
add byte [eax], al
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x402afc
arpl word [edx + esi], si
aad 0x19
jne 0x402a7a
and cl, dh
jge 0x402a8c
lodsb al, byte [esi]
mov edi, 0x7ccc4491
ror byte [ebp + 0x1b48ee10], cl
xor dword [ebp + 0x3bf3c841], edx
push edi
or byte [edx + 0x1b], ch
scasb al, byte es:[edi]
jmp 0xb87491d5
sbb dword [0xcf184a87], esi
and esp, eax
invalid
test dword [edi - 0x6f35b33b], ebp
scasd eax, dword es:[edi]
lds ecx, [edx + ecx*8 - 0x70]
jl 0x402b7d
lds esi, [ebx + 0x31713e97]
jecxz 0x402b25
fst qword [ebx]
and dword [ecx + 0x60b789d2], ebx
xor eax, 0x7085c9c5
adc cl, byte [eax - 0x6c97ed25]
cld
ja 0x402afd
inc edi
adc eax, 0x3ce4462f
inc esi
in al, 0x3c
js 0x402af0
invalid
stosb byte es:[edi], al
test dword [edi + 0x3e], esp
lea eax, [0xe77416c2]
fimul word [ebx - 0x7d084e05]
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x40e348
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40e3b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040426c
mov eax, dword [ebp - 4]
call fcn.00404524
mov ebx, eax
test ebx, ebx
jle 0x40e3a3
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 0x19
call fcn.0040444c
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0040452c
inc edi
dec ebx
jne 0x40e383
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e3c0
lea eax, [ebp - 8]
call fcn.0040426c
ret

Function at 0x40e67c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
push ebp
push 0x40e6e2
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.0040e634
mov ebx, eax
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040445c
mov eax, dword [ebp - 8]
call fcn.00404524
push eax
push esi
push 1
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_RegSetValueExA
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e6e9
lea eax, [ebp - 8]
call fcn.0040426c
ret