joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e2c1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 9
pop ecx
push 0x403e28
mov esi, edx
push 0x104
mov ebx, eax
mov dword [0x418c08], 0x4193e8
mov edi, 0x418e20
rep movsd dword es:[edi], dword [esi]
push 0x418c14
mov dword [0x418c0c], 0x403ea8
mov dword [0x418c10], ebx
call fcn.0040c44f
xor eax, eax
xor esi, esi
push 0x405ee0
mov word [0x418e44], ax
mov dword [0x418e1c], esi
call dword [fcn.004011c4]
push 0x405ef0
push eax
call dword [fcn.004011c8]
mov dword [ebp - 0x10], 0x8000
cmp eax, esi
je 0x40e34b
lea ecx, [ebp - 0x10]
push ecx
call eax
test eax, eax
je 0x40e34b
push 0x40e218
jmp 0x40e350
push 0x40e1a1
call dword [0x401188]
push 0x40e2b1
mov dword [0x4193cc], eax
call fcn.00415950
pop ecx
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push ebx
push 0x80000002
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e3ea
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x405f08
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x40e3af
cmp dword [ebp - 4], esi
jne 0x40e3e1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x405f48
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x40e3cf
cmp dword [ebp - 4], esi
jne 0x40e3d5
mov dword [0x418594], esi
push 0x40e102
push esi
call dword [0x401100]
push dword [ebp - 8]
call dword [entry0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e794
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0040e672
mov esi, eax
cmp esi, ebx
jge 0x40e7c5
push dword [ebp - 4]
call dword [fcn.00401324]
mov eax, esi
jmp 0x40e882
push 0x406028
lea ecx, [ebp - 4]
call fcn.00409552
cmp eax, ebx
jge 0x40e7da
mov esi, eax
jmp 0x40e7b5
lea eax, [ebp + 8]
push eax
push 0x20019
push ebx
push dword [ebp - 4]
mov dword [ebp + 8], ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e7fe
xor esi, esi
inc esi
jmp 0x40e7b5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push ebx
push 0x40603c
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 0x200
call esi
test eax, eax
jne 0x40e86d
cmp dword [ebp - 8], 1
jne 0x40e86d
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push ebx
push 0x406050
push dword [ebp + 8]
mov dword [ebp - 0xc], 0x200
call esi
push dword [ebp + 8]
mov esi, eax
call dword [entry0]
cmp esi, ebx
jne 0x40e7f9
cmp dword [ebp - 8], 1
jne 0x40e7f9
push dword [ebp - 4]
call dword [fcn.00401324]
xor eax, eax
jmp 0x40e882
push dword [ebp + 8]
call dword [entry0]
push dword [ebp - 4]
call dword [fcn.00401324]
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x410cf9
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x418010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x8c], eax
mov edi, ecx
cmp esi, ebx
je 0x410e0a
cmp dword [ebp + 0x10], ebx
je 0x410e0a
cmp dword [edi], ebx
je 0x410e0a
push esi
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x410d5f
mov eax, dword [ebp - 0x8c]
push dword [eax + 0x9c]
call fcn.0040fcd3
jmp 0x410e0a
push 3
push dword [edi]
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041127a
cmp dword [ebp - 0x88], ebx
je 0x410ddf
mov eax, dword [ebp - 0x88]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410d8c
sub eax, edi
inc eax
push eax
push dword [ebp - 0x88]
call fcn.00415974
mov edi, dword [ebp - 0x88]
pop ecx
pop ecx
push ebx
push edi
call dword [fcn.004010a4]
push eax
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x410ddf
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x88], eax
je 0x410dda
push dword [ebp - 0x88]
call fcn.0041232a
pop ecx
xor eax, eax
inc eax
jmp 0x410e0c
mov eax, dword [ebp - 0x8c]
push dword [eax + 0xa0]
call fcn.0040fcd3
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x88], eax
je 0x410e0a
push dword [ebp - 0x88]
call fcn.0041232a
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00412315
leave
ret 0xc
Function at 0x411d5c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x418010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x210], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.004158b4
mov esi, dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x1c
push edi
call esi
test eax, eax
je 0x411dc6
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 5
push edi
call esi
push 0x406f5c
push ebx
call fcn.00415944
pop ecx
pop ecx
cmp eax, edi
jne 0x411dec
push 0x5c
push 0x406f70
call fcn.00415914
pop ecx
pop ecx
cmp eax, edi
je 0x411e0e
add eax, 2
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0x10]
push 0x405ed4
dec eax
push eax
push dword [ebp - 0x210]
call fcn.0040c4d2
add esp, 0x14
jmp 0x411e23
push 0x406fb8
push 0x104
push dword [ebp - 0x210]
call fcn.0040c44f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412315
leave
ret 0xc

Function at 0x412dce
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x80004005
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
jne 0x412df5
cmp edi, 0x104
jl 0x412e51
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x4028c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412e51
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], edi
push esi
push esi
push 0x4028c0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [entry0]
cmp edi, esi
jne 0x412e51
cmp dword [ebp + 0x10], esi
je 0x412e4f
push dword [ebp + 8]
call dword [0x4010ec]
cmp eax, 0xffffffff
je 0x412e51
xor ebx, ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x412eaf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x10]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x20019
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push 0x80000001
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412f39
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [entry0]
cmp dword [ebp + 0xc], edi
jne 0x412f39
cmp dword [ebp + 8], 4
jne 0x412f39
cmp dword [ebp - 8], 4
jne 0x412f39
mov eax, dword [ebp - 0xc]
cmp eax, 0xfffffffd
jne 0x412f34
call dword [0x4010e4]
movzx eax, ax
mov dword [esi + 0x40], eax
jmp 0x412f40
mov dword [esi + 0x40], 0x409
pop edi
pop esi
leave
ret 0xc
Function at 0x413a93
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x413b21
cmp dword [ebp - 4], ebx
je 0x413b21
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push 0x402ac8
push dword [ebp - 4]
mov dword [ebp + 0xc], ebx
call esi
push dword [ebp - 4]
mov esi, dword [entry0]
mov edi, eax
call esi
cmp edi, ebx
jne 0x413b21
cmp dword [ebp + 0xc], ebx
je 0x413b21
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov edi, eax
call esi
cmp edi, ebx
je 0x413b13
cmp edi, 0xea
jne 0x413b1d
cmp dword [ebp + 8], ebx
je 0x413b1d
xor eax, eax
inc eax
jmp 0x413b23
xor eax, eax
jmp 0x413b23
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x414faa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x418b48
lea ecx, [ebp - 4]
xor esi, esi
call fcn.00414905
push 0x104
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0x208
call fcn.00408651
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov edi, eax
call fcn.00414882
cmp edi, esi
jne 0x415010
push esi
lea ecx, [ebp - 4]
call fcn.00414f30
lea ecx, [ebp - 4]
call fcn.00414b92
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
inc esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00407204
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x100010a0
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.10001240
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10001164
cmp dword [ebp - 4], 0x50000000
jb 0x100010e1
cmp dword [ebp - 4], 0x80000000
ja 0x100010e1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100010ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1005fb40
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10001107
jmp 0x10001164
cmp dword [ebp - 0x14], 0x10000
jne 0x1000114a
cmp dword [ebp - 0x18], 0x10000
jb 0x1000114a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000113d
mov eax, dword [ebp - 8]
jmp 0x10001166
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000115f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10001240
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100010ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10001170
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000122c
cmp dword [ebp - 4], 0x50000000
jb 0x100011ac
cmp dword [ebp - 4], 0x80000000
ja 0x100011ac
mov dword [ebp - 4], 0x80010000
jmp 0x10001185
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1005fb40
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100011d2
jmp 0x1000122c
cmp dword [ebp - 0x14], 0x10000
jne 0x10001215
cmp dword [ebp - 0x18], 0x10000
jb 0x10001215
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001208
mov eax, dword [ebp - 8]
jmp 0x1000122e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10001227
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10001270
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001185
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100019a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100019b5
xor eax, eax
jmp 0x10001a2a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x100019e2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10001a25
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10001a23
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x10001a1f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10001a23
xor eax, eax
jmp 0x10001a2a
jmp 0x100019d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10189370]
mov dword [ebp - 4], eax
jmp 0x10001c09
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10001c26
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10001c00
mov esp, ebp
pop ebp
ret
Function at 0x10002070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10189380], eax
je 0x1000208e
mov eax, 0x10dd
jmp 0x1000216f
mov eax, dword [0x10189390]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000210c
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 dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100020ea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100020ea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001710
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
mov edx, dword [ebp - 0xc]
push edx
call fcn.1005eadc
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002096
mov dword [0x10189390], 0
call fcn.10001a30
mov ecx, dword [0x1018938c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002159
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.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
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1005eadc
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002124
mov dword [0x1018938c], 0
mov dword [0x10189380], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002660
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10189384], 0
je 0x10002679
mov eax, dword [0x10189384]
jmp 0x10002719
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000268b
xor eax, eax
jmp 0x10002719
push 8
call fcn.1005e172
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100026e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100026ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1005eadc
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10189384], eax
mov dword [0x10189388], 0
mov eax, dword [ebp - 8]
jmp 0x10002719
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100026fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100026ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1018938c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1018938c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10002720
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b0710
push 0x10060230
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x100b4540]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 8], 0
jne 0x1000276a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100027a0
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x1000292b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x100027d8
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x1000292b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x10002804
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x1000292b
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0
jmp 0x10002827
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1c], edx
jae 0x100028d6
push str..detour
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
add eax, dword [ebp - 0x2c]
push eax
call fcn.10071850
add esp, 8
test eax, eax
jne 0x100028d1
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x2c]
cmp dword [edx + ecx + 0xc], 0
je 0x10002872
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax + 0x10], 0
jne 0x10002874
jmp 0x100028d6
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x40
jb 0x100028a1
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0x727444
je 0x100028a3
jmp 0x100028d6
mov edx, dword [ebp - 0x20]
cmp dword [edx + 8], 0
jne 0x100028b7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x1000292b
jmp 0x1000281e
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x1000292b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x678
jne 0x10002e31
mov edx, dword [ebp - 4]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x10002e43
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10002f8b
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x18]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f88
lea eax, [ebp - 0x10]
push eax
push 0x40
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f6c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1005f5c0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call fcn.1005f5c0
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x10002f49
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10002f47
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
add edx, 0x664
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.1005f5c0
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x10002f50
mov dword [ebp - 8], 1
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x100047d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
sub eax, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
cmp edi, 5
jbe 0x10004812
lea eax, [edi - 5]
push eax
lea eax, [esi + 5]
push 0x90
push eax
call fcn.1005fb40
add esp, 0xc
push 0x100b8200
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x100b8200
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.1005f5c0
add esp, 0xc
push 0
push dword [0x100b8200]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
pop ebp
ret

Function at 0x100064c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.xxxxxxx
push 0x1008a4f4
call fcn.10008720
add esp, 8
mov dword [0x100b8210], eax
test eax, eax
je 0x10006503
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push 0x100061d0
push dword [0x100b8210]
call fcn.10058400
add esp, 0xc
mov esp, ebp
pop ebp
ret