joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x12c
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 8], esi
jne 0x40103b
pop edi
xor eax, eax
pop esi
add esp, 0x12c
ret
lea eax, [esp + 0xc]
push ebp
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4010c0
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4010b0
mov ecx, dword [esp + 0x140]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004055a0
add esp, 8
test eax, eax
jne 0x4010b0
mov eax, dword [esp + 0x1c]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4010ac
push 0
push esi
call edi
push 0xffffffffffffffff
push esi
call ebx
push esi
call ebp
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401066
pop ebx
push esi
call ebp
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 0x12c
ret

Function at 0x4010e0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x138
push esi
push edi
mov edi, dword [esp + 0x148]
push 0x4100a0
push eax
mov dword [edi], 6
call fcn.00405824
mov esi, eax
add esp, 8
test esi, esi
je 0x40116d
push esi
push 0x40
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.0040571c
add esp, 0x10
cmp word [esp + 8], 0x5a4d
jne 0x401164
mov edx, dword [esp + 0x44]
push 0
push edx
push esi
call fcn.00405690
push esi
push 0xf8
lea eax, [esp + 0x5c]
push 1
push eax
call fcn.0040571c
mov eax, dword [esp + 0x64]
add esp, 0x1c
cmp eax, 0x4550
jne 0x401164
mov eax, dword [esp + 0x5e]
test ah, 1
je 0x401164
mov dword [edi], 0
push esi
call fcn.0040563a
add esp, 4
pop edi
pop esi
add esp, 0x138
ret

Function at 0x401180
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 0x1c]
lea eax, [esp + 8]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push 0
push edx
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4011ae
xor eax, eax
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4011e1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
ret
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret
Function at 0x401200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0x20119
push 0
push esi
push edi
call ebx
test eax, eax
je 0x401241
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push esi
push edi
call ebx
test eax, eax
je 0x401241
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
push 0
push 0
push 0
push edi
push edx
call ebx
test eax, eax
je 0x401271
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
push esi
push 0
push 0
push 0
push edi
push ecx
call ebx
test eax, eax
je 0x40129a
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push esi
push ebp
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
je 0x4012c5
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x20]
cmp dword [eax], 1
jne 0x4012dd
mov ecx, dword [esi]
lea eax, [ecx + ebp]
mov cl, byte [ecx + ebp]
test cl, cl
je 0x4012dd
mov byte [eax], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4014b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and eax, 0xffff
push 0xa
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4014dc
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4014f3
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push ebx
test edi, edi
jne 0x401513
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x40152d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x14]
push 0x4100dc
push ecx
call fcn.00405824
mov esi, eax
add esp, 8
test esi, esi
je 0x401558
push esi
push edi
push 1
push ebp
call fcn.00405942
push esi
call fcn.0040563a
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0xa514c37
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0xa514c9a
push ebx
push edi
mov edx, 0x10000000
cmp ecx, 0x7c
je 0xa514c98
cmp ecx, 0x29
jne 0xa514c9c
cmp dword [esi + 0x10], 0
jne 0xa514c98
lea edi, [esi + 0x50]
test dword [edi], edx
je 0xa514d95
cmp ecx, 0x5d
jne 0xa514c73
test dword [edi], edx
je 0xa514d89
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0a5145c5
mov ecx, esi
call fcn.0a516ad7
mov ecx, esi
call fcn.0a516b17
mov ecx, dword [esi + 0x4c]
mov al, 1
cmp ecx, 0xffffffff
jne 0xa514c46
pop edi
pop ebx
pop esi
ret
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0xa514cb0
push 5
lea ecx, [esi + 0x24]
call fcn.0a516a99
jmp 0xa514c80
cmp ecx, 0x5c
jne 0xa514cfb
mov ecx, esi
call fcn.0a516ad7
test byte [edi], 0x80
je 0xa514cf2
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0xa514cdb
push 4
lea ecx, [esi + 0x24]
call fcn.0a516a99
mov ecx, esi
call fcn.0a516ad7
jmp 0xa514c8e
cmp al, 0x42
jne 0xa514cf2
push 4
lea ecx, [esi + 0x24]
call fcn.0a516a99
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0xa514cd2
mov ecx, esi
call fcn.0a514d9f
jmp 0xa514c87
cmp ecx, 0x5b
jne 0xa514d1e
mov ecx, esi
call fcn.0a516ad7
mov ecx, esi
call fcn.0a5153d1
push 4
push 0x5d
mov ecx, esi
call fcn.0a516256
jmp 0xa514c87
cmp ecx, 0x28
jne 0xa514d4b
mov ecx, esi
call fcn.0a516ad7
mov ecx, esi
call fcn.0a516ecb
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.0a516256
test bl, bl
je 0xa514c8e
jmp 0xa514c87
cmp ecx, 0x5e
jne 0xa514d57
push 2
jmp 0xa514cca
cmp ecx, 0x24
jne 0xa514d63
push 3
jmp 0xa514cca
cmp ecx, 0x2a
je 0xa514d8d
cmp ecx, 0x2b
je 0xa514d8d
cmp ecx, 0x3f
je 0xa514d8d
cmp ecx, 0x7b
je 0xa514d8d
cmp ecx, 0x7d
jne 0xa514c66
test dword [edi], edx
je 0xa514d91
jmp 0xa514c73
push 4
jmp 0xa514d97
push 0xa
jmp 0xa514d97
push 6
jmp 0xa514d97
push 5
mov ecx, esi
call fcn.0a516220
int3

