joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4c70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x4d4ca3
push 0x2e
push edi
call fcn.005aa6e0
add esp, 8
test eax, eax
je 0x4d4ca1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4d73b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x656528]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4d73dd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4d7424
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x4d742a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4d748b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x4d7450
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4d74b7
mov eax, dword [esi + 4]
push 1
push str.6OpenSSL_1.0.2r__26_Feb_2019
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x5f3687
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4d7490
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x503260
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.005033a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x503306
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00510590
push 0x5f50c0
push esi
push 0x5fa300
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.0050fb00
add esp, 0x2c
call fcn.005abf4c
cmp dword [eax], 2
je 0x5032e6
call fcn.005abf4c
cmp dword [eax], 6
je 0x5032e6
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00510590
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00510590
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x659308
call fcn.00503970
mov esi, eax
add esp, 4
test esi, esi
jne 0x503327
push edi
call fcn.005b62ae
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.005035b0
push edi
push 1
push 0x6a
push esi
call fcn.005035e0
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x50d9c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00492f50
mov eax, dword [0x656514]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], ebx
test edi, edi
jne 0x50da05
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00492e23
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push edi
call fcn.005b76d7
add esp, 8
test eax, eax
js 0x50d9ee
mov eax, 8
call fcn.00492f50
xorps xmm0, xmm0
lea eax, [esp + 0x50]
movsd qword [esp], xmm0
push 0x30
push eax
call fcn.0050d6e0
mov esi, dword [ebp + 0xc]
add esp, 0x10
test esi, esi
je 0x50d9ee
push 0x646350
push edi
call fcn.005adc60
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x50db02
test dword [esp + 0x4e], 0x2000
je 0x50da81
push 0
push 4
mov ecx, 0x800
cmp esi, 0xffffffff
push 0
push eax
cmove esi, ecx
call fcn.005b9a95
mov eax, dword [esp + 0x50]
add esp, 0x10
mov edi, 0x400
test esi, esi
jle 0x50da8f
cmp esi, edi
cmovl edi, esi
push eax
push edi
lea eax, [esp + 0x80]
push 1
push eax
call fcn.005b8ad3
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x50dae3
movd xmm0, ebx
mov eax, 8
cvtdq2pd xmm0, xmm0
call fcn.00492f50
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push edi
push eax
call fcn.0050d6e0
add dword [esp + 0x54], ebx
add esp, 0x10
mov eax, dword [esp + 0x40]
test esi, esi
jle 0x50da81
sub esi, edi
test esi, esi
jg 0x50da81
push dword [esp + 0x40]
call fcn.005b62ae
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.0051d2a0
mov ebx, dword [esp + 0x50]
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x518c30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x518c57
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x518c46
pop edi
movzx eax, dl
pop esi
ret

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

Disassembly:
mov eax, 0x10c
call fcn.00492f50
mov eax, dword [0x656514]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x518e3f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x518e3f
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00404e60
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005b1752
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 + 0x108]
xor ecx, esp
call fcn.00492e23
add esp, 0x10c
ret
lea eax, [esp + 0x118]
push eax
push 0
push dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00404e60
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005b1752
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.00518c60
test eax, eax
jle 0x518ed3
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x518ee7
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 + 0x108]
xor ecx, esp
call fcn.00492e23
add esp, 0x10c
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 + 0x10c]
pop esi
xor ecx, esp
call fcn.00492e23
add esp, 0x10c
ret
Function at 0x523980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.00492f50
mov eax, dword [0x656514]
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.00509ba0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00509a00
add esp, 0xc
test eax, eax
je 0x523a82
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.005096e0
add esp, 0xc
test eax, eax
je 0x523a82
lea eax, [esp + 0x20]
push eax
call fcn.00509940
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x523aa0
push edi
call fcn.0050a3d0
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.00523f50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x523a82
push esi
call fcn.00524960
add esp, 4
test eax, eax
jle 0x523a82
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00523d00
add esp, 0x18
test eax, eax
jle 0x523a82
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.00524870
add esp, 0x14
test eax, eax
jle 0x523a82
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00523ef0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00492e23
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x523ab8
cmp dword [edi], edx
je 0x523ae2
inc eax
add ecx, 4
cmp eax, 4
jl 0x523aa5
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.00510590
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00492e23
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x523b16
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.00510590
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00492e23
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.00492e23
add esp, 0x6c
ret
Function at 0x52d630
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00492f50
mov eax, dword [0x656514]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x52d696
cmp edi, dword [esi]
je 0x52d68d
test ebp, ebp
je 0x52d710
test ebx, ebx
js 0x52d710
mov eax, 1
mov dword [esi], edi
jmp 0x52d69c
mov edi, dword [esi]
test edi, edi
je 0x52d710
test ebp, ebp
je 0x52d82b
push edi
call fcn.00525390
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x52d6d0
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00518f00
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x52d72b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.00509780
add esp, 0xc
test eax, eax
je 0x52d710
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.00509930
add esp, 0xc
test eax, eax
je 0x52d710
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.005096e0
add esp, 0xc
test eax, eax
jne 0x52d747
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00492e23
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x52d710
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.005a8300
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x52d76a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.005a8e00
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x52d770
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.00509780
add esp, 0xc
test eax, eax
je 0x52d710
push edi
call fcn.00525390
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00509930
add esp, 0x10
test eax, eax
je 0x52d710
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x52d7c0
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.00509780
add esp, 0xc
test eax, eax
je 0x52d710
push edi
call fcn.00525390
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.00509930
add esp, 0x10
test eax, eax
je 0x52d710
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00509a00
add esp, 8
test eax, eax
je 0x52d710
mov eax, 1
jmp 0x52d712
test eax, eax
je 0x52d809
jmp 0x52d76e
Function at 0x554ca0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x554d8c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x554d1d
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], al
jmp 0x554d71
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x554d31
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x554d5b
lea eax, [esi + 0x3c]
jmp 0x554d68
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x554cc0
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret
Function at 0x554f40
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.00555400
mov edi, eax
add esp, 8
test edi, edi
jns 0x554f7e
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.00510590
add esp, 0x14
jmp 0x55503f
call fcn.00555330
cmp eax, 1
jne 0x55504f
test edi, edi
jle 0x554f97
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.00518bc0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x554fd4
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.00510590
add esp, 0x14
jmp 0x555025
cmp word [ecx + 8], 2
je 0x554ff5
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.00510590
add esp, 0x14
jmp 0x555025
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.00518bc0
add esp, 0x10
test ebp, ebp
je 0x555056
push esi
push str.host
push 2
call fcn.0050fb00
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x5553b0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x5553f0
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.00510590
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x589f30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x589f59
mov eax, edi
jmp 0x589f63
push eax
push edi
call fcn.00505f90
add esp, 8
test eax, eax
jne 0x589f6b
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebp + 4], eax
jle 0x589f8a
push esi
mov ecx, dword [ebx]
mov edx, dword [ebp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [edi]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp + 4]
jl 0x589f73
pop esi
cmp eax, dword [ebx + 4]
jge 0x589fa0
nop
mov ecx, dword [ebx]
mov edx, dword [edi]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [ebx + 4]
jl 0x589f90
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
test ecx, ecx
jle 0x589fc3
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x589fc0
dec ecx
test ecx, ecx
jg 0x589fb2
mov dword [edi + 4], ecx
cmp dword [edi + 4], 0
jne 0x589fd0
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x58b070
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
xor edi, edi
call fcn.00521170
push ebp
call fcn.00521090
mov esi, eax
add esp, 8
test esi, esi
je 0x58b279
push ebx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x58b0a5
mov eax, esi
jmp 0x58b0af
push eax
push esi
call fcn.00505f90
add esp, 8
test eax, eax
je 0x58b278
mov ebp, dword [ebx + 4]
sub ebp, 1
js 0x58b22c
mov eax, dword [ebx]
mov edx, dword [eax + ebp*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + ebp*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + ebp*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + ebp*8], edx
sub ebp, 1
jns 0x58b0c3
mov eax, dword [ebx + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x58b251
mov ecx, dword [esi]
lea edx, [eax - 1]
lea edx, [ecx + edx*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x58b24e
dec eax
test eax, eax
jg 0x58b240
mov dword [esi + 4], eax
cmp dword [esi + 4], edi
jne 0x58b259
mov dword [esi + 0xc], edi
push dword [esp + 0x1c]
push esi
push dword [esp + 0x1c]
call fcn.0058a070
mov ebp, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
mov ecx, 1
cmovne edi, ecx
pop ebx
push ebp
call fcn.00521020
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x5a2da0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6af3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x656514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x66dcd8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x66dcd8
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x6411b4
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.005a6920
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5c5bf5
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c5afa

Function at 0x5c6a97
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c6916

Function at 0x5c94ad
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005c916d