joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [0x46a758]
test edi, edi
je 0x40a6ac
mov eax, dword [0x46a760]
mov edx, dword [0x46a75c]
mov ecx, dword [ebp + 0x10]
sub eax, edx
cmp eax, ecx
jle 0x40a676
mov eax, ecx
mov esi, dword [ebp + 0xc]
mov ecx, eax
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x46a75c]
add ecx, eax
mov eax, dword [0x46a760]
cmp ecx, eax
mov dword [0x46a75c], ecx
jne 0x40a6ac
mov dword [0x46a758], 0
mov ecx, dword [ebp + 0x10]
jcxz 0x40a6cf
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lodsb al, byte [esi]
xor al, bl
and eax, 0xff
shr ebx, 8
xor ebx, dword [eax*4 + 0x46a138]
loop 0x40a6b8
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40d1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [0x45e0c8]
cmp edx, eax
jbe 0x40d1d4
mov edx, eax
mov dword [ebp + 0xc], edx
test edx, edx
je 0x40d210
push ebx
sub eax, edx
push esi
push edi
mov dword [0x45e0c8], eax
mov esi, dword [0x45e0cc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [0x45e0d0]
lodsb al, byte [esi]
xor al, byte [ebx]
stosb byte es:[edi], al
mov ebx, dword [ebx + 4]
loop 0x40d1f4
mov dword [0x45e0cc], esi
mov dword [0x45e0d0], ebx
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret
mov eax, edx
pop ebp
ret
Function at 0x40ec30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0x27
jle 0x40ec4c
pop edi
pop ebp
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x44b454]
mov ecx, eax
add ecx, esi
mov eax, 0x98520c4
imul ecx, ecx, 0x2200afaf
sub eax, ecx
mov ebx, dword [esp + 0x14]
shr eax, 0x12
mov ecx, eax
or esi, 0xffffffff
and ecx, 0xff
xor edx, edx
mov eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
test edi, edi
mov dword [0x44b454], eax
jl 0x40ecb1
lea ecx, [ebx + 8]
mov al, byte [edx + ebp]
mov byte [ecx + edx], al
inc edx
cmp edx, edi
jle 0x40ec9c
cmp edx, 0x27
jg 0x40ece6
mov eax, dword [0x44b454]
lea ecx, [ebx + 8]
jmp 0x40ecbb
mov eax, dword [0x44b454]
lea edi, [eax + eax*2]
lea edi, [eax + edi*4]
shl edi, 4
add edi, eax
shl edi, 8
sub edi, eax
lea edi, [eax + edi*4 + 0x269ec3]
mov eax, edi
mov dword [0x44b454], edi
shr eax, 0x12
mov byte [ecx + edx], al
inc edx
cmp edx, 0x27
jle 0x40ecb6
mov edx, dword [0x44b454]
mov dword [ebx], edx
mov edx, 0xfffffff8
sub edx, ebx
mov edi, esi
xor eax, eax
mov al, byte [ecx]
and edi, 0xff
xor edi, eax
shr esi, 8
mov eax, dword [edi*4 + 0x46a138]
xor esi, eax
mov eax, dword [0x44b454]
lea edi, [eax + eax*2]
lea edi, [eax + edi*4]
shl edi, 4
add edi, eax
shl edi, 8
sub edi, eax
lea eax, [eax + edi*4 + 0x269ec3]
mov dword [0x44b454], eax
shr eax, 0x12
xor byte [ecx], al
inc ecx
lea eax, [edx + ecx]
cmp eax, 0x27
jle 0x40ecf5
mov dword [ebx + 4], esi
mov byte [ebx + 0x30], 0
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
ret
Function at 0x410720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x46a138
mov eax, edx
mov esi, 8
test al, 1
je 0x41073c
shr eax, 1
xor eax, 0xedb88320
jmp 0x41073e
shr eax, 1
dec esi
jne 0x41072f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x46a534
jbe 0x410728
xor ecx, ecx
pop esi
lea eax, [ecx*4]
or al, 2
and eax, 0xffff
mov edx, eax
xor edx, 1
imul edx, eax
sar edx, 8
mov byte [ecx + 0x466138], dl
inc ecx
cmp ecx, 0x4000
jb 0x410752
ret
Function at 0x4122b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x2408
call fcn.00418e60
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x2e7c]
push edi
push str.Unpacking_dictionary...
mov ecx, ebp
mov dword [esp + 0x18], ebp
call fcn.00428ce1
call fcn.0042dd0c
mov eax, dword [eax + 0xc]
push 0xa
push 0x65
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4122fa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2408
ret
call fcn.0042dd0c
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
call fcn.0042dd0c
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41232b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2408
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx + 0x74], edi
xor edi, edi
push edi
mov ecx, ebx
mov dword [ebx + 0x70], eax
call fcn.00411240
test eax, eax
je 0x412496
mov eax, dword [ebx + 0x2df4]
mov esi, dword [eax]
mov ecx, dword [esi + 8]
push ecx
call fcn.0042937f
add esp, 4
mov dword [0x46a754], eax
test eax, eax
je 0x41248f
call fcn.00410720
lea edi, [esp + 0x12]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x12], 0x40
mov byte [esp + 0x13], 0
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x4123b3
mov al, byte [esi + 1]
mov ebp, eax
lea eax, [esp + 0x20]
xor ecx, ecx
mov cl, byte [esp + edx + 0x12]
add ecx, ebp
inc edx
mov dword [eax - 8], ecx
mov dword [eax - 4], eax
add eax, 8
cmp edx, edi
jl 0x412399
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea edx, [esp + 0x18]
mov dword [0x45e0d0], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [0x46a754]
mov dword [esp + edi*8 + 0x14], edx
mov dword [0x45e0cc], ecx
mov edx, dword [esi + 4]
mov dword [0x45e0c8], edx
mov dword [0x4660ec], 0xffffffff
mov dword [0x46a758], eax
mov dword [0x46a75c], 0
mov ecx, dword [esi + 8]
xor eax, eax
mov dword [0x46a760], ecx
mov al, byte [esi]
cmp eax, 4
ja case.default.0x412406
jmp dword [eax*4 + 0x4124d0]
lea edx, [esp + 0x418]
push 0x2000
push edx
call fcn.0040d1c0
add esp, 8
test eax, eax
je case.default.0x412406
mov ecx, dword [0x4660ec]
push eax
lea eax, [esp + 0x41c]
push eax
push ecx
call fcn.0040a650
lea edx, [esp + 0x424]
push 0x2000
push edx
mov dword [0x4660ec], eax
call fcn.0040d1c0
add esp, 0x14
test eax, eax
jne 0x412426
jmp case.default.0x412406
call fcn.004013e0
mov eax, dword [esi + 8]
push eax
call fcn.00401480
jmp 0x412479
call fcn.004013e0
mov ecx, dword [esi + 8]
push ecx
call fcn.004023d0
add esp, 4
mov eax, dword [0x4660ec]
mov ecx, dword [esi + 0xc]
not eax
xor edx, edx
cmp eax, ecx
sete dl
mov edi, edx
mov ecx, ebx
call fcn.004118e0
test edi, edi
mov dword [ebx + 0x70], 0
je 0x4124c2
mov eax, dword [0x46a754]
push str.Ready
mov ecx, dword [eax]
add eax, 4
mov dword [0x46a750], ecx
mov ecx, ebp
mov dword [0x46a754], eax
call fcn.00428ce1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2408
ret
Function at 0x416910
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41695a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41695a
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
add edx, eax
add eax, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
xor eax, eax
mov al, byte [esi]
pop esi
ret
or eax, 0xffffffff
pop esi
ret