Function at 0xa518d85
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp 0xa519074
push 4
mov eax, 0xa6401db
call fcn.0a61157a
mov eax, dword fs:[0x2c]
mov ecx, dword [0xa4591a0]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0xa41e914]
cmp eax, dword [ecx + 0x3060]
jg 0xa5190bd
and dword [ebp - 0x10], 0
pushal
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
call dword [0xa41e910]
add esp, 4
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
call fcn.0a611548
ret
mov esi, 0xa41e914
push esi
call fcn.0a6116d3
cmp dword [0xa41e914], 0xffffffff
pop ecx
jne 0xa51909c
and dword [ebp - 4], 0
call fcn.0a519c80
test al, al
mov edx, 0x585400
mov ecx, 0x4ca450
cmovne ecx, edx
or dword [ebp - 4], 0xffffffff
push esi
mov dword [0xa41e910], ecx
call fcn.0a611682
pop ecx
jmp 0xa51909c

Function at 0xa5191b7
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
pushal
mov edx, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [0xa401010]
add esp, 8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0xa5191e1
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
pushal
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push dword [ebp + 0x10]
call dword [0xa40100c]
add esp, 4
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa51b24f
Capabilities:
Set registry value

Disassembly:
push 0x3c
mov eax, 0xa640525
call fcn.0a6115ad
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x40]
push 0xa45afe4
push eax
call fcn.0a512742
add esp, 0xc
xor esi, esi
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ecx
cmovae eax, dword [ebp - 0x40]
push 0xf003f
push esi
push eax
push SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa51b2e0
lea ecx, [ebp - 0x48]
call fcn.0a54ff76
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x48]
call fcn.0a550087
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp + 0xc]
push 4
push ecx
push 4
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.0a50fc01
lea ecx, [ebp - 0x40]
call fcn.0a50fc01
call fcn.0a61155c
ret
Function at 0xa51ca42
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
mov eax, 0xa6407c5
call fcn.0a6115ad
mov esi, ecx
push dword [esi]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x30], edi
call fcn.0a51c825
pop ecx
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0xa51cbd5
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0a51a006
lea ecx, [ebp - 0x2c]
call fcn.0a54ff8a
test al, al
je 0xa51cbd5
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push edi
call fcn.0a51cf1f
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
push edi
call fcn.0a51cc0e
lea ecx, [ebp - 0x2c]
call fcn.0a55013a
cmp dword [eax + 0xac], 0
je 0xa51cb51
mov ecx, edi
call fcn.0a55013a
mov ecx, edi
mov esi, eax
call fcn.0a54ff87
add eax, dword [esi + 0xa8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0a55013a
mov ecx, edi
mov esi, eax
call fcn.0a54ff87
mov edx, dword [ebp - 0x34]
mov edi, eax
add edi, dword [esi + 0xa8]
mov ecx, dword [edx + 8]
mov eax, dword [edi + 8]
mov esi, dword [edi + 4]
sub esi, dword [edi]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, 0x2000
mov dword [ebp - 0x38], ecx
cmp esi, eax
ja 0xa51cbe7
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [edi + 4]
sub eax, dword [edi]
push 4
push eax
push dword [edx]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword fs:[0x2c]
mov ecx, dword [ebp - 0x38]
push esi
push dword [edi]
push dword [eax + ecx*4]
call fcn.0a612e90
mov eax, dword [ebp - 0x34]
push esi
push dword [edi]
push dword [eax]
call fcn.0a612e90
mov edi, dword [ebp - 0x30]
add esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
push 0x40
push 0x1000
call fcn.0a550121
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x2c]
call fcn.0a55013a
mov ecx, dword [ebp - 0x30]
mov esi, dword [eax + 0x68]
mov edi, dword [eax + 0x6c]
call fcn.0a55013a
lea ecx, [ebp - 0x2c]
mov dword [eax + 0x68], esi
mov dword [eax + 0x6c], edi
call fcn.0a550121
lea ecx, [ebp - 0x2c]
movzx eax, word [eax + 6]
imul eax, eax, 0x28
add eax, 0xf8
push eax
call fcn.0a550121
mov ecx, dword [ebp - 0x30]
push eax
call fcn.0a550121
push eax
call fcn.0a612e90
mov ecx, dword [ebp - 0x30]
add esp, 0xc
call fcn.0a54ff87
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0a5501e0
lea ecx, [ebp - 0x28]
add esi, eax
call fcn.0a50fc01
mov eax, esi
jmp 0xa51cbdf
lea ecx, [ebp - 0x28]
call fcn.0a50fc01
xor eax, eax
call fcn.0a61155c
ret 4
push eax
push esi
push 0xa45b2f8
call fcn.0a5506e4
add esp, 0xc
lea ecx, [ebp - 0x4c]
push eax
call fcn.0a518d36
push 0xa4f624c
lea eax, [ebp - 0x4c]
push eax
call fcn.0a612e15
int3
Function at 0xa51ce9d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.0a54ff87
mov edi, dword [ebp + 0x10]
mov ebx, eax
mov ecx, dword [ebp + 0xc]
add ebx, dword [edi + 0xc]
call fcn.0a54ff87
add eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
call fcn.0a54ff87
add eax, 0xa000000
cmp ebx, eax
jae 0xa51cf03
mov esi, dword [edi + 0x10]
test esi, esi
je 0xa51cefe
cmp dword [edi + 8], esi
cmovb esi, dword [edi + 8]
push esi
push dword [ebp + 0x10]
push ebx
call fcn.0a612e90
add esp, 0xc
lea eax, [ebp + 0x10]
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
leave
ret
push 0xa45b338
lea ecx, [ebp - 0xc]
call fcn.0a518d36
push 0xa4f624c
lea eax, [ebp - 0xc]
push eax
call fcn.0a612e15
int3
Function at 0xa534ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea esi, [ecx - 1]
mov eax, esi
mov dword [ebp - 8], esi
sar eax, 1
push edi
mov edi, dword [ebp + 0xc]
mov edx, edi
mov dword [ebp + 0xc], edi
mov dword [ebp - 4], eax
cmp edi, eax
jge 0xa534b23
lea esi, [edx + edx]
lea ecx, [ebx + 0x10]
lea ecx, [ecx + esi*8]
lea eax, [ecx - 8]
push eax
push ecx
lea ecx, [ebp + 0x18]
call fcn.0a534447
movzx edx, al
xor edx, 1
inc edx
add edx, esi
mov eax, dword [ebx + edx*8]
mov ecx, dword [ebx + edx*8 + 4]
mov dword [ebx + edi*8], eax
mov eax, dword [ebp - 4]
mov dword [ebx + edi*8 + 4], ecx
mov edi, edx
cmp edx, eax
jl 0xa534ae7
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 8]
cmp edx, eax
jne 0xa534b3d
test cl, 1
jne 0xa534b3d
mov eax, dword [ebx + ecx*8 - 8]
mov ecx, dword [ebx + ecx*8 - 4]
mov dword [ebx + edi*8], eax
mov dword [ebx + edi*8 + 4], ecx
mov edi, esi
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x10], eax
cmp dword [ebp + 0xc], edi
jge 0xa534b75
push dword [ebp + 0x14]
lea esi, [edi - 1]
sar esi, 1
lea ecx, [ebp + 0x10]
lea eax, [ebx + esi*8]
push eax
call fcn.0a534447
test al, al
je 0xa534b75
mov eax, dword [ebx + esi*8]
mov ecx, dword [ebx + esi*8 + 4]
mov dword [ebx + edi*8], eax
mov dword [ebx + edi*8 + 4], ecx
mov edi, esi
cmp dword [ebp + 0xc], esi
jl 0xa534b48
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebx + edi*8], eax
mov dword [ebx + edi*8 + 4], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0xa536967
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
leave
ret

Function at 0xa537028
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp + 0xc]
mov byte [edi], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
leave
ret
Function at 0xa54cdd4
Capabilities:
Check for software breakpoints

Disassembly:
push 0x24c
mov eax, 0xa644cfe
call fcn.0a6115ad
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], 1
call fcn.0a54cd6b
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x254], 1
call fcn.0a54fec9
pop ecx
test al, al
jne 0xa54cf3a
lea eax, [ebp - 0x250]
push eax
call fcn.0a60da59
push 0x20
pop eax
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0a60db7a
mov eax, edi
cdq
push edx
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0a60db9c
push SysReAllocString
lea eax, [ebp - 0x250]
push edi
push eax
call fcn.0a60db40
add esp, 0x24
lea eax, [ebp - 0x250]
push eax
call fcn.0a60da20
lea eax, [ebp - 0x250]
push eax
call fcn.0a60dae2
pop ecx
pop ecx
cmp eax, 0x214
jne 0xa54ceba
cmp byte [esi + 0x1d], 0
jne 0xa54ceba
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0a60daf0
pop ecx
pop ecx
test eax, eax
je 0xa54ceb1
cmp dword [eax], 0x9f
jne 0xa54ceb1
cmp word [eax + 4], 0x10
jne 0xa54ceb1
movzx eax, word [eax + 0x18]
jmp 0xa54ceb3
xor eax, eax
mov dword [esi + 0x18], eax
mov byte [esi + 0x1d], 1
lea eax, [ebp - 0x250]
push eax
call fcn.0a60dae2
pop ecx
cmp eax, 0x202
jne 0xa54cf1b
cmp byte [esi + 0x1c], 0
jne 0xa54cf1b
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0a60daf0
pop ecx
pop ecx
cmp dword [eax], 0x9f
jne 0xa54cf1b
push 0x20
pop ecx
cmp word [eax + 4], cx
jne 0xa54cf1b
mov edi, dword [eax + 0x18]
push edi
call fcn.0a54ff0f
pop ecx
test al, al
jne 0xa54cf1b
push edi
mov ecx, ebx
call fcn.0a54cf87
test al, al
je 0xa54cf1b
push edi
mov ecx, esi
call fcn.0a53cc45
mov byte [esi + 0x1c], 1
mov eax, dword [ebp - 0x108]
cmp byte [eax], 0xcc
je 0xa54cf3a
cmp byte [esi + 0x1d], 0
je 0xa54ce61
cmp byte [esi + 0x1c], 0
je 0xa54ce61
mov eax, esi
call fcn.0a61155c
ret 8
Function at 0xa54d9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x12c
mov eax, 0xa644d96
call fcn.0a6115ad
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
push 1
xor ebx, ebx
mov dword [ebp - 0x134], esi
push ebx
push 0xa4659a8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa54dade
mov edi, 0x104
lea eax, [ebp - 0x114]
push edi
push ebx
push eax
call fcn.0a613410
add esp, 0xc
mov dword [ebp - 0x134], edi
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0xa4659c0
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0a511453
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
mov ecx, dword [ebp - 0x11c]
cmovae eax, dword [ebp - 0x12c]
mov dword [ebp - 4], ebx
cmp byte [ecx + eax - 1], 0x5c
je 0xa54dac3
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
cmp byte [ecx + eax - 1], 0x2f
je 0xa54dac3
push 0x5c
lea ecx, [ebp - 0x12c]
call fcn.0a51804d
lea eax, [ebp - 0x12c]
mov ecx, esi
push eax
call fcn.0a50f251
lea ecx, [ebp - 0x12c]
call fcn.0a50fc01
jmp 0xa54daf2
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
mov eax, esi
call fcn.0a61155c
ret

Function at 0xa54dec7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
mov edx, ecx
cmp dword [ebp + 0xc], ecx
jbe 0xa54def1
push esi
mov esi, dword [ebp + 8]
movsx eax, byte [edx + esi]
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
inc edx
cmp edx, dword [ebp + 0xc]
jb 0xa54ded7
pop esi
imul ecx, ecx, 9
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
pop ebp
ret

Function at 0xa54e973
Capabilities:
Accept command line arguments

Disassembly:
push 0x28
mov eax, 0xa640256
call fcn.0a6115ad
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, ebx
mov edi, eax
call fcn.0a53cc66
test edi, edi
je 0xa54ea16
xor esi, esi
cmp dword [ebp - 0x2c], esi
jle 0xa54ea0f
push dword [edi + esi*4]
lea ecx, [ebp - 0x28]
call fcn.0a519fc7
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
sbb dl, dl
inc dl
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
cmp word [eax], 0x2d
jne 0xa54e9fd
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
test dl, dl
cmovne ecx, dword [ebp - 0x28]
lea eax, [ecx + eax*2]
mov ecx, ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
cmovne eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0a54e765
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0a51a04a
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0xa54e9a7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.0a61155c
ret