joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db0d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax]
mov edx, dword [esp + 0x18]
shl ecx, 8
mov dword [edx], ecx
movzx ecx, byte [eax + 1]
or dword [edx], ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
mov dword [edx + 4], ecx
movzx ecx, byte [eax + 3]
or dword [edx + 4], ecx
movzx esi, byte [eax + 4]
shl esi, 8
mov dword [edx + 8], esi
movzx esi, byte [eax + 5]
or dword [edx + 8], esi
movzx esi, byte [eax + 6]
lea ecx, [edx + 8]
shl esi, 8
mov dword [edx + 0xc], esi
movzx esi, byte [eax + 7]
or dword [edx + 0xc], esi
movzx esi, byte [eax + 8]
shl esi, 8
mov dword [edx + 0x10], esi
movzx esi, byte [eax + 9]
or dword [edx + 0x10], esi
movzx esi, byte [eax + 0xa]
shl esi, 8
mov dword [edx + 0x14], esi
movzx esi, byte [eax + 0xb]
or dword [edx + 0x14], esi
movzx esi, byte [eax + 0xc]
shl esi, 8
mov dword [edx + 0x18], esi
movzx esi, byte [eax + 0xd]
or dword [edx + 0x18], esi
movzx esi, byte [eax + 0xe]
shl esi, 8
mov dword [edx + 0x1c], esi
movzx eax, byte [eax + 0xf]
or eax, esi
mov dword [edx + 0x1c], eax
lea eax, [edx + 0x20]
xor ebx, ebx
jmp 0x4db170
mov esi, dword [ecx]
mov edi, dword [ecx - 4]
mov edx, esi
shr edx, 7
mov ebp, edi
shl ebp, 9
or edx, ebp
and edx, 0xffff
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 4], ebp
mov esi, dword [ecx + 8]
shl edx, 9
mov ebp, esi
shr ebp, 7
or edx, ebp
and edx, 0xffff
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 0xc], ebp
mov esi, dword [ecx + 0x10]
mov ebp, esi
shr ebp, 7
shl edx, 9
or edx, ebp
and edx, 0xffff
mov dword [eax + 0x10], edx
mov edx, dword [ecx + 0x14]
mov ebp, edx
shr ebp, 7
shl esi, 9
or ebp, esi
and ebp, 0xffff
mov dword [eax + 0x14], ebp
mov esi, dword [ecx - 8]
cmp ebx, 5
jge 0x4db233
mov ebp, esi
shl edx, 9
shr ebp, 7
shl esi, 9
shr edi, 7
or edx, ebp
or esi, edi
and edx, 0xffff
and esi, 0xffff
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], esi
inc ebx
add eax, 0x20
add ecx, 0x20
cmp ebx, 6
jl 0x4db170
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4db840
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 8
call fcn.004f8af0
mov eax, dword [esp + 0xc]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 4]
mov dword [esp], ecx
movzx ecx, byte [eax + 7]
push esi
movzx esi, byte [eax + 5]
movzx eax, byte [eax + 6]
shl ecx, 8
shl esi, 8
or ecx, eax
or edx, esi
shl ecx, 0x10
or ecx, edx
cmp dword [esp + 0x24], 0
mov dword [esp + 8], ecx
pop esi
je 0x4db8b6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004dc4c0
jmp 0x4db8cf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.004dc5e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [eax], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 2], dl
shr ecx, 0x18
mov byte [eax + 3], cl
mov ecx, dword [esp + 0x14]
mov edx, ecx
shr edx, 8
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov edx, ecx
shr edx, 0x10
add esp, 0x10
shr ecx, 0x18
mov byte [eax + 6], dl
mov byte [eax + 7], cl
add esp, 8
ret
Function at 0x4de0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.004f8af0
mov eax, dword [0x5498f8]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
push ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
push ebp
mov dword [esp + 0xc], eax
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x50]
movzx edx, byte [edi + 1]
movzx ebx, byte [edi + 5]
lea eax, [edi + 1]
mov dword [esp + 0x28], ecx
movzx ecx, byte [edi]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 1]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 2]
mov ebp, dword [esp + 0x48]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 6]
mov dword [esp + 0x2c], eax
movzx eax, byte [eax + 5]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
shl ebx, 0x10
or edx, ebx
mov byte [esp + 0x31], al
mov eax, ecx
mov ebx, ecx
mov byte [esp + 0x30], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x32], al
mov byte [esp + 0x33], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x24], edx
mov byte [esp + 0x34], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], al
mov byte [esp + 0x37], dl
test ebp, ebp
je 0x4de2a4
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
sub eax, ebp
mov dword [esp + 0x10], eax
dec dword [esp + 0x18]
test esi, esi
jne 0x4de21d
mov ecx, dword [esp + 0x28]
push 1
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004dbb30
mov ebx, dword [esp + 0x2c]
mov eax, ebx
shr eax, 8
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x30]
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x3e], cl
mov byte [esp + 0x3f], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x40], al
shr eax, 0x18
shr ecx, 8
shr edx, 0x10
add esp, 0xc
inc dword [esp + 0x1c]
mov byte [esp + 0x37], al
mov eax, dword [esp + 0x10]
mov byte [esp + 0x30], bl
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], dl
mov cl, byte [esp + esi + 0x30]
xor cl, byte [ebp]
inc esi
mov byte [eax + ebp], cl
inc ebp
and esi, 7
cmp dword [esp + 0x18], 0
jne 0x4de1b5
cmp dword [esp + 0x1c], 0
je 0x4de28b
mov eax, dword [esp + 0x2c]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x24]
shr ebx, 0x18
mov byte [eax + 2], bl
mov byte [eax + 3], cl
mov edx, ecx
shr edx, 8
mov byte [eax + 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 5], dl
shr ecx, 0x18
mov byte [eax + 6], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f7824
add esp, 0x2c
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004f7824
add esp, 0x2c
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f7824
add esp, 0x2c
ret
Function at 0x4e5a70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ecx, dword [ebx + 4]
jge 0x4e5a89
mov edi, ebx
mov ebx, eax
jmp 0x4e5a8b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jg 0x4e5a9b
mov eax, esi
jmp 0x4e5aa5
push eax
push esi
call fcn.004a96a0
add esp, 8
test eax, eax
jne 0x4e5aad
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x4e5ac9
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x4e5ab4
cmp eax, dword [edi + 4]
jge 0x4e5ae0
mov edi, edi
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4e5ad0
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x4e5b04
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x4e5b04
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x4e5af3
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4e5fa0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
cmp edi, esi
jne 0x4e5fc6
push 0x52d
push 0x5299f0
push 0x5299e0
call fcn.004fbcfc
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ebx, [eax - 1]
test eax, ebx
je 0x4e5fe8
push 0x52e
push 0x5299f0
push 0x529998
call fcn.004fbcfc
add esp, 0xc
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
shr ebx, 0x1f
xor eax, edx
lea ecx, [ebx - 1]
mov ebx, dword [esp + 0x1c]
and eax, ecx
xor edx, eax
mov dword [edi + 4], edx
xor dword [esi + 4], eax
lea eax, [ebx - 1]
cmp eax, 9
ja case.default.0x4e600c
jmp dword [eax*4 + 0x4e6138]
mov edx, 0xa
cmp ebx, edx
jle case.0x4e600c.10
push ebp
lea ecx, [ecx]
mov eax, dword [edi]
mov ebx, dword [eax + edx*4]
lea ebp, [eax + edx*4]
mov eax, dword [esi]
mov eax, dword [eax + edx*4]
xor eax, ebx
and eax, ecx
xor ebx, eax
mov dword [ebp], ebx
mov ebx, dword [esi]
xor dword [ebx + edx*4], eax
lea ebx, [ebx + edx*4]
inc edx
cmp edx, dword [esp + 0x20]
jl 0x4e6020
pop ebp
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 0x24]
mov eax, dword [eax + 0x24]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 0x24], edx
mov edx, dword [esi]
xor dword [edx + 0x24], eax
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 0x20]
mov eax, dword [eax + 0x20]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 0x20], edx
mov edx, dword [esi]
xor dword [edx + 0x20], eax
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 0x1c]
mov eax, dword [eax + 0x1c]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 0x1c], edx
mov edx, dword [esi]
xor dword [edx + 0x1c], eax
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 0x18]
mov eax, dword [eax + 0x18]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 0x18], edx
mov edx, dword [esi]
xor dword [edx + 0x18], eax
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 0x14]
mov eax, dword [eax + 0x14]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 0x14], edx
mov edx, dword [esi]
xor dword [edx + 0x14], eax
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 0x10]
mov eax, dword [eax + 0x10]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 0x10], edx
mov edx, dword [esi]
xor dword [edx + 0x10], eax
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 0xc], edx
mov edx, dword [esi]
xor dword [edx + 0xc], eax
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 8]
mov eax, dword [eax + 8]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 8], edx
mov edx, dword [esi]
xor dword [edx + 8], eax
mov ebx, dword [edi]
mov eax, dword [esi]
mov edx, dword [ebx + 4]
mov eax, dword [eax + 4]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [ebx + 4], edx
mov edx, dword [esi]
xor dword [edx + 4], eax
mov eax, dword [esi]
mov edi, dword [edi]
mov edx, dword [edi]
mov eax, dword [eax]
xor eax, edx
and eax, ecx
xor edx, eax
mov dword [edi], edx
mov esi, dword [esi]
xor dword [esi], eax
pop edi
pop esi
pop ebx
ret
Function at 0x4e6fd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004f8af0
mov eax, dword [0x5498f8]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x4e701f
mov eax, 1
mov dword [esi], ebx
jmp 0x4e7021
mov ebx, dword [esi]
test ecx, ecx
je 0x4e70e8
push ebx
call fcn.004d3090
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x4e7050
push 0x529c48
push 0x51
push 0x529c30
call fcn.004aa740
add esp, 0xc
mov ebp, dword [esp + 0xa8]
cmp edi, ebp
jge 0x4e7089
mov ecx, dword [esp + 0x10]
push ecx
lea edi, [esi + 4]
push ebx
push edi
call fcn.004c89a0
mov edx, dword [esp + 0x20]
push ebp
push edx
push edi
call fcn.004c8a50
lea ebp, [esi + 0x34]
push ebp
lea eax, [esi + 0x38]
push eax
push edi
call fcn.004c8a60
add esp, 0x24
jmp 0x4e70c4
cmp ebp, 0x80
jbe 0x4e70a5
push 0x529c04
push 0x57
push 0x529c30
call fcn.004aa740
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esi + 0x38]
push edx
call fcn.004f8b20
mov eax, dword [esp + 0xb4]
lea ebp, [esi + 0x34]
add esp, 0xc
mov dword [ebp], eax
mov ebp, dword [ebp]
cmp ebp, 0x80
je 0x4e70ec
mov ecx, 0x80
sub ecx, ebp
push ecx
lea edx, [esi + ebp + 0x38]
push 0
push edx
call fcn.004f8f00
add esp, 0xc
jmp 0x4e70ec
test eax, eax
je 0x4e7163
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x4e70f0
mov ebp, dword [esp + 0x10]
push ebp
lea edi, [esi + 0x14]
push ebx
push edi
call fcn.004c89a0
push ebx
call fcn.004d3090
push eax
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.004c8a50
add esp, 0x1c
xor eax, eax
lea esp, [esp]
mov cl, byte [esi + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x4e7130
push ebp
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.004c89a0
push ebx
call fcn.004d3090
push eax
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.004c8a50
add esp, 0x1c
lea eax, [esi + 0x14]
push eax
add esi, 4
push esi
call fcn.004c8b50
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f7824
add esp, 0x8c
ret
Function at 0x4e74a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd0
call fcn.004f8af0
mov eax, dword [0x5498f8]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd4]
mov edx, dword [ecx + 0x50]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
lea eax, [ecx + 0x54]
lea ebp, [esp + 0x5c]
lea edi, [esp + 0x9c]
lea esi, [ecx + 0x14]
xor ebx, ebx
sub ebp, eax
sub edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
sub esi, eax
jmp 0x4e74f0
mov edx, dword [eax]
mov ecx, dword [esp + 0x14]
movzx ecx, byte [ecx + ebx]
mov dword [eax + ebp - 0x40], edx
xor edx, ecx
mov dword [eax + ebp], ecx
xor ecx, dword [esp + 0x10]
mov dword [edi + eax], edx
mov edx, dword [ecx*4 + 0x5487e0]
xor dword [esi + eax], edx
mov ecx, dword [esi + eax]
inc ebx
add eax, 4
mov dword [esp + 0x10], ecx
cmp ebx, 0x10
jl 0x4e74f0
xor ecx, ecx
xor edx, edx
jmp 0x4e7530
xor eax, eax
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0x1c]
add eax, 8
mov dword [esp + eax*4 - 4], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4]
mov dword [esp + eax*4], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 4]
mov dword [esp + eax*4 + 4], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 8]
mov dword [esp + eax*4 + 8], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0xc]
mov dword [esp + eax*4 + 0xc], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0x10]
mov dword [esp + eax*4 + 0x10], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0x14]
mov dword [esp + eax*4 + 0x14], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + eax*4 + 0x18]
cmp eax, 0x30
jl 0x4e7532
add ecx, edx
inc edx
and ecx, 0xff
cmp edx, 0x12
jl 0x4e7530
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push 0xc0
mov ecx, 0x10
lea esi, [esp + 0x20]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004b29b0
mov ecx, dword [esp + 0xe4]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f7824
add esp, 0xd0
ret
Function at 0x4e7600
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xd8
call fcn.004f8af0
mov eax, dword [0x5498f8]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xdc]
push ebp
mov ebp, dword [esp + 0xe4]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
push esi
mov ecx, 0x10
lea esi, [ebp + 0x54]
sub ecx, eax
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
cmp eax, 0x10
jge 0x4e765d
mov edi, 0x10
sub edi, eax
push edi
lea edx, [eax + ebp + 4]
push ecx
push edx
call fcn.004f8f00
add esp, 0xc
mov ecx, dword [ebp + 0x50]
push ebx
mov dword [esp + 0x18], ecx
lea ebx, [esp + 0x64]
lea ecx, [esp + 0xa4]
sub ecx, esi
mov eax, esi
sub ebx, esi
lea esi, [ebp + 0x14]
xor edi, edi
mov dword [esp + 0x1c], ecx
sub esi, eax
jmp 0x4e7687
mov ebp, dword [esp + 0x10]
movzx ecx, byte [edi + ebp + 4]
mov edx, dword [eax]
mov ebp, dword [esp + 0x1c]
mov dword [ebx + eax - 0x40], edx
xor edx, ecx
mov dword [ebx + eax], ecx
xor ecx, dword [esp + 0x18]
mov dword [eax + ebp], edx
mov edx, dword [ecx*4 + 0x5487e0]
xor dword [esi + eax], edx
mov ecx, dword [esi + eax]
inc edi
add eax, 4
mov dword [esp + 0x18], ecx
cmp edi, 0x10
jl 0x4e7683
xor ecx, ecx
xor edx, edx
pop ebx
xor eax, eax
jmp 0x4e76d0
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0x20]
add eax, 8
mov dword [esp + eax*4], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 4]
mov dword [esp + eax*4 + 4], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 8]
mov dword [esp + eax*4 + 8], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0xc]
mov dword [esp + eax*4 + 0xc], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0x10]
mov dword [esp + eax*4 + 0x10], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0x14]
mov dword [esp + eax*4 + 0x14], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor ecx, dword [esp + eax*4 + 0x18]
mov dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [ecx*4 + 0x5487e0]
xor dword [esp + eax*4 + 0x1c], ecx
mov ecx, dword [esp + eax*4 + 0x1c]
cmp eax, 0x30
jl 0x4e76d0
add ecx, edx
inc edx
and ecx, 0xff
cmp edx, 0x12
jl 0x4e76c1
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0xc0
mov ecx, 0x10
lea esi, [esp + 0x24]
mov edi, ebp
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004b29b0
mov ecx, dword [esp + 0x14]
add esp, 8
xor eax, eax
lea ebx, [ebx]
mov dl, byte [ecx + eax*4 + 0x14]
lea esi, [ecx + 4]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x10
jl 0x4e7790
push esi
call fcn.004e74a0
mov ecx, dword [esp + 0x20]
add esp, 4
xor eax, eax
nop
mov dl, byte [ebp + eax*4]
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x10
jl 0x4e77b0
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004f7824
add esp, 0xd8
ret

Function at 0x4f7824
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5498f8]
jne 0x4f782e
repz ret
jmp fcn.004fd601
Function at 0x506c3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5498f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004fefea
and dword [ebp - 0x14], 0
cmp dword [0x559d64], 0
mov dword [ebp - 0x18], eax
jne 0x506cf1
push 0x52ea20
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x506d99
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x52ea14
push ebx
call edi
test eax, eax
je 0x506d99
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x52ea04
push ebx
mov dword [0x559d64], eax
call edi
push eax
call esi
push 0x52e9f0
push ebx
mov dword [0x559d68], eax
call edi
push eax
call esi
push 0x52e9d4
push ebx
mov dword [0x559d6c], eax
call edi
push eax
call esi
mov dword [0x559d74], eax
test eax, eax
je 0x506cf1
push 0x52e9bc
push ebx
call edi
push eax
call esi
mov dword [0x559d70], eax
mov eax, dword [0x559d70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x506d4a
cmp dword [0x559d74], ecx
je 0x506d4a
push eax
call esi
push dword [0x559d74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x506d4a
test ebx, ebx
je 0x506d4a
call edi
test eax, eax
je 0x506d41
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x506d41
test byte [ebp - 8], 1
jne 0x506d4a
or dword [ebp + 0x10], 0x200000
jmp 0x506d7d
mov eax, dword [0x559d68]
cmp eax, dword [ebp - 0x18]
je 0x506d7d
push eax
call esi
test eax, eax
je 0x506d7d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x506d7d
mov eax, dword [0x559d6c]
cmp eax, dword [ebp - 0x18]
je 0x506d7d
push eax
call esi
test eax, eax
je 0x506d7d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x559d64]
call esi
test eax, eax
je 0x506d99
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x506d9b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f7824
leave
ret
Function at 0x402974
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4029b1
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x4029d1
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404650
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402bd4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043e0
test esi, esi
jne 0x402c0a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044d0
jmp 0x402c28
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402ae8
mov edi, eax
test esi, esi
je 0x402c28
cmp dword [ebx], 0
je 0x402c28
dec esi
jmp 0x402c11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403420
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4a5020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4034b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403498
xor eax, eax
push ebp
push 0x403491
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4034d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403498
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4a5020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4a5020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404264
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ab04c], 0
je 0x4042c5
cmp word [0x4ab220], 0xd7b2
jne 0x40428d
cmp dword [0x4ab228], 0
jbe 0x40428d
mov eax, 0x4ab21c
call dword [0x4ab238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4a5074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4042ec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4a5030], 0
jne 0x4042e1
push 0
push 0x4a506c
push 0x4a5074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret