joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405539
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4055f8
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ebx, eax
test ebx, ebx
je 0x4055de
test edi, edi
je 0x4055b3
cmp byte [edi], 0
je 0x4055b3
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x108]
lea ecx, [ebp - 0x108]
cmp eax, ecx
jbe 0x4055ab
mov cl, byte [eax - 1]
cmp cl, 0x5c
je 0x4055ab
cmp cl, 0x2f
je 0x4055ab
mov byte [eax], 0x5c
inc eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4055de
test al, 0x10
je 0x4055de
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push dword [esi + 0x50]
call dword [sym.imp.SETUPAPI.dll_SetupSetDirectoryIdA]
mov ebx, eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4055f8
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
xor eax, eax
test ebx, ebx
setne al
pop ebx
leave
ret 8

Function at 0x405c06
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 4], edi
je 0x405c3a
push dword [ebp - 4]
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x405c4d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
neg eax
sbb eax, eax
inc eax
jmp 0x405cda
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov esi, 0x2710
push esi
push 2
push edi
push edi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebp - 8]
call edi
push dword [ebp - 8]
mov ebx, 0x102
cmp eax, ebx
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp + 0xb], 0
jne 0x405cd5
cmp dword [ebp - 4], 0
je 0x405cd5
push dword [ebp - 4]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp - 8], eax
je 0x405cd5
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne byte [ebp + 0xb]
cmp byte [ebp + 0xb], 0
je 0x405ccc
push esi
push dword [ebp - 8]
call edi
cmp eax, ebx
setne byte [ebp + 0xb]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x406019
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, eax
call dword [0x40b070]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x4096ec
push 7
xor ebx, ebx
push ebx
push 0x409220
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40613c
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp esi, ebx
jl 0x40613c
cmp edi, ebx
je 0x40607c
cmp byte [edi], bl
je 0x40607c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
mov esi, eax
cmp esi, ebx
jl 0x40613c
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
je 0x40608f
cmp byte [ecx], bl
jne 0x406092
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x44]
mov esi, eax
cmp esi, ebx
jl 0x40613c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0x31
push dword [edx + 4]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 4]
lea edx, [ebp + 0x10]
push edx
push 0x409230
mov dword [ebp + 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x40612d
mov edi, dword [ebp + 0xc]
call fcn.0040615a
neg al
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov esi, eax
js 0x40612d
cmp edi, ebx
jne 0x4060f6
xor eax, eax
jmp 0x406120
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.00408470
mov eax, esp
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
mov esi, eax
call fcn.00406a73
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push ebx
push eax
push ecx
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40613a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
mov eax, dword [ebp - 4]
setge byte [ebp + 0xf]
cmp eax, ebx
je 0x40614d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [ebp + 0xf]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x40615a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [edi], 0
push ebx
push esi
mov esi, edi
je 0x4061c2
mov al, byte [esi]
cmp al, 0x5c
je 0x406171
cmp al, 0x2f
jne 0x4061b4
lea eax, [edi + 1]
cmp esi, eax
jbe 0x4061b4
cmp byte [esi - 1], 0x3a
je 0x4061b4
push edi
lea ecx, [ebp - 4]
mov eax, esi
sub eax, edi
push ecx
call fcn.00403a7e
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40619f
test al, 0x10
jmp 0x4061aa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
lea eax, [ebx - 0x10]
je 0x4061c8
call fcn.00404c4b
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x406167
mov al, 1
pop esi
pop ebx
leave
ret
call fcn.00404c4b
xor al, al
jmp 0x4061c4
Function at 0x4061d1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push str.DeleteDir
push dword [edi + 0x50]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x40624c
push esi
mov esi, dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
push ebx
push 0x104
lea eax, [ebp - 0x124]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
call esi
push ebx
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 0x1c], bl
call esi
cmp byte [ebp - 0x1c], bl
lea eax, [ebp - 0x124]
push eax
jne 0x406236
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40623c
push edi
call fcn.00406251
lea eax, [ebp - 0x10]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x4061fb
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x406251
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 6
xor eax, eax
pop ecx
push dword [ebp + 0xc]
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea esi, [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
call fcn.00403a4f
push 0
mov eax, esi
call fcn.0040697c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], esi
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [esi - 0x10]
call fcn.00404c4b
pop edi
pop esi
leave
ret 8
Function at 0x407915
Capabilities:
Terminate process

Disassembly:
push 0x11c
push 0x4094b8
call fcn.00408210
mov eax, dword [0x40b040]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x40b2dc]
test eax, eax
je 0x407955
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x407a5f
mov eax, dword [ebp + 8]
dec eax
je 0x407971
mov ebx, str.Unknown_security_failure_detected_
mov dword [ebp - 0x12c], str.A_security_error_of_unknown_cause_has_been_detected_which_has_ncorrupted_the_programs_internal_state.__The_program_cannot_safely_ncontinue_execution_and_must_now_be_terminated._n
mov edi, 0xd4
jmp 0x407985
mov ebx, str.Buffer_overrun_detected_
mov dword [ebp - 0x12c], str.A_buffer_overrun_has_been_detected_which_has_corrupted_the_programs_ninternal_state.__The_program_cannot_safely_continue_execution_and_must_nnow_be_terminated._n
mov edi, 0xb9
mov byte [ebp - 0x20], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4079b4
push str._program_name_unknown_
lea eax, [ebp - 0x124]
push eax
call fcn.00408370
pop ecx
pop ecx
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], eax
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0xb
cmp eax, 0x3c
jbe 0x4079fb
lea eax, [ebp - 0x124]
push eax
call esi
lea ecx, [ebp - 0x124]
sub ecx, 0x31
add eax, ecx
mov dword [ebp - 0x128], eax
push 3
push 0x409304
push eax
call fcn.00407db0
add esp, 0xc
push dword [ebp - 0x128]
call esi
lea eax, [eax + edi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.00408470
mov dword [ebp - 0x18], esp
mov edi, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x409300
push ebx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.Program:
push edi
call esi
push dword [ebp - 0x128]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0x12c]
push edi
call esi
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40859e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4085cc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4085d3
cmp ebx, dword [eax + 4]
jae 0x4085d3
xor eax, eax
jmp 0x4087c3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4085e4
xor eax, eax
inc eax
jmp 0x4087c2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4085fa
cmp ecx, edx
jae 0x40873f
cmp dword [eax + 4], 0
je 0x408603
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4085eb
cmp dword [ebp + 8], 0
je 0x408625
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40873f
cmp eax, esi
jae 0x40873f
mov eax, dword [0x40b2e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40864a
cmp dword [esi*4 + 0x40b2e8], edi
je 0x408743
inc esi
cmp esi, eax
jl 0x408638
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4087bf
cmp dword [ebp - 8], 0x1000000
jne 0x4087bf
test byte [ebp - 0xc], 0xcc
je 0x4086c8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4087bf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4087bf
cmp word [eax + 0x18], 0x10b
jne 0x4087bf
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4087bf
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4086c8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4086c8
test byte [ecx + 0x27], 0x80
jne 0x40873f
push 1
push 0x40b328
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4085dc
mov ecx, dword [0x40b2e0]
test ecx, ecx
mov edx, ecx
jle 0x4086fc
lea eax, [ecx*4 + 0x40b2e4]
cmp dword [eax], edi
je 0x4086fc
dec edx
sub eax, 4
test edx, edx
jg 0x4086f0
test edx, edx
jne 0x40872d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408709
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408721
lea eax, [edx*4 + 0x40b2e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40870f
cmp ecx, 0x10
jge 0x40872d
inc ecx
mov dword [0x40b2e0], ecx
push 0
push 0x40b328
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4085dc
xor eax, eax
jmp 0x4087c2
test esi, esi
jle 0x4085dc
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40b328
call ebx
test eax, eax
jne 0x4085dc
cmp dword [esi*4 + 0x40b2e8], edi
je 0x408799
mov eax, dword [0x40b2e0]
lea esi, [eax - 1]
test esi, esi
jl 0x408787
cmp dword [esi*4 + 0x40b2e8], edi
je 0x408783
dec esi
jns 0x408777
test esi, esi
jge 0x408797
cmp eax, 0x10
jge 0x408792
inc eax
mov dword [0x40b2e0], eax
lea esi, [eax - 1]
jmp 0x408799
je 0x4087b1
xor ecx, ecx
test esi, esi
jl 0x4087b1
lea eax, [ecx*4 + 0x40b2e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40879f
push 0
push 0x40b328
call ebx
jmp 0x4085dc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4844ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x48453e
test eax, edx
je 0x484541
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x484501
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x484527
add ecx, 4
js 0x484517
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x484524
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x48454d
test edx, edx
jne 0x4844f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x49e5a8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x49e5ae
ret
Function at 0x4e047c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
test eax, 0x4000000
je 0x4e0491
or edx, 0x200
test eax, 0x20000000
je 0x4e04c4
test eax, 0x40000000
je 0x4e04b0
test eax, 0x80000000
je 0x4e04ab
or edx, 0x40
jmp 0x4e04eb
or edx, 0x20
jmp 0x4e04eb
test eax, 0x80000000
je 0x4e04bf
or edx, 0x80
jmp 0x4e04eb
or edx, 0x10
jmp 0x4e04eb
test eax, 0x40000000
je 0x4e04dc
test eax, 0x80000000
je 0x4e04d7
or edx, 4
jmp 0x4e04eb
or edx, 2
jmp 0x4e04eb
test eax, 0x80000000
je 0x4e04e8
or edx, 8
jmp 0x4e04eb
or edx, 1
mov eax, edx
pop ebp
ret 4
Function at 0x1000478f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1028c69c]
jne 0x10004799
repz ret
jmp fcn.10005ca1

Function at 0x100079d0
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.10004566
and dword [ebp - 4], 0
cmp dword [0x1028e20c], 0
mov ebx, eax
jne 0x10007a81
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10007b32
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10007b32
push eax
call fcn.100044f4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1028e20c], eax
call esi
push eax
call fcn.100044f4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1028e210], eax
call esi
push eax
call fcn.100044f4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1028e214], eax
call esi
push eax
call fcn.100044f4
pop ecx
mov dword [0x1028e21c], eax
test eax, eax
je 0x10007a81
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100044f4
pop ecx
mov dword [0x1028e218], eax
mov eax, dword [0x1028e218]
cmp eax, ebx
je 0x10007ad9
cmp dword [0x1028e21c], ebx
je 0x10007ad9
push eax
call fcn.1000456f
push dword [0x1028e21c]
mov esi, eax
call fcn.1000456f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10007ad9
test edi, edi
je 0x10007ad9
call esi
test eax, eax
je 0x10007ad0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10007ad0
test byte [ebp - 0xc], 1
jne 0x10007ad9
or dword [ebp + 0x10], 0x200000
jmp 0x10007b12
mov eax, dword [0x1028e210]
cmp eax, ebx
je 0x10007b12
push eax
call fcn.1000456f
pop ecx
test eax, eax
je 0x10007b12
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10007b12
mov eax, dword [0x1028e214]
cmp eax, ebx
je 0x10007b12
push eax
call fcn.1000456f
pop ecx
test eax, eax
je 0x10007b12
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1028e20c]
call fcn.1000456f
pop ecx
test eax, eax
je 0x10007b32
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10007b34
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009f00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1028c240], 0
mov byte [0x1028c244], 0
mov dword [0x1028c23c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10009f56
xor eax, eax
mov ecx, 0x1fdd
mov dword [0x1028c23c], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10009f88
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1028c234], 0x1fdd
mov eax, dword [0x1028c23c]
add eax, 1
mov dword [0x1028c23c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10009f56
jmp 0x10009f3d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
add eax, 0xfffff6b9
mov dword [0x1028c248], 0
mov dword [ebp - 0x28], eax
mov eax, ecx
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x1028c240]
mov ebx, dword [ebp - 0x18]
movzx esi, byte [ebx + ecx]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1028c248], esi
mov dword [0x1028c238], 0x1dfc
mov eax, esi
cdq
mov esi, dword [ebp - 0x2c]
idiv esi
mov dword [0x1028c240], edx
mov esi, dword [ebp - 0x28]
mov dword [0x1028c234], esi
mov bl, byte [ebx + ecx]
mov byte [0x1028c244], bl
mov dword [0x1028c238], 0xe30
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov ecx, dword [0x1028c238]
add ecx, 0xfffffd81
mov dword [0x1028c234], ecx
mov bl, byte [0x1028c244]
mov ecx, dword [0x1028c240]
mov byte [esi + ecx], bl
mov ecx, dword [0x1028c23c]
add ecx, 1
mov dword [0x1028c23c], ecx
cmp ecx, 0x100
mov dword [ebp - 0x30], ecx
jge 0x1000a05f
mov eax, dword [0x1028c234]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
jmp 0x10009f88
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000a1e0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1028c234], 0x512
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x1000a24c
jmp 0x1000a26a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x1000a2eb
jmp 0x1000a2dc
mov eax, dword [ebp - 0x18]
mov dword [0x1028c238], 0x11c4
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
je 0x1000a283
jmp 0x1000a2dc
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x1000a214
jmp 0x1000a24c
mov dword [0x1028c238], 0x2624
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000a2dc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x1000a2dc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1000a2dc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000a2dc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1000a22c
xor eax, eax
mov dword [0x1028c238], 0x1864
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x1000a540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1028c23c], 0
mov dword [0x1028c240], 0
mov dword [0x1028c24c], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x1000a6a8
jmp 0x1000a5aa
mov eax, dword [0x1028c23c]
mov ecx, dword [0x1028c240]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x1000a5bb
jmp 0x1000a6a8
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
jmp 0x1000a5bb
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add edx, 1
mov edi, eax
add edi, 1
mov dword [0x1028c234], 0x1e8a
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv esi
mov dword [0x1028c23c], edx
mov ebx, dword [ebp - 0x1c]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1028c240], edx
mov dword [0x1028c234], 0x40c5
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1028c244], cl
mov dword [0x1028c238], 0x471
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1028c244]
mov edx, dword [0x1028c240]
mov byte [ebx + edx], cl
mov edx, dword [0x1028c23c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1028c240]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1028c24c], ecx
mov dword [0x1028c234], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x1028c238], 0xbad
mov dword [0x1028c234], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x20], edi
je 0x1000a5a5
jmp 0x1000a58c
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret