joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8740
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x100
mov edx, dword [esi + 0x4c]
cmp edx, 1
mov ebx, dword [esi + 0x1b8]
sete al
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edx
mov byte [ebx + 0x1c], al
mov eax, 0x2fe
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
cmovne eax, edi
push eax
push 1
push esi
mov eax, dword [ecx + 8]
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x64], edi
jle 0x4b8853
mov ecx, dword [ebx + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x4b87b1
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov eax, dword [eax + edi*4]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
push eax
push ebx
push edi
push esi
call fcn.004b8ae0
add esp, 0x10
mov edx, eax
xor esi, esi
nop
cmp esi, edx
jle 0x4b87ed
mov eax, dword [ebp - 0x10]
inc ebx
dec eax
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.004b8ae0
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x4b87d4
mov ecx, dword [ebp - 0xc]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 8]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x4b87d0
cmp dword [ebp - 4], 1
jne 0x4b8840
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
nop dword [eax + eax]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x4b8820
mov esi, dword [ebp + 8]
inc edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp edi, dword [esi + 0x64]
jl 0x4b8794
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fc270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
lea ebx, [edi + 0x38]
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub ecx, dword [edi + 0x74]
add eax, esi
mov edx, dword [edi + 0x6c]
sub ecx, edx
mov dword [ebp + 8], ebx
mov dword [ebp - 8], ecx
cmp edx, eax
jb 0x4fc31b
mov ecx, dword [ebx]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.005010e0
mov ebx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea edx, [eax + ebx*2]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub ebx, 1
jne 0x4fc2c3
mov eax, dword [edi + 0x40]
mov ebx, esi
lea edx, [eax + esi*2]
nop
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp - 4], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp - 4]
mov word [edx], ax
sub ebx, 1
jne 0x4fc2f0
mov ecx, dword [ebp - 8]
mov edx, dword [edi + 0x6c]
add ecx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x4fc407
mov eax, dword [ebp + 8]
push ecx
mov eax, dword [eax]
add eax, dword [edi + 0x74]
add eax, edx
push eax
push ebx
call fcn.004fc6c0
mov ebx, dword [edi + 0x74]
add esp, 0xc
add ebx, eax
mov dword [ebp - 8], ebx
mov dword [edi + 0x74], ebx
cmp ebx, 3
jb 0x4fc383
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
movzx edx, byte [eax + ebx]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + ebx + 1]
mov ebx, dword [ebp - 8]
shl edx, cl
xor edx, eax
mov eax, dword [edi + 0x6c]
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
mov edx, dword [ebp - 4]
cmp ebx, 0x106
jae 0x4fc39b
jmp 0x4fc388
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4fc398
mov ebx, dword [ebp + 8]
jmp 0x4fc282
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x16c0]
mov esi, dword [edi + 0x3c]
cmp ecx, esi
jae 0x4fc407
add ebx, eax
cmp ecx, ebx
jae 0x4fc3d9
mov eax, 0x102
sub esi, ebx
cmp esi, eax
cmova esi, eax
lea eax, [edx + ebx]
push esi
push 0
push eax
call fcn.00501660
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x4fc407
sub ebx, ecx
sub esi, ecx
lea eax, [ebx + 0x102]
cmp eax, esi
cmovbe esi, eax
lea eax, [ecx + edx]
push esi
push 0
push eax
call fcn.00501660
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fc730
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4fc73c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004fc750
Function at 0x500353
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x500392
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x500392
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x500392
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x500392
cmp dword [ecx + 0x74], 0xe
jbe 0x500392
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x516b6e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004ffc70
mov eax, dword [0x62bcc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0051b2ed
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x516bb0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x516d0c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ffbc0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x914628]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00521c8f
mov ecx, dword [esi*4 + 0x914628]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x516d05
cmp eax, dword [ecx + edi + 0x24]
jne 0x516d05
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x516d05
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00521c8f
add esp, 0x14
test edx, edx
jl 0x516d05
jg 0x516c7b
test eax, eax
jb 0x516d05
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x516d05
jl 0x516c95
cmp dword [ebp - 0x1008], eax
ja 0x516d05
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x516cb3
test ebx, ebx
je 0x516cec
cmp ecx, edi
jae 0x516cec
mov al, byte [ecx]
cmp al, 0xd
jne 0x516ccd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x516cd9
cmp byte [ecx + 1], 0xa
jne 0x516cd9
inc ecx
jmp 0x516cd9
movzx eax, al
movsx eax, byte [eax + 0x62c0d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x516cb3
cmp edx, ebx
jne 0x516cb3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x516d0a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004ff23c
leave
ret

Function at 0x51b8b6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d7850
push 0x5d7848
push str.FlsAlloc
push 0x1f
call fcn.0051b775
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51b8ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a162c]
call esi
jmp 0x51b8f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x51b934
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d7860
push 0x5d7858
push str.FlsGetValue
push 0x21
call fcn.0051b775
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51b96b
push dword [ebp + 8]
mov ecx, esi
call dword [0x5a162c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x51b973
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d7868
push 0x5d7860
push str.FlsSetValue
push 0x22
call fcn.0051b775
mov esi, eax
add esp, 0x10
test esi, esi
je 0x51b9ad
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5a162c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x520f8d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x914628]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x520fcd
cmp byte [ebx], 0xa
jne 0x520fcd
or byte [edi + eax + 0x28], 4
jmp 0x520fd2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x5210d1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5210b4
inc eax
cmp dl, 0xd
je 0x520ffe
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x521024
cmp eax, ecx
jae 0x521032
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x520fe6
jmp 0x5210d1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5210af
cmp dword [ebp - 0x10], 0
je 0x5210af
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x914628]
test byte [eax + edi + 0x28], 0x48
je 0x521089
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x521074
mov byte [esi], dl
jmp 0x521085
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x914628]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5210d1
cmp byte [ebp - 1], 0xa
jne 0x521098
cmp esi, ebx
jne 0x521098
mov byte [esi], 0xa
jmp 0x5210d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00521cad
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5210d1
mov byte [esi], 0xd
jmp 0x5210d0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x914628]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5210ce
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5210d1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5210da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x914628]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x521120
cmp word [ebx], dx
jne 0x521120
or byte [eax + edi + 0x28], 4
jmp 0x521125
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x521288
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x521268
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x521166
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x52119c
cmp eax, edx
jae 0x5211aa
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x521141
jmp 0x521288
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x521263
cmp dword [ebp - 0x18], 0
je 0x521263
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x914628]
test byte [eax + edi + 0x28], 0x48
je 0x521239
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5211fd
mov word [esi], cx
jmp 0x521234
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x914628]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x914628]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x914628]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x521288
pop eax
cmp word [ebp - 4], ax
jne 0x521249
cmp esi, ebx
jne 0x521249
mov word [esi], ax
jmp 0x521285
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00521cad
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x521288
push 0xd
pop eax
jmp 0x521244
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x914628]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x521282
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x521288
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5248f5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x524992
push ebx
push esi
call fcn.005248be
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0051c751
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x52493f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x524991
push edi
push eax
call fcn.00519852
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x52495f
call fcn.00519818
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x524990
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0051c751
add esp, 0x20
test eax, eax
jne 0x52497e
push edi
call fcn.00519818
jmp 0x524986
push ebx
call fcn.00519818
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x524995
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5249a6
pop esi
ret
push ebx
push edi
push esi
call fcn.005248be
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00519852
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5249ce
push ebx
push esi
push edi
call fcn.005010e0
add esp, 0xc
push 0
call fcn.00519818
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x525128
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00524c43
Function at 0x5294b3
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0052942f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x529622
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x529622
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5295d7
jg 0x52950f
test eax, eax
je 0x5295cd
push 1
push 0x1000
call fcn.005197bb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x529532
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5295c4
push 0x8000
push ebx
call fcn.00518dae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x52955b
jg 0x529556
cmp ecx, 0x1000
jb 0x52955b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0051db16
add esp, 0x10
cmp eax, 0xffffffff
je 0x5295a0
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x529556
jl 0x529587
test ecx, ecx
jne 0x529548
push dword [ebp - 0xc]
push ebx
call fcn.00518dae
push esi
call fcn.00519818
add esp, 0xc
xor ebx, ebx
jmp 0x529630
cmp byte [edi + 0x24], 0
je 0x5295b7
cmp dword [edi + 0x20], 5
jne 0x5295b7
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5295c2
mov ebx, dword [edi + 0x18]
jmp 0x5295c4
xor ebx, ebx
push esi
call fcn.00519818
pop ecx
jmp 0x529630
test ecx, ecx
jg 0x529599
jl 0x5295d7
test eax, eax
jae 0x529599
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00521cad
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5295f7
cmp byte [edi + 0x1c], 0
je 0x529599
jmp 0x529628
push ebx
call fcn.005255b1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x529599
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x529630
cmp byte [edi + 0x1c], 0
je 0x52962d
mov ebx, dword [edi + 0x18]
jmp 0x529630
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00521cad
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52b080
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
test edx, edx
je 0x52b147
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
cmp edx, 0x20
jb 0x52b124
push edi
mov eax, edx
mov edi, edx
and eax, 0x1f
xorps xmm3, xmm3
sub edi, eax
mov ebx, esi
movaps xmm2, xmm3
mov eax, ebp
sub ebx, ebp
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [esi + ecx + 0x10]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, edi
jb 0x52b0c0
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x52b140
sub esi, ebp
lea eax, [ecx + ebp]
sub edx, ecx
nop
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x52b130
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
movzx eax, bl
pop ebx
ret

Function at 0x52b290
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004ffc70
mov eax, dword [0x62bcc0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x52b32f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x52b32f
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00407bc0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0050e31d
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ff23c
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00407bc0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0050e31d
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.0052b150
test eax, eax
jle 0x52b3c3
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x52b3d7
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004ff23c
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004ff23c
add esp, 0x108
ret
Function at 0x52c070
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WSOCK32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.0052b890
add esp, 8
test esi, esi
jg 0x52c0c7
je 0x52c0a9
cmp esi, 0xffffffff
jne 0x52c0c7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.0052c300
add esp, 4
test eax, eax
je 0x52c0c7
push 0xa
push edi
call fcn.0052bf90
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x537e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004ffc70
mov eax, dword [0x62bcc0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.0052fc30
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0052fa90
add esp, 0xc
test eax, eax
je 0x537f62
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0052f770
add esp, 0xc
test eax, eax
je 0x537f62
lea eax, [esp + 0x20]
push eax
call fcn.0052f9d0
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x537f80
push edi
call fcn.00530d80
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.00538590
mov esi, eax
add esp, 0xc
test esi, esi
je 0x537f62
push esi
call fcn.00538db0
add esp, 4
test eax, eax
jle 0x537f62
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00538340
add esp, 0x18
test eax, eax
jle 0x537f62
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.00538cd0
add esp, 0x14
test eax, eax
jle 0x537f62
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00538530
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004ff23c
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x537f98
cmp dword [edi], edx
je 0x537fc2
inc eax
add ecx, 4
cmp eax, 4
jl 0x537f85
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.0052e7d0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004ff23c
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x537ff6
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.0052e7d0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004ff23c
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ff23c
add esp, 0x6c
ret