joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411e50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x416908
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x411e78
add ecx, 8
inc eax
cmp ecx, 0x416990
jb 0x411e68
cmp dword [eax*8 + 0x416908], edx
lea ebx, [eax*8]
jne 0x412033
cmp dword [0x416230], 1
je 0x411ff8
cmp dword [0x416230], 0
jne 0x411eaf
cmp dword [0x416234], 1
je 0x411ff8
cmp edx, 0xfc
je 0x412033
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x411eec
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x411f30
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x41578c
push ebp
call fcn.0040efe0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4169bc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x41690c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00412df0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x430960]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x41200f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x41690c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x413380
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4133a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004101c0
add esp, 4
mov eax, 0xffffffff
pop esi
ret
test byte [esp + 0xc], 0x80
je 0x4133b3
and eax, 0xfffffffe
jmp 0x4133b6
or eax, 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4133d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004101c0
add esp, 4
mov eax, 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x6688a690
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.668992d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.668992d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6688a6f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x669a7054]
test esi, esi
jle 0x6688a810
mov eax, dword [0x669a7058]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6688a724
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6688a7a7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6688a710
mov dword [esp], ebx
call fcn.6688aee0
mov edi, eax
test eax, eax
je 0x6688a837
mov eax, dword [0x669a7058]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6688b020
mov edx, dword [0x669a7058]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6688a817
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6688a7a0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6688a7b0
add dword [0x669a7054], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x669a7058]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6688a7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6688a690
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6688a72e
mov eax, dword [0x669a7058]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6688a690
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6688a690
lea esi, [esi]
nop
Function at 0x6688ab50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x669a7064
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x669a705c]
sub esp, 4
test ebx, ebx
je 0x6688aba5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6688ab9e
test esi, esi
je 0x6688ab9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6688ab80
mov dword [esp], 0x669a7064
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6688aee0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x66880000], 0x5a4d
jne 0x6688af05
mov ecx, dword [0x6688003c]
cmp dword [ecx + 0x66880000], 0x4550
lea edx, [ecx + 0x66880000]
je 0x6688af10
ret
cmp word [ecx + 0x66880018], 0x10b
jne 0x6688af05
push esi
movzx eax, word [ecx + 0x66880014]
push ebx
movzx esi, word [ecx + 0x66880006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x66880000
test si, si
je 0x6688af58
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6688af4e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6688af5a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6688af40
xor eax, eax
pop ebx
pop esi
ret

Function at 0x66890290
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x669a70c0], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
sub esp, 0x10
mov dword [0x669a70c4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x66890300
mov dword [esp + 4], 0x668901a0
mov dword [esp], eax
mov dword [0x669a70bc], eax
call fcn.66899b50
test eax, eax
jne 0x66956d79
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x668902ea
Function at 0x6689c3c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x66960df5
push ebx
sub esp, 0x9c
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x66960e59]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.6688b1c0
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.66955980
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x6695e248], 0
jne 0x6689c4e6
mov byte [0x6695e248], 1
call fcn.669537f0
test eax, eax
je 0x6689c4b4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.6688a340
mov dword [esp], 2
mov esi, dword [fcn.668992d0]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x6689c4a4
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x669615f9
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x66956164
jmp 0x6695615c
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x6689c46a
mov dword [esp], 2
call dword [0x6695d0a0]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x66956157
mov dword [esp], 2
call dword [0x6695d0a0]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x669615a8
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov dword [esp], edi
call fcn.66899a38
call fcn.66953b20
call fcn.669536e0
call fcn.66953820
jmp 0x66956157
Function at 0x491d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 0
jmp 0x491d5f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x1ac00
jae 0x491df9
cmp dword [ebp - 8], 0x1ac14
jae 0x491df4
mov byte [ebp - 1], 5
push 1
push 0
lea ecx, [ebp - 1]
push ecx
call fcn.00492eb0
add esp, 0xc
movzx edx, byte [ebp - 1]
cmp edx, 3
je 0x491df4
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x4a4010]
mov byte [ebp - 2], cl
movzx ecx, byte [ebp - 2]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp - 0xc]
movzx edx, byte [edx + section..data]
xor ecx, edx
mov byte [ebp - 1], cl
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x4a4010]
mov byte [ebp - 3], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x4a4010]
add ecx, edx
mov edx, dword [ebp - 8]
mov byte [edx + 0x4a4010], cl
movzx eax, byte [ebp - 3]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x4a4010]
sub edx, eax
mov eax, dword [ebp - 8]
mov byte [eax + 0x4a4010], dl
jmp 0x491d56
mov esp, ebp
pop ebp
ret

Function at 0x491e20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x77e
mov dword [ebp - 8], 0
jmp 0x491e46
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x77e
jae 0x491ee7
cmp dword [ebp - 8], 0x792
jae 0x491ee2
mov byte [ebp - 1], 5
push 1
push 0
lea ecx, [ebp - 1]
push ecx
call fcn.00492eb0
add esp, 0xc
movzx edx, byte [ebp - 1]
cmp edx, 0x614
je 0x491ee2
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x4bec10]
mov byte [ebp - 2], cl
movzx ecx, byte [ebp - 2]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp - 0xc]
movzx edx, byte [edx + section..data]
xor ecx, edx
mov byte [ebp - 1], cl
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x4bec10]
mov byte [ebp - 3], cl
movzx edx, byte [ebp - 1]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x4bec10]
add ecx, edx
mov edx, dword [ebp - 8]
mov byte [edx + 0x4bec10], cl
movzx eax, byte [ebp - 3]
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x4bec10]
sub edx, eax
mov eax, dword [ebp - 8]
mov byte [eax + 0x4bec10], dl
jmp 0x491e3d
mov esp, ebp
pop ebp
ret

Function at 0x492b7c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x49e030]
test eax, eax
je 0x492bbb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x492bbb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x492bbb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x492bbb
cmp dword [ecx + 0x74], 0xe
jbe 0x492bbb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x102096ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1022a660]
jne 0x102096f6
repz ret
jmp fcn.1020999d

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x1022a634], 0x20c0
mov dword [ebp - 0x10], eax
call fcn.1020a72d
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x10209e46
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [0x1022a638], 0x21ab
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x1022a634], 0x10d
mov esi, dword [edx + eax + 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
xor eax, eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0
mov dword [ebp - 0x30], eax
je 0x10209f88
jmp 0x10209f25
mov al, byte [ebp - 0x31]
test al, 1
jne 0x10209ef0
jmp 0x10209ec7
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x31], cl
je 0x10209e90
jmp 0x10209f56
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x30], eax
jb 0x10209f37
jmp 0x10209f88
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x58], edi
mov dword [0x1022a634], 0x293e
mov dword [0x1022a638], 0x430
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x30], eax
jmp 0x10209f88
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
jmp 0x10209e99
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x40]
add edx, 1
mov ah, byte [ebp - 0x31]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x38], edx
jne 0x10209e99
jmp 0x10209e90
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10209f93
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
mov dword [0x1022a634], 0x1094
mov dword [0x1022a638], 0xffffee59
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
lea eax, [0x1020d81b]
mov ecx, 0xe
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], ecx
call fcn.1020b3bc
mov dword [0x1022a638], 0x295
mov dword [0x1022a634], 0x18f0
call fcn.1020b70c
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
call fcn.1020b589
xor ecx, ecx
mov dword [0x1022a634], 0xcc7
mov dword [0x1022a638], 0xfffffa51
cmp eax, 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
je 0x1020a0e0
mov eax, dword [ebp - 0x34]
mov dword [0x1022a638], 0x1df7
mov dword [0x1022a634], 0xfffffc2a
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
call fcn.1020b465
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x40], ecx
mov dword [0x1022a638], 0xdf3
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x2c], ecx
cmp ecx, 0
mov dword [ebp - 0x38], eax
je 0x1020a0e0
mov eax, dword [ebp - 0x3c]
add eax, 0x1156
mov ecx, dword [0x1022a634]
add ecx, 0xffffdcf1
mov dword [0x1022a634], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add esp, 0x4c
pop ebp
ret
Function at 0x1020a0e8
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 [0x1022a634], 0x2124
mov dword [0x1022a63c], 0
mov dword [0x1022a640], 0
mov dword [0x1022a64c], 0
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 0x1020a265
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, edx
add edi, 1
add eax, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x1022a63c], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1022a640], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x1022a644], cl
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov edx, dword [0x1022a634]
add edx, 0x44e
mov dword [0x1022a634], edx
mov cl, byte [0x1022a644]
mov edx, dword [0x1022a640]
mov byte [ebx + edx], cl
mov edx, dword [0x1022a63c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1022a640]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1022a64c], ecx
mov dword [0x1022a634], 0x103c
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov ch, byte [edx + esi]
mov byte [0x1022a651], ch
mov byte [0x1022a652], cl
mov dword [0x1022a634], 0x1a50
xor ch, cl
mov byte [0x1022a650], ch
mov dword [0x1022a638], 0x16d1
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [0x1022a634]
add edx, 0xfffffe7e
mov dword [0x1022a634], edx
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x34], edi
je 0x1020a265
mov eax, dword [0x1022a63c]
mov dword [ebp - 0x38], eax
mov eax, dword [0x1022a640]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x1020a14b
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1020a3a1
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [0x1022a638], 0x61d
mov dword [ebp - 4], 0
mov dword [0x1022a634], 0x12
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 [0x1022a634], 0x1675
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1020a403
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1020a493
jmp 0x1020a4e9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1020a437
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, 0x104
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
jl 0x1020a403
mov eax, dword [ebp - 0x1c]
mov dword [0x1022a634], 0x1eae
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1020a4e9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x6f
jne 0x1020a4e9
mov dword [0x1022a634], 0xfffffa07
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1020a3eb
jmp 0x1020a4e9
mov dword [0x1022a634], 0x2aa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
sete dl
mov byte [ebp - 0x25], dl
mov al, byte [ebp - 0x25]
test al, 1
jne 0x1020a4b9
jmp 0x1020a4e9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x10]
mov word [ebp - 0x28], dx
mov ax, word [ebp - 0x28]
cmp ax, 0x6c
jne 0x1020a4e9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x1020a4f8
xor eax, eax
mov dword [0x1022a634], 0x159c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret