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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100260ad
xor eax, eax
jmp 0x100260de
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp + 0xc]
test eax, eax
je 0x100260d5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100260a9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc

Function at 0x100260e3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0xc]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1002610c
xor eax, eax
jmp 0x1002615f
push esi
mov esi, dword [ebp + 0x14]
push edi
inc esi
push esi
call fcn.1004a44d
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1002614b
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 8], esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp + 0xc]
test eax, eax
je 0x1002614f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.100462c3
pop ecx
xor eax, eax
jmp 0x1002615d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x10026164
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp + 0xc]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10026186
xor eax, eax
jmp 0x100261bc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x100261b0
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x100261b0
cmp dword [ebp - 4], 1
je 0x100261c1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
inc eax
push edi
push eax
call fcn.1004a44d
pop ecx
mov edi, eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x100261f9
push edi
call fcn.100462c3
pop ecx
xor edi, edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
jmp 0x100261bb
mov eax, dword [ebp + 8]
mov byte [eax + edi], bl
jmp 0x100261eb
Function at 0x10026201
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
pop esi
lea eax, [ebp + 0xc]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1002622b
xor eax, eax
pop esi
leave
ret 0x10
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10026253
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10026224
cmp dword [ebp - 4], 0
je 0x10026248
cmp dword [ebp + 8], esi
je 0x1002626d
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10026226
xor esi, esi
inc esi
jmp 0x10026260
Function at 0x10026272
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10026295
xor eax, eax
jmp 0x10026468
push ebx
lea ebx, [esi + 1]
push ebx
call fcn.1004a44d
push ebx
push 0
push eax
mov dword [ebp - 4], eax
call fcn.100457d0
add esp, 0x10
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002645c
cmp dword [ebp - 0x10], esi
jne 0x1002645c
mov esi, str.network.proxy.http
push esi
push dword [ebp - 4]
call fcn.10046520
pop ecx
pop ecx
mov dword [ebp + 8], eax
mov ebx, 0x1006a070
test eax, eax
je 0x1002635c
push esi
call fcn.100465b0
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 1]
push ebx
push eax
call fcn.10046520
add esp, 0xc
test eax, eax
je 0x1002645c
lea esi, [eax + 1]
push ebx
push esi
call fcn.10046520
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1002645c
push str.http:__
push esi
call fcn.10046520
pop ecx
pop ecx
test eax, eax
je 0x10026338
lea esi, [eax + 7]
mov eax, dword [ebp - 0xc]
sub eax, esi
mov dword [ebp + 8], eax
inc eax
push eax
mov dword [ebp - 8], eax
call fcn.1004a44d
push dword [ebp + 8]
mov dword [edi], eax
push esi
push dword [ebp - 8]
push eax
call fcn.1004a517
add esp, 0x14
mov esi, str.network.proxy.http_port
push esi
push dword [ebp - 4]
call fcn.10046520
pop ecx
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x100263f1
push esi
call fcn.100465b0
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 1]
mov esi, 0x1006a04c
push esi
push eax
mov dword [ebp + 8], eax
call fcn.10046520
add esp, 0xc
test eax, eax
je 0x10026399
push esi
jmp 0x1002639e
push 0x1006a048
push dword [ebp + 8]
call fcn.10046520
pop ecx
pop ecx
inc eax
push 0x1006a044
push eax
mov dword [ebp + 8], eax
call fcn.10046520
mov esi, eax
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
test esi, esi
je 0x100263f1
sub esi, dword [ebp + 8]
lea eax, [esi + 1]
push eax
mov dword [ebp - 8], eax
call fcn.1004a44d
push esi
push dword [ebp + 8]
mov dword [edi + 4], eax
push dword [ebp - 8]
push eax
call fcn.1004a517
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
sub eax, dword [ebp + 8]
mov byte [eax + ecx], 0
push str.network.proxy.no_proxies_on
push dword [ebp - 4]
call fcn.10046520
pop ecx
pop ecx
test eax, eax
je 0x1002644f
add eax, 0x1c
push ebx
push eax
call fcn.10046520
mov esi, eax
inc esi
push ebx
push esi
call fcn.10046520
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x1002644f
sub ebx, esi
lea eax, [ebx + 1]
push eax
mov dword [ebp - 8], eax
call fcn.1004a44d
push ebx
push esi
push dword [ebp - 8]
mov dword [edi + 8], eax
push eax
call fcn.1004a517
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0xc]
add esp, 0x14
sub eax, esi
mov byte [eax + ecx], 0
push dword [ebp - 4]
call fcn.100462c3
xor eax, eax
inc eax
jmp 0x10026466
push dword [ebp - 4]
call fcn.100462c3
xor eax, eax
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x1003fea5
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x30
push edi
mov edi, dword [ebp + 8]
cmp edi, eax
je 0x1003fec4
mov edx, edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1003feba
push esi
push 0x2f
push edi
call fcn.100464f0
push 0x5c
push edi
mov esi, eax
call fcn.100464f0
add esp, 0x10
cmp eax, esi
jbe 0x1003fee0
mov esi, eax
test esi, esi
jne 0x1003ff3f
mov esi, edi
jmp 0x1003ff40
mov al, byte [esi]
cmp al, 0x2e
je 0x1003ff45
mov cl, al
sub cl, 0x30
cmp cl, 9
ja 0x1003ff09
movsx eax, al
sub eax, 0x2b
push 0xa
cdq
pop ecx
idiv ecx
add dl, 0x30
jmp 0x1003ff3d
mov cl, al
sub cl, 0x61
cmp cl, 0x19
ja 0x1003ff24
movsx eax, al
sub eax, 0x54
push 0x1a
cdq
pop ecx
idiv ecx
add dl, 0x61
jmp 0x1003ff3d
mov cl, al
sub cl, 0x41
cmp cl, 0x19
ja 0x1003ff3f
movsx eax, al
sub eax, 0x34
push 0x1a
cdq
pop ecx
idiv ecx
add dl, 0x41
mov byte [esi], dl
inc esi
cmp byte [esi], 0
jne 0x1003fee8
cmp dword [ebp + 0x10], 0
pop esi
je 0x1003ff6a
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.100453f3
pop ecx
pop ecx
test eax, eax
je 0x1003ff6a
call fcn.10046935
cmp dword [eax], 2
jne 0x1003ff6a
xor eax, eax
jmp 0x1003ff6d
xor eax, eax
inc eax
pop edi
leave
ret

Function at 0x100403aa
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1008bc20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov ecx, 0x10094b4c
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call fcn.10016374
test eax, eax
je 0x10040449
mov ecx, dword [0x10094b4c]
cmp dword [ecx + 4], ebx
je 0x10040449
push esi
lea esi, [ecx + 0x14]
cmp dword [esi], ebx
jne 0x10040405
push 0xec67bab1
call fcn.1001436c
mov dword [esi], eax
cmp eax, ebx
jne 0x10040405
xor eax, eax
jmp 0x1004041e
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [esi]
mov dword [ebp - 0x10], eax
pop esi
cmp eax, ebx
je 0x10040449
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1004043b
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
jmp 0x1004044b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10045c30
leave
ret
Function at 0x10040842
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x28
mov eax, 0x10066c6c
call fcn.10045ca8
mov ebx, dword [ebp + 8]
or dword [ebp - 0x1c], 0xffffffff
mov eax, 0x5a4d
xor edi, edi
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x18], 1
mov byte [ebp - 0x17], 2
mov byte [ebp - 0x16], 3
mov byte [ebp - 0x15], 4
mov byte [ebp - 0x14], 5
mov byte [ebp - 0x13], 6
mov byte [ebp - 0x12], 7
mov byte [ebp - 0x11], 8
cmp word [ebx], ax
jne 0x100409f2
mov eax, dword [ebx + 0x3c]
add eax, ebx
cmp dword [eax], 0x4550
jne 0x100409f2
cmp dword [eax + 0x7c], edi
je 0x100409f2
mov esi, dword [eax + 0x78]
add esi, ebx
mov edx, dword [esi + 0x18]
cmp edx, edi
je 0x100409f2
cmp dword [esi + 0x14], edi
je 0x100409f2
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and dword [ebp - 0x24], edi
add ecx, ebx
add eax, ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], eax
test edx, edx
jbe 0x100409f2
mov ebx, dword [ecx]
add ebx, dword [ebp - 0x30]
mov eax, ebx
lea edx, [eax + 1]
mov dword [ebp - 0x28], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100408e3
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
je 0x100409b0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10040977
jle 0x100409aa
cmp eax, 2
jg 0x100409aa
test edi, edi
jne 0x10040947
cmp eax, 1
jne 0x100409f2
push 0x84
call fcn.10045263
pop ecx
mov dword [ebp - 0x34], eax
and dword [ebp - 4], edi
test eax, eax
je 0x10040937
mov ecx, eax
call fcn.10040dcb
jmp 0x10040939
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov edi, eax
test eax, eax
je 0x100409f2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push dword [ebp - 0x28]
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
push 8
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax]
mov ecx, dword [ebp - 0x2c]
jmp 0x1004099f
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
cmp dl, byte [ebx]
jne 0x10040998
test dl, dl
je 0x10040994
mov dl, byte [eax + 1]
cmp dl, byte [ebx + 1]
jne 0x10040998
inc eax
inc eax
inc ebx
inc ebx
test dl, dl
jne 0x1004097a
xor eax, eax
jmp 0x1004099d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100409aa
mov eax, dword [ebp - 0x20]
movzx eax, word [eax]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x100409c9
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], 2
add ecx, 4
mov dword [ebp - 0x2c], ecx
cmp eax, dword [esi + 0x18]
jb 0x100408d6
test edi, edi
je 0x100409d5
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x100409f2
cmp eax, dword [esi + 0x14]
ja 0x100409f2
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + ecx]
add eax, ecx
jmp 0x100409f4
xor eax, eax
call fcn.10045d2b
ret
Function at 0x100409fa
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
jne 0x10040a08
xor eax, eax
inc eax
ret
xor edx, edx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov word [eax + 0x1c], dx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
xor eax, eax
ret
Function at 0x10040a3f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14c
push ebx
push esi
xor edx, edx
lea ecx, [eax + 0x1f]
push edi
movzx esi, byte [ecx - 1]
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 1]
shl esi, 8
or esi, edi
movzx edi, byte [ecx + 2]
shl esi, 8
or esi, edi
mov dword [ebp + edx*4 - 0x14c], esi
inc edx
add ecx, 4
cmp edx, 0x10
jl 0x10040a53
push 0x40
lea ecx, [ebp - 0x144]
pop edx
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x10040a8a
mov esi, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
and dword [ebp + 8], 0
mov dword [ebp - 4], esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 8]
mov edi, ecx
not edi
and edi, dword [ebp - 4]
mov ebx, edx
and ebx, ecx
or edi, ebx
rol esi, 5
add esi, edi
mov edi, dword [ebp + 8]
add esi, dword [ebp + edi*4 - 0x14c]
mov edi, dword [ebp - 0xc]
inc dword [ebp + 8]
lea esi, [esi + edi + 0x5a827999]
mov edi, dword [ebp - 4]
ror ecx, 2
cmp dword [ebp + 8], 0x14
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
jl 0x10040abb
mov dword [ebp + 8], 0x14
mov ebx, dword [ebp - 4]
xor ebx, edx
xor ebx, ecx
rol esi, 5
add esi, ebx
mov ebx, dword [ebp + 8]
add esi, dword [ebp + ebx*4 - 0x14c]
inc dword [ebp + 8]
lea esi, [esi + edi + 0x6ed9eba1]
mov edi, dword [ebp - 4]
ror ecx, 2
cmp dword [ebp + 8], 0x28
mov dword [ebp - 4], edx
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
jl 0x10040b08
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], 0x28
mov edi, edx
or edi, ecx
and edi, dword [ebp - 4]
mov ebx, edx
and ebx, ecx
or edi, ebx
mov ebx, dword [ebp + 8]
add edi, dword [ebp + ebx*4 - 0x14c]
rol esi, 5
add esi, dword [ebp - 0xc]
inc dword [ebp + 8]
lea esi, [edi + esi - 0x70e44324]
mov edi, dword [ebp - 4]
ror ecx, 2
push 0x3c
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
pop edi
cmp dword [ebp + 8], edi
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 8], esi
jl 0x10040b49
mov dword [ebp + 8], edi
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
xor edi, edx
xor edi, ecx
add edi, dword [ebp + ebx*4 - 0x14c]
mov ebx, dword [ebp - 4]
rol esi, 5
add esi, dword [ebp - 0xc]
inc dword [ebp + 8]
ror ecx, 2
cmp dword [ebp + 8], 0x50
mov dword [ebp - 4], edx
lea esi, [edi + esi - 0x359d3e2a]
mov edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
jl 0x10040b8f
mov edi, dword [eax]
add edi, esi
mov esi, dword [eax + 4]
add esi, ecx
mov ecx, dword [eax + 8]
add ecx, edx
mov edx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
add ecx, ebx
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
mov dword [eax + 0x10], ecx
xor ecx, ecx
pop esi
mov word [eax + 0x1c], cx
pop ebx
leave
ret
Function at 0x100412db
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10040e38
and dword [ebp - 4], 0
mov ebx, eax
shl ebx, 2
add esp, 0xc
mov dword [ebp - 8], eax
test ebx, ebx
jle 0x1004134d
lea edx, [esi + ebx*4 + 8]
lea ecx, [esi + 8]
mov eax, dword [edx - 8]
mov edi, dword [ecx - 8]
add dword [ebp - 4], 4
mov dword [ecx - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], edi
mov edi, dword [ecx - 4]
mov dword [ecx - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], edi
mov edi, dword [ecx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [ecx + 4], eax
mov dword [edx + 4], edi
sub ebx, 4
add ecx, 0x10
sub edx, 0x10
cmp dword [ebp - 4], ebx
jl 0x1004130c
mov eax, dword [ebp - 8]
cmp eax, 1
jle 0x100414bf
lea ecx, [eax - 1]
mov dword [ebp - 4], ecx
mov ecx, 0xff
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + str.ccccwwww]
add esi, 0x10
mov edx, dword [esi]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, ecx
mov edi, dword [edi*4 + 0x1006c830]
and ebx, ecx
xor edi, dword [ebx*4 + 0x1006d030]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edi, dword [ebx*4 + 0x1006cc30]
movzx ebx, byte [esi + 5]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, ecx
xor edi, dword [edx*4 + 0x1006d430]
mov edx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, ecx
mov edi, dword [edi*4 + 0x1006c830]
and ebx, ecx
xor edi, dword [ebx*4 + 0x1006d030]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edi, dword [ebx*4 + 0x1006cc30]
movzx ebx, byte [esi + 9]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, ecx
xor edi, dword [edx*4 + 0x1006d430]
mov edx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, ecx
mov edi, dword [edi*4 + 0x1006c830]
and ebx, ecx
xor edi, dword [ebx*4 + 0x1006d030]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edi, dword [ebx*4 + 0x1006cc30]
movzx ebx, byte [esi + 0xd]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and edx, ecx
xor edi, dword [edx*4 + 0x1006d430]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + str.ccccwwww]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + str.ccccwwww]
and edi, ecx
mov edi, dword [edi*4 + 0x1006c830]
and ebx, ecx
xor edi, dword [ebx*4 + 0x1006d030]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + str.ccccwwww]
and edx, ecx
mov edx, dword [edx*4 + str.ccccwwww]
and ebx, ecx
xor edi, dword [ebx*4 + 0x1006cc30]
and edx, ecx
xor edi, dword [edx*4 + 0x1006d430]
dec dword [ebp - 4]
mov dword [esi + 0xc], edi
jne 0x10041361
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100422c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
xor ecx, ecx
cmp eax, ecx
jne 0x100422d8
xor eax, eax
jmp 0x100422f2
push ecx
push ecx
lea edx, [ebp + 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 8]
pop ebp
ret 4

