joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003384b
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10033862
mov bl, byte [eax]
inc eax
mov dword [esi + 0x50], eax
jmp 0x100338ce
cmp dword [esi + 0x4c], 0
jl 0x100338cc
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003389a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003386b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003386b
cmp ebx, 1
jge 0x100338a7
or dword [esi + 0x4c], 0xffffffff
xor bl, bl
jmp 0x100338ec
lea eax, [edi + 1]
mov dword [esi + 0x50], eax
lea eax, [ebx + edi]
mov dword [esi + 0x54], eax
mov bl, byte [edi]
test bl, bl
jne 0x100338ce
push esi
call fcn.100348ff
mov eax, dword [esi + 0x50]
or dword [esi + 0x4c], 0xffffffff
pop ecx
mov dword [esi + 0x54], eax
jmp 0x100338ce
xor bl, bl
cmp bl, 0xa
jne 0x100338e2
mov eax, dword [esp + 0x18]
and dword [eax], 0
mov eax, dword [esp + 0x14]
inc dword [eax]
jmp 0x100338ec
test bl, bl
je 0x100338ec
mov ecx, dword [esp + 0x18]
inc dword [ecx]
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x100347ff
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x50]
cmp eax, dword [esi + 0x54]
jae 0x10034812
mov al, byte [eax]
jmp 0x10034855
cmp dword [esi + 0x4c], 0
jl 0x10034853
mov edi, dword [esi + 0x58]
push 0xfa0
push edi
push dword [esi + 0x4c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1003484a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 4
je 0x1003481b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0xb
je 0x1003481b
cmp ebx, 1
jge 0x10034859
or dword [esi + 0x4c], 0xffffffff
xor al, al
pop edi
pop esi
pop ebx
ret
lea ecx, [ebx + edi]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], ecx
mov al, byte [edi]
jmp 0x10034855

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x100010e7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
ret

Function at 0x100010f7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
sub esp, 0xfb
add esp, 0xffffffeb
sub ebx, 0x44e591b8
dec ebx
push ebx
sub dword [esp], 0xbb1a6e47
mov ebx, dword [esp]
add eax, ecx
push 0
add dword [esp], esi
mov esi, dword [eax + 0x78]
test esi, esi
push edi
jne 0x1000113e
xor eax, eax
jmp 0x100012a9
mov eax, dword [eax + 0x7c]
mov edx, dword [ebp + 0xc]
add esi, ecx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x24]
add eax, ecx
add edi, ecx
add ebx, ecx
test edx, edx
mov dword [ebp - 0xc], eax
jns 0x1000117d
and edx, 0x7fffffff
sub edx, dword [esi + 0x10]
cmp edx, dword [esi + 0x14]
jae 0x10001137
mov ebx, dword [ebx + edx*4]
jmp 0x100011d1
xor edx, edx
cmp edx, dword [esi + 0x18]
mov dword [ebp - 4], edx
jae 0x100011c4
jmp 0x10001196
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edi + edx*4]
add edx, ecx
call fcn.10001448
cmp dword [ebp + 0xc], eax
je 0x100011b8
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x10001190
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
cmp edx, dword [esi + 0x18]
je 0x10001137
movzx eax, word [eax + edx*2]
mov ebx, dword [ebx + eax*4]
mov eax, dword [ebp - 8]
add ebx, ecx
add eax, esi
cmp ebx, eax
mov dword [ebp + 0xc], ebx
jae 0x100012a7
cmp ebx, esi
jb 0x100012a7
and dword [ebp + 8], 0
cmp byte [ebx], 0x2e
je 0x10001208
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp byte [eax + ebx], 0x2e
jne 0x100011f8
lea eax, [ebp - 0x110]
mov dword [ebp - 8], eax
push dword [ebp - 8]
xor edi, 0xfdc23b08
pop edi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
push esi
mov esi, 0x86cb26ca
sub esp, 0xc
push 0xc3288186
xchg dword [esp + 0x10], esi
inc esp
xor dword [esp + 0xf], 0xa305a526
add esp, 0xf
mov byte [ebp + eax - 0x110], 0
call fcn.1000103a
add eax, 0xb89e883e
inc eax
push eax
add dword [esp], 0x476177c1
mov eax, dword [esp]
call fcn.100010f7
lea ecx, [ebp - 0x110]
add esp, 0xfffffffc
mov dword [esp], ecx
call eax
mov esi, eax
test esi, esi
je 0x10001137
mov eax, dword [ebp + 8]
lea edx, [eax + ebx]
call fcn.10001448
push 0
add dword [esp], eax
push esi
call fcn.100010f7
mov ebx, eax
mov eax, ebx
mov edi, dword [esp]
lea esp, [esp + 4]
xor esi, 0xe5295cfd
pop esi
mov ebx, dword [esp]
lea esp, [esp + 4]
leave
ret 8
Function at 0x10001405
Capabilities:
Encode data using xor

Disassembly:
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
sub esi, 1
cmp word [esp - 0x19], 0x82d6
sub esi, 2
sub edi, 3
sub bp, 0
add edi, 0
add edx, ecx
rol edx, 0xd
lea ecx, [ecx - 1]
test ecx, ecx
jne 0x100013df
mov eax, dword [ebx + 0x20]
mov ecx, eax
neg ecx
add ecx, ecx
add dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 0x24]
sub dword [ebx + 0x10], eax
mov dword [ebx + 0x24], ecx
mov ecx, eax
imul ecx, ecx, 0xfffffff8
add dword [ebx + 8], ecx
mov ecx, eax
imul ecx, ecx, 0xfffffff0
add dword [ebx + 0x14], ecx
add dword [ebx + 0x18], eax
mov edi, dword [esp]
add esp, 4
adc esi, 0xffffffe7
pop esi
sbb ebx, 0xffffffb6
pop ebx
leave
ret 0xc

Function at 0x100014d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
sub esp, 0xfc
push ebx
lea esp, [esp - 4]
mov dword [esp], esi
lea eax, [ebp - 0x108]
lea esp, [esp - 4]
mov dword [esp], edi
mov dword [ebp - 8], eax
mov edi, dword [ebp - 8]
mov ecx, 0x100
mov al, 0
rep stosb byte es:[edi], al
push 0x56d0966d
xor dword [esp], 0x372f1027
call fcn.1000103a
sub esp, 4
mov dword [esp], eax
call fcn.100010f7
push 0x40
push 0xb94f1412
xor dword [esp], 0xb94f2412
push dword [ebp + 0xc]
push 0
call eax
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x10001649
call fcn.10001000
mov byte [ebp - 1], al
movzx eax, al
lea eax, [ebp + eax - 0x108]
cmp byte [eax], 0
jne 0x10001594
mov byte [eax], 1
push dword [ebp - 8]
mov edi, dword [esp]
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
mov edi, esi
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 1]
lodsb al, byte [esi]
mov edi, edi
xor al, dl
stosb byte es:[edi], al
add dl, cl
rol dl, 3
dec ecx
jne 0x10001582
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov ecx, 0x3567de8a
movzx esi, byte [eax]
imul ecx, ecx, 0x21
xor ecx, esi
push 1
add dword [esp], eax
pop eax
lea edx, [edx - 1]
test edx, edx
jne 0x1000159e
cmp ecx, dword [ebp + 0x14]
jne 0x10001547
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
add dword [esp], ebx
call fcn.1000106b
push dword [ebp + 8]
imul edi, edi, 0xa11ffc8c
or edi, 0xffffffff
inc edi
or edi, 4
neg edi
sub esp, edi
mov edi, dword [esp + edi]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
rep movsb byte es:[edi], byte [esi]
push 0x8e308855
sub dword [esp], 0x3a9343b9
call fcn.1000103a
lea esp, [esp - 4]
mov dword [esp], eax
call fcn.100010f7
push 0xbffc8bda
sub dword [esp], 0xbffc0bda
push 0
add ebx, 0x29e20790
inc ebx
push ebx
add dword [esp], 0xd61df86f
mov ebx, dword [esp]
call eax
xor eax, eax
sub eax, 0xffffffff
pop edi
mov esi, dword [esp]
lea esp, [esp + 4]
pop ebx
leave
ret 0x10
Function at 0x10002156
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 5
sub esp, 7
add esp, 0xfffffffc
mov dword [esp], ebx
push 0
add dword [esp], esi
sub esp, 4
mov dword [esp], edi
xor esi, esi
push edx
push eax
xor eax, eax
push edi
std
lea edi, [esp + 8]
or eax, 0x8126f912
rol eax, 3
stosd dword es:[edi], eax
xchg esi, edi
lodsd eax, dword [esi]
mov esi, edi
pop edi
cld
add esp, 4
mov dword [ebp - 8], esi
call fcn.100010e7
push 0
add dword [esp], eax
call fcn.100010f7
push dword [ebp + 0xc]
call eax
mov ebx, eax
cmp word [ebx + 6], si
movzx eax, word [ebx + 0x14]
lea eax, [eax + ebx + 0x18]
mov dword [ebp + 0xc], esi
jbe 0x1000229b
sub eax, 0xffffffe3
add eax, 7
mov dword [ebp - 4], eax
mov ecx, dword [eax]
xor esi, esi
test ecx, 0x20000000
je 0x100021f8
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x20
add esi, 0xa
add esi, 0x16
jmp 0x1000221d
test ecx, ecx
jns 0x10002207
push 4
jmp 0x10002215
test ecx, 0x40000000
je 0x1000221d
push 2
mov esi, dword [esp]
lea esp, [esp + 4]
test ecx, 0x4000000
je 0x1000222f
or esi, 0x200
test esi, esi
je 0x10002282
mov edi, dword [eax - 0x18]
mov eax, dword [eax - 0x1c]
add edi, dword [ebp + 8]
push 0xf18c255a
sub dword [esp], 0xc76d5b30
mov dword [ebp - 0xc], eax
call fcn.1000103a
push eax
call fcn.100010f7
lea ecx, [ebp - 8]
push ecx
sub esp, 4
mov dword [esp], esi
push dword [ebp - 0xc]
push 0
add dword [esp], edi
call eax
test eax, eax
je 0x100022c2
mov eax, dword [ebp - 4]
movzx ecx, word [ebx + 6]
inc dword [ebp + 0xc]
add eax, 7
add eax, 0x21
cmp dword [ebp + 0xc], ecx
mov dword [ebp - 4], eax
jb 0x100021ce
xor eax, eax
lea eax, [eax + 1]
test eax, eax
mov edi, dword [esp]
lea esp, [esp + 4]
mov esi, dword [esp]
sub esp, 0xfffffffc
mov ebx, dword [esp]
lea esp, [esp + 4]
leave
ret 8
xor eax, eax
jmp 0x100022a2
Function at 0x900e460
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x90cf2a5
call fcn.09006dd9
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
push 0x1a
pop esi
push 0x2b
pop eax
cmove esi, eax
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov eax, esi
or eax, 0x8000
cmp byte [ebp + 0xc], bl
push ebx
push ebx
cmovne esi, eax
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x900e4bc
xor al, al
jmp 0x900e50c
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.0900e8b2
push dword [ebp + 0xc]
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], ebx
push str.Adobe
call fcn.0900f2c5
test al, al
je 0x900e4ff
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.09027cb8
mov ecx, edi
call fcn.09011cd1
mov bl, al
lea ecx, [ebp - 0x230]
call fcn.09027cb8
mov al, bl
call fcn.09006f96
ret

Function at 0x9011cd1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x9011cd9
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9011ce8
xor al, al
ret
shr eax, 4
and al, 1
ret

Function at 0x901e790
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov byte [ecx + 0x58], 0
ret
Function at 0x9027cb8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x9027cc7
pop dword [ebp - 0x14]
mov eax, 0x44d5d1c1
sub eax, 0x3bd354fa
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x75ca668
add dword [ebp - 0x24], 0x46f59ee3
mov dword [ebp - 0x20], 0x79b8b40
add dword [ebp - 0x20], 0x2a97c105
mov dword [ebp - 0x1c], 0xcfdcc48c
add dword [ebp - 0x1c], 0x7c6f7fa2
mov dword [ebp - 0x18], 0xac1357dc
sub dword [ebp - 0x18], 0xac1357dc
lea eax, [ebp - 0x24]
push eax
mov eax, 0x2ae57c23
sub eax, 0x21d81b5f
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x8efa6438
sub dword [ebp - 0x24], 0x1a87fae2
mov dword [ebp - 0x20], 0x362722e5
sub dword [ebp - 0x20], 0xf4bac170
mov dword [ebp - 0x1c], 0x9105b082
add dword [ebp - 0x1c], 0xd269bbea
mov dword [ebp - 0x18], 0x6fe35318
add dword [ebp - 0x18], 0x901cace8
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xb0ce27e
sub eax, 0x1ff81be
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x73368
push 0
call eax
mov ecx, 0x7d4f1981
add ecx, 0x82b11b58
xor esi, esi
add esi, eax
mov edi, 0xbbeaa94d
add edi, 0x4d27b2b3
add edi, dword [ebp - 0x14]
mov edx, 0x6abe00d0
sub edx, 0xc6addd1
sub dword [ebp - 0xc], 0x21f33a8d
mov ebx, dword [edi]
sub dword [ebp - 0x10], ebx
xor ebx, edx
mov dword [ebp - 0x10], 0x43af8125
mov dword [esi], ebx
add esi, 0x68d128f
sub esi, 0x68d128b
add edi, 0x5add709a
add edi, 0xa5228f6a
loop 0x9027deb
add eax, 0xc5aa2dc4
sub eax, 0xc5a9678d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x9b9c8f57
sub ecx, 0x929c8f57
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x90582d8
Capabilities:
Get memory capacity

Disassembly:
push 0x28
mov eax, 0x90d2348
call fcn.0900620a
mov esi, ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x20
push eax
call dword [sym.imp.kernel32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x24]
xor edx, edx
sub eax, dword [ebp - 0x20]
sub eax, dword [esi + 8]
sbb edx, dword [esi + 0xc]
js 0x9058343
jg 0x905830d
test eax, eax
jb 0x9058343
mov ecx, dword [esi + 4]
imul edi, ecx, 3
test edx, edx
jg 0x9058343
jl 0x905831d
cmp eax, edi
ja 0x9058343
cmp eax, ecx
jbe 0x9058337
and dword [ebp - 4], 0
sub eax, ecx
mov ecx, dword [esi]
push eax
call fcn.09027cb8
jmp 0x9058343
jae 0x9058343
sub ecx, eax
push ecx
mov ecx, dword [esi]
call fcn.09027cb8
call fcn.09006fcf
ret
Function at 0x9079b47
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x90d3869
call fcn.09006dd9
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14c]
push eax
xor ebx, ebx
mov esi, 0x20019
push esi
push ebx
push str.SOFTWARE
push 0x80000002
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x140], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079ba6
mov dword [ebp - 0x14c], ebx
jmp 0x9079d25
lea eax, [ebp - 0x148]
push eax
push esi
push ebx
push str.Adobe
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079bcf
mov dword [ebp - 0x148], ebx
jmp 0x9079d25
lea eax, [ebp - 0x144]
push eax
push esi
push ebx
push str.Color
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079bf8
mov dword [ebp - 0x144], ebx
jmp 0x9079d25
lea eax, [ebp - 0x13c]
push eax
push esi
push ebx
push str.Monitor
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079c21
mov dword [ebp - 0x13c], ebx
jmp 0x9079d25
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x104
push eax
lea eax, [ebp - 0x120]
mov esi, ebx
push eax
lea eax, [ebp - 0x154]
push eax
push ebx
push str.Primary_Monitor
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9079c73
cmp dword [ebp - 0x154], 4
jne 0x9079c73
mov esi, dword [ebp - 0x120]
cmp esi, 0x3e7
ja 0x9079d25
push esi
push str.Monitor_u
lea eax, [ebp - 0x1c]
push 0xb
push eax
call fcn.09027cb8
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x9079cb3
mov dword [ebp - 0x140], ebx
jmp 0x9079d3a
lea eax, [ebp - 0x150]
mov dword [ebp - 0x150], 0x104
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x154]
push eax
push ebx
push str.Monitor_Profile
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9079d25
cmp dword [ebp - 0x154], 1
jne 0x9079d25
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x138]
call fcn.0901904e
lea eax, [ebp - 0x138]
mov dword [ebp - 4], ebx
push eax
mov ecx, edi
call fcn.09027cb8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.09027cb8
mov bl, 1
cmp dword [ebp - 0x140], 0
je 0x9079d3a
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x13c], 0
je 0x9079d4f
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x144], 0
je 0x9079d64
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x148], 0
je 0x9079d79
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14c], 0
je 0x9079d8e
push dword [ebp - 0x14c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.09006f96
ret
Function at 0x907c6ab
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90d3926
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1430
call fcn.090cde60
mov eax, dword [0x91154f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebx + 8]
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x1424], edi
mov dword [ebp - 0x1430], eax
mov dword [ebp - 0x1428], eax
mov dword [ebp - 0x143c], edi
call fcn.09018f87
xor ecx, ecx
push 0xf
mov eax, ecx
mov dword [ebp - 4], ecx
pop esi
mov dword [ebp - 0x142c], eax
mov dword [ebp - 0x1420], esi
xor edx, edx
mov edi, ecx
div esi
mov dword [ebp - 0x141c], edi
lea esi, [ebp - 0x416]
mov dword [ebp - 0x1434], eax
mov eax, edi
xor edx, edx
div dword [ebp - 0x1420]
mov edi, ecx
mov dword [ebp - 0x1438], eax
mov edx, dword [ebp - 0x1434]
mov byte [esi - 1], dl
xor edx, edx
mov byte [esi], al
mov eax, edi
div dword [ebp - 0x1420]
mov edx, 0xff
mov byte [esi + 1], al
add edi, edx
mov eax, dword [ebp - 0x1438]
add esi, 4
cmp edi, 0xff0
jb 0x907c753
mov edi, dword [ebp - 0x141c]
add edi, edx
mov dword [ebp - 0x141c], edi
cmp edi, 0xff0
jb 0x907c741
push ecx
mov ecx, dword [ebp - 0x1424]
lea esi, [edx + 1]
push 0x5058595a
push 0x706c6162
push esi
lea eax, [ebp - 0x1418]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.09027cb8
push esi
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.09027cb8
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x141c], esi
movzx eax, word [ebp + esi - 0xc16]
movzx ecx, word [ebp + esi - 0x1416]
sub ecx, eax
mov eax, ecx
movzx ecx, word [ebp + esi - 0x1414]
cdq
mov edi, eax
movzx eax, word [ebp + esi - 0xc14]
sub ecx, eax
xor edi, edx
mov eax, ecx
sub edi, edx
mov ecx, dword [ebp - 0x141c]
cdq
mov esi, eax
xor esi, edx
movzx eax, word [ebp + ecx - 0xc12]
sub esi, edx
movzx ecx, word [ebp + ecx - 0x1412]
sub ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 0x1428]
cdq
xor eax, edx
sub eax, edx
cmp ecx, edi
cmovl ecx, edi
cmp ecx, esi
cmovl ecx, esi
mov esi, dword [ebp - 0x141c]
cmp ecx, eax
cmovl ecx, eax
add esi, 8
mov dword [ebp - 0x1428], ecx
mov dword [ebp - 0x141c], esi
cmp esi, 0x800
jb 0x907c7e0
cmp ecx, 0xa
ja 0x907c89c
mov eax, dword [ebp - 0x142c]
mov esi, dword [ebp - 0x1420]
add eax, 0xff
mov dword [ebp - 0x142c], eax
push 0
pop ecx
cmp eax, 0xff0
jb 0x907c729
mov byte [ebp - 0x1430], 1
mov ecx, dword [ebp - 0x1424]
or dword [ebp - 4], 0xffffffff
call fcn.090190fb
mov al, byte [ebp - 0x1430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09002290
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x90a249d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x90d3fd3
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x13f0
call fcn.090cde60
mov eax, dword [0x91154f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x13e8], edi
mov esi, dword [ebx + 8]
push 0
mov dword [ebp - 0x13e4], esi
mov eax, dword [esi + 4]
add eax, 0xa0
push eax
call fcn.09027cb8
cmp dword [edi], 0
pop ecx
pop ecx
jne 0x90a2522
push 0
push 0x9c4
push 0xf424
push dword [esi + 4]
call fcn.09027cb8
add esp, 0x10
mov dword [edi], eax
mov ecx, esi
mov dword [ebp - 0x13ec], esi
call fcn.09018f87
and dword [ebp - 4], 0
lea edi, [ebp - 0x48]
push 0xc
pop ecx
mov eax, ecx
mov dword [ebp - 0x13dc], 0x18
xor edx, edx
add ecx, 0x8000
div dword [ebp - 0x13dc]
mov word [edi], ax
lea edi, [edi + 2]
cmp ecx, 0xc800c
jb 0x90a2539
and dword [ebp - 0x13e0], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x13dc], eax
movzx eax, word [eax]
lea ecx, [ebp - 0x13cc]
xor edx, edx
mov dword [ebp - 0x13d8], eax
mov dword [ebp - 0x13d4], edx
movzx esi, word [ebp + edx*2 - 0x48]
xor edi, edi
mov edx, dword [ebp - 0x13d8]
mov ax, word [ebp + edi*2 - 0x48]
inc edi
mov word [ecx - 2], dx
mov word [ecx], si
mov word [ecx + 2], ax
add ecx, 8
cmp edi, 0x19
jb 0x90a2595
mov edx, dword [ebp - 0x13d4]
inc edx
mov dword [ebp - 0x13d4], edx
cmp edx, 0x19
jb 0x90a2588
mov ecx, dword [ebp - 0x13e4]
lea eax, [ebp - 0x13d0]
push 0
push 0x434d594b
push 0x504c4142
push 0x271
push eax
push eax
call fcn.09027cb8
mov eax, dword [ebp - 0x13e8]
lea ecx, [ebp - 0x1400]
mov edi, dword [ebp - 0x13e0]
push 1
push 0x9c4
push edi
push dword [eax]
call fcn.09027cb8
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 1
call fcn.090067dd
lea esi, [ebp - 0x13d0]
mov dword [ebp - 0x13d8], 0x19
lea edi, [eax + 2]
mov dword [ebp - 0x13d4], 0x19
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
movzx eax, cx
imul eax, eax, 0xff
shr ecx, 0x10
add eax, 0x4000
shr eax, 0xf
mov byte [edi - 2], al
imul eax, ecx, 0xff
mov ecx, 0x4000
add eax, ecx
shr eax, 0xf
mov byte [edi - 1], al
movzx eax, dx
imul eax, eax, 0xff
shr edx, 0x10
add eax, ecx
shr eax, 0xf
mov byte [edi], al
imul eax, edx, 0xff
add eax, ecx
shr eax, 0xf
mov byte [edi + 1], al
add edi, 4
sub dword [ebp - 0x13d4], 1
jne 0x90a2631
sub dword [ebp - 0x13d8], 1
jne 0x90a2627
lea ecx, [ebp - 0x1400]
mov byte [ebp - 4], 0
call fcn.090068a7
mov edi, dword [ebp - 0x13e0]
mov eax, dword [ebp - 0x13dc]
add edi, 0x9c4
mov esi, dword [ebp - 0x13e4]
add eax, 2
mov dword [ebp - 0x13dc], eax
mov dword [ebp - 0x13e0], edi
cmp edi, 0xf424
jb 0x90a2571
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.090190fb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.09002290
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4