joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3760
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x574100]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push edi
movups xmm0, xmmword [eax]
movups xmmword [esp + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
lea eax, [esp + 0xc]
push eax
movups xmmword [esp + 0x20], xmm0
call fcn.004e4370
xor edi, edi
add esp, 4
mov dword [esp + 4], edi
cmp dword [esp + 0x38], edi
jbe 0x4e397f
push ebx
lea eax, [ecx + 8]
push ebp
push esi
mov dword [esp + 0x14], eax
lea esi, [esp + 0x18]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x30]
nop dword [eax + eax]
mov eax, dword [eax + edi*4]
mov ecx, dword [ecx + edi*4]
movzx eax, al
mov ebx, dword [esp + edi*4 + 0x20]
movzx edx, cl
shl edx, 8
or edx, eax
movzx eax, bl
shl edx, 8
or edx, eax
mov eax, dword [esi + edi*4]
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ebp, eax
shl ebp, 6
xor ebp, eax
lea eax, [esp + 0x30]
mov eax, dword [eax + edi*4]
xor ebp, edx
shr eax, 8
movzx edx, al
lea eax, [esp + 0x28]
mov esi, dword [eax + edi*4]
mov eax, esi
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
lea eax, [esp + 0x18]
mov eax, dword [eax + edi*4]
shr eax, 8
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov edi, eax
shl edi, 6
xor edi, eax
lea eax, [esp + 0x30]
mov eax, dword [eax + ecx*4]
xor edi, edx
shr eax, 0x10
movzx edx, al
mov eax, esi
shr eax, 0x10
shl edx, 8
movzx eax, al
or edx, eax
mov eax, ebx
shl edx, 8
shr eax, 0x10
movzx eax, al
and ebx, 0xff00ffff
or edx, eax
lea eax, [esp + 0x18]
mov eax, dword [eax + ecx*4]
shr eax, 0x10
movzx eax, al
shl edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
mov ecx, dword [esp + 0x10]
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov esi, eax
shl esi, 6
xor esi, eax
lea eax, [esp + 0x18]
xor esi, edx
mov edx, dword [eax + ecx*4]
shr edx, 8
or edx, ebx
lea ebx, [esp + 0x28]
mov eax, dword [ebx + ecx*4]
lea ebx, [esp + 0x30]
and eax, 0xff0000ff
shr edx, 8
or edx, eax
mov eax, dword [ebx + ecx*4]
and eax, 0xff000000
shr edx, 8
or edx, eax
mov ecx, edx
shr ecx, 0xc
xor ecx, edx
and ecx, 0xf0f0
mov eax, ecx
shl eax, 0xc
xor eax, ecx
xor edx, eax
mov eax, edx
shr eax, 6
xor eax, edx
and eax, 0xcc00cc
mov ecx, eax
shl ecx, 6
xor ecx, eax
mov eax, dword [esp + 0x14]
xor ecx, edx
mov dword [eax - 8], ebp
mov dword [eax - 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax], esi
inc edi
mov dword [eax + 4], ecx
lea esi, [esp + 0x18]
add eax, 0x10
mov dword [esp + 0x10], edi
mov ecx, ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
cmp edi, dword [esp + 0x44]
jb 0x4e37c0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
pop edi
xor ecx, esp
call fcn.004f51db
add esp, 0x2c
ret
Function at 0x4e3bf0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x574100]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x58]
lea eax, [esp + 0x3c]
push edi
mov edi, dword [esp + 0x58]
push esi
push eax
mov dword [edi + 0xf0], 0xe
call fcn.004e32f0
movups xmm0, xmmword [esp + 0x48]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
movups xmmword [edi], xmm0
call fcn.004e32f0
movups xmm2, xmmword [esp + 0x40]
add esp, 0x10
lea ebp, [edi + 0x20]
mov ebx, 2
movups xmmword [edi + 0x10], xmm2
nop dword [eax]
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movups xmmword [esp + 0x10], xmm0
push eax
movups xmmword [esp + 0x24], xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], xmm2
psrldq xmm0, 4
movd dword [esp + 0x1c], xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
movd dword [esp + 0x24], xmm0
movaps xmm0, xmm2
psrldq xmm0, 0xc
movd dword [esp + 0x2c], xmm0
call fcn.004e4370
lea eax, [esp + 0x14]
push eax
call fcn.004e3e00
lea eax, [esp + 0x18]
push eax
call fcn.004e4370
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
mov eax, ebx
shr eax, 1
mov cl, byte [eax + 0x5266bf]
xor eax, eax
movzx edi, cl
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0x30]
mov edx, edi
mov esi, ecx
shr ecx, 8
and esi, 0x3000000
or esi, ecx
mov cl, al
add cl, cl
shr esi, 0x12
shr edx, cl
and edx, 3
xor esi, edx
xor esi, dword [esp + eax*4 + 0x40]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x40], ecx
inc eax
cmp eax, 4
jb 0x4e3ce0
movups xmm0, xmmword [esp + 0x40]
movups xmmword [ebp], xmm0
cmp ebx, 0xe
je 0x4e3dde
mov eax, dword [esp + 0x40]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.004e4370
lea eax, [esp + 0x14]
push eax
call fcn.004e3e00
lea eax, [esp + 0x18]
push eax
call fcn.004e4370
mov eax, dword [esp + 0x1c]
add ebx, 2
mov dword [esp + 0x3c], eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
movups xmm1, xmmword [esp + 0x30]
psrld xmm1, 0x18
xorps xmm1, xmm2
movaps xmm2, xmm1
movaps xmm0, xmm1
pslld xmm2, 8
pslld xmm0, 0x10
xorps xmm2, xmm1
pslld xmm1, 0x18
xorps xmm2, xmm0
xorps xmm2, xmm1
movups xmmword [ebp + 0x10], xmm2
add ebp, 0x20
cmp ebx, 0xe
jbe 0x4e3c50
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f51db
add esp, 0x44
ret
Function at 0x4e43f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x254
mov eax, dword [0x574100]
xor eax, esp
mov dword [esp + 0x250], eax
cmp dword [esp + 0x260], 0
mov eax, dword [esp + 0x25c]
mov ecx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x25c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x268]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
je 0x4e4555
push ebp
push edi
push eax
lea eax, [esp + 0x40]
push eax
call fcn.004e3670
movups xmm0, xmmword [ecx]
lea edx, [esp + 0x224]
add esp, 8
lea edi, [esp + 0x23c]
movups xmmword [edx], xmm0
mov eax, dword [edx]
sub edi, esi
mov dword [edx + 0x10], eax
mov eax, dword [edx + 4]
mov dword [edx + 0x14], eax
mov eax, dword [edx + 8]
mov dword [edx + 0x18], eax
mov eax, dword [edx + 0xc]
mov dword [edx + 0x1c], eax
mov ebp, dword [esp + 0x228]
bswap ebp
push ebx
xor ecx, ecx
lea edx, [esp + 0x22c]
nop dword [eax + eax]
lea eax, [ecx + ebp]
inc ecx
lea edx, [edx + 0x10]
bswap eax
mov dword [edx - 0x10], eax
cmp ecx, 2
jb 0x4e4490
mov ebx, dword [esp + 0x270]
mov eax, 2
cmp ebx, 2
cmovae ebx, eax
lea eax, [esp + 0x220]
push ebx
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], ebx
push eax
call fcn.004e40f0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0xf0]
lea eax, [esp + 0x54]
push eax
call fcn.004e3490
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x25c]
push ebx
push eax
call fcn.004e3760
add esp, 0x24
test ebx, ebx
je 0x4e4532
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub esi, eax
nop word [eax + eax]
mov edx, 4
mov ecx, dword [eax]
xor ecx, dword [edi + eax]
mov dword [esi + eax], ecx
add eax, 4
sub edx, 1
jne 0x4e4515
sub ebx, 1
jne 0x4e4510
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
sub dword [esp + 0x270], ebx
je 0x4e4552
add dword [esp + 0x14], 0x20
add esi, 0x20
sub edi, 0x20
mov dword [esp + 0x10], esi
add ebp, 2
jmp 0x4e4482
pop ebx
pop edi
pop ebp
mov ecx, dword [esp + 0x254]
pop esi
xor ecx, esp
call fcn.004f51db
add esp, 0x254
ret
Function at 0x4e45f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
mov eax, dword [0x574100]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x54]
cmp eax, 0x80
je 0x4e464a
cmp eax, 0x100
je 0x4e462e
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f51db
add esp, 0x44
ret
push ecx
push ebx
call fcn.004e3bf0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f51db
add esp, 0x44
ret
push ebp
push esi
push edi
push ecx
lea eax, [esp + 0x34]
mov dword [ebx + 0xf0], 0xa
push eax
call fcn.004e32f0
movups xmm0, xmmword [esp + 0x38]
add esp, 8
mov edi, 1
movups xmmword [ebx], xmm0
add ebx, 0x10
nop word [eax + eax]
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
call fcn.004e4370
lea eax, [esp + 0x14]
push eax
call fcn.004e3e00
lea eax, [esp + 0x18]
push eax
call fcn.004e4370
mov eax, dword [esp + 0x1c]
add esp, 0xc
movzx ebp, byte [edi + 0x5266bf]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x4c], eax
xor eax, eax
mov edx, dword [esp + eax*4 + 0x40]
mov cl, al
add cl, cl
mov esi, ebp
shr esi, cl
mov ecx, edx
and ecx, 0x3000000
shr edx, 8
or ecx, edx
and esi, 3
shr ecx, 0x12
xor esi, ecx
xor esi, dword [esp + eax*4 + 0x30]
mov ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
shl ecx, 8
xor ecx, esi
mov dword [esp + eax*4 + 0x30], ecx
inc eax
cmp eax, 4
jb 0x4e46f7
movups xmm0, xmmword [esp + 0x30]
inc edi
movups xmmword [ebx], xmm0
add ebx, 0x10
cmp edi, 0xa
jbe 0x4e4680
mov ecx, dword [esp + 0x50]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f51db
add esp, 0x44
ret

Function at 0x4e4a60
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
or eax, 0xffffffff
test edi, edi
je 0x4e4aa1
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
sub ebx, esi
nop dword [eax + eax]
mov edx, dword [ebx + esi]
lea esi, [esi + 4]
xor edx, dword [esi - 4]
lea ecx, [edx - 1]
not edx
shr ecx, 0x1f
shr edx, 0x1f
and ecx, edx
neg ecx
and eax, ecx
sub edi, 1
jne 0x4e4a80
pop esi
pop ebx
pop edi
ret
Function at 0x4e4e70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
push ebp
mov ebp, dword [esp + 0x10]
test edx, edx
je 0x4e4f27
mov eax, dword [esp + 0xc]
push esi
mov esi, ebp
sub esi, eax
cmp edx, 0x20
jb 0x4e4f06
push edi
mov edi, edx
xorps xmm3, xmm3
and edi, 0xffffffe0
xorps xmm2, xmm2
add eax, 0x10
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ecx + ebp]
add ecx, 0x20
xorps xmm1, xmm0
orps xmm3, xmm1
movups xmm1, xmmword [esi + eax - 0x20]
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
orps xmm2, xmm1
cmp ecx, edi
jb 0x4e4ea3
orps xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
orps xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 1
orps xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x4e4f20
mov eax, dword [esp + 0x10]
add eax, ecx
sub edx, ecx
nop word [eax + eax]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x4e4f10
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
pop ebp
movzx eax, bl
pop ebx
ret
Function at 0x4e8770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0xc], 0x5268a8
jmp fcn.004ef520

Function at 0x4e8890
Capabilities:
Encrypt data using curve25519

Disassembly:
mov ecx, dword [esp + 4]
mov al, byte [ecx + 0x1f]
and byte [ecx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [ecx + 0x1f], al
ret
Function at 0x4f1e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push edi
push 0x60
push 0
push ebp
call fcn.004f7770
xor edi, edi
add esp, 0xc
cmp dword [esp + 0x10], edi
jbe 0x4f1e6f
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
dec ecx
push esi
mov dword [esp + 0x20], ecx
nop word [eax + eax]
push ebp
mov esi, ecx
push ebx
xor esi, edi
push esi
push ebp
call fcn.004f0080
lea ecx, [ebp + 0x20]
push ecx
lea eax, [ebx + 0x20]
push eax
push esi
push ecx
call fcn.004f0080
mov ecx, dword [esp + 0x40]
inc edi
add esp, 0x20
add ebx, 0x40
cmp edi, dword [esp + 0x18]
jb 0x4f1e40
pop esi
pop ebx
lea eax, [ebp + 0x40]
push 0x527070
push eax
push dword [esp + 0x14]
push eax
call fcn.004f0080
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4f49e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9c
mov eax, dword [0x574100]
xor eax, esp
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0xa4]
xorps xmm0, xmm0
push ebp
mov ebp, dword [esp + 0xa4]
xor ecx, ecx
push ebx
add edx, 0x60
push esi
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0xc], edx
movups xmmword [esp + 0x24], xmm0
push edi
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x78], xmm0
movups xmmword [esp + 0x88], xmm0
movups xmmword [esp + 0x98], xmm0
inc ecx
mov edi, edx
mov dword [esp + 0x14], ecx
xor ecx, dword [esp + 0xb8]
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
shr ecx, 0x1f
and eax, ecx
neg eax
xor esi, esi
mov ebx, eax
not ebx
mov edx, dword [edi - 0x60]
lea edi, [edi + 4]
and edx, eax
mov ecx, ebx
and ecx, dword [esp + esi + 0x18]
or edx, ecx
mov ecx, dword [esp + esi + 0x48]
mov dword [esp + esi + 0x18], edx
and ecx, ebx
mov edx, dword [edi - 0x34]
and edx, eax
or edx, ecx
mov ecx, dword [edi - 4]
mov dword [esp + esi + 0x48], edx
and ecx, eax
mov edx, ebx
and edx, dword [esp + esi + 0x78]
or edx, ecx
mov dword [esp + esi + 0x78], edx
add esi, 4
cmp esi, 0x30
jb 0x4f4a68
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add edx, 0x90
mov dword [esp + 0x10], edx
cmp ecx, 0x10
jb 0x4f4a45
pop edi
lea ecx, [esp + 0x40]
lea eax, [ebp + 0x2c]
pop esi
pop ebx
cmp ebp, ecx
ja 0x4f4acf
lea ecx, [esp + 0xc]
movups xmm0, xmmword [esp + 0xc]
mov ecx, dword [esp + 0x9c]
movups xmmword [ebp], xmm0
movups xmm0, xmmword [esp + 0x1c]
movups xmmword [ebp + 0x10], xmm0
movups xmm0, xmmword [esp + 0x2c]
movups xmmword [ebp + 0x20], xmm0
movups xmm0, xmmword [esp + 0x3c]
movups xmmword [ebp + 0x30], xmm0
movups xmm0, xmmword [esp + 0x4c]
movups xmmword [ebp + 0x40], xmm0
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [ebp + 0x50], xmm0
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [ebp + 0x60], xmm0
movups xmm0, xmmword [esp + 0x7c]
movups xmmword [ebp + 0x70], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [ebp + 0x80], xmm0
pop ebp
xor ecx, esp
call fcn.004f51db
add esp, 0x9c
ret

Function at 0x4f4dc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push ebx
xorps xmm0, xmm0
mov dword [esp + 8], 0
movlpd qword [esp + 0x14], xmm0
mov eax, 1
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x40
push edi
mov edi, eax
xor ebx, ebx
and edi, 1
neg edi
adc ebx, ebx
and edi, dword [esp + 0x28]
neg ebx
mov ecx, edi
and edi, dword [esp + 0x14]
xor ecx, eax
mov esi, ebx
and esi, dword [esp + 0x2c]
mov eax, esi
and esi, dword [esp + 0x10]
xor eax, dword [esp + 0x10]
shrd ecx, eax, 1
shr eax, 1
add ecx, edi
mov dword [esp + 0x14], ecx
adc eax, esi
and ebx, 0x80000000
shrd ebp, edx, 1
mov dword [esp + 0x10], eax
xor eax, eax
shr edx, 1
add ebp, eax
mov eax, ecx
adc edx, ebx
sub dword [esp + 0x18], 1
jne 0x4f4df1
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x14
ret
Function at 0x4f5726
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4f5765
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f5765
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f5765
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4f5765
cmp dword [ecx + 0x74], 0xe
jbe 0x4f5765
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4fc9a3
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 0x4fca40
push ebx
push esi
call fcn.004fc96c
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.004fc900
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4fc9ed
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4fca3f
push edi
push eax
call fcn.004fd5c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4fca0d
call fcn.004fb461
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4fca3e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004fc900
add esp, 0x20
test eax, eax
jne 0x4fca2c
push edi
call fcn.004fb461
jmp 0x4fca34
push ebx
call fcn.004fb461
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 0x4fdd3d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x56e8f0
push 0x56e8e8
push str.FlsAlloc
push 0x1f
call fcn.004fdbfc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fdd71
push dword [ebp + 8]
mov ecx, esi
call dword [0x507264]
call esi
jmp 0x4fdd77
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4fddbb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x56e900
push 0x56e8f8
push str.FlsGetValue
push 0x21
call fcn.004fdbfc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fddf2
push dword [ebp + 8]
mov ecx, esi
call dword [0x507264]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4fddfa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x56e908
push 0x56e900
push str.FlsSetValue
push 0x22
call fcn.004fdbfc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fde34
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x507264]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x503290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5032bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5032bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x505af0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x14]
cmp dword [edi + 4], 0
je 0x505b5a
lea ebx, [edi + 0xc]
mov dword [esp], 0
mov eax, esp
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
jne 0x505b8c
cmp dword [esp], 0
je 0x505b80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x505b90
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x574a30]
nop word cs:[eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x574a30], edi
jne 0x505b40
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x505b83
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x505b8c
mov ecx, eax
mov esi, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
je 0x505b83
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec edi
mov esi, edi
jmp 0x505b83
mov esi, dword [edi]
dec esi
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
ret
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
ud2

Function at 0x506110
Capabilities:
Resolve dns

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, dword [esp + 0x48]
lea eax, [esp + 4]
push dword [esp + 0x50]
push dword [esp + 0x50]
push eax
call fcn.004d2600
add esp, 0xc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x506162
mov ecx, dword [0x564568]
mov edx, dword [0x56456c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 8]
mov dword [esi + 8], edx
mov dword [esi], 1
test ecx, ecx
je 0x5061e6
push 1
push ecx
push eax
jmp 0x5061de
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 4]
mov ebx, dword [esp + 8]
xorps xmm0, xmm0
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
movzx ebp, word [eax]
mov eax, esp
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x5061c2
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x5061da
jmp 0x5061e6
mov eax, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], bp
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x5061e6
push 1
push ebx
push edi
call fcn.0040dc90
add esp, 0xc
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100113e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x100113f0
pop dword [ebp - 0x20]
mov eax, 0x8b026170
add eax, 0x84feb280
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x11e48263
sub dword [ebp - 0x30], 0xc3923d18
mov dword [ebp - 0x2c], 0x8b0a5a98
add dword [ebp - 0x2c], 0xa728f1ad
mov dword [ebp - 0x28], 0x8379ef82
sub dword [ebp - 0x28], 0x372dab54
mov dword [ebp - 0x24], 0x5eb4ec56
sub dword [ebp - 0x24], 0x5eb4ec56
lea eax, [ebp - 0x30]
push eax
mov eax, 0x688b0525
add eax, 0xa7762933
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xa7b0f270
add dword [ebp - 0x30], 0xccc176e6
mov dword [ebp - 0x2c], 0x383e2b90
add dword [ebp - 0x2c], 0x92e35e5
mov dword [ebp - 0x28], 0x6f9c6d53
add dword [ebp - 0x28], 0xf3d2ff19
mov dword [ebp - 0x24], 0x379770a3
sub dword [ebp - 0x24], 0x379770a3
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x476cb6a5
sub eax, 0x376b8849
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x34a7e
push 0
call eax
mov ecx, 0x4099
xor esi, esi
add esi, eax
mov edx, 0x10017a00
add edx, dword [ebp - 0x20]
mov ebx, 0xd2328f7e
sub ebx, 0xcb0e54ef
xor dword [ebp - 0x1c], eax
mov edi, dword [edx]
sub dword [ebp - 8], 0xae7092a7
sub edi, ebx
sub dword [ebp - 0x1c], 0x3b2cf0ce
mov dword [esi], edi
add dword [ebp - 0xc], edi
add esi, 0x15133112
add esi, 0xeaeccef2
add edx, 4
loop 0x10011508
add eax, 0xf537
mov ebx, eax
add eax, 0x466e649d
sub eax, 0x466e6498
mov ecx, 0x2b00ef16
sub ecx, 0x1b00ef16
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401120
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ecx
push esi
push edi
sub esp, 8
mov esi, eax
mov edi, edx
xor edx, edx
mov ecx, eax
inc eax
cmp byte [ecx], 0
je 0x401137
inc edx
jmp 0x40112c
push 0
lea eax, [esp + 4]
push eax
push edx
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push 0xfffffffffffffff4
mov word [esp + 0x18], 0xa0d
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, edi
jmp 0x401480
mov ecx, eax
call fcn.004013c0
cmp dword [0x408008], 0
je 0x4014b7
cmp dword [0x407074], 0
jne 0x4014a8
xor ebx, ebx
push ecx
mov dword [0x407030], ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov edx, 0xf
xor eax, eax
call dword [0x407074]
jmp 0x401499
call fcn.00402980
mov edx, 0xf
xor eax, eax
call fcn.00402a90
call dword [0x407068]
jmp 0x401499