Function at 0x10042337
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10042396
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x1004238e
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.10045263
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1004238e
push dword [ebp + 0x10]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [edi + 0xc]
call esi
test eax, eax
je 0x10042392
push dword [ebp + 0xc]
call fcn.1004523d
pop ecx
xor eax, eax
jmp 0x10042395
mov eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x10042633
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
ret
Function at 0x10045c30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008bc20]
jne 0x10045c3a
repz ret
jmp fcn.1004db7c

Function at 0x1005bb2c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1004d4f3
and dword [ebp - 4], 0
cmp dword [0x100955e8], 0
mov ebx, eax
jne 0x1005bbdd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1005bc8e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1005bc8e
push eax
call fcn.1004d481
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100955e8], eax
call esi
push eax
call fcn.1004d481
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100955ec], eax
call esi
push eax
call fcn.1004d481
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100955f0], eax
call esi
push eax
call fcn.1004d481
pop ecx
mov dword [0x100955f8], eax
test eax, eax
je 0x1005bbdd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1004d481
pop ecx
mov dword [0x100955f4], eax
mov eax, dword [0x100955f4]
cmp eax, ebx
je 0x1005bc35
cmp dword [0x100955f8], ebx
je 0x1005bc35
push eax
call fcn.1004d4fc
push dword [0x100955f8]
mov esi, eax
call fcn.1004d4fc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1005bc35
test edi, edi
je 0x1005bc35
call esi
test eax, eax
je 0x1005bc2c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1005bc2c
test byte [ebp - 0xc], 1
jne 0x1005bc35
or dword [ebp + 0x10], 0x200000
jmp 0x1005bc6e
mov eax, dword [0x100955ec]
cmp eax, ebx
je 0x1005bc6e
push eax
call fcn.1004d4fc
pop ecx
test eax, eax
je 0x1005bc6e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1005bc6e
mov eax, dword [0x100955f0]
cmp eax, ebx
je 0x1005bc6e
push eax
call fcn.1004d4fc
pop ecx
test eax, eax
je 0x1005bc6e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100955e8]
call fcn.1004d4fc
pop ecx
test eax, eax
je 0x1005bc8e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1005bc90
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x63279f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x6327df
mov cl, byte [ebp + 0x14]
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [edx + eax], cl
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x6327b1
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x6327e5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x632822
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [ebp + 0x14]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x6327f7
pop esi
pop ebx
pop ebp
ret 0x10