joyce8/EMBER2024-capa huggingface dataset:
Function at 0x526260
Capabilities:
Get hostname
Send data
Send data on socket

Disassembly:
sub esp, 0x20
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x30]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebp
call fcn.00525ed0
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x526286
sub ecx, edx
xor ebp, ebp
inc ecx
push 0x100
mov dword [esp + 0x14], ecx
call fcn.00522730
mov esi, eax
add esp, 4
test esi, esi
je 0x5262d5
push 0x100
push esi
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x5262cc
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5262c0
sub ecx, edx
lea ebp, [ecx + 1]
push esi
call fcn.00549ff4
add esp, 4
mov esi, dword [esp + 0x10]
push 0x12c
lea eax, [esi + 0x20]
add eax, ebp
push eax
push 0x12
mov dword [esp + 0x24], eax
call fcn.00522970
mov edi, eax
test edi, edi
je 0x5263d3
mov eax, dword [esp + 0x34]
xorps xmm0, xmm0
movdqu xmmword [edi + 8], xmm0
movq qword [edi + 0x18], xmm0
test eax, eax
je 0x52634a
mov esi, dword [eax]
mov eax, dword [0x598c88]
and esi, 1
and eax, 0xe00000
or esi, eax
call fcn.00524a70
mov ecx, dword [esp + 0x34]
movzx eax, al
shl eax, 0x18
or eax, esi
mov esi, dword [esp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x1c], eax
push esi
push dword [esp + 0x18]
lea eax, [edi + 0x20]
mov dword [edi + 0x14], esi
push eax
mov dword [edi + 0x18], ebp
call fcn.0054adf0
add esp, 0xc
lea eax, [esi + 0x20]
add eax, edi
push ebp
push eax
call fcn.00525060
mov esi, dword [0x5a4384]
test esi, esi
je 0x5263d3
mov ebp, dword [esp + 0x18]
mov eax, 2
mov word [esp + 0x1c], ax
mov eax, dword [esi + 4]
test eax, eax
je 0x5263c4
mov dword [esp + 0x20], eax
movzx eax, word [0x5a2908]
push eax
call sub.WS2_32.dll_htons
push 0x10
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push eax
push 0
push ebp
push edi
push dword [0x598de8]
call sub.WS2_32.dll_sendto
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x5263d3
mov esi, dword [esi]
mov eax, 2
test esi, esi
jne 0x526380
test ebx, ebx
jne 0x5263f0
cmp dword [0x598c84], 0
jne 0x5263f0
mov dword [0x5a28e0], 0
mov dword [0x598c84], 0x61
push edi
call fcn.00549ff4
mov ecx, dword [esp + 0x30]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x20
ret 0xc

Function at 0x526410
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 8]
push 0
movzx eax, word [ecx + 2]
push eax
mov eax, dword [esp + 0xc]
push ecx
push dword [eax + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x52643c
mov dword [0x598c84], 0x61
xor eax, eax
ret 8
mov eax, 1
ret 8
Function at 0x526450
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x228
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x224], eax
push esi
mov esi, dword [0x5a4384]
xor cl, cl
mov byte [esp + 7], cl
test esi, esi
je 0x526634
push ebx
push edi
jmp 0x526480
cmp byte [esi + 0xc], 0
lea eax, [esi + 0xc]
je 0x526628
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x526624
mov eax, dword [eax + 0xc]
push 0x100
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
lea eax, [esp + 0x134]
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x526616
lea eax, [esp + 0x130]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x526616
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax]
mov ebx, dword [eax]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0x10c
push eax
call fcn.00528490
test eax, eax
jne 0x526616
mov edx, dword [esp + 0x24]
test edx, edx
jle 0x526616
lea ecx, [esp + 0x28]
jmp 0x526520
cmp dword [ecx], ebx
je 0x52653d
inc eax
add ecx, 0x18
cmp eax, edx
jl 0x526520
mov cl, byte [esp + 0xf]
xor al, al
or cl, al
mov byte [esp + 0xf], cl
jmp 0x526628
lea eax, [eax + eax*2]
mov edx, dword [esp + eax*8 + 0x30]
test edx, edx
je 0x526616
mov ecx, dword [esi + 4]
mov eax, ebx
shr eax, 0x18
and ecx, edx
mov byte [esp + 0x14], al
not edx
mov eax, ebx
mov byte [esp + 0x1f], cl
shr eax, 0x10
mov byte [esp + 0x15], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x16], al
movzx eax, byte [esi + 7]
mov byte [esp + 0x10], al
movzx eax, byte [esi + 6]
mov byte [esp + 0x11], al
movzx eax, byte [esi + 5]
mov byte [esp + 0x12], al
movzx eax, byte [esi + 4]
mov byte [esp + 0x13], al
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x1c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x1d], al
mov eax, ecx
mov ecx, dword [esp + 0x10]
shr eax, 8
mov byte [esp + 0x1e], al
mov eax, edx
mov edi, dword [esp + 0x1c]
shr eax, 0x18
mov byte [esp + 0x18], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x19], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x1a], al
mov byte [esp + 0x1b], dl
mov eax, dword [esp + 0x18]
or eax, edi
mov byte [esp + 0x17], bl
cmp ecx, edi
jbe 0x5265f4
cmp ecx, eax
jae 0x5265f2
mov edx, dword [esp + 0x14]
cmp edx, edi
jbe 0x5265f2
cmp edx, eax
jb 0x5265fa
cmp ecx, edi
je 0x52660f
cmp ecx, eax
je 0x52660f
mov cl, byte [esp + 0xf]
mov al, 1
or cl, al
mov dword [esi + 8], 1
mov byte [esp + 0xf], cl
jmp 0x526628
mov dword [esi + 8], 0
mov cl, byte [esp + 0xf]
xor al, al
or cl, al
mov byte [esp + 0xf], cl
jmp 0x526628
mov cl, byte [esp + 0xf]
mov esi, dword [esi]
test esi, esi
jne 0x526480
pop edi
pop ebx
mov al, cl
mov ecx, dword [esp + 0x228]
pop esi
xor ecx, esp
call fcn.0054a992
add esp, 0x228
ret
Function at 0x526650
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x124
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [0x598de8]
push ebx
mov ebx, dword [esp + 0x12c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, dword [esp + 0x13c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 1
lea ecx, [ecx]
call ebp
mov ecx, ebx
sub ecx, eax
mov eax, 0
cmovs ecx, eax
cmp dword [0x5a28fc], eax
jne 0x526739
mov dword [esp + 0x118], eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x118]
push eax
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0x40
call sub.WS2_32.dll_select
cmp eax, 1
jl 0x526739
mov esi, dword [0x5a2904]
lea eax, [esp + 0x114]
push eax
lea eax, [esp + 0x124]
mov dword [esp + 0x118], 0x10
push eax
push 0
push 0x7fff
push esi
push dword [0x598de8]
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x526739
test byte [esi + 1], 0x80
je 0x526690
cmp byte [esi + 6], 0x12
jne 0x526690
test edi, edi
je 0x526735
mov ecx, dword [esp + 0x124]
mov dword [edi], ecx
mov eax, esi
jmp 0x52673b
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x124
ret 8

Function at 0x526760
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x118
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x114], eax
imul edx, dword [esp + 0x124], 0x3e8
mov ecx, dword [esp + 0x11c]
push ebx
push ebp
push esi
push edi
mov edi, dword [0x5a2904]
mov ebp, 1
mov dword [esp + 0x10], ecx
mov ebx, edi
mov esi, 0x7fff
mov dword [esp + 0x14], edx
jmp 0x5267b0
mov eax, dword [ecx + 4]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x11c]
push eax
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 1
push eax
push 0x40
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], edx
call sub.WS2_32.dll_select
cmp eax, 1
jl 0x526865
mov eax, dword [esp + 0x10]
push 0
push esi
push ebx
push dword [eax + 4]
call sub.WS2_32.dll_recv
test eax, eax
je 0x526859
cmp eax, 0xffffffff
je 0x52684d
test ebp, ebp
je 0x526834
cmp byte [edi], 0xb2
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jne 0x5267b0
mov cl, byte [esp + 0x130]
cmp byte [edi + 6], cl
mov ecx, dword [esp + 0x10]
jne 0x5267b0
test byte [edi + 1], 0x80
je 0x5267b0
movzx esi, word [edi + 2]
xor ebp, ebp
cmp esi, eax
jbe 0x526849
mov ecx, dword [esp + 0x10]
sub esi, eax
mov edx, dword [esp + 0x14]
add ebx, eax
jmp 0x5267b0
mov eax, edi
jmp 0x526871
mov dword [0x598c84], 0x62
jmp 0x52686f
mov dword [0x598c84], 0x65
jmp 0x52686f
mov dword [0x598c84], 0x63
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x118
ret 0xc
Function at 0x5279b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, dword [edi + 8]
mov eax, dword [edi + 0xc]
test ebp, ebp
je 0x527a11
push ebx
mov ebx, dword [esp + 0x18]
lea ebx, [ebx]
movzx edx, byte [edi + eax + 0x18]
dec ebp
movzx ecx, byte [edi + esi + 0x18]
add ecx, edx
mov edx, dword [esp + 0x1c]
inc dword [esp + 0x1c]
mov byte [edi + esi + 0x18], cl
movzx ecx, cl
movzx edx, byte [edx]
xor edx, ecx
test ebx, ebx
je 0x5279f8
mov byte [ebx], dl
inc ebx
test esi, esi
je 0x5279ff
dec esi
jmp 0x527a02
mov esi, dword [edi + 4]
test eax, eax
je 0x527a09
dec eax
jmp 0x527a0c
mov eax, dword [edi + 4]
test ebp, ebp
jne 0x5279d0
pop ebx
mov dword [edi + 8], esi
mov dword [edi + 0xc], eax
pop edi
pop esi
pop ebp
ret
Function at 0x5281ee
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
xor ecx, ecx
mov dword [esp], ecx
cmp edx, 0x30
ja case.0x5281c6.1
movzx eax, byte [edx + 0x528360]
jmp dword [eax*4 + 0x528350]
mov ecx, 0x14
jmp 0x5281eb
xor ecx, ecx
cmp byte [esp + 0xc], cl
setne cl
lea ecx, [ecx*8 + 8]
jmp 0x5281eb
mov ecx, 8
mov dword [esp], ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp edi, ecx
jbe 0x5282a2
mov ebx, dword [esp + 0x20]
lea edx, [ecx + ebx]
mov esi, edi
mov eax, ebx
sub esi, ecx
cmp ecx, esi
cmovb esi, ecx
xor ebp, ebp
test esi, esi
je 0x528290
cmp esi, 0x20
jb 0x528274
lea ecx, [edx - 1]
add ecx, esi
cmp ebx, ecx
ja 0x52822d
lea ecx, [ebx - 1]
add ecx, esi
cmp ecx, edx
jae 0x528270
mov ecx, esi
mov ebx, esi
and ecx, 0x1f
sub ebx, ecx
jmp 0x528240
movdqu xmm0, xmmword [edx]
add ebp, 0x20
movdqu xmm1, xmmword [eax]
pxor xmm1, xmm0
movdqu xmmword [eax], xmm1
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm0, xmmword [edx + 0x10]
add edx, 0x20
pxor xmm1, xmm0
movdqu xmmword [eax + 0x10], xmm1
add eax, 0x20
cmp ebp, ebx
jb 0x528240
mov ecx, dword [esp + 0x10]
cmp ebp, esi
jae 0x528290
mov ebx, esi
sub ebx, ebp
lea esp, [esp]
mov cl, byte [edx]
lea eax, [eax + 1]
xor byte [eax - 1], cl
inc edx
dec ebx
jne 0x528280
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
sub edi, esi
cmp edi, ecx
ja 0x528205
mov edx, dword [esp + 0x18]
lea eax, [edx - 0x20]
cmp eax, 0x30
ja case.0x5282b1.33
movzx eax, byte [eax + 0x5283a0]
jmp dword [eax*4 + 0x528394]
mov ebx, 8
jmp 0x5282d8
cmp byte [esp + 0x1c], 0
mov ebx, 0x14
mov eax, 8
cmovne ebx, eax
jmp 0x5282d8
mov ebx, 0x14
cmp edi, ebx
jae 0x528307
mov eax, dword [esp + 0x20]
lea ebp, [eax + edi]
mov esi, ebx
sub esi, edi
cmp edi, esi
cmovb esi, edi
push esi
push eax
push ebp
call fcn.0054adf0
mov eax, dword [esp + 0x2c]
add edi, esi
add esp, 0xc
add ebp, esi
cmp edi, ebx
jb 0x5282e3
mov edx, dword [esp + 0x18]
cmp byte [esp + 0x1c], 0
je 0x528343
cmp edi, 0x10
jae 0x528343
cmp edx, 0x20
je 0x52831d
cmp edx, 0x30
jne 0x528343
mov eax, 0x10
sub eax, edi
push eax
mov eax, dword [esp + 0x24]
add eax, edi
push 0
push eax
call fcn.0054b440
add esp, 0xc
mov eax, 0x10
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x528610
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edx, dword [ebx]
movzx edi, word [ebx + edx*4 + 0x1c]
lea ebp, [edx - 1]
movzx eax, word [ebx + edx*4 + 0x18]
movzx esi, word [ebx + edx*4 + 0x24]
shl edi, 0x10
or edi, eax
shl esi, 0x10
movzx eax, word [ebx + edx*4 + 0x20]
xor edi, dword [ecx]
or esi, eax
xor esi, dword [ecx + 4]
xor esi, edi
test ebp, ebp
js 0x528673
lea eax, [ebx + 8]
lea eax, [eax + ebp*4]
mov dword [esp + 0x14], eax
mov edx, dword [eax]
mov ecx, esi
call fcn.00528540
xor eax, edi
mov edi, esi
mov esi, eax
mov eax, dword [esp + 0x14]
sub eax, 4
dec ebp
mov dword [esp + 0x14], eax
jns 0x528654
mov edx, dword [ebx]
movzx ecx, word [ebx + edx*4 + 0x14]
movzx eax, word [ebx + edx*4 + 0x10]
shl ecx, 0x10
or ecx, eax
movzx eax, word [ebx + edx*4 + 8]
xor ecx, esi
xor edi, ecx
movzx ecx, word [ebx + edx*4 + 0xc]
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x18]
xor ecx, esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
ret 8

Function at 0x5286b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov ebp, dword [ebx]
mov dword [esp + 0x18], ebp
movzx edi, word [ebx + ebp*4 + 0xc]
movzx eax, word [ebx + ebp*4 + 8]
movzx esi, word [ebx + ebp*4 + 0x14]
shl edi, 0x10
or edi, eax
shl esi, 0x10
movzx eax, word [ebx + ebp*4 + 0x10]
xor edi, dword [edx]
or esi, eax
xor esi, dword [edx + 4]
xor esi, edi
test ebp, ebp
jle 0x528714
lea eax, [ebx + 8]
mov ebx, eax
mov edx, dword [ebx]
mov ecx, esi
call fcn.00528540
xor eax, edi
lea ebx, [ebx + 4]
mov edi, esi
mov esi, eax
dec ebp
jne 0x5286f3
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
movzx ecx, word [ebx + ebp*4 + 0x24]
movzx eax, word [ebx + ebp*4 + 0x20]
shl ecx, 0x10
or ecx, eax
movzx eax, word [ebx + ebp*4 + 0x18]
xor ecx, esi
xor edi, ecx
movzx ecx, word [ebx + ebp*4 + 0x1c]
shl ecx, 0x10
or ecx, eax
mov dword [edx + 4], edi
pop edi
xor ecx, esi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x528750
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push ebp
push esi
xor esi, esi
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
cdq
sub eax, edx
sar eax, 1
add eax, 4
mov dword [esp + 0x10], eax
test eax, eax
jle 0x52889c
mov edx, dword [esp + 8]
push ebx
push edi
lea edi, [ecx + 0xc]
movzx ecx, dl
mov ebx, ebp
mov dword [esp + 0x14], ecx
xor ebx, esi
mov ecx, edx
mov dword [esp + 0x30], ebx
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x1c], ecx
shr edx, 0x10
mov ecx, edx
movzx ebx, bl
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x30]
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x30], ecx
movzx ecx, dl
xor ecx, dword [esp + 0x2c]
mov dl, byte [esp + 0x14]
xor bl, cl
xor dl, byte [esp + 0x1c]
mov dword [esp + 0x24], ecx
add dl, bl
lea ecx, [edx + 1]
inc dl
movzx ebx, cl
shl dl, 2
movzx ecx, dl
shr ebx, 6
or ebx, ecx
mov ecx, dword [esp + 0x20]
xor cl, bl
xor al, bl
add cl, byte [esp + 0x24]
movzx edx, cl
shl cl, 2
movzx ecx, cl
add al, byte [esp + 0x14]
shr edx, 6
or edx, ecx
mov ecx, dword [esp + 0x30]
xor cl, dl
add cl, byte [esp + 0x2c]
mov dword [esp + 0x30], ecx
inc cl
inc byte [esp + 0x30]
shl byte [esp + 0x30], 2
shr cl, 6
or cl, byte [esp + 0x30]
movzx ecx, cl
shl cx, 8
movzx esi, cx
movzx ecx, dl
or esi, ecx
mov dword [esp + 0x2c], eax
movzx ecx, bl
mov ebx, eax
shl cx, 8
movzx edx, cx
movzx ecx, bl
shr ecx, 6
or edx, ecx
shl bl, 2
movzx ecx, bl
or edx, ecx
shl esi, 0x10
or esi, edx
movzx ecx, si
mov dword [edi - 4], ecx
mov ecx, esi
shr ecx, 0x10
mov dword [edi], ecx
dec dword [esp + 0x18]
lea edi, [edi + 8]
mov ecx, dword [esp + 0x10]
mov edx, ebp
mov ebp, esi
mov dword [esp + 0x10], edx
mov esi, ecx
jne 0x528787
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret 8
Function at 0x5288b0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
mov ebp, edi
shr ebp, 3
and edi, 7
mov dword [esp + 0x28], edi
je 0x5288db
dec ebp
jne 0x5288db
mov ebp, dword [ebx]
mov eax, dword [ebx + 4]
jmp 0x528926
test ebp, ebp
je 0x52891e
mov esi, dword [esp + 0x24]
mov edi, dword [esi]
mov eax, dword [esi + 4]
push esi
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], eax
call fcn.00528610
mov eax, dword [ebx]
xor dword [esi], eax
mov eax, dword [ebx + 4]
xor dword [esi + 4], eax
add esi, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [ebx], edi
mov dword [ebx + 4], eax
dec ebp
jne 0x5288e3
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
jmp 0x52892e
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
test edi, edi
je 0x5289d8
mov eax, dword [esi]
push esi
mov dword [ebx], eax
mov eax, dword [esi + 4]
push ecx
mov dword [ebx + 4], eax
call fcn.00528610
xor ecx, ecx
lea edx, [esi + 8]
mov ebx, esi
test edi, edi
je 0x5289c5
cmp edi, 0x10
jb 0x5289a1
lea eax, [esi - 1]
add eax, edi
cmp edx, eax
ja 0x528969
lea eax, [edx - 1]
add eax, edi
cmp eax, esi
jae 0x5289a1
mov eax, edi
mov dword [esp + 0x28], edi
and eax, 0xf
sub dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
lea ebx, [ebx]
movdqu xmm1, xmmword [edx]
add ecx, 0x10
movdqu xmm0, xmmword [ebx]
pxor xmm0, xmm1
movdqu xmmword [edx], xmm0
add edx, 0x10
movdqu xmmword [ebx], xmm1
add ebx, 0x10
cmp ecx, eax
jb 0x528980
cmp ecx, edi
jae 0x5289c5
sub ebx, edx
sub edi, ecx
lea esp, [esp]
mov cl, byte [edx]
lea edx, [edx + 1]
mov al, byte [ebx + edx - 1]
xor al, cl
mov byte [edx - 1], al
mov byte [ebx + edx - 1], cl
dec edi
jne 0x5289b0
push esi
push dword [esp + 0x20]
call fcn.00528610
xor dword [esi], ebp
mov eax, dword [esp + 0x20]
xor dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10
Function at 0x5289f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, ebp
shr ebp, 3
and edi, 7
test ebp, ebp
je 0x528a2c
lea esp, [esp]
mov eax, dword [ebx]
xor dword [esi], eax
mov eax, dword [ebx + 4]
xor dword [esi + 4], eax
push esi
push dword [esp + 0x18]
call fcn.005286b0
mov ebx, esi
add esi, 8
dec ebp
jne 0x528a10
test edi, edi
je 0x528aad
xor ecx, ecx
mov edx, ebx
test edi, edi
je 0x528aa3
cmp edi, 0x10
jb 0x528a85
lea eax, [edi - 1]
lea ebp, [edi - 1]
add eax, ebx
add ebp, esi
cmp esi, eax
ja 0x528a4f
cmp ebp, ebx
jae 0x528a85
mov eax, edi
mov ebp, edi
and eax, 0xf
sub ebp, eax
jmp 0x528a60
movdqu xmm0, xmmword [edx]
add ecx, 0x10
movdqu xmm1, xmmword [esi]
movdqu xmmword [esi], xmm0
add esi, 0x10
movdqu xmm0, xmmword [edx]
pxor xmm0, xmm1
movdqu xmmword [edx], xmm0
add edx, 0x10
cmp ecx, ebp
jb 0x528a60
cmp ecx, edi
jae 0x528aa3
sub esi, edx
sub edi, ecx
lea ecx, [ecx]
mov al, byte [edx]
lea edx, [edx + 1]
mov cl, byte [esi + edx - 1]
mov byte [esi + edx - 1], al
xor byte [edx - 1], cl
dec edi
jne 0x528a90
push ebx
push dword [esp + 0x18]
call fcn.005286b0
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
pop edi
pop esi
mov dword [ecx], eax
mov eax, dword [ebx + 4]
pop ebp
mov dword [ecx + 4], eax
pop ebx
ret 0x10
Function at 0x529030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3cc
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x3c8], eax
push ebx
mov ebx, dword [esp + 0x3d4]
lea eax, [esp + 4]
push ebp
mov ebp, dword [esp + 0x3e0]
push esi
push edi
mov edi, dword [esp + 0x3e4]
mov esi, ecx
push 0x90
push eax
push 1
mov eax, dword [esi + 0x24]
push ebx
call eax
add esp, 0x10
cmp eax, 0x90
je 0x529088
push ebx
mov ecx, esi
call fcn.00529a10
jmp 0x52918d
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x3c]
or ecx, dword [esp + 0x38]
or eax, dword [esp + 0x1c]
jne 0x5290a4
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x20]
or ecx, eax
mov dword [esi + 0x54], ecx
cmp dword [ebp], 0
jne 0x5290c3
movzx eax, byte [esp + 0x10]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x11]
or ecx, eax
mov dword [ebp], ecx
mov ax, word [esp + 0x12]
mov ecx, dword [esp + 0x98]
or ecx, dword [esp + 0x78]
mov word [edi + 4], ax
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x7c]
or eax, dword [esp + 0x5c]
jne 0x5290f5
mov eax, dword [esp + 0x80]
or eax, dword [esp + 0x60]
or ecx, eax
or dword [esi + 0x54], ecx
cmp dword [edi + 0x40], 0
jne 0x52918b
push 0x220
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esi + 0x24]
push 0x37
push ebx
call eax
add esp, 0x10
cmp eax, 0x220
jne 0x529158
mov cx, word [esp + 0xa4]
mov al, cl
shr al, 3
test al, 1
je 0x52913b
lea eax, [esp + 0x140]
jmp 0x529182
shr cl, 2
test cl, 1
lea ecx, [edi + 0x2c]
je 0x52914f
lea eax, [esp + 0x120]
jmp 0x529185
lea eax, [esp + 0x1c0]
jmp 0x529185
push pe_nt_image_headers32
lea eax, [esp + 0x2c4]
push eax
mov eax, dword [esi + 0x24]
push 0xa
push ebx
call eax
add esp, 0x10
cmp eax, 0x118
jne 0x52907b
lea eax, [esp + 0x2d8]
lea ecx, [edi + 0x2c]
push eax
call fcn.004ba6c0
xor eax, eax
mov ecx, dword [esp + 0x3d8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x3cc
ret 0xc
Function at 0x52be30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
test edi, edi
jle 0x52beb1
mov ebp, dword [ebp + 0x2d8]
xor esi, esi
mov eax, dword [esi + ebp + 0x24]
mov edx, dword [esi + ebp + 0x78]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x2c4]
mov edx, dword [eax + ecx*4 + 4]
sub edx, dword [eax + ecx*4]
mov eax, 0x2fa0be83
imul edx
mov ecx, dword [esi + ebp + 0x14]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, dword [esi + ebp + 0x1c]
lea eax, [eax + eax*4]
shl eax, 2
cmp ecx, dword [esi + ebp + 0x18]
je 0x52bea2
add eax, eax
add ebx, eax
add esi, 0x90
dec edi
jne 0x52be62
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x2e4]
mov ecx, ebp
mov edi, dword [esp + 0x40]
add eax, ebx
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
add esi, eax
push edi
push ebx
push esi
call fcn.0052bdd0
mov eax, dword [ebp + 0x74]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
lea eax, [ebp + 0x190]
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
movdqu xmm0, xmmword [esp + 0x24]
push ebx
push eax
movdqu xmmword [ebp + 0x1b8], xmm0
call fcn.004b3070
mov ecx, dword [esp + 0x3c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x20
ret 0x10
Function at 0x52eab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x57b9db
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
mov edx, dword [esp + 0x158]
mov esi, dword [esp + 0x15c]
push 0x128
push 0
movzx eax, word [edx + 8]
mov word [esp + 0x13c], ax
movzx eax, word [edx + 0xa]
mov word [esp + 0x13e], ax
mov eax, dword [edx + 4]
xor eax, dword [ecx]
mov dword [esp + 0x140], eax
mov eax, dword [edx]
mov dword [esp + 0x144], eax
mov eax, dword [edx + 0xc]
mov dword [esp + 0x148], eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x14], 0
call fcn.0054b440
xor eax, eax
cmp byte [esp + 0x14], al
setne al
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004b2d60
lea eax, [esp + 0x48]
mov dword [esp + 0x164], 0
push eax
xor eax, eax
cmp byte [esp + 0x20], al
setne al
push eax
push 0x10
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004b38f0
lea eax, [esp + 0x15c]
push eax
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004b33c0
add esp, 0x34
lea eax, [esp + 0x134]
mov ecx, esi
push eax
call fcn.0056aba0
lea eax, [esp + 0xc]
mov dword [esp + 0x150], 0xffffffff
push eax
call fcn.004b33a0
add esp, 4
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0054a992
add esp, 0x14c
ret 8