joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
xor edi, edi
cmp dword [esi], 4
jne 0x40d731
mov ebx, dword [ebp + 0xc]
sub ebx, eax
cmp ebx, 5
jb 0x40d731
add edx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
add ebx, 0xfffffffc
xor edi, edi
xor eax, eax
dec eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov cl, byte [edx + edi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x40d60a
mov ecx, edi
sub ecx, eax
cmp ecx, 3
jbe 0x40d611
xor ecx, ecx
jmp 0x40d644
mov ecx, edi
jmp 0x40d709
dec cl
mov eax, dword [ebp - 0x10]
shl eax, cl
mov ecx, 0
and eax, 7
je 0x40d644
mov ecx, 0xe8
bt ecx, eax
jb 0x40d658
movzx ecx, byte [eax + 0x435510]
mov ebx, edi
sub ebx, ecx
mov cl, byte [ebx + edx + 4]
inc cl
cmp cl, 1
jbe 0x40d658
mov ecx, eax
mov dword [ebp - 0x10], ecx
movzx ebx, byte [edx + edi + 4]
mov ecx, ebx
inc cl
cmp cl, 1
jbe 0x40d667
mov eax, dword [ebp - 0x10]
add eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov ecx, edi
mov eax, edi
jmp 0x40d706
movzx ecx, byte [edx + edi + 1]
movzx eax, byte [edx + edi + 2]
shl eax, 8
shl ebx, 0x18
or ebx, ecx
movzx ecx, byte [edx + edi + 3]
shl ecx, 0x10
or ebx, eax
or ebx, ecx
mov ecx, dword [esi + 0xc]
add ecx, edi
mov esi, 0xfffffffb
sub esi, ecx
add ebx, esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40d6d8
movzx edx, byte [eax + 0x435510]
shl edx, 3
mov ecx, 0x18
sub ecx, edx
mov eax, ebx
shr eax, cl
inc al
cmp al, 1
ja 0x40d6d8
neg dl
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x20], esi
xor esi, esi
dec esi
mov ecx, eax
shl esi, cl
xor ebx, esi
not ebx
add ebx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, edx
shr eax, cl
inc al
cmp al, 2
jb 0x40d6c5
mov eax, ebx
and eax, 0x1000000
mov ecx, eax
neg ecx
or ecx, eax
mov edx, dword [ebp - 0x18]
mov byte [edx + edi + 1], bl
mov byte [edx + edi + 2], bh
shr ebx, 0x10
mov byte [edx + edi + 3], bl
shr ecx, 0x18
mov byte [edx + edi + 4], cl
lea ecx, [edi + 4]
mov eax, edi
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov edi, ecx
inc edi
cmp edi, ebx
jb 0x40d5f2
mov edx, edi
sub edx, eax
mov ecx, edx
dec cl
mov ebx, dword [ebp - 0x10]
shl ebx, cl
xor eax, eax
cmp edx, 3
cmovbe eax, ebx
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
add eax, edi
mov dword [ecx], eax
add dword [esi + 0xc], edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410280
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x10
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4102d6
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x14]
push eax
push 4
push esi
push 0x12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
setne al
cmp dword [esi], 3
sete bl
and bl, al
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4102d8
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412b41
mov eax, ebx
add esp, 0x10
pop esi
pop ebx
pop ebp
ret
Function at 0x4109f0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x410a3a
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00411f8b
add esp, 4
cmp eax, 0x105
jb 0x410a4e
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.0041213d
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00430560
add esp, 8
test eax, eax
je 0x410a3a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410a92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410a3a
push str.UpdateLogs
push edi
call fcn.00430560
add esp, 8
test eax, eax
je 0x410a3a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410ac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410a3a
xor esi, esi
inc esi
jmp 0x410a3a
Function at 0x4110e0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x4111a7
mov ebx, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4111cd
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0xcf
imul esi, eax, 0x3e8
test esi, esi
je 0x4111f5
mov dword [ebp - 0x3c], ebx
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41115e
cmp dword [ebp - 0x30], 1
jne 0x41118a
jmp 0x411231
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x411218
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x411262
mov edx, 0x601
bt edx, ecx
jae 0x411262
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x32
cmp ebx, esi
jb 0x41113c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
jmp 0x41129b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov esi, 0xfd
cmovne esi, ecx
jmp 0x4112aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x411201
cmp edi, 5
je 0x411239
cmp edi, 6
jne 0x411247
mov esi, 0xec
jmp 0x4112aa
mov dword [ebp - 0x40], 0xcf
jmp 0x41129b
cmp edi, 0x7b
je 0x411240
cmp edi, 0x424
jne 0x411247
mov esi, 0xee
jmp 0x4112aa
cmp eax, 0x56
jg 0x41124e
cmp eax, 5
mov ebx, dword [ebp - 0x3c]
je 0x411278
cmp eax, 6
jne 0x411286
mov eax, 0xd9
jmp 0x411295
mov ebx, dword [ebp - 0x3c]
xor eax, eax
inc eax
jmp 0x411298
mov esi, 0xeb
jmp 0x4112aa
mov esi, 0xed
jmp 0x4112aa
mov esi, 0xef
jmp 0x4112aa
cmp eax, 0x57
mov ebx, dword [ebp - 0x3c]
je 0x41127f
cmp eax, 0x7a
jne 0x411286
mov eax, 0xdb
jmp 0x411295
cmp eax, 0x7c
je 0x41128d
cmp eax, 0x45b
mov ebx, dword [ebp - 0x3c]
jne 0x411286
mov eax, 0xde
jmp 0x411295
mov eax, 0xda
jmp 0x411295
mov eax, 0xdc
jmp 0x411295
mov eax, 0xdf
jmp 0x411295
mov eax, 0xdd
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4112c0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
lea eax, [esi + 2]
xor ecx, ecx
dec ecx
mov edx, 4
mov dword [ebp - 0x18], eax
mul edx
cmovo eax, ecx
push eax
call fcn.00411e4b
add esp, 4
mov edi, eax
mov dword [eax], str.MozillaMaintenance
mov dword [eax + 4], str.software_update
test esi, esi
jle 0x41130e
lea eax, [edi + 8]
shl esi, 2
push esi
push dword [ebp + 0xc]
push eax
call fcn.00424430
add esp, 0xc
push 5
push str.MozillaMaintenance
call fcn.004110e0
add esp, 8
cmp eax, 1
jne 0x411381
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x41138b
mov esi, eax
mov dword [ebp - 0x10], edi
push 0x10
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x411392
mov edi, eax
mov dword [ebp - 0x14], esi
mov esi, 0xffffff9c
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4113a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x64
cmp esi, 0x1324
jb 0x411353
jmp 0x4113a2
mov ebx, eax
add ebx, 0x4e20
jmp 0x4113b3
mov ebx, 0x4269
jmp 0x4113b3
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x426a
jmp 0x4113b0
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x14]
call esi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00412138
add esp, 4
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4113d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov ebx, dword [ebp + 8]
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.00414ee0
add esp, 0xc
push ebx
call fcn.00411f8b
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x41143e
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.0041213d
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x411460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x14
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor esi, esi
call fcn.00410280
test al, al
je 0x411511
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x411511
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x10]
mov dword [edi], 4
lea ecx, [ebp - 0x18]
xor esi, esi
push edi
push ecx
push esi
push esi
push str.ConsentPromptBehaviorAdmin
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x4114d3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411511
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x1c]
xor esi, esi
push edi
push eax
push esi
push esi
push str.PromptOnSecureDesktop
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x411511
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
or eax, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
sete cl
mov dword [eax], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebp
ret

Function at 0x427518
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427763

Function at 0x4291db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004291e6
Function at 0x4300a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x43e00c]
xor ecx, ebp
mov dword [esp + 0x68], ecx
lea edi, [esp + 0x64]
mov ecx, edi
push eax
call fcn.00401060
add esp, 4
mov edi, dword [edi]
test edi, edi
je 0x430163
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x34], xmm0
movups xmmword [eax + 0x24], xmm0
movups xmmword [eax + 0x14], xmm0
mov dword [eax], 0x44
mov dword [eax + 8], str.winsta0Default
lea ecx, [esp + 0x10]
movaps xmmword [ecx], xmm0
sub esp, 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test eax, eax
je 0x430170
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x430167
mov dword [ecx], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00412138
add esp, 4
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x43014e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43013b
lea eax, [esp + 0xc]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea ebx, [esp + 0xc]
mov eax, dword [ebx]
test eax, eax
mov ecx, 0x43880c
cmovne ecx, eax
sub esp, 8
mov dword [esp + 4], ecx
call fcn.004301d0
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x430145
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x430145

Function at 0x430490
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov esi, dword [ebp + 8]
mov eax, dword [0x43e00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4304fc
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x43052e
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x441200
call fcn.0041213d
add esp, 0xc
mov esi, 0x441200
mov word [0x441408], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412b41
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea eax, [esi + 4]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4304c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004122fc
cmp esi, 2
jne 0x430548
mov dword [eax], 2
jmp 0x43054e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x4304e7
call fcn.004122fc
mov dword [eax], 2
jmp 0x4304e7
mov dword [eax], 9
xor esi, esi
jmp 0x4304e7
Function at 0x10006f98
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x100244f8]
add edx, 0xffffddcc
mov dword [0x100244f8], edx
cmp ecx, 0
sete bl
cmp eax, 0
sete bh
and bl, bh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], bl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x100071c1
jmp 0x10006feb
mov dword [0x100244fc], 0xdb1
mov dword [0x100244f8], 0xc99
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, dword [0x100244f8]
add ecx, 0x22a9
mov dword [0x100244f8], ecx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x30]
mov edx, dword [edx + 0xc]
mov esi, edx
add esi, 0x14
mov edx, dword [edx + 0x14]
mov dword [0x100244f8], 0x1b91
cmp edx, esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], eax
je 0x100071c1
jmp 0x10007105
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [0x100244fc], 0x53e
mov edx, dword [ebp - 0x30]
mov esi, dword [edx]
mov edi, dword [ebp - 0x28]
cmp esi, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], ecx
je 0x100071c1
jmp 0x10007122
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x100071c1
mov eax, dword [ebp - 0x3c]
mov ecx, eax
add ecx, 1
mov edx, dword [ebp - 0x40]
mov si, word [edx + eax*2]
mov di, si
add di, 0xffbf
mov bx, si
add bx, 0x20
cmp di, 0x1a
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov word [ebp - 0x4a], si
mov word [ebp - 0x4c], bx
jb 0x100070cd
mov ax, word [ebp - 0x4a]
mov word [ebp - 0x4c], ax
mov ax, word [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x44]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
setne bh
mov al, bl
and al, bh
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x50]
cmp esi, edi
setb bh
and al, bh
test al, 1
mov byte [ebp - 0x51], bl
mov dword [ebp - 0x3c], esi
jne 0x1000708e
jmp 0x10007192
mov eax, 0x1b91
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, dword [ebp - 0x24]
mov byte [ebp - 0x52], dl
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, eax
add edx, 0x24
mov esi, dword [eax + 0x28]
mov edi, dword [eax + 0x10]
mov ebx, dword [ebp - 0x10]
cmp edi, ebx
sete bl
mov bh, byte [ebp - 0x52]
and bh, bl
test bh, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x60], edi
jne 0x1000707e
xor eax, eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x1b8e
mov edx, dword [ebp - 0x5c]
mov si, word [edx]
mov dword [0x100244f8], ecx
shr si, 1
movzx edi, si
cmp si, 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x3c], eax
je 0x10007051
jmp 0x1000708e
mov eax, 0x732
mov dword [0x100244f8], 0x732
mov cl, byte [ebp - 0x51]
test cl, 1
mov dword [ebp - 0x2c], eax
jne 0x100071b1
jmp 0x10007051
mov dword [0x100244fc], 0x81c
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10007316
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10024500], 0
mov dword [0x10024504], 0
mov dword [0x1002450c], 0
mov dword [0x100244fc], 0x146a
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1000745c
jmp 0x10007392
mov eax, dword [0x10024500]
mov ecx, dword [0x10024504]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10024500], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x34]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10024504], edx
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10024508], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x10024508]
mov edx, dword [0x10024504]
mov byte [edi + edx], cl
mov dword [0x100244f8], 0x352
mov edx, dword [0x10024500]
movzx edx, byte [edi + edx]
mov ebx, dword [0x10024504]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1002450c], ebx
mov edx, dword [0x100244fc]
add edx, 0x46c
mov dword [0x100244f8], edx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov byte [ebx + edx], cl
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x2c], edx
jne 0x1000737b
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100074e9
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x3c
mov dword [ebp - 8], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [0x100244fc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov edx, dword [ebp - 0x10]
add edx, 0xffffc7b6
mov dword [0x100244f8], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
jmp 0x100075f5
mov dword [0x100244f8], 0xb74
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x6f
je 0x1000758a
jmp 0x100075e1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov dx, word [eax + ecx*2 - 0x10]
mov word [ebp - 0x26], dx
mov ax, word [ebp - 0x26]
cmp ax, 0x6c
jne 0x100075e1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0xe], 0x6c
je 0x1000759f
jmp 0x100075e1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x10007629
jmp 0x100075e1
mov eax, 1
mov dword [0x100244f8], 0x312
mov dword [ebp - 0x2c], eax
jmp 0x10007676
mov eax, dword [ebp - 0x30]
add eax, 0xffffdce2
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [0x100244f8], eax
cmp ecx, 0x104
mov edx, ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], ecx
jl 0x100075f5
jmp 0x10007611
xor eax, eax
mov dword [0x100244fc], 0x3a3
mov dword [ebp - 0x2c], eax
jmp 0x10007676
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2], 0
mov esi, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], esi
jne 0x100075b6
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x10007534
jmp 0x100075e1
mov dword [0x100244f8], 0xec7
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff6
shl eax, 1
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
cmp word [eax], 0x64
jne 0x100075e1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff7
shl eax, 1
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
cmp word [eax], 0x64
je 0x10007560
jmp 0x100075e1
mov eax, dword [ebp - 0x2c]
add esp, 0x3c
pop esi
pop ebp
ret