Function at 0x41bb55
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44f1d0
cmp edx, dword [eax]
je 0x41bb77
add eax, 8
inc ecx
cmp eax, 0x44f260
jl 0x41bb68
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44f1d0]
jne 0x41bca5
mov eax, dword [0x46c790]
cmp eax, 1
je 0x41bc7f
test eax, eax
jne 0x41bba8
cmp dword [0x44eae4], 1
je 0x41bc7f
cmp edx, 0xfc
je 0x41bca5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41bbdf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041dcb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419b20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41bc22
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419b20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4354c4
push edi
call fcn.0041e040
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041dcb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041dcc0
lea eax, [ebp - 0xa0]
push 0x4354a4
push eax
call fcn.0041dcc0
push dword [esi + 0x44f1d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041dcc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041dfa9
add esp, 0x2c
pop edi
jmp 0x41bca5
lea eax, [ebp + 8]
lea esi, [esi + 0x44f1d4]
push 0
push eax
push dword [esi]
call fcn.00419b20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4234d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00418e60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42359b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42359b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42354e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x423559
or bh, 8
and edi, 0x8000000
je 0x423574
mov eax, dword [0x46df3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42359b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42399b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4239bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4239da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x425898
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4258ba
cmp dword [edi + 0x3c], 0
jne 0x4258ba
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042dd0c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004258e7
pop edi
pop esi
pop ebx
ret 8

Function at 0x426e60
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x426e98
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004298c6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042989e
jmp 0x426ea4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x428463
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4284a5
call fcn.0042dd0c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4284a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42849c
xor eax, eax
jmp 0x4284ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004284b3
pop edi
pop esi
pop ebx
ret 4

Function at 0x42eb2a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42eb58
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42eb76
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042ea90
jmp 0x42eb76
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42eb76
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042ea90
test edi, edi
mov eax, edi
jne 0x42eb60
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10253b44
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x16], dh
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
mov dl, byte [ebp - 0x16]
and cl, dl
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x10253d27
jmp 0x10253c5f
mov dword [0x1026ea5c], 0x667
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
mov dword [ebp - 0x2c], eax
jae 0x10253d06
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x20], eax
mov word [ebp - 0x32], dx
mov word [ebp - 0x34], di
jb 0x10253be8
mov ax, word [ebp - 0x32]
mov word [ebp - 0x34], ax
mov ax, word [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov byte [ebp - 0x35], bl
jne 0x10253d06
jmp 0x10253b8e
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x10253d27
mov dword [0x1026ea5c], 0xe77
mov eax, dword [ebp - 0x3c]
add eax, 0x24
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x3d]
and bh, bl
test bh, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x48], esi
jne 0x10253c17
jmp 0x10253cd5
mov dword [0x1026ea60], 0x25ed
mov dword [0x1026ea5c], 0x14fc
mov ecx, dword fs:[0x18]
mov dword [0x1026ea5c], 0xffffeafc
add ecx, 0x30
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov dword [0x1026ea60], 0xffffd3cf
mov ecx, dword [ecx + 0xc]
add ecx, 0x14
mov edx, dword [ebp - 0x10]
cmp edx, 0
setne bl
mov esi, ecx
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x3d], bl
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x54]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x50]
cmp eax, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], ecx
je 0x10253d27
jmp 0x10253c27
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov dx, word [ecx]
mov dword [0x1026ea5c], 0x26b6
shr dx, 1
movzx esi, dx
cmp dx, 0
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], edi
je 0x10253cbc
jmp 0x10253bb4
mov al, byte [ebp - 0x35]
test al, 1
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x54], ecx
jne 0x10253d15
jmp 0x10253cbc
mov dword [0x1026ea60], 0xffffc994
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
jmp 0x10253d27
mov eax, dword [ebp - 0x1c]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10254162
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1026ea68], 0
mov byte [0x1026ea6c], 0
mov dword [0x1026ea5c], 0x1f87
mov dword [0x1026ea64], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x102541d6
mov dword [0x1026ea5c], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x1026ea5c], 0xd51
mov dword [0x1026ea64], 0
mov dword [ebp - 0x20], eax
jmp 0x102541fe
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1026ea64]
add eax, 1
mov dword [0x1026ea64], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x102541d6
jmp 0x102541bb
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1026ea70], 0
mov dword [0x1026ea5c], 0x17de
mov edx, dword [0x1026ea68]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x1026ea70], edi
mov dword [0x1026ea60], 0x51e
mov dword [0x1026ea5c], 0xffffe312
mov eax, edi
cdq
idiv ecx
mov dword [0x1026ea68], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x1026ea6c], cl
mov dword [0x1026ea5c], 0x1980
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x1026ea5c]
add ecx, 0x1ff7
mov dword [0x1026ea60], ecx
mov cl, byte [0x1026ea6c]
mov edx, dword [0x1026ea68]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x1026ea5c], 0x5e6
mov edx, dword [0x1026ea60]
add edx, 0xfffffd1a
mov dword [0x1026ea60], edx
mov edx, dword [0x1026ea64]
add edx, 1
mov dword [0x1026ea64], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x102541fe
jmp 0x102541a9
Function at 0x102542f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1026ea5c], 0xeb4
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10254359
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 0x10256528]
mov dl, byte [eax + 0x102564f9]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x13c], eax
je 0x102543c0
jmp 0x10254328
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
xor edx, edx
lea esi, section..data
imul edi, eax, 0xb4
mov ebx, esi
add ebx, edi
add ebx, 0xb0
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add esi, ebx
add esi, 0xa8
movzx esi, word [esi]
xor esi, edi
add esi, ecx
add eax, 1
cmp eax, 0x21a
mov ecx, esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x138], eax
je 0x10254328
jmp 0x10254359
lea eax, [ebp - 0x12c]
mov dword [0x1026ea5c], 0xf0b
mov dword [ebp - 0x144], eax
call fcn.10255125
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.10253e8b
mov ecx, eax
mov dword [0x1026ea7c], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x1026ea60]
add edx, 0xffffd942
mov dword [0x1026ea5c], edx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0xb4
mov edi, edx
add edi, esi
add edi, 0xb0
mov esi, dword [edi]
imul edi, eax, 0xb4
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xb4
add edx, ebx
add edx, 0xa8
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.1025467b
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x21a
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x10254440
lea eax, [ebp - 0x10c]
mov dword [0x1026ea60], 0xe6d
mov dword [ebp - 0x160], eax
lea eax, [0x10256507]
mov ecx, 0x20
mov edx, dword [ebp - 0x160]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x164], ecx
call fcn.10254162
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.10254c71
xor eax, eax
mov dword [0x1026ea5c], 0x1e27
mov ecx, dword [ebp - 0x148]
add ecx, 0x11ce5c
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x112200
mov ecx, dword [ebp - 0x148]
add ecx, 0x22c33
mov dword [edx + 8], ecx
mov ecx, dword [0x1026ea5c]
add ecx, 0xffffe53e
mov dword [0x1026ea5c], ecx
mov dword [edx + 0xc], 0x2020
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret