joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c07d
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov eax, 0x466156
call fcn.004656a0
sub esp, 0x98
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 4], ebx
mov edi, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], bl
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0x20
jne 0x40c22c
cmp dword [eax + 0x14], 0x10
jb 0x40c0c5
mov eax, dword [eax]
push 0x20
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0043efb0
add esp, 0xc
mov dword [ebp + 0xc], ebx
lea eax, [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push 0x477d38
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x40c205
push ebx
push 0x20
push str.ChainingModeGCM
push str.ChainingMode
push dword [ebp + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptSetProperty]
test eax, eax
js 0x40c22c
push ebx
push 0x20
lea eax, [ebp - 0xa4]
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x40c22c
push 0x40
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00440770
mov ecx, dword [ebp + 8]
lea eax, [edi + 3]
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x78], 0xc
lea eax, [ecx - 0x10]
mov dword [ebp - 0x68], 0x10
push 0x40
add eax, edi
pop edx
mov dword [ebp - 0x6c], eax
lea eax, [ecx - 0x1f]
push eax
push edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40c1e5
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x84]
push edi
push ebx
push ebx
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x7c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x40c22c
push dword [ebp - 0x18]
lea ecx, [ebp - 0x38]
push edi
call fcn.00411c32
mov byte [ebp - 0x20], bl
lea eax, [ebp - 0x38]
push dword [ebp - 0x20]
mov ecx, esi
mov dword [esi + 0x10], ebx
push eax
mov dword [esi + 0x14], ebx
call fcn.0041291d
lea ecx, [ebp - 0x38]
call fcn.00412665
mov eax, esi
jmp 0x40c273
lea ecx, [ebp - 0x38]
call fcn.00412665
or dword [ebp - 4], 0xffffffff
mov ecx, esi
push 0x486a80
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.004128ab
jmp 0x40c1de
cmp dword [ebp + 0xc], 0
je 0x40c216
push ebx
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
cmp dword [ebp - 0x14], 0
je 0x40c226
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x10], ebx
mov ecx, esi
push 0x486a80
mov dword [esi + 0x14], ebx
call fcn.004128ab
jmp 0x40c1d6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4108a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4108cb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041162d
jmp 0x410980
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4108ed
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4108ef
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x410974
jg 0x410904
test esi, esi
je 0x410974
test ecx, ecx
jl 0x41094d
jg 0x41090e
test eax, eax
je 0x41094d
cmp edi, ecx
jg 0x410922
jl 0x410918
cmp esi, eax
jae 0x410922
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0043efb0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x410950
mov edx, dword [ebp + 8]
test edi, edi
jl 0x410974
jg 0x41095a
test esi, esi
je 0x410974
cmp dword [ebx + 0x4c], 0
je 0x410974
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.00443479
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410989
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x4109ac
jl 0x4109a3
test edi, edi
jne 0x4109ac
xor eax, eax
xor edx, edx
jmp 0x410a93
cmp dword [ebx + 0x38], 0
je 0x4109c1
push esi
push edi
push dword [ebp + 8]
call fcn.004116f6
jmp 0x410a93
mov eax, dword [ebx + 0x1c]
mov ecx, edi
mov dword [ebp - 4], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4109d6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
jmp 0x4109d8
xor eax, eax
mov dword [ebp - 8], edi
test eax, eax
je 0x410a0f
cmp eax, edi
mov esi, edi
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call fcn.0043efb0
mov eax, dword [ebx + 0x2c]
mov ecx, edi
add dword [ebp + 8], esi
sub ecx, esi
add esp, 0xc
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x410a15
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
je 0x410a87
mov ecx, ebx
call fcn.00411ff1
mov edx, dword [ebp - 8]
mov dword [ebp + 0x10], edx
cmp edx, 0xfff
jbe 0x410a66
push dword [ebx + 0x4c]
push 0xfff
push 1
push dword [ebp + 8]
call fcn.00443e84
mov ecx, dword [ebp - 4]
add esp, 0x10
add dword [ebp + 8], eax
sub ecx, eax
mov dword [ebp - 4], ecx
mov edx, ecx
mov dword [ebp + 0x10], ecx
cmp eax, 0xfff
jne 0x410a62
cmp ecx, eax
ja 0x410a30
jmp 0x410a69
sub edi, ecx
jmp 0x410a8c
mov ecx, dword [ebp - 4]
cmp dword [ebp + 0x10], 0
jbe 0x410a8a
push dword [ebx + 0x4c]
push ecx
push 1
push dword [ebp + 8]
call fcn.00443e84
mov edx, dword [ebp + 0x10]
add esp, 0x10
sub edx, eax
jmp 0x410a8a
mov edx, dword [ebp - 8]
sub edi, edx
sbb esi, 0
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x410d03
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x410d1f
xor eax, eax
jmp 0x410de6
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x410d48
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x410d48
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x410de6
cmp dword [esi + 0x4c], 0
je 0x410de4
mov ecx, esi
call fcn.00411ff1
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x410d75
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00442657
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x410de4
mov byte [ebp - 1], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x410de4
cmp eax, 1
jle 0x410db3
cmp eax, 3
jne 0x410de4
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 1]
push ecx
jmp 0x410d67
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
sub eax, ecx
mov dword [ebp - 8], eax
je 0x410dd6
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00443479
add esp, 0x10
cmp dword [ebp - 8], eax
jne 0x410de4
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0xc], eax
mov eax, ebx
jne 0x410de6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41203f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x41208e
cmp byte [esi + 0x3d], bl
je 0x41208e
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4120bd
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, ebx
je 0x412095
sub eax, 1
je 0x412098
dec eax
sub eax, 1
jne 0x4120bd
mov byte [esi + 0x3d], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4120b5
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00443479
add esp, 0x10
cmp edi, eax
jne 0x4120bd
cmp byte [esi + 0x3d], bl
sete al
jmp 0x412090
xor al, al
jmp 0x412090
Function at 0x41468e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov eax, edi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x47cb20]
movups xmmword [ebx + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x41469b
mov edx, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov esi, dword [ebx + edx*4]
mov eax, edx
cmovae ecx, dword [ebp + 8]
cdq
idiv dword [ebp + 0x20]
movsx eax, byte [edx + ecx]
add eax, esi
add edi, eax
and edi, 0x800000ff
jns 0x4146eb
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp - 4]
mov eax, dword [ebx + edi*4]
mov dword [ebx + edx*4], eax
inc edx
mov dword [ebx + edi*4], esi
mov dword [ebp - 4], edx
cmp edx, 0x100
jl 0x4146bf
lea ecx, [ebp + 8]
call fcn.00412665
pop edi
pop esi
pop ebx
leave
ret 0x1c

Function at 0x414712
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x4668cd
call fcn.004656a0
sub esp, 0xc
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0x24]
lea edi, [eax + 0x400]
and dword [ebp - 4], 0
mov ecx, edi
push 0x20
push ebx
call fcn.00411b87
xor eax, eax
xor esi, esi
and dword [ebp - 0x10], eax
test ebx, ebx
jle 0x4147c8
inc eax
and eax, 0x800000ff
jns 0x414758
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x10]
add eax, edx
and eax, 0x800000ff
jns 0x414774
dec eax
or eax, 0xffffff00
inc eax
mov ebx, dword [ebp - 0x18]
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + eax*4]
mov dword [ecx + ebx*4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
lea ecx, [ebp + 0xc]
mov eax, dword [ebp - 0x14]
cmovae ecx, dword [ebp + 0xc]
mov eax, dword [eax + ebx*4]
add eax, edx
and eax, 0x800000ff
jns 0x4147a7
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x24]
mov dl, byte [edx + eax*4]
mov eax, edi
xor dl, byte [ecx + esi]
cmp dword [edi + 0x14], 0x10
jb 0x4147bd
mov eax, dword [edi]
mov byte [eax + esi], dl
inc esi
mov eax, dword [ebp - 0x18]
cmp esi, ebx
jl 0x414749
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
call fcn.004128ab
lea ecx, [ebp + 0xc]
call fcn.00412665
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x20
Function at 0x41bede
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41bee9
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x41bfa5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
sub edi, 1
jne 0x41befe
pop edi
test esi, esi
je 0x41bfc1
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
inc edx
sub esi, 1
jne 0x41bfa9
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x41bfc8
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x477fe0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x477fe0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x41c6e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x41c722
push 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c71d
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x41c74c
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0043efb0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
pop edi
div ebx
pop ebx
leave
ret
Function at 0x41d8b5
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x41d8dd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d8dd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x41d974
push ebx
mov ebx, edi
mov ecx, edi
cmp al, 0x2f
je 0x41d8f4
cmp al, 0x5c
jne 0x41d8f6
mov ebx, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x41d8ec
cmp ebx, edi
je 0x41d929
sub ebx, edi
lea eax, [ebp - 0x208]
push ebx
push edi
push eax
call fcn.0043efb0
add esp, 0xc
mov byte [ebp + ebx - 0x208], 0
lea edx, [ebp - 0x208]
mov ecx, esi
call fcn.0041d8b5
mov byte [ebp - 0x104], 0
pop ebx
test esi, esi
je 0x41d944
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004450b0
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.004450c0
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41d974
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x41e578
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov eax, 0x467275
call fcn.004656a0
mov eax, 0x1fd0
call fcn.0043e5d0
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x30], edi
mov esi, edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
push 0x47734b
mov dword [ebp - 0x18], 0x1fa0
mov byte [edi], bl
call fcn.004127d6
push 0x1fa0
lea eax, [ebp - 0x1fdc]
mov dword [ebp - 4], ebx
push ebx
push eax
mov dword [ebp - 0x1c], 1
call fcn.00440770
add esp, 0xc
lea eax, [ebp - 0x18]
push ebx
push ebx
push eax
lea eax, [ebp - 0x1fdc]
push eax
push 1
push esi
call fcn.00449520
pop ecx
push eax
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x41e70d
call dword [0x48b970]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x41e6e2
mov ecx, dword [0x48b95c]
push ebx
push 1
push eax
call ecx
add esp, 0xc
test eax, eax
jne 0x41e6ab
lea eax, [ebp - 0x1fdc]
mov dword [ebp - 0x28], ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [0x48b958]
push ecx
mov dword [ebp - 0x24], ebx
call eax
add esp, 0xc
test eax, eax
jne 0x41e68e
push dword [ebp - 0x24]
lea eax, [ebp - 0x1fdc]
push dword [ebp - 0x28]
push eax
call fcn.0043efb0
mov esi, dword [ebp - 0x24]
add esp, 0xc
mov byte [ebp + esi - 0x1fdc], bl
test esi, esi
je 0x41e6d6
movzx eax, byte [ebp + ebx - 0x1fdc]
mov ecx, edi
push eax
call fcn.004126b5
inc ebx
cmp ebx, esi
jb 0x41e677
jmp 0x41e6d6
mov cl, 0x18
mov dword [ebp - 0x11], 0x6a6a7d18
mov byte [ebp - 0xd], bl
mov eax, ebx
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 3
jae 0x41e6c8
mov cl, byte [ebp - 0x11]
jmp 0x41e69c
mov cl, 0x5c
mov dword [ebp - 0x11], 0x2e2e395c
mov byte [ebp - 0xd], bl
mov eax, ebx
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 3
jae 0x41e6c8
mov cl, byte [ebp - 0x11]
jmp 0x41e6b9
lea eax, [ebp - 0x10]
mov byte [ebp - 0xd], bl
push eax
mov ecx, edi
call fcn.004127d6
push dword [ebp - 0x20]
call dword [0x48b960]
pop ecx
jmp 0x41e70d
mov cl, 0x16
mov dword [ebp - 0x11], 0x64647316
mov byte [ebp - 0xd], bl
mov eax, ebx
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, 3
jae 0x41e6ff
mov cl, byte [ebp - 0x11]
jmp 0x41e6f0
lea eax, [ebp - 0x10]
mov byte [ebp - 0xd], bl
push eax
mov ecx, edi
call fcn.004127d6
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42516f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, ecx
call fcn.00424253
mov cl, byte [edi]
cmp cl, 1
je 0x42521a
cmp cl, 2
je 0x4251c7
lea eax, [ecx - 3]
cmp al, 4
ja 0x425247
cmp cl, 3
jne 0x4251bb
mov ecx, dword [edi + 8]
call fcn.00412665
push 0x18
push dword [edi + 8]
call fcn.00413cd9
and dword [edi + 8], 0
pop ecx
pop ecx
mov ecx, edi
mov byte [edi], 0
call fcn.004212bf
jmp 0x42523e
mov esi, dword [edi + 8]
mov ecx, dword [ebp + 0x14]
add esi, 4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
mov edi, dword [esi]
lea eax, [ecx + 0x10]
cmp eax, edi
je 0x425207
mov esi, ecx
mov ebx, eax
sub esp, 0x10
mov ecx, esp
push ebx
call fcn.0042123e
mov ecx, esi
call fcn.0042190f
add ebx, 0x10
add esi, 0x10
cmp ebx, edi
jne 0x4251e3
mov esi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov edi, dword [esi]
lea ecx, [edi - 0x10]
call fcn.00420e97
add dword [esi], 0xfffffff0
mov eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
jmp 0x42523e
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
call fcn.00421a3b
mov ecx, dword [edi + 8]
push esi
call fcn.00426957
mov edx, eax
call fcn.00426c0a
mov ecx, dword [ebp + 8]
mov dword [ebx + 4], ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
push 0x1d50
call fcn.0044498b
int3
Function at 0x427035
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x467c11
call fcn.004656a0
sub esp, 0xcc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
mov esi, edx
mov dword [ebp - 0x14], ecx
push esi
call ebx
test eax, eax
je 0x4271d5
push dword [ebp + 8]
call ebx
test eax, eax
je 0x4271d5
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNW]
mov edi, esi
push 7
push str.DPAPI:
push esi
call ebx
test eax, eax
jne 0x427084
lea edi, [esi + 0xe]
push 0x12
push 0x47b60c
push esi
call ebx
test eax, eax
jne 0x427095
add edi, 0x24
push 6
push str.ftp:__
push edi
call ebx
test eax, eax
jne 0x4271d5
mov ebx, dword [ebp - 0x14]
lea edx, [ebp - 0xe]
mov cl, 0x44
mov byte [ebp - 0xd], 0
mov al, 0x4e
mov byte [ebp - 0xf], cl
xor al, cl
mov byte [ebp - 0xd], 0
push 1
mov ecx, ebx
mov byte [ebp - 0xe], al
call fcn.004327cd
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
push edi
call esi
push eax
mov edx, edi
mov ecx, ebx
call fcn.00432710
mov al, 0x18
mov byte [ebp - 0xd], 0
pop ecx
xor al, 0x12
mov byte [ebp - 0xf], 0x12
push 1
lea edx, [ebp - 0xe]
mov byte [ebp - 0xe], al
mov ecx, ebx
mov byte [ebp - 0xd], 0
call fcn.004327cd
pop ecx
push dword [ebp + 8]
call esi
mov edx, dword [ebp + 8]
mov ecx, ebx
push eax
call fcn.00432710
lea ecx, [ebp - 0xd8]
call fcn.00410f1a
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, ebx
movaps xmm0, xmmword [0x47cfe0]
movups xmmword [ebp - 0x25], xmm0
mov byte [ebp - 0x15], bl
mov al, byte [ebp - 0x25]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 0xf
jb 0x42712f
mov byte [ebp - 0x15], bl
call fcn.0043295d
push ecx
push ecx
lea edx, [ebp - 0x24]
mov ecx, eax
call fcn.004324c4
push eax
lea ecx, [ebp - 0xd8]
call fcn.00410e8a
mov ecx, edi
call fcn.00432854
mov edx, eax
lea ecx, [ebp - 0xd8]
call fcn.00413108
mov cl, 0x31
mov byte [ebp - 0xd], bl
mov al, 0x3b
mov byte [ebp - 0xf], cl
xor al, cl
lea edx, [ebp - 0xe]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 0xe], al
call fcn.00413108
mov ecx, dword [ebp + 8]
call fcn.00432854
mov edx, eax
lea ecx, [ebp - 0xd8]
call fcn.00413108
mov cl, 0x5e
mov byte [ebp - 0x11], bl
mov al, 0x54
mov byte [ebp - 0x13], cl
xor al, cl
lea edx, [ebp - 0x12]
lea ecx, [ebp - 0xd8]
mov byte [ebp - 0x12], al
call fcn.00413108
lea ecx, [ebp - 0xd8]
call fcn.00410e5a
lea ecx, [ebp - 0xd8]
call fcn.0040ffe6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret