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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10269bdb
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x134]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x101ada74
push ebx
call fcn.10078f12
add esp, 4
test eax, eax
je 0x101ada74
push ebx
lea ecx, [esp + 0x18]
call fcn.10090450
mov esi, dword [esp + 0x144]
mov dword [esp + 0x138], ebp
cmp esi, ebp
je 0x101ad941
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101ada60
neg esi
sbb esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
and esi, 0xc0000000
add esi, 0xc0000000
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x101ada14
mov eax, dword [esp + 0x18]
test eax, eax
je 0x101ad977
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x102edc70]
cmp eax, 0xffffffff
jne 0x101ad9b2
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 2
sete al
mov dword [0x102edc70], eax
test eax, eax
je 0x101ad9cb
push 0
push 0x80
push 4
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
jmp 0x101ad9f9
push ebx
lea ecx, [esp + 0x14]
call fcn.1008b110
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.1008b870
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x101ad95e
cmp edi, 0xffffffff
je 0x101adaaa
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x101ada2c
or ebp, eax
jmp 0x101ada2e
mov ebp, eax
push 2
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x101ada40
or ebx, eax
jmp 0x101ada42
mov ebx, eax
push 0
push 0
push ebp
push edi
call esi
test ebx, ebx
jne 0x101adaaa
mov eax, dword [esp + 0x144]
test eax, eax
je 0x101ada90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.10090bf0
or eax, 0xffffffff
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
lea eax, [esp + 0x10]
push 2
push eax
push 0
push edi
mov dword [esp + 0x20], 0xfeff
call fcn.101ad5b0
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.10090bf0
mov eax, edi
jmp 0x101ada77
Function at 0x101ae710
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10269ca0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.10096580
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.10096580
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x10310410]
test eax, eax
je 0x101ae7c8
cmp ebp, eax
jne 0x101ae7c8
mov eax, dword [0x10310414]
test eax, eax
je 0x101ae7c8
cmp ebx, eax
jb 0x101ae7c8
add eax, 0x493e0
cmp eax, ebx
jb 0x101ae7c8
mov ebp, dword [0x10310418]
push 1
inc ebp
push 0x10310330
lea ecx, [esp + 0x18]
mov dword [0x10310418], ebp
call fcn.1009ee90
push 0x10310360
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10096760
push 0x10310350
mov ecx, edi
call fcn.10096760
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x101ae83e
push edi
push esi
mov dword [0x10310418], 0
call fcn.101aeb40
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x10310330
call fcn.1009ee90
push 0xffffffffffffffff
push 0
mov ecx, 0x10310360
mov dword [esp + 0x38], 1
mov dword [0x10310410], ebp
mov dword [0x10310414], ebx
call fcn.10096580
push esi
mov ecx, 0x10310360
call fcn.10096760
push 0xffffffffffffffff
push 0
mov ecx, 0x10310350
call fcn.10096580
push edi
mov ecx, 0x10310350
call fcn.10096760
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.1009eef0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x101aeb40
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10269d06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.10096580
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.10096580
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x101aec79
mov edx, dword [0x102c8864]
mov cx, word [0x102c8868]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.10090450
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.10096b20
mov edx, dword [0x1026e87c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.10090e70
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.10096b20
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.10090bf0
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.10090bf0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x101aeb9b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x101baaa0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x101baaf9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x101baaf9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x101bab00
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x101baadd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x101baafb
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x101c05d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x101c0620
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x101c0620
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x101c0625
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x101c060b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x101c0632
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x101dfe20
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x101dff06
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp edi, 3
jl 0x101dfe93
xor edx, edx
xor eax, eax
mov dh, byte [esi]
mov al, byte [esi + 2]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
inc ecx
and edx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x101dfeea
xor edx, edx
mov dl, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x101dfea6
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
inc ecx
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
inc ecx
cmp edi, 1
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
jne 0x101dfed6
mov ebx, 0x3d
jmp 0x101dfee4
shr edx, 6
and edx, 0x3f
xor ebx, ebx
mov bl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x101dfe3a
pop esi
pop ebx
mov eax, ebp
pop edi
mov byte [ecx], 0
pop ebp
ret
mov ecx, dword [esp + 0xc]
mov eax, ebp
pop edi
pop ebp
mov byte [ecx], 0
ret
Function at 0x101e02e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.10079660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x101e030b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x101e031d
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x101e0489
push esi
call fcn.101ea310
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x101e0353
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.100cdeb0
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x101e0392
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.100cbf60
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.100cc0d0
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.100cc1d0
add esp, 0x24
jmp 0x101e03d1
test ebp, ebp
jl 0x101e039e
cmp ebp, 0x80
jle 0x101e03b2
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.100cdeb0
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x101e03f6
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x101e03ff
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.100cbf60
push esi
call fcn.101ea310
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.100cc0d0
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x101e043b
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.100cbf60
push esi
call fcn.101ea310
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.100cc0d0
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.100cc280
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x101e046e
jmp 0x101e03fd
Function at 0x101fc350
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.10079660
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
test ebx, ebx
push edi
jle 0x101fc4a4
cmp ebx, 0x80
jg 0x101fc4a4
mov edi, dword [esp + 0x44]
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x40]
push eax
push edi
push edi
mov dword [esp + 0x28], edx
call fcn.101fcc60
lea eax, [ebx + 7]
add esp, 0xc
cdq
and edx, 7
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x48]
sar ebp, 3
test eax, eax
je 0x101fc3e7
test ebp, ebp
jle 0x101fc435
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
lea esi, [esp + 0x20]
sub edx, edi
sub esi, edi
mov ecx, edi
sub ebx, edi
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
dec ebp
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x101fc3d4
jmp 0x101fc431
xor esi, esi
test ebp, ebp
jle 0x101fc435
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x20]
mov ebx, edi
lea edx, [esp + 0x20]
sub eax, ecx
mov ecx, dword [esp + 0x38]
sub ebx, edx
lea edx, [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
jmp 0x101fc417
mov ebx, dword [esp + 0x34]
lea ecx, [esp + esi + 0x20]
mov dl, byte [eax + ecx]
mov bl, byte [ebx + ecx]
mov byte [ecx], dl
xor bl, dl
mov edx, dword [esp + 0x38]
inc esi
cmp esi, ebp
mov byte [edx + ecx], bl
jl 0x101fc413
mov ebx, dword [esp + 0x3c]
mov ebp, ebx
and ebp, reloc.WS2_32.dll_getsockopt
jns 0x101fc444
dec ebp
or ebp, 0xfffffff8
inc ebp
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
test ebp, ebp
jne 0x101fc475
lea eax, [esp + eax + 0x10]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, 8
xor esi, esi
sub ecx, ebp
lea eax, [esp + eax + 0x10]
mov dword [esp + 0x3c], ecx
jmp 0x101fc48c
mov ecx, dword [esp + 0x3c]
mov dl, byte [eax + esi + 1]
mov bl, byte [eax + esi]
shr dl, cl
mov ecx, ebp
shl bl, cl
or dl, bl
mov byte [esi + edi], dl
inc esi
cmp esi, 0x10
jl 0x101fc488
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x102096c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.10079660
mov eax, dword [esp + 0x58]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0xc]
push edi
mov edi, dword [eax + 8]
xor esi, esi
cmp edi, 0x20
mov dword [esp + 0x10], esi
jle 0x102096f7
push str.nkey___EVP_MAX_KEY_LENGTH
push 0x79
push str..cryptoevpevp_key.c
call fcn.100cdeb0
add esp, 0xc
cmp ebp, 0x10
jle 0x10209710
push str.niv___EVP_MAX_IV_LENGTH
push 0x7a
push str..cryptoevpevp_key.c
call fcn.100cdeb0
add esp, 0xc
cmp dword [esp + 0x74], esi
jne 0x10209720
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
lea eax, [esp + 0x14]
push eax
call fcn.100cbee0
mov ecx, dword [esp + 0x70]
push esi
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.100cbf60
add esp, 0x10
test eax, eax
je 0x10209883
mov ebx, dword [esp + 0x84]
jmp 0x10209755
mov esi, dword [esp + 0x84]
mov eax, esi
inc esi
test eax, eax
mov dword [esp + 0x84], esi
je 0x1020977a
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.100cc0d0
add esp, 0xc
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.100cc0d0
mov eax, dword [esp + 0x7c]
add esp, 0xc
test eax, eax
je 0x102097a9
push 8
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.100cc0d0
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.100cc1d0
mov esi, dword [esp + 0x88]
add esp, 0xc
cmp esi, 1
jbe 0x1020980c
dec esi
mov edx, dword [esp + 0x6c]
push 0
lea eax, [esp + 0x18]
push edx
push eax
call fcn.100cbf60
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.100cc0d0
lea ecx, [esp + 0x28]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
call fcn.100cc1d0
add esp, 0x24
dec esi
jne 0x102097cd
mov ecx, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x10209842
cmp eax, ecx
je 0x10209842
mov edx, dword [esp + 0x80]
test edx, edx
je 0x1020983c
mov esi, dword [esp + 0x80]
mov dl, byte [esp + eax + 0x24]
mov byte [esi], dl
mov edx, esi
inc edx
mov dword [esp + 0x80], edx
dec edi
inc eax
test edi, edi
jne 0x10209816
test ebp, ebp
je 0x1020985f
cmp eax, ecx
je 0x1020985f
cmp eax, ecx
je 0x1020985f
test ebx, ebx
je 0x10209859
mov dl, byte [esp + eax + 0x24]
mov byte [ebx], dl
inc ebx
dec ebp
inc eax
test ebp, ebp
jne 0x1020984a
test edi, edi
jne 0x10209867
test ebp, ebp
je 0x1020988d
mov eax, dword [esp + 0x6c]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.100cbf60
add esp, 0xc
test eax, eax
jne 0x1020974e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x54
ret
lea edx, [esp + 0x14]
push edx
call fcn.100cc5f0
lea eax, [esp + 0x28]
push 0x40
push eax
call fcn.100cda60
mov ecx, dword [esp + 0x74]
add esp, 0xc
mov eax, dword [ecx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
Function at 0x102170e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd8
call fcn.10079660
push ebx
push ebp
push esi
lea eax, [esp + 0x2c]
push edi
push eax
mov ebx, 1
call fcn.101e0570
mov esi, dword [esp + 0xf0]
mov ecx, dword [esp + 0x108]
mov ebp, dword [esp + 0x104]
add esp, 4
test esi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebp
jne 0x1021712a
mov dword [esp + 0xf0], esi
jmp 0x10217148
mov eax, dword [esp + 0xf0]
or ecx, 0xffffffff
cmp eax, ecx
jne 0x10217148
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xf0], ecx
test ebp, ebp
je 0x1021726c
jmp 0x1021715d
mov esi, dword [esp + 0xec]
mov ebp, dword [esp + 0x18]
cmp ebp, 0x14
jle 0x10217167
mov ebp, 0x14
mov edx, ebx
mov eax, ebx
mov ecx, ebx
push 0
shr edx, 0x18
shr eax, 0x10
shr ecx, 8
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], al
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], bl
call fcn.100e9190
mov edx, dword [esp + 0xf4]
push eax
push edx
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.101e02e0
mov ecx, dword [esp + 0x10c]
mov edx, dword [esp + 0x108]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call fcn.101e04f0
lea ecx, [esp + 0x30]
push 4
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.101e04f0
lea eax, [esp + 0x48]
push 0
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.101e0510
mov edi, dword [esp + 0x4c]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x134]
mov ecx, edx
add esp, 0x38
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jle 0x1021724f
lea edi, [eax - 1]
mov edx, dword [esp + 0xf0]
lea eax, [esp + 0x1c]
push 0
push eax
mov eax, dword [esp + 0xf4]
lea ecx, [esp + 0x24]
push 0x14
push ecx
push edx
push eax
call fcn.100e9190
push eax
call fcn.101e05d0
add esp, 0x1c
test ebp, ebp
jle 0x1021724c
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
sub ecx, eax
mov esi, ebp
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x10217243
dec edi
jne 0x10217207
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
sub eax, ebp
inc ebx
add edx, ebp
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0x14], edx
jne 0x10217152
lea eax, [esp + 0x30]
push eax
call fcn.101e05a0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret
Function at 0x1021b6d0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.10079660
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x412
mov esi, 0x1028c1a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x48
jle 0x1021b6fd
mov ecx, 0x48
mov edi, dword [esp + 0x20]
push ebp
mov eax, edi
mov ebp, ebx
lea esi, [ecx + edi]
mov dword [esp + 0x1c], 0x12
xor ecx, ecx
mov cl, byte [eax]
inc eax
cmp eax, esi
jb 0x1021b71c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1021b72c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1021b73c
mov eax, edi
xor edx, edx
mov dl, byte [eax]
shl ecx, 8
or ecx, edx
inc eax
cmp eax, esi
jb 0x1021b74c
mov eax, edi
mov edx, dword [ebp]
add ebp, 4
xor edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebp - 4], edx
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x1021b711
xor eax, eax
mov esi, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, 9
pop ebp
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.1021a440
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x1021b774
lea esi, [ebx + 0x48]
mov edi, 0x200
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.1021a440
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 8
add esi, 8
dec edi
jne 0x1021b79d
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x1021c4a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
cmp esi, 0x80
mov byte [eax], 0
jle 0x1021c4bc
mov esi, 0x80
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x1021c4cc
cmp ecx, 0x400
jle 0x1021c4d1
mov ecx, 0x400
test esi, esi
jle 0x1021c4e8
mov edi, dword [esp + 0x1c]
mov edx, eax
sub edi, eax
mov ebp, esi
mov bl, byte [edi + edx]
mov byte [edx], bl
inc edx
dec ebp
jne 0x1021c4df
xor edx, edx
cmp esi, 0x80
mov dl, byte [eax + esi - 1]
jge 0x1021c51a
mov edi, eax
sub edi, esi
mov bl, byte [edi + esi]
add ebx, edx
xor edx, edx
and ebx, 0xff
inc esi
cmp esi, 0x80
mov dl, byte [ebx + 0x102f03e4]
mov byte [esi + eax - 1], dl
jl 0x1021c4fa
lea esi, [ecx + 7]
mov edx, 0x80
neg ecx
sar esi, 3
and ecx, 7
mov edi, 0xff
sub edx, esi
sar edi, cl
xor ecx, ecx
mov cl, byte [edx + eax]
and edi, ecx
xor ecx, ecx
mov cl, byte [edi + 0x102f03e4]
mov edi, edx
mov byte [edx + eax], cl
dec edx
test edi, edi
je 0x1021c56a
lea edi, [edx + eax]
lea ebp, [edx + 1]
xor edx, edx
mov dl, byte [edi + esi]
xor edx, ecx
xor ecx, ecx
dec ebp
dec edi
mov cl, byte [edx + 0x102f03e4]
mov byte [edi + 1], cl
test ebp, ebp
ja 0x1021c552
lea esi, [eax + 0xfc]
mov ecx, 0x7f
xor edx, edx
xor ebx, ebx
mov dl, byte [ecx + eax - 1]
mov bh, byte [ecx + eax]
and edx, 0xffff
sub esi, 4
or edx, ebx
sub ecx, 2
mov dword [esi + 4], edx
jns 0x1021c575
pop edi
pop esi
pop ebp
pop ebx
ret