joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449075
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 4
pop eax
call fcn.004653a0
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x44914f
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x3f
pop edi
cmp ebx, 3
jl 0x4490ec
movzx eax, byte [esi + 2]
xor edx, edx
mov dh, byte [esi]
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
mov eax, edx
shr eax, 6
and eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, edi
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
jmp 0x44913a
movzx edx, byte [esi]
shl edx, 0x10
cmp ebx, 2
jne 0x4490fe
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, edi
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp ebx, 1
jne 0x449128
push 0x3d
pop edx
jmp 0x449134
shr edx, 6
and edx, edi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
add dword [ebp - 4], 4
sub ebx, 3
inc ecx
add esi, 3
test ebx, ebx
jg 0x44909b
pop edi
pop esi
mov eax, dword [ebp - 4]
mov byte [ecx], 0
pop ebx
leave
ret
Function at 0x44baaa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x44bb37
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00464880
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x44baf7
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x44bb19
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x44bc66
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x44bb5f
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x44bb6a
xor eax, eax
jmp 0x44bbb6
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x44bb87
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0044ea30
jmp 0x44bb97
cmp ecx, 2
jne 0x44bba0
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0044e8eb
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00464880
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
cmp edx, 3
jb 0x44bbe1
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edi, [eax + ecx]
movzx eax, byte [edi]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edi + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edx, 0x106
jae 0x44bbf5
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x44bab5
mov ecx, dword [esi + 0x16c0]
mov eax, dword [esi + 0x3c]
cmp ecx, eax
jae 0x44bc66
mov edi, dword [esi + 0x6c]
add edi, edx
cmp ecx, edi
jae 0x44bc35
sub eax, edi
mov ebx, eax
mov eax, 0x102
cmp ebx, eax
jbe 0x44bc1a
mov ebx, eax
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.004643f0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x16c0], ebx
jmp 0x44bc66
lea edx, [edi + 0x102]
cmp ecx, edx
jae 0x44bc66
sub edi, ecx
add edi, 0x102
sub eax, ecx
cmp edi, eax
jbe 0x44bc4f
mov edi, eax
mov eax, dword [esi + 0x38]
push edi
add eax, ecx
push 0
push eax
call fcn.004643f0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
leave
ret
Function at 0x450bb1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 8]
jne 0x450bc9
mov eax, dword [ebp + 0xc]
push 4
xor edi, eax
pop eax
mov ecx, edi
shr ecx, 0x18
mov bl, cl
and bl, 0x80
neg bl
movzx edx, cl
lea esi, [edx + edx]
sbb ebx, ebx
and ebx, 0x14d
xor ebx, esi
and ebx, 0xff
and cl, 1
neg cl
mov esi, ebx
mov ebx, edx
sbb ecx, ecx
shr ebx, 1
and ecx, 0xa6
xor ecx, ebx
xor ecx, esi
mov ebx, ecx
shl ebx, 8
xor ebx, esi
shl ebx, 8
xor ebx, ecx
xor ebx, edi
shl ebx, 8
xor ebx, edx
dec eax
mov edi, ebx
jne 0x450bce
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x450bbd
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x450c2f
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov bl, byte [edi + 0x4a0410]
mov al, bl
and al, 2
neg al
sbb al, al
mov byte [ebp - 1], bl
mov dl, bl
mov esi, edi
and eax, 0xb4
and byte [ebp - 1], 1
sete cl
dec cl
shr dl, 2
and ecx, 0x5a
xor dl, cl
xor dl, al
xor dl, bl
mov byte [ebp - 3], cl
mov cl, bl
shr cl, 1
xor cl, bl
shr cl, 1
cmp byte [ebp - 1], 0
sete bl
dec bl
and ebx, 0xb4
xor cl, bl
xor cl, byte [ebp - 3]
mov bl, byte [edi + 0x4a0510]
xor cl, al
xor cl, byte [edi + 0x4a0410]
mov al, bl
and al, 2
neg al
sbb al, al
mov byte [ebp - 1], bl
and eax, 0xb4
and byte [ebp - 1], 1
mov byte [ebp - 3], al
sete al
dec al
and eax, 0x5a
mov byte [ebp - 2], al
mov al, bl
shr al, 2
xor al, byte [ebp - 2]
xor al, byte [ebp - 3]
xor al, bl
mov byte [ebp - 7], al
mov al, bl
shr al, 1
xor al, bl
shr al, 1
cmp byte [ebp - 1], 0
sete bl
dec bl
and ebx, 0xb4
xor al, bl
xor al, byte [ebp - 2]
mov bl, byte [edi + 0x4a0510]
xor al, byte [ebp - 3]
mov byte [ebp - 0xc], bl
xor al, bl
mov bl, byte [ebp - 7]
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
mov ebx, dword [ebp - 0xc]
shl esi, 2
mov dword [esi + 0x4a60e0], ebx
mov bl, byte [edi + 0x4a0410]
mov byte [ebp - 9], bl
mov byte [ebp - 0xc], cl
mov byte [ebp - 0xb], cl
mov byte [ebp - 0xa], dl
mov ebx, dword [ebp - 0xc]
mov dword [esi + 0x4a64e0], ebx
mov bl, byte [ebp - 7]
mov byte [ebp - 0xc], bl
mov bl, byte [edi + 0x4a0510]
mov byte [ebp - 0xb], al
mov byte [ebp - 9], al
mov byte [ebp - 0xa], bl
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4a68e0], eax
mov al, byte [edi + 0x4a0410]
mov byte [ebp - 0xc], dl
mov byte [ebp - 0xb], al
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], dl
mov eax, dword [ebp - 0xc]
inc edi
cmp edi, 0x100
mov dword [esi + 0x4a6ce0], eax
jl 0x450c3a
and dword [0x4a0610], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x455578
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0x18
pop eax
call fcn.004653a0
push ebx
push esi
push edi
mov esi, ecx
push dword [esi + 0x10]
xor ebx, ebx
push dword [esi + 0xc]
inc ebx
push str.Listing_containers_CSP_s__type___d_n
xor edi, edi
push esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
call fcn.00455147
add esp, 0x10
push 0xf0000000
push dword [esi + 0x10]
lea eax, [ebp - 0x10]
push dword [esi + 0xc]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4555cf
push 0x478
push str..enginese_capi.c
push 0x67
jmp 0x4555f2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
lea eax, [ebp - 4]
push eax
push edi
push 2
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x455608
push 0x47e
push str..enginese_capi.c
push 0x6b
push 0x6b
call fcn.0045507a
add esp, 0x10
call fcn.0045556a
xor eax, eax
jmp 0x45571a
push dword [ebp - 4]
push str.Got_max_container_len__d_n
push esi
call fcn.00455147
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x455625
mov dword [ebp - 4], 0x400
push 0x485
push str..enginese_capi.c
push dword [ebp - 4]
call fcn.0040c251
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x45565b
push 0x488
push str..enginese_capi.c
push 0x41
push 0x6b
call fcn.0045507a
add esp, 0x10
jmp 0x4556ee
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
xor eax, eax
cmp dword [ebp - 8], eax
mov byte [edi], 0
sete al
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
push edi
push 2
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x4556c2
push dword [ebp - 0x14]
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push str.Container_name__s__len_d__index_d__flags_d_n
push esi
call fcn.00455147
add esp, 0x18
cmp byte [edi], 0
jne 0x4556a9
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x4556f4
push edi
push dword [ebp - 8]
push str._d.__s_n
push dword [ebp + 8]
call fcn.0041945a
add esp, 0x10
inc dword [ebp - 8]
jmp 0x45565f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp esi, 0x103
je 0x455701
push 0x49a
push str..enginese_capi.c
push 0x6b
push 0x6b
call fcn.0045507a
push esi
call fcn.00455186
add esp, 0x14
and dword [ebp - 0x18], 0
jmp 0x455701
push str.Enumerate_bug:_using_workaround_n
push esi
call fcn.00455147
pop ecx
pop ecx
test edi, edi
je 0x45570c
push edi
call fcn.0040c3c8
pop ecx
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461ee1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x10
pop eax
call fcn.004653a0
push 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.00464880
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
jle 0x461f51
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 8]
sub esi, ecx
sub ebx, dword [ebp + 0x10]
push edi
mov dword [ebp + 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0046198d
add esp, 0xc
xor edx, edx
lea edi, [esi + ebx]
lea ecx, [ebp + edx - 8]
mov al, byte [esi + ecx]
xor al, byte [ecx]
inc edx
cmp edx, 8
mov byte [ebp + edx - 0x11], al
mov byte [edi + ecx], al
jl 0x461f30
add esi, 8
dec dword [ebp + 0x10]
jne 0x461f18
pop edi
pop esi
pop ebx
leave
ret
Function at 0x461fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
mov eax, esi
sub ecx, esi
pop edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec edi
jne 0x461fc3
movzx eax, byte [esi + 1]
mov edi, dword [ebp + 8]
xor ecx, ecx
mov ch, byte [esi + 3]
mov cl, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
mov eax, dword [edi]
add eax, ecx
push eax
push edi
mov dword [ebp + 0xc], ecx
call fcn.0046194c
movzx ecx, byte [esi + 5]
mov ebx, eax
xor eax, eax
mov ah, byte [esi + 7]
mov al, byte [esi + 6]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + 4]
shl eax, 8
or eax, ecx
xor ebx, eax
mov eax, dword [edi + 4]
add eax, ebx
push eax
push edi
call fcn.0046194c
xor dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 8]
add eax, ecx
push eax
push edi
call fcn.0046194c
xor ebx, eax
mov eax, dword [edi + 0xc]
add eax, ebx
push eax
push edi
call fcn.0046194c
xor dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x10]
add eax, ecx
push eax
push edi
call fcn.0046194c
xor ebx, eax
mov eax, dword [edi + 0x14]
add eax, ebx
push eax
push edi
call fcn.0046194c
xor dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x18]
add eax, ecx
push eax
push edi
call fcn.0046194c
xor ebx, eax
mov eax, dword [edi + 0x1c]
add eax, ebx
push eax
push edi
call fcn.0046194c
xor dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
add esp, 0x40
add eax, ecx
push eax
push edi
call fcn.0046194c
xor ebx, eax
mov eax, dword [edi + 4]
add eax, ebx
push eax
push edi
call fcn.0046194c
xor dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 8]
add eax, ecx
push eax
push edi
call fcn.0046194c
xor ebx, eax
mov eax, dword [edi + 0xc]
add eax, ebx
push eax
push edi
call fcn.0046194c
xor dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x10]
add eax, ecx
push eax
push edi
call fcn.0046194c
xor ebx, eax
mov eax, dword [edi + 0x14]
add eax, ebx
push eax
push edi
call fcn.0046194c
xor dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x18]
add eax, ecx
push eax
push edi
call fcn.0046194c
xor ebx, eax
mov eax, dword [edi + 0x1c]
add eax, ebx
push eax
push edi
call fcn.0046194c
mov ecx, dword [ebp + 0xc]
xor ecx, eax
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 8
mov byte [esi + 5], al
mov eax, ebx
add esp, 0x40
mov byte [esi], cl
mov byte [esi + 4], bl
shr ecx, 0x18
shr eax, 0x10
shr ebx, 0x18
pop edi
mov byte [esi + 7], bl
mov byte [esi + 3], cl
mov byte [esi + 6], al
pop esi
pop ebx
pop ebp
ret
Function at 0x4623ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 8
pop eax
call fcn.004653a0
push edi
mov edi, ecx
push 8
lea eax, [ebp - 8]
push edi
push eax
call fcn.00464880
push 0x18
add edi, 8
push edi
push esi
call fcn.00464880
mov edi, esi
lea eax, [ebp - 8]
add esp, 0x18
xor ecx, ecx
sub edi, eax
lea eax, [ebp + ecx - 8]
mov dl, byte [edi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, 8
mov byte [esi + ecx + 0x17], dl
jl 0x4623fc
pop edi
leave
ret

Function at 0x46247d
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push edi
mov edi, edx
test edi, edi
jbe 0x46249e
push esi
mov esi, dword [esp + 0xc]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x462491
pop esi
pop edi
ret
Function at 0x4624a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, 0xa0
lea ebp, [esp - 0x74]
call fcn.004653a0
push ebx
push esi
push dword [ebp + 0x7c]
lea eax, [ebp - 0xc]
push eax
mov ebx, ecx
push 0x20
pop edx
mov ecx, edi
call fcn.0046247d
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc]
call fcn.004623a2
lea eax, [ebp + 0x14]
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00462288
add esp, 0x1c
lea esi, [ebp + 0x54]
mov ecx, edi
call fcn.004623ca
mov ecx, dword [ebp + 0x7c]
lea esi, [ebp + 0x34]
call fcn.004623ca
mov ecx, esi
call fcn.004623ca
xor eax, eax
mov cl, byte [ebp + eax + 0x34]
xor cl, byte [ebp + eax + 0x54]
inc eax
cmp eax, 0x20
mov byte [ebp + eax - 0xd], cl
jb 0x462500
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc]
call fcn.004623a2
lea eax, [ebp + 0x1c]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00462288
lea esi, [ebp + 0x54]
add esp, 0x14
mov ecx, esi
call fcn.004623ca
not byte [ebp + 0x73]
not byte [ebp + 0x71]
not byte [ebp + 0x70]
not byte [ebp + 0x6c]
not byte [ebp + 0x6b]
not byte [ebp + 0x68]
not byte [ebp + 0x66]
not byte [ebp + 0x65]
not byte [ebp + 0x62]
not byte [ebp + 0x60]
not byte [ebp + 0x5e]
not byte [ebp + 0x5c]
not byte [ebp + 0x5b]
not byte [ebp + 0x59]
not byte [ebp + 0x57]
not byte [ebp + 0x55]
lea esi, [ebp + 0x34]
mov ecx, esi
call fcn.004623ca
mov ecx, esi
call fcn.004623ca
xor eax, eax
mov cl, byte [ebp + eax + 0x34]
xor cl, byte [ebp + eax + 0x54]
inc eax
cmp eax, 0x20
mov byte [ebp + eax - 0xd], cl
jb 0x462580
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc]
call fcn.004623a2
lea eax, [ebp + 0x24]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00462288
lea esi, [ebp + 0x54]
add esp, 0x14
mov ecx, esi
call fcn.004623ca
lea esi, [ebp + 0x34]
mov ecx, esi
call fcn.004623ca
mov ecx, esi
call fcn.004623ca
xor eax, eax
mov cl, byte [ebp + eax + 0x34]
xor cl, byte [ebp + eax + 0x54]
inc eax
cmp eax, 0x20
mov byte [ebp + eax - 0xd], cl
jb 0x4625d0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc]
call fcn.004623a2
lea eax, [ebp + 0x2c]
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00462288
add esp, 0x14
push 0xc
pop ebx
lea esi, [ebp + 0x14]
call fcn.00462412
dec ebx
jne 0x462606
push dword [ebp + 0x7c]
mov eax, esi
push eax
push 0x20
pop edx
mov ecx, esi
call fcn.0046247d
call fcn.00462412
push edi
mov eax, esi
push eax
push 0x20
pop edx
mov ecx, esi
call fcn.0046247d
add esp, 0x10
push 0x3d
pop ebx
lea esi, [ebp + 0x14]
call fcn.00462412
dec ebx
jne 0x46263a
push 0x20
mov eax, esi
push eax
push edi
call fcn.00464880
add esp, 0xc
xor eax, eax
pop esi
inc eax
pop ebx
add ebp, 0x74
leave
ret
Function at 0x46555b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x49b6b0
call fcn.0046824c
mov edi, 0x94
mov eax, edi
call fcn.004653a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4a5c04], ecx
mov eax, dword [esi + 4]
mov dword [0x4a5c10], eax
mov edx, dword [esi + 8]
mov dword [0x4a5c14], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4a5c08], esi
cmp ecx, 2
je 0x4655bb
or esi, 0x8000
mov dword [0x4a5c08], esi
shl eax, 8
add eax, edx
mov dword [0x4a5c0c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4655f4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4655f4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x46560c
cmp eax, 0x20b
je 0x4655f9
mov dword [ebp - 0x1c], edi
jmp 0x465620
cmp dword [ecx + 0x84], 0xe
jbe 0x4655f4
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x46561a
cmp dword [ecx + 0x74], 0xe
jbe 0x4655f4
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00468b3a
pop ecx
test eax, eax
jne 0x465634
push 0x1c
call fcn.00465537
pop ecx
call fcn.0046af5f
test eax, eax
jne 0x465645
push 0x10
call fcn.00465537
pop ecx
call fcn.0046acb7
mov dword [ebp - 4], edi
call fcn.0046aab9
test eax, eax
jge 0x46565e
push 0x1b
call fcn.00465512
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4a84a4], eax
call fcn.0046a997
mov dword [0x4a5b5c], eax
call fcn.0046a8f5
test eax, eax
jge 0x465684
push 8
call fcn.00465512
pop ecx
call fcn.0046a6c2
test eax, eax
jge 0x465695
push 9
call fcn.00465512
pop ecx
push 1
call fcn.00465dff
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4656ab
push eax
call fcn.00465512
pop ecx
mov eax, dword [0x4a5c24]
mov dword [0x4a5c28], eax
push eax
push dword [0x4a5c1c]
push dword [0x4a5c18]
call fcn.00401375
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4656da
push esi
call fcn.00465f2c
call fcn.00465f4e
jmp 0x46570c
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00468287
ret
Function at 0x465e69
Capabilities:
Terminate process

Disassembly:
push 8
push 0x49b6f8
call fcn.0046824c
push 8
call fcn.00468cde
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4a5c44], esi
jne 0x465e9d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x4a5c40], esi
mov al, byte [ebp + 0x10]
mov byte [0x4a5c3c], al
cmp dword [ebp + 0xc], edi
jne 0x465ee7
cmp dword [0x4a748c], edi
je 0x465ed7
mov eax, dword [0x4a7488]
sub eax, 4
mov dword [0x4a7488], eax
cmp eax, dword [0x4a748c]
jb 0x465ed7
mov eax, dword [eax]
cmp eax, edi
je 0x465eb8
call eax
jmp 0x465eb8
push 0x49f030
mov eax, 0x49f024
call fcn.00465de7
pop ecx
push 0x49f038
mov eax, 0x49f034
call fcn.00465de7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x465f18
cmp dword [ebp + 0x10], edi
jne 0x465f26
mov dword [0x4a5c44], esi
push dword [ebp + 8]
call fcn.00465da5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x465f25
push 8
call fcn.00468c29
pop ecx
ret
call fcn.00468287
ret

Function at 0x467dd9
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x467df5
call fcn.0046724d
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x467e67
push esi
push 0x8c
push 1
call fcn.00464c2d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x467e4d
push esi
call fcn.0046ad65
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x467d47
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x467e45
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp eax, 0xffffffff
jne 0x467e64
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
push esi
call fcn.00464557
test ebx, ebx
pop ecx
je 0x467e5f
push ebx
call fcn.0046725f
pop ecx
or eax, 0xffffffff
jmp 0x467e66
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x469dce
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4a2190]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x469dff
xor eax, eax
jmp 0x469f88
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4a7360]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x469e3b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0046e257
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x469f16
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x469f54
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x469e9f
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x469e90
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x469e70
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x469edf
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x469ee8
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x469e61
jmp 0x469eea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x469f83
cmp dword [ebp - 0x6c], edi
je 0x469f54
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x469f49
call fcn.0046724d
mov dword [eax], 9
call fcn.00467256
mov dword [eax], esi
jmp 0x469f7e
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x469f3e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x469eea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x469eea
push dword [ebp - 0x6c]
call fcn.0046725f
pop ecx
jmp 0x469f7e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x469f6c
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x469f6c
xor eax, eax
jmp 0x469f86
call fcn.0046724d
mov dword [eax], 0x1c
call fcn.00467256
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x469f86
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00464bee
add ebp, 0x3a0
leave
ret