joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005b72
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100a2cc]
push esi
xor esi, esi
cmp word [0x100b898], si
mov dword [ebp - 4], eax
jne 0x1005bb2
cmp dword [0x100b884], esi
jne 0x1005ba9
call fcn.01003f40
test eax, eax
je 0x1005bc4
cmp word [0x100b898], si
jne 0x1005bb2
call fcn.010046a7
test eax, eax
je 0x1005bc4
call fcn.01003eb9
test eax, eax
je 0x1005bc4
call fcn.010058c5
test eax, eax
jne 0x1005bcb
xor eax, eax
jmp 0x1005cd3
push ebx
push edi
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x1001264
lea eax, [ebp - 0x10c]
push eax
call fcn.01005f34
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
mov edi, 0x100ac44
je 0x1005c1c
push 0x10014a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1005c1c
push esi
push edi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x100b884], esi
jne 0x1005c43
cmp dword [0x100b490], esi
jne 0x1005c43
call fcn.010042df
test eax, eax
jne 0x1005c43
xor eax, eax
jmp 0x1005cd1
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x1005c6a
push esi
push 0x10
push esi
push esi
push 0x4bc
push esi
call fcn.01003a62
call fcn.0100369c
mov dword [0x100aa5c], eax
jmp 0x1005c3c
cmp dword [0x100b88c], esi
jne 0x1005c7b
call fcn.01005494
test eax, eax
je 0x1005c3c
test byte [0x100bba8], 0xc0
jne 0x1005c99
xor eax, eax
mov ax, word [0x100aa64]
push eax
call fcn.01001fae
mov dword [0x100ab84], eax
jmp 0x1005c9f
mov dword [0x100ab84], esi
cmp dword [0x100b884], esi
jne 0x1005cb8
cmp dword [0x100b490], esi
jne 0x1005cb8
call fcn.01005513
test eax, eax
je 0x1005c3c
cmp word [0x100b898], si
jne 0x1005cce
cmp dword [0x100b884], esi
jne 0x1005cce
call fcn.0100489f
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01005e37
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005fdf
xor eax, eax
jmp 0x1005fe7
shr eax, 4
not eax
and eax, 1
ret 4
Function at 0x1006124
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb4
mov eax, dword [0x100a2cc]
and dword [ebp - 0x30], 0
cmp dword [0x100a2d8], 0xfffffffe
mov dword [ebp + 0x74], eax
mov dword [ebp - 0x38], 0xc
jne 0x1006213
and dword [0x100a2d8], 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1006213
cmp dword [ebp - 0x1c], 1
jne 0x1006213
cmp dword [ebp - 0x28], 4
jne 0x1006213
cmp dword [ebp - 0x24], 0xa
jae 0x1006213
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1006213
lea eax, [ebp - 0x34]
push eax
push 0x20019
push 0
push 0x10014e4
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1006213
push edi
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x1001271
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x34]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1006213
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.0100601e
test eax, eax
je 0x1006213
and dword [ebp - 0x30], 0x3ff
cmp dword [ebp - 0x30], 1
je 0x1006209
cmp dword [ebp - 0x30], 0xd
jne 0x1006213
mov dword [0x100a2d8], 1
mov ecx, dword [ebp + 0x74]
mov eax, dword [0x100a2d8]
call fcn.01005e37
add ebp, 0x78
leave
ret

Function at 0x1006225
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x100625b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x100625f
xor eax, eax
jmp 0x1006275
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x1007528
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x1007563
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x1007540
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x100757f
dec esi
je 0x1007578
dec esi
jne 0x1007584
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x4f7c30
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x4f7c8b
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub edi, esi
mov dword [ebp + 0xc], eax
mov ecx, dword [edi + esi]
mov edx, dword [esi]
mov eax, ecx
sub eax, edx
sub eax, ebx
xor eax, ecx
mov dword [ebp + 0x10], edx
xor dword [ebp + 0x10], ecx
or eax, dword [ebp + 0x10]
add esi, 4
xor eax, ecx
shr eax, 0x1f
mov ebx, eax
mov eax, edx
sub eax, ecx
sub eax, dword [ebp - 4]
xor eax, edx
or eax, dword [ebp + 0x10]
xor eax, edx
shr eax, 0x1f
dec dword [ebp + 0xc]
mov dword [ebp - 4], eax
jne 0x4f7c50
pop edi
pop esi
mov eax, dword [ebp - 4]
sub eax, ebx
pop ebx
leave
ret 0xc
Function at 0x4fdc7b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x4fdc8a
pop dword [ebp - 0x3c]
mov eax, 0x4fdc8a
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x5709d
push 0
mov eax, 0x6f63508c
sub eax, 0x6f233f3c
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xf20a6c67
sub ecx, 0xf20a26d6
mov edi, eax
mov edx, 0x531600
add edx, dword [ebp - 0x3c]
mov esi, 0xed79dd4
add esi, 0xcc2b31db
sub dword [ebp - 4], esi
mov ebx, dword [edx]
xor dword [ebp - 0x20], 0xfd6a54a4
add ebx, esi
mov dword [ebp - 0x24], 0xaf90f7dd
mov dword [edi], ebx
sub dword [ebp - 8], edx
add edi, 4
add edx, 4
loop 0x4fdcde
add eax, 0x10917
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8553aa9a
add ecx, 0x7aec5566
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x407dff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ec50]
jne 0x407e09
repz ret
jmp fcn.0040c53d

Function at 0x40b290
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.00406030
and dword [ebp - 4], 0
cmp dword [0x433800], 0
mov ebx, eax
jne 0x40b341
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b3f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b3f2
push eax
call fcn.00405fbe
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x433800], eax
call esi
push eax
call fcn.00405fbe
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x433804], eax
call esi
push eax
call fcn.00405fbe
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433808], eax
call esi
push eax
call fcn.00405fbe
pop ecx
mov dword [0x433810], eax
test eax, eax
je 0x40b341
push 0x42af10
push edi
call esi
push eax
call fcn.00405fbe
pop ecx
mov dword [0x43380c], eax
mov eax, dword [0x43380c]
cmp eax, ebx
je 0x40b399
cmp dword [0x433810], ebx
je 0x40b399
push eax
call fcn.00406039
push dword [0x433810]
mov esi, eax
call fcn.00406039
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b399
test edi, edi
je 0x40b399
call esi
test eax, eax
je 0x40b390
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b390
test byte [ebp - 0xc], 1
jne 0x40b399
or dword [ebp + 0x10], 0x200000
jmp 0x40b3d2
mov eax, dword [0x433804]
cmp eax, ebx
je 0x40b3d2
push eax
call fcn.00406039
pop ecx
test eax, eax
je 0x40b3d2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b3d2
mov eax, dword [0x433808]
cmp eax, ebx
je 0x40b3d2
push eax
call fcn.00406039
pop ecx
test eax, eax
je 0x40b3d2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433800]
call fcn.00406039
pop ecx
test eax, eax
je 0x40b3f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b3f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4098b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
lea ecx, [ebp - 0x6c]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ecx
push 0x20019
push ebx
movzx eax, al
push 0x406e10
sub eax, 0x7fffffff
mov dword [ebp - 0x6c], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409918
push 0x406dcc
mov ecx, esi
call fcn.00409db3
cmp dword [ebp - 0x6c], ebx
je 0x4099c0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4099c0
push edi
push 0x64
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], ebx
push ebx
push eax
call fcn.0040cf80
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4099a5
mov edi, dword [ebp - 0x74]
test edi, edi
je 0x4099a5
cmp dword [ebp - 0x70], 1
jne 0x4099a5
shr edi, 1
cmp edi, 0x32
jae 0x4099a5
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0x406db8
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [edi + edi]
mov edx, eax
cmp word [ebp + ecx - 0x6a], bx
je 0x409996
lea eax, [edi + 1]
cmp eax, 0x32
jae 0x409996
cmp ecx, 0x64
jae 0x4099d2
xor eax, eax
mov word [ebp + ecx - 0x68], ax
lea eax, [ebp - 0x68]
test edx, edx
je 0x4099a2
mov eax, 0x406dcc
push eax
jmp 0x4099aa
push 0x406dcc
mov ecx, esi
call fcn.00409db3
cmp dword [ebp - 0x6c], ebx
je 0x4099bf
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2a3
leave
ret 8
call fcn.0040b3d3
int3

Function at 0x40bd66
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bda5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bda5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bda5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bda5
cmp dword [ecx + 0x74], 0xe
jbe 0x40bda5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40ed18
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40ed53

Function at 0x40eda9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jnp 0x40ee01
push ebx
call fcn.0040ed18
call [ecx - 0x7b]
rcr byte [ecx + 0xf], 0x84
mov al, 0
add byte [eax], al
sal byte [esi + esi*2 - 0x7d], 0x65
cld
add byte [ebx - 0xfba76f9], cl

Function at 0x40f0b9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
Function at 0x40f0cf
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040ece8
push eax
push esi
push dword [ebp + 8]
call fcn.0040ec9d
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
pop ebp
aad 0xc6
inc ebp
salc
aam 0x88
pop ebp
xlatb
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59

Function at 0x40f0fc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ebp
aad 0xc6
inc ebp
salc
aam 0x88
pop ebp
xlatb

Function at 0x40f125
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax + 0x56]
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040ece8
push eax
push esi
push dword [ebp + 8]
call fcn.0040ec9d
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0040ecd8
cdq
jp 0x40f15f
jle 0x40f0e3
popfd
jl 0x40f15d
invalid
invalid
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid

Function at 0x40f380
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40f38c
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40f387
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
add byte [ebp + 0x13], dh
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40f379
cmp edx, ebx
jne 0x40f4c7
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40f348
add eax, dword [eax + 4]
jmp 0x40f335
mov dword [ebp + 0xc], ebx
jmp 0x40f397

Function at 0x40f41e
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x40f425
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40f407
Function at 0x40f9c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
cmp dword [ebp + 0xc], 1
je 0x40fb96
cmp dword [ebp + 0xc], 8
jne 0x40fb5e
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.0040ece8
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040ec9d
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
invalid
test dword [eax - 7], esp
invalid

Function at 0x40fc01
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
invalid
invalid
lahf
Function at 0x416590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4165bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4165bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41de58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x41de58
lcall 0x5de5, 0x8b10c483
jmp loc.00a9cf4c
Function at 0x10012900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x10012921
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1001297b
inc edi
cmp edi, esi
jl 0x10012915
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x100129b0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1001296a
cmp byte [eax], bl
je 0x10012985
cmp byte [eax + 1], bl
je 0x1001298e
cmp byte [eax + 2], bl
je 0x10012998
cmp byte [eax + 3], bl
je 0x100129a4
add eax, 4
cmp eax, edi
jb 0x10012941
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x10012d40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x10012d72
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x10012dd2
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x10012da9
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x10012e80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x10012f1c
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x10012eab
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x1008fc10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1008fd1c
test eax, eax
je 0x1008fd1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x100aafe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x1008fd03
lea edi, [eax + 4]
jmp 0x1008fc67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x1008fc7c
mov dword [ebp - 4], 2
jmp 0x1008fc9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x1008fc93
mov dword [ebp - 4], 1
jmp 0x1008fc9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x1008fd13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x1008fcd6
mov byte [ecx], 0x3d
jmp 0x1008fce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x1008fced
mov byte [ecx], 0x3d
jmp 0x1008fcf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x1008fc64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403e59
pop dword [ebp - 0x24]
mov eax, 0x403e59
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x77348fa9
sub dword [ebp - 0x34], 0x28e24a5e
mov dword [ebp - 0x30], 0xcd57cc86
sub dword [ebp - 0x30], 0x9b248041
mov dword [ebp - 0x2c], 0xdff9bc94
add dword [ebp - 0x2c], 0x6c52879a
mov dword [ebp - 0x28], 0x71623f11
add dword [ebp - 0x28], 0x8e9dc0ef
lea eax, [ebp - 0x34]
push eax
mov eax, 0xe6077dc
add eax, 0xf1e008b0
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x20c0f452
sub dword [ebp - 0x34], 0xac4e8afc
mov dword [ebp - 0x30], 0x7caf801c
add dword [ebp - 0x30], 0xc4bce159
mov dword [ebp - 0x2c], 0x3945f6e5
add dword [ebp - 0x2c], 0x2a297587
mov dword [ebp - 0x28], 0xe31ba990
add dword [ebp - 0x28], 0x1ce45670
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x79f7a6a2
sub eax, 0x79b725ce
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36c15
push 0
call eax
mov ecx, 0x24c07bc5
add ecx, 0xdb3fcc43
mov edi, eax
mov edx, 0xff17b5a
add edx, 0xf04f94a6
add edx, dword [ebp - 0x24]
mov esi, 0xfedc726f
add esi, 0x1f2ba72d
sub dword [ebp - 0x20], edi
mov ebx, dword [edx]
mov dword [ebp - 0x20], 0xcdf0fb7
add ebx, esi
xor dword [ebp - 0x18], ecx
mov dword [edi], ebx
add edi, 0x8f7b61e
add edi, 0xf70849e6
add edx, 0x51a29702
add edx, 0xae5d6902
loop 0x403f76
add eax, 0xc78424c
add eax, 0xf388d0a7
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret