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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x57affb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x57b035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0057ae00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x57afc5
mov edi, 0x5958b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x57b035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0057ae00
add edi, 4
add esp, 0xc
cmp edi, 0x5958c0
jb 0x57b000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x57b070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00581082
mov esi, eax
add esp, 8
test esi, esi
je 0x57b107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x57b102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00580946
add esp, 8
test eax, eax
je 0x57b0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x57b0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00580946
add esp, 8
test eax, eax
jne 0x57b0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x57b102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x57bf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5909fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x57c002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0057fdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x57c002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005776e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0058020b
push 0x10
call fcn.005801d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x57bfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0056c1c0
jmp 0x57bfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0057bb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x57bff0
mov ecx, edi
call fcn.0056c2c0
push edi
call fcn.005801c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x57c021
inc ebx
cmp ebx, 0x20
jb 0x57bf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x57d250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591808
push 0x581288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x57d329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x57d329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005801d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x57d329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x57d329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x57d32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0057d351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57dd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x57dd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x57dd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x57dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x57dd94
push eax
push esi
call fcn.0058020b
add esp, 8
pop esi
ret 0x10

Function at 0x57dda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x57de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x596320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0057fdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x57ddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x57de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x57deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x596320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0057fdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x57deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x57de6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x57e000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x57e131
push esi
call fcn.00581145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00570080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x57e131
push 0
push ebp
call fcn.005703a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00570260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x57e08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005702f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x57e121
push 0x596918
push edi
call fcn.0057f3f0
push eax
push ebx
push esi
call fcn.0057df60
push 0x5968f8
push edi
call fcn.0057f3f0
push eax
push ebx
push esi
call fcn.0057df60
push 0x5968d8
push edi
call fcn.0057f3f0
push eax
push ebx
push esi
call fcn.0057df60
push 0x5968c0
push edi
call fcn.0057f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0057df60
push 0x5968a0
push edi
call fcn.0057f3f0
push eax
push ebx
push esi
call fcn.0057df60
push 0x596888
push edi
call fcn.0057f3f0
push eax
push ebx
push esi
call fcn.0057df60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x57f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0057f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0057f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0057f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0057f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x57fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x57fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x59187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x57fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x57fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x421f1e
Capabilities:
Encode data using xor

Disassembly:
push ss
enter 0xffffffffffffc4a9, 0x25
out 0x6a, al
or al, 0x86
and eax, esp
jg 0x421f5a
stc
adc eax, 0x695af483
mov esi, 0x49999ff4
mov ecx, ss
outsd dx, dword [esi]
sbb al, 0xd7
sbb dword [ebx], 0xa
out dx, eax
xlatb
int 0xe2
insb byte es:[edi], dx
push cs
imul eax, dword [ebx], 0x78477c08
and cl, byte [edi - 0x5e]
push edi
aaa
int3
sar ah, 1

Function at 0x4f1f61
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [0x6aa46a7a]
retf
fld dword [ecx]
xchg dword [eax], ebx
mov ch, 0x28
wait
test byte [eax], dh
sbb al, cl
mov ecx, 0x57bb35d
clc
pop edx
mov bh, 0x79
sub byte [0x95c4059d], 0x1b
std
pop ds
jno 0x4f1f12
inc ebx
test dword [eax], esp
or dword [esi], 0x59
pop edi
loopne 0x4f1fd5
inc ebp
inc ebp
enter 0x1a1b, 0xffffffffffffffd6
vandnpd ymm7, ymm2, ymmword [ecx + 0x77b52669]
add eax, 0xed37f1a7
sbb esi, dword [0x6a98597]
inc esi
movsd dword es:[edi], dword [esi]
push edx
adc bh, byte [ecx]
leave
add eax, dword [edi + 0x1476a518]
daa
xor eax, 0xc0e54b5d
sub esi, dword [0x1af54a67]
xchg ebx, eax
in eax, 0xcc
test eax, 0xdb6bc1f7
jnp 0x4f1fa5
inc edi
enter 0xffffffffffff8517, 0x71
hlt
salc
popal
popal
xchg ebx, eax
pop ecx
push ebp
mov byte [ebx + 0x6b45e0c0], dl
push esi
mov ch, 0x47
nop
push cs
adc eax, 0xb7616042
add ebx, ebx
push edx
inc ebp
out 0x2a, eax
cld
loopne 0x4f202e
cmp bl, bl
xchg ecx, eax
adc eax, 0xd60575b7
invalid
and eax, 0x56e5ba65
dec ah
fist dword [ebx - 0x16]
and dword [edi - 0x1662882b], 0x6b0f9b58
adc byte [edi], bl
in eax, 0x40
fist dword [ebp - 0x34]
adc dword [ebx], esp
sbb esp, dword [ebp + 0x56e29cc7]
or eax, 0x675b395e
loopne 0x4f2036
push ebx
ljmp 0xe99d
or ah, byte [ebp + 0x3206b76c]
cmc
popfd
dec edi
out 0x83, eax
xchg esi, eax
cmp byte [ebx + 0x6b89a8d5], dl
xchg edx, edx
or ebp, dword [edx + 0x78]
pop ss
cmpsb byte [esi], byte es:[edi]
and dl, byte [ebx + 5]
pushal
invalid

Function at 0x4ff6d4
Capabilities:
Encode data using xor

Disassembly:
cmc
pop es
fabs
push esi
xchg edi, eax
test byte [ebx + ebp*8], al
cmp dword [ebx], edi
in al, 0x22
inc cx
inc ecx
inc ecx
xor byte [edx], ch
mov edx, 0xa01e5160
adc esi, dword [esi + 0x7755c535]
shl dword [esi - 0x51], cl
cdq
movsb byte es:[edi], byte [esi]
or bl, byte [ebp + 0x37d82e84]
inc ebp
jecxz 0x4ff6c6
fiadd dword [esi + 0x7280e50c]
shr byte [edx - 0x6c], cl
mov dl, 0xc5
invalid

Function at 0x5a9264
Capabilities:
Encode data using xor

Disassembly:
dec esi
xchg edi, eax
enter 0xffffffffffffe30a, 0x26
cmp eax, 0x7dfac3e7
dec edi
inc dword [esi + 0x3f]
dec ebx
sti
inc edi
cmp eax, dword [edx + 0x46e8e2d9]
loop 0x5a924e
inc esi
loop 0x5a924e
inc esi
push 0xfffffffffffffffb
imul esi, dword [edx - 0x41583a96], 0xffffffdd
invalid
Function at 0x5db2e1
Capabilities:
Encode data using xor

Disassembly:
pop eax
js 0x5db331
mov byte [0xcc4482c], al
inc esp
sahf
cld
fld xword [edx - 0x6b789388]
xchg edi, eax
xchg ebp, eax
test eax, 0x88cca9ef
or eax, 0x61389a82
cmp byte [ecx + 0x48], ah
cmp byte [ecx + 0x48], ah
mov bh, 0xee
mov byte [ecx + 0x7a], dl
wait
mov fs, word [edi + 0x6747a857]
mov ecx, 0xbdf58da2
mov byte [esi - 0x77], bl
fstp qword [eax]
ror dword [ebp + ebx*8 + 0x68], 0xd6
pop eax
in eax, dx
xor al, 0xaa
and al, 0x71
sub ecx, eax
sbb ah, byte [esi + 0x3418705c]
scasd eax, dword es:[edi]
dec esp
sub eax, 0xe0a8f1a0
mov esp, 0xfadcf3d8
mov esp, ecx
push eax
fcomp dword [esi + 0x382ecb10]
or al, 0x48
sahf
adc bl, cl
cmp byte cs:[eax + ecx*2], cl
pushal
push cs
cmpsd dword [esi], dword es:[edi]
je 0x5db2c6
and bh, byte [eax + 0x57]
cwde
jnp 0x5db397
insb byte es:[edi], dx
daa
test al, 0x68
or al, 0xa5
adc esp, dword [ebx]
out 0x9a, eax
mov byte [0x351fdaed], al
cmp al, 0x5f
jmp 0x5db388
leave
stosd dword es:[edi], eax
fdivr dword [ecx]
or byte [ecx], cl
push eax
wait
or dword [eax - 0x65], edx
sub al, 0xca
xor byte [ebp + 0x78887c98], 0x84
js 0x5db31d
call 0xc9384586
rcr al, 0x30
xchg ebp, eax
and eax, 0xcac03ddb
xor al, 0x68
dec esi
xor ch, byte [edi + eax*2 + 0x31]
in al, dx
dec esp
popfd
test al, 0x4e
jle 0x5db38d
wait
in al, dx
cli
enter 0xffffffffffffcde4, 0xfffffffffffffff9
rcl dh, 0xed
in al, dx
sbb eax, 0xf72530e8
imul esi, edx, 0x99778d37
add byte [ecx - 0x38], 0xbe
pop ds
pushfd
pop ebx
test dword [eax + 0x276f5591], ebp
rcl dword [edx - 0x19], cl
invalid

Function at 0x5f17ee
Capabilities:
Encode data using xor

Disassembly:
xchg esp, eax
pop ebp
add ebx, dword [esp + ebp*4 - 0x50]
pushfd
pushfd
adc byte [eax], bh
jl 0x5f1836
enter 0x5cf9, 0xffffffffffffffc0
int3
cmp ebp, dword [ecx - 0xe26138e]
daa
push ds
enter 0xfffffffffffffbf2, 0x3b
cmp eax, 0xcc75408
out 0xc7, eax
xchg ecx, eax
or eax, 0x28080ab8
push edx
aad 0x6c
mov edi, dword [ecx - 0x23223240]
jg 0x5f18c3
pop ecx
invalid
pop edx
invalid
sbb bl, byte [ecx]
push 0xb5794db8
pop esp
jns 0x5f18a8
push cs
and ch, 0x5e
insd dword es:[edi], dx
insb byte es:[edi], dx
push 0xda0aed9e
int3
Function at 0x15a4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.015a41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x15a407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15a406a
add dl, dl
jne 0x15a4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15a40dc
xor eax, eax
add dl, dl
jne 0x15a4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x15a417d
add dl, dl
jne 0x15a40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15a40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15a40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15a40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x15a40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x15a4075
mov eax, 1
add dl, dl
jne 0x15a40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15a40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15a40e1
sub eax, ebx
mov ebx, 1
jne 0x15a4128
mov ecx, 1
add dl, dl
jne 0x15a410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15a4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15a4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15a4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x15a413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15a414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x15a4136
cmp eax, 0x7d00
jae 0x15a416d
cmp eax, 0x500
jb 0x15a4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15a4075
cmp eax, 0x7f
ja 0x15a4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x15a4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x15a419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x15a4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406ba4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e354
mov eax, dword fs:[0]
push eax
push 0x38
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push ebx
lea ecx, [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x406bfd
call fcn.00408529
mov eax, esi
pop esi
mov word [eax + 8], cx
pop ebx
ret 4

Function at 0x407ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41e3c8]
xor eax, ebp
push eax
and ecx, 0xfffff
mov dword [ebp - 8], ecx
test dword [edi], eax
je 0x407ec3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
cdq
sub eax, edx
jne 0x407f16
movzx eax, byte [ecx + 1]
movzx edx, byte [esi + 1]
sub eax, edx
jne 0x407ef6
and dword [ebp - 0x100c], edx
jmp 0x407f16
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x30]
call fcn.00407b6c
cmp dword [ebp - 0x1c], ebx
jne 0x407f10
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x407f45
call fcn.00404c60
push dword [esi + 0x8c]
call fcn.00409e88
mov edx, dword [ebp + 0x14]
and edx, 0xffff
movzx eax, dx
add eax, dword [0x41e11c]
mov dword [0x41e0b8], eax
push 0
mov eax, dword [ebp - 0x1c8]
neg eax
adc edx, ebx
neg edx
sbb eax, 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
or eax, eax
jl 0x407f5f
jmp 0x407f6c
Function at 0x100013c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x2b4], eax
or esi, 0xffffffff
mov eax, ebx
push edi
mov dword [ebp - 0x2a4], esi
xor edi, edi
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100013f0
sub eax, ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea ecx, [ebp - 0x298]
push ecx
push str.clsid
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100015d0
xor esi, esi
jmp 0x10001436
mov esi, dword [ebp - 0x2a8]
test edi, edi
jne 0x100015ad
mov eax, dword [ebp - 0x298]
push 0x200
lea edx, [ebp - 0x20c]
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc esi
mov dword [ebp - 0x2a8], esi
test eax, eax
jne 0x100015ad
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001470
sub eax, edx
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov ecx, ebx
lea eax, [ebp - 0x20c]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100014b0
test dl, dl
je 0x100014ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100014b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001490
xor eax, eax
jmp 0x100014b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10001436
mov ecx, dword [ebp - 0x298]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x29c]
push edx
push 0x20019
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x100015a0
lea edx, [ebp - 0x2a0]
push edx
push 0x20019
push eax
mov eax, dword [ebp - 0x29c]
push str.InprocServer32
push eax
call edi
mov esi, eax
test esi, esi
jne 0x10001593
mov edi, dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2ac]
push ecx
push edi
lea edx, [ebp - 0x2b0]
push edx
push eax
push eax
mov eax, dword [ebp - 0x2a0]
push eax
mov dword [ebp - 0x2b0], 1
mov dword [ebp - 0x2ac], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x10001586
push 0x88
push eax
lea ecx, [ebp - 0x294]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x4000
lea edx, [ebp - 0x294]
push edx
push edi
mov byte [ebp - 0x294], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x10001586
mov dword [ebp - 0x2a4], esi
mov eax, dword [ebp - 0x2a0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x29c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
test esi, esi
je 0x10001430
mov edx, dword [ebp - 0x298]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2a4]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10005a0e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10005a0e
mov esp, ebp
pop ebp
ret