joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa047
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov esi, dword [edx + 0x14]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4aa0cd
mov edx, eax
mov edi, dword [ebp + 0xc]
mov eax, esi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 8
xor cl, byte [eax + edi]
movzx eax, cl
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x5c8840]
movzx eax, bl
add eax, edx
imul edx, eax, 0x8088405
inc edx
mov eax, edx
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x5c8840]
mov eax, dword [ebp - 4]
mov byte [eax + edi], cl
inc eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x4aa068
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, edi
pop edi
mov dword [edx + 0x14], esi
pop esi
mov dword [edx + 0xc], ebx
pop ebx
leave
ret 0xc

Function at 0x4aa0df
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
mov edi, dword [esi + 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], ecx
jbe 0x4aa169
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov dl, byte [ecx + eax]
mov eax, edi
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov eax, dword [ebp - 4]
shr ecx, 8
xor cl, dl
mov byte [eax + esi], cl
movzx eax, dl
xor eax, ebx
mov ecx, dword [ebp - 4]
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + 0x5c8840]
movzx eax, bl
add eax, dword [ebp - 8]
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [ebp - 8], esi
shr eax, 0x18
xor eax, edi
shr edi, 8
movzx eax, al
xor edi, dword [eax*4 + 0x5c8840]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x4aa100
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], edi
pop edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
leave
ret 0xc
Function at 0x4abfe7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov edx, dword [edx]
and edx, 7
cmp eax, 5
jae 0x4ac005
xor eax, eax
jmp 0x4ac12b
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
push ebx
mov ebx, dword [ebp + 8]
add ecx, ebx
push esi
mov dword [ebp + 0xc], ecx
lea esi, [edi + ebx]
jmp 0x4ac024
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4ac028
inc esi
cmp esi, ecx
jb 0x4ac01b
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, ebx
sub edi, ebx
cmp esi, dword [ebp + 0xc]
jae 0x4ac118
cmp ecx, 2
jbe 0x4ac0b2
xor edx, edx
movzx ecx, byte [esi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x4ac10c
movzx eax, byte [esi + 3]
mov ebx, dword [ebp + 0x10]
shl ecx, 8
add ebx, edi
or ecx, eax
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
add ecx, ebx
sub eax, ebx
cmp dword [ebp + 0x18], 0
cmove ecx, eax
mov dword [ebp - 4], ecx
mov ebx, ecx
test edx, edx
je 0x4ac0e6
and edx, 6
mov eax, ecx
shl edx, 2
mov ecx, edx
shr eax, cl
inc eax
test al, 0xfe
jne 0x4ac0e4
mov eax, dword [ebp + 0x10]
mov ebx, 0x100
shl ebx, cl
add eax, edi
dec ebx
xor ebx, dword [ebp - 4]
cmp dword [ebp + 0x18], 0
je 0x4ac0e2
add ebx, eax
jmp 0x4ac0e4
shr edx, cl
test edx, edx
je 0x4ac042
cmp edx, 4
ja 0x4ac0d4
cmp edx, 3
je 0x4ac0d4
mov eax, edx
shr eax, 1
movzx eax, byte [eax + esi + 1]
inc eax
test al, 0xfe
jne 0x4ac042
or edx, 8
shr edx, 1
inc edi
mov ecx, dword [ebp + 0xc]
jmp 0x4ac016
sub ebx, eax
xor edx, edx
mov eax, ebx
mov byte [esi + 1], bl
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
push 5
mov byte [esi + 4], bl
mov ebx, dword [ebp + 8]
pop eax
jmp 0x4ac114
or edx, 8
xor eax, eax
shr edx, 1
inc eax
add edi, eax
jmp 0x4ac0da
xor eax, eax
shr edx, cl
cmp ecx, 2
pop esi
cmova edx, eax
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], edx
mov eax, edi
pop edi
leave
ret
Function at 0x4afcda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x100
or esi, edi
mov eax, esi
add ebx, ebx
shr eax, 7
mov ecx, edi
and eax, 1
and ecx, ebx
push eax
mov eax, esi
add ecx, edi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + eax*2]
push eax
push dword [ebp + 8]
call fcn.004b0f48
add esi, esi
add esp, 0xc
mov eax, esi
xor eax, ebx
not eax
and edi, eax
cmp esi, 0x10000
jb 0x4afced
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4afd2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
or esi, 0x100
mov ecx, dword [ebp + 8]
mov eax, esi
shr eax, 8
movzx edx, word [ecx + eax*2]
mov ecx, esi
shr ecx, 7
add esi, esi
and ecx, 1
shr edx, 4
neg ecx
sar ecx, 4
and ecx, 0x7f
xor edx, ecx
add edi, dword [ebx + edx*4]
cmp esi, 0x10000
jb 0x4afd42
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4afd77
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, 0x100
xor edi, edi
or edx, esi
add ebx, ebx
mov ecx, esi
and ecx, ebx
mov eax, edx
add ecx, esi
shr eax, 8
add eax, ecx
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + eax*2]
mov eax, edx
shr eax, 7
add edx, edx
and eax, 1
shr ecx, 4
neg eax
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [ebp + 0x14]
add edi, dword [eax + ecx*4]
mov ecx, edx
xor ecx, ebx
not ecx
and esi, ecx
cmp edx, 0x10000
jb 0x4afd8c
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b108d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
bts esi, eax
xor edi, edi
cmp esi, 1
je 0x4b10cc
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
mov edx, esi
and esi, 1
shr edx, 1
neg esi
sar esi, 4
and esi, 0x7f
movzx ecx, word [ebx + edx*2]
shr ecx, 4
xor ecx, esi
mov esi, edx
add edi, dword [eax + ecx*4]
cmp esi, 1
jne 0x4b10a9
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4b1113
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
xor esi, esi
inc edi
test ebx, ebx
je 0x4b1157
mov eax, dword [ebp + 0x10]
mov edx, eax
shr eax, 1
and edx, 1
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edi*2]
mov eax, edx
neg eax
shr ecx, 4
sar eax, 4
add edi, edi
and eax, 0x7f
or edi, edx
xor ecx, eax
mov eax, dword [ebp + 0x14]
add esi, dword [eax + ecx*4]
sub ebx, 1
jne 0x4b1125
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x4b12a5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xc], 0
je 0x4b12bb
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx]
je 0x4b12df
mov eax, dword [esi]
push dword [esi + 0xc]
mov eax, dword [eax + 0x18]
push eax
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 0x18]
push ecx
push eax
call dword [eax]
add esp, 0x10
mov dword [esi + 0xc], eax
test eax, eax
je 0x4b133c
cmp dword [esi + 4], 0
je 0x4b12ef
mov ecx, dword [esi]
mov eax, dword [esi + 8]
cmp eax, dword [ecx + 4]
je 0x4b1314
mov eax, dword [esi]
push dword [esi + 4]
mov eax, dword [eax + 0x18]
push eax
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
mov eax, dword [eax + 0x18]
push ecx
push eax
call dword [eax]
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
je 0x4b133c
and dword [esi + 0x34], 0
lea eax, [esi + 0x3c]
and dword [esi + 0x38], 0
push eax
call fcn.004b4320
pop ecx
test eax, eax
jne 0x4b1338
lea eax, [esi + 0x40]
push eax
call fcn.004b4320
pop ecx
test eax, eax
je 0x4b133f
push 0xc
jmp 0x4b133e
push 2
pop eax
pop esi
pop ebp
ret

Function at 0x4b13a6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
and dword [esi + 0xc], 0
lea eax, [esi + 4]
push eax
call fcn.004b4320
pop ecx
test eax, eax
jne 0x4b13dc
lea eax, [esi + 8]
push eax
call fcn.004b4320
pop ecx
test eax, eax
jne 0x4b13dc
push esi
push 0x4b1342
push esi
call fcn.004b449c
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x4b29f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x5ac640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
mov esi, dword [edi]
movzx ecx, word [edx + 4]
movzx eax, word [edx + 2]
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x108], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
cmove eax, edx
xor ebx, ebx
test ecx, ecx
mov dword [ebp - 0x104], eax
mov ecx, dword [esi + 8]
sete bl
xor eax, eax
inc eax
test ecx, ecx
jne 0x4b2a7b
mov eax, dword [ebp - 0x108]
mov cl, byte [eax]
xor edx, edx
inc eax
mov byte [ebp - 0x110], cl
mov word [ebp - 0x10e], ax
inc edx
shr eax, 0x10
mov dword [ebp - 0x108], eax
movzx eax, word [esi]
cmp ax, dx
jne 0x4b2acd
mov al, byte [esi + 3]
jmp 0x4b2b0a
xor eax, eax
inc eax
mov esi, ecx
cmp word [esi], ax
je 0x4b2a92
mov ecx, dword [esi + 4]
mov al, byte [edx]
jmp 0x4b2a8c
add ecx, 6
cmp byte [ecx], al
jne 0x4b2a89
jmp 0x4b2a95
lea ecx, [esi + 2]
movzx edx, word [ecx + 4]
movzx eax, word [ecx + 2]
shl edx, 0x10
or edx, eax
mov eax, dword [ebp - 0x108]
cmp edx, eax
jne 0x4b2ac0
mov edx, dword [edi + 8]
mov dword [ebp + ebx*4 - 0x104], ecx
inc ebx
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x4b2a78
jmp 0x4b2a4c
mov esi, edx
test ebx, ebx
jne 0x4b2a4c
mov eax, edx
jmp 0x4b2b81
mov eax, dword [esi + 4]
jmp 0x4b2ad5
add eax, 6
cmp byte [eax], cl
jne 0x4b2ad2
movzx edx, byte [eax + 1]
movzx eax, word [esi]
dec edx
movzx ecx, word [esi + 2]
sub ecx, eax
sub ecx, edx
lea eax, [edx + edx]
cmp eax, ecx
ja 0x4b2afb
imul eax, edx, 5
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x4b2b08
imul eax, ecx, 3
add ecx, ecx
lea eax, [eax + edx*2]
xor edx, edx
dec eax
div ecx
inc al
mov byte [ebp - 0x10f], al
mov edx, dword [edi + 0x38]
cmp edx, dword [edi + 0x34]
je 0x4b2b20
add edx, 0xfffffff4
mov dword [edi + 0x38], edx
jmp 0x4b2b44
mov edx, dword [edi + 0xf0]
test edx, edx
je 0x4b2b34
mov eax, dword [edx]
mov dword [edi + 0xf0], eax
jmp 0x4b2b44
push 0
push edi
call fcn.004b296a
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x4b2b7f
mov ecx, dword [ebp + ebx*4 - 0x108]
xor eax, eax
inc eax
mov dword [edx + 8], esi
mov word [edx], ax
dec ebx
mov eax, dword [ebp - 0x110]
mov esi, edx
mov dword [edx + 2], eax
mov eax, dword [ebp - 0x108]
mov word [edx + 6], ax
mov eax, edx
shr eax, 0x10
mov word [ecx + 2], dx
mov word [ecx + 4], ax
test ebx, ebx
jne 0x4b2b10
mov eax, esi
jmp 0x4b2b81
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.007dac04
leave
ret
Function at 0x4b40b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor bl, bl
push edi
mov edi, dword [ebp + 0xc]
xor cl, cl
xor eax, eax
or dword [esi], 0xffffffff
mov byte [esi + 4], 0
test edi, edi
je 0x4b411d
mov edx, dword [ebp + 8]
xor cl, byte [eax + edx]
inc eax
cmp eax, edi
jb 0x4b40d7
test cl, cl
jne 0x4b411d
test edi, edi
je 0x4b411d
mov ecx, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov edx, edi
mov byte [esi + 4], bl
call fcn.0049bebd
mov edx, eax
xor ecx, ecx
xor eax, eax
cmp dword [eax + 0x5689e4], edx
jne 0x4b410d
cmp dword [eax + 0x5689e0], edi
je 0x4b4126
add eax, 0xc
inc ecx
cmp eax, 0x48
jb 0x4b40fd
or dword [esi], 0xffffffff
mov byte [esi + 4], 0
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
mov dword [esi], ecx
test ecx, ecx
js 0x4b4119
jmp 0x4b411d

Function at 0x4b8e12
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x200
jb 0x4b8e78
mov edx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x4b8e78
mov ecx, dword [edx + 0x3c]
cmp ecx, 0x1000
jae 0x4b8e78
lea eax, [ecx + 0x200]
cmp eax, dword [ebp + 0xc]
ja 0x4b8e78
test cl, 7
jne 0x4b8e78
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x4b8e78
movzx eax, word [ecx + 4]
sub eax, 0x14c
je 0x4b8e91
sub eax, 0x74
je 0x4b8e8a
dec eax
sub eax, 1
je 0x4b8e8a
dec eax
sub eax, 1
je 0x4b8e83
sub eax, 0x3c
je 0x4b8e7c
sub eax, 0x8464
je 0x4b8e91
xor eax, eax
pop ebp
ret
mov edx, 0x3030401
jmp 0x4b8e96
mov edx, 0x3030701
jmp 0x4b8e96
mov edx, 0x3030501
jmp 0x4b8e96
mov edx, 0x3030103
mov eax, 0x400
cmp word [ecx + 0x14], ax
ja 0x4b8e78
movzx eax, word [ecx + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x4b8eb9
mov ecx, 0x20b
cmp ax, cx
jne 0x4b8e78
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
xor eax, eax
inc eax
pop ebp
ret
Function at 0x4be3de
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
pop ebp
ret

Function at 0x4be695
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x5ac640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x10
xor eax, eax
mov dword [ebp - 0xbc], ebx
pop ecx
lea edi, [ebp - 0x58]
mov dword [ebp - 0xc0], esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
cmp edi, 0x40
jbe 0x4be713
lea eax, [ebp - 0xb8]
push eax
call fcn.004be3de
push edi
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.004be410
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004bdac6
add esp, 0x18
xor esi, esi
mov ecx, esi
mov eax, dword [ebp + ecx - 0x18]
bswap eax
mov dword [ebp + ecx - 0x58], eax
add ecx, 4
cmp ecx, 0x14
jb 0x4be6ff
jmp 0x4be74a
xor esi, esi
mov ebx, esi
test edi, edi
je 0x4be744
mov esi, dword [ebp - 0xc0]
mov eax, ebx
mov edx, ebx
and eax, 3
shr edx, 2
push 3
pop ecx
sub ecx, eax
movzx eax, byte [esi + ebx]
shl ecx, 3
shl eax, cl
or dword [ebp + edx*4 - 0x58], eax
inc ebx
cmp ebx, edi
jb 0x4be721
xor esi, esi
mov ebx, dword [ebp - 0xbc]
mov eax, esi
movups xmm0, xmmword [ebp + eax*4 - 0x58]
pxor xmm0, xmmword [str.6666666666666666jjjjjjjjjjjjjjjj0]
movups xmmword [ebp + eax*4 - 0x58], xmm0
add eax, 4
cmp eax, 0x10
jb 0x4be74c
push ebx
call fcn.004be3de
push 0x10
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.004bda77
add esp, 0x10
movups xmm0, xmmword [ebp + esi*4 - 0x58]
pxor xmm0, xmmword [0x5690a0]
movups xmmword [ebp + esi*4 - 0x58], xmm0
add esi, 4
cmp esi, 0x10
jb 0x4be77b
lea esi, [ebx + 0x60]
push esi
call fcn.004be3de
push 0x10
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.004bda77
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.007dac04
leave
ret 8
Function at 0x4be7be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5ac640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov eax, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
mov byte [ebp + eax - 0x44], bl
inc eax
cmp eax, 0x40
jb 0x4be7e0
cmp edi, 0x40
jbe 0x4be80e
push esi
call fcn.004be3de
push edi
push dword [ebp - 0x48]
push esi
call fcn.004be410
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004bdac6
add esp, 0x18
jmp 0x4be820
test edi, edi
je 0x4be820
push edi
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.004ffbc0
add esp, 0xc
mov eax, ebx
xor byte [ebp + eax - 0x44], 0x36
inc eax
cmp eax, 0x40
jb 0x4be822
push esi
call fcn.004be3de
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004be410
add esp, 0x10
xor byte [ebp + ebx - 0x44], 0x6a
inc ebx
cmp ebx, 0x40
jb 0x4be842
add esi, 0x60
push esi
call fcn.004be3de
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.004be410
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.007dac04
leave
ret 8

Function at 0x4bf78f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x18]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0xc], eax
xor eax, eax
mov word [esi], ax
cmp byte [edi + 1], al
je 0x4bf80c
mov bl, byte [edi + 2]
lea eax, [edi + 0x20]
push eax
lea ecx, [esi + 0x24]
call fcn.0047d920
movzx eax, byte [edi + 4]
mov ecx, esi
push eax
push 0x800
call fcn.004bf871
mov eax, dword [edi + 0x10]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x74], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x78], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x7c], eax
mov al, byte [edi + 3]
mov byte [esi + 0x80], al
jmp 0x4bf815
mov ecx, esi
call fcn.004aaac1
mov bl, al
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x38]
mov dword [esi + 0x48], ecx
mov ecx, dword [edx + 0x3c]
mov dword [esi + 0x4c], ecx
xor ecx, ecx
mov dword [esi + 0x40], 0x3f
mov byte [esi + 5], cl
test bl, bl
jne 0x4bf840
mov eax, dword [ebp + 0xc]
mov byte [ebp + 0x14], 1
cmp byte [eax + 0x24], cl
jne 0x4bf843
mov byte [ebp + 0x14], cl
push dword [ebp + 0x14]
mov ecx, esi
push 1
call fcn.004bf871
test bl, bl
je 0x4bf86c
xor eax, eax
mov byte [esi + 4], 0x14
mov word [esi + 2], ax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4c2617
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
je 0x4c262a
xor eax, eax
jmp 0x4c26b4
lea eax, [esi + 0x30]
push edi
push eax
call fcn.004b4334
pop ecx
test eax, eax
jne 0x4c26b0
xor edi, edi
lea eax, [esi + 0x14]
inc edi
push eax
mov dword [esi + 0x28], edi
call fcn.004b4320
pop ecx
test eax, eax
jne 0x4c26b0
lea eax, [esi + 0x18]
push eax
call fcn.004b4320
pop ecx
test eax, eax
jne 0x4c26b0
lea eax, [esi + 0x1c]
push eax
call fcn.004b4320
pop ecx
test eax, eax
jne 0x4c26b0
push dword [ebp + 0x14]
lea eax, [esi + 0x20]
push dword [ebp + 0x14]
push eax
call fcn.004b443d
add esp, 0xc
test eax, eax
jne 0x4c26b0
push dword [ebp + 0x14]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004b443d
add esp, 0xc
test eax, eax
jne 0x4c26b0
push dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov dword [esi + 4], edi
push dword [ebp + 0xc]
push eax
call fcn.004b449c
add esp, 0xc
test eax, eax
jne 0x4c26b0
mov dword [esi], edi
jmp 0x4c26b3
push 0xc
pop eax
pop edi
pop esi
pop ebp
ret

Function at 0x4c2862
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 4]
cmp dword [ebx], 0
jne 0x4c2879
push ebx
call fcn.004b4320
pop ecx
test eax, eax
jne 0x4c28bb
push edi
lea edi, [esi + 8]
cmp dword [edi], 0
jne 0x4c288d
push edi
call fcn.004b4320
pop ecx
test eax, eax
jne 0x4c28ba
push ebx
call fcn.004b43a8
push edi
call fcn.004b43a8
lea eax, [esi + 0xc]
mov byte [esi + 0x10], 0
cmp dword [eax], 0
pop ecx
pop ecx
je 0x4c28ab
xor eax, eax
jmp 0x4c28ba
push esi
push 0x4c2824
push eax
call fcn.004b449c
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4c855b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5ac640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.0047da2e
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.007dac04
leave
ret

Function at 0x4c85e8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4c8c58
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x4cd040
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
cmp dword [ebp + 0xc], 0
jne 0x4cd058
mov dword [ebp - 8], 0x569628
jmp 0x4cd05f
mov dword [ebp - 8], 0x569630
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x14], 0
je 0x4cd09c
mov dword [ebp - 0xc], 1
jmp 0x4cd0a3
mov dword [ebp - 0xc], 0
movzx eax, byte [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc