joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420677
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
inc ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
test edi, edi
je 0x4206b1
mov dword [edi], edx
push ecx
push eax
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov esi, eax
cmp esi, 0xc0000034
jne 0x4206dd
test byte [ebp + 8], 1
je 0x4206f3
push 2
pop ebx
test edi, edi
je 0x4206d2
mov dword [edi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp esi, 0xc000017c
jne 0x4206ef
test byte [ebp + 8], 2
je 0x4206f3
push 3
jmp 0x4206cb
test esi, esi
jns 0x4206cc
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x4207a7
mov ecx, dword [esp + 0x10]
mov eax, ecx
or eax, dword [esp + 0xc]
jne 0x420789
mov edx, dword [0x7ffe0004]
mov eax, 0x7ffe0324
mov dword [esp + 0x10], edx
mov ecx, dword [eax]
add eax, 0xfffffffc
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov eax, 0x7ffe0328
mov eax, dword [eax]
cmp ecx, eax
je 0x420757
mov edx, 0x7ffe0324
lea edi, [edx - 4]
lea ebx, [edx + 4]
pause
mov ecx, dword [edx]
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
cmp ecx, eax
jne 0x42073c
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov edx, dword [esp + 0x10]
inc ebx
mov eax, ecx
mul edx
mov ecx, eax
mov eax, dword [esp + 0x14]
shld edx, ecx, 8
mov dword [esp + 0xc], edx
mul dword [esp + 0x10]
shl ecx, 8
shrd eax, edx, 0x18
shr edx, 0x18
add ecx, eax
mov eax, dword [esp + 0xc]
adc eax, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
jmp 0x42078d
mov eax, dword [esp + 0xc]
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.0041ea5b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
jmp 0x4206b1
and dword [esp + 0x34], 0
lea ecx, [esp + 0x28]
push esi
mov dword [esp + 0x2c], 0x404644
mov dword [esp + 0x30], 0x4048b8
mov dword [esp + 0x34], 0x557
call fcn.0045a015
mov eax, esi
jmp 0x4206d4
Function at 0x422589
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x401a00]
mov edx, dword [0x401a04]
or dword [ebp - 0x20], 0xffffffff
push ebx
mov dword [ebp - 0x1c], eax
mov ebx, ecx
mov eax, dword [0x4019f8]
mov ecx, dword [0x4019fc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push esi
push edi
mov dword [ebp - 0x30], eax
xor edi, edi
lea eax, [ebp - 0x38]
mov dword [ebp - 0x18], edx
push eax
push 0x20019
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
test esi, esi
js 0x4226a0
lea eax, [ebp - 8]
push eax
push edi
push edi
push 2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp esi, 0x80000005
je 0x42263b
cmp esi, 0xc0000023
jne 0x42266a
lea edx, [ebp - 0x44]
mov ecx, eax
call fcn.00458ebb
mov edi, dword [ebp - 0x3c]
mov esi, eax
test esi, esi
js 0x4226a0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push edi
push 2
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
mov eax, dword [ebp - 0xc]
test esi, esi
js 0x4226a0
cmp eax, 0x10
jb 0x4226b6
test edi, edi
je 0x4226c0
mov ecx, dword [edi + 8]
mov edx, ebx
call fcn.00458ebb
mov esi, eax
test esi, esi
js 0x4226a0
push dword [edi + 8]
lea eax, [edi + 0xc]
push eax
push dword [ebx + 8]
call sub.ntdll.dll_memcpy
mov eax, dword [edi + 8]
add esp, 0xc
mov dword [ebx], eax
jmp 0x4226b6
mov eax, esi
cmp esi, 0xc0000034
je 0x4226b1
cmp eax, 0xc000003a
jne 0x4226b6
mov esi, 0xc015001a
test edi, edi
je 0x4226c0
push edi
call fcn.0045ccab
cmp dword [ebp - 0x20], 0xffffffff
je 0x4226cf
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461687
leave
ret
Function at 0x42bfea
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 4], ebx
jbe 0x42c027
mov esi, dword [edi + 8]
add esi, ebx
lea ecx, [esi + 0x20]
call fcn.00425926
mov ecx, esi
call fcn.0042ad13
mov eax, dword [ebp - 4]
add ebx, 0x88
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 4]
jb 0x42bfff
xor ebx, ebx
push dword [edi + 8]
mov eax, dword fs:[0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [edi + 0xc]
mov dword [edi + 8], ebx
test esi, esi
je 0x42c052
mov ecx, esi
call fcn.0042bfea
mov ecx, esi
call fcn.0041d1b1
mov dword [edi + 0xc], ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42cf6e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], 0x18
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
push 4
push ebx
push ebx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
push 0x2001f
lea eax, [ebp - 8]
mov dword [ebp - 0x18], 0x40
push eax
mov edi, ecx
mov dword [ebp - 0x1c], 0x401a14
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ntdll.dll_NtCreateKey]
mov esi, eax
test esi, esi
jns 0x42d008
mov dword [ebp - 0x2c], 0x5d
mov dword [ebp - 0x28], 0x407a60
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], 0x407a20
mov dword [ebp - 0x34], 0x4079ec
call fcn.0045a015
mov eax, dword [ebp - 8]
test eax, eax
je 0x42d004
cmp eax, 0xffffffff
je 0x42d004
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x42d04a
push 0x10
push edi
push 3
push ebx
push 0x401a24
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov esi, eax
test esi, esi
jns 0x42d032
mov dword [ebp - 0x2c], 0x66
mov dword [ebp - 0x28], 0x407b48
jmp 0x42cfd7
mov eax, dword [ebp - 8]
test eax, eax
je 0x42d048
cmp eax, 0xffffffff
je 0x42d048
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461687
leave
ret
Function at 0x42d8fd
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, 0x7ffe0030
mov ecx, esi
push edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d911
sub ecx, edx
mov dword [ebp - 4], esi
sar ecx, 1
lea esi, [ebp - 0xc]
lea eax, [ecx + ecx]
mov dword [ebp - 0xc], eax
add eax, 2
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret 4
Function at 0x450e89
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
and dword [ebp - 0x1c], 0
push esi
push edi
lea edi, [ebp - 0x18]
and dword [ebp - 0x20], 0
stosd dword es:[edi], eax
mov edx, ecx
mov ecx, dword [0x401f04]
xor bl, bl
mov dword [ebp - 0x2c], ecx
mov ecx, dword [0x401f0c]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov dword [ebp - 0x5c], edx
mov byte [edx], cl
stosd dword es:[edi], eax
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], 0x40
stosd dword es:[edi], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
stosd dword es:[edi], eax
mov eax, dword [0x401f00]
mov dword [ebp - 0x30], eax
mov eax, dword [0x401f08]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
push 0x20019
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
mov edi, 0xc0000034
cmp esi, edi
je 0x450fa4
test esi, esi
jns 0x450f60
mov dword [ebp - 0x50], 0x2e
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], 0x41306c
mov dword [ebp - 0x58], 0x413038
mov dword [ebp - 0x4c], 0x408164
call fcn.0045a015
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x450f5c
cmp eax, 0xffffffff
je 0x450f5c
and dword [ebp - 0x1c], 0
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, esi
jmp 0x450fbd
lea eax, [ebp - 0x20]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, edi
je 0x450fa4
test esi, esi
jns 0x450f8c
mov dword [ebp - 0x50], 0x3c
jmp 0x450f27
cmp dword [ebp - 0x14], 4
je 0x450f98
cmp dword [ebp - 0x10], 4
jne 0x450f9f
cmp dword [ebp - 0xc], 0
setne bl
mov eax, dword [ebp - 0x5c]
mov byte [eax], bl
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x450fbb
cmp eax, 0xffffffff
je 0x450fbb
and dword [ebp - 0x1c], 0
push eax
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461687
leave
ret
Function at 0x45a6e8
Capabilities:
Encode data using base64

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
push ebx
mov ebx, dword [ecx]
push esi
push edi
mov edi, dword [ecx + 8]
lea esi, [ebp - 0x208]
add ebx, edi
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x218], 0x200
mov eax, esi
mov dword [ebp - 0x214], eax
cmp edi, ebx
jae 0x45a8b2
lea eax, [ebp - 8]
mov dword [ebp - 0x210], edi
sub eax, esi
and eax, 0xfffffffe
cmp eax, 8
jl 0x45a845
mov dh, byte [edi]
xor dl, dl
inc edi
mov byte [ebp - 0x209], dl
cmp edi, ebx
je 0x45a763
mov dl, byte [edi]
xor eax, eax
push 2
pop ecx
jmp 0x45a769
push 0x3d
xor ecx, ecx
pop eax
inc ecx
mov edi, dword [ebp - 0x210]
add edi, ecx
movzx eax, ax
mov dword [ebp - 0x210], eax
mov word [esi + 4], ax
cmp edi, ebx
je 0x45a78f
mov al, byte [edi]
inc edi
mov byte [ebp - 0x209], al
xor eax, eax
jmp 0x45a792
push 0x3d
pop eax
movzx ecx, ax
mov word [esi + 6], ax
mov dword [ebp - 0x228], ecx
movzx ecx, dh
mov eax, ecx
movzx edx, dl
shr eax, 2
and ecx, 3
shl ecx, 4
movzx eax, byte [eax + 0x415560]
mov word [esi], ax
mov eax, edx
shr eax, 4
or eax, ecx
cmp word [ebp - 0x210], 0
movzx ecx, byte [ebp - 0x209]
movzx eax, byte [eax + 0x415560]
mov word [esi + 2], ax
jne 0x45a7f5
and edx, 0xf
mov eax, ecx
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + 0x415560]
mov word [esi + 4], ax
cmp word [ebp - 0x228], 0
jne 0x45a80d
and ecx, 0x3f
movzx eax, byte [ecx + 0x415560]
mov word [esi + 6], ax
add esi, 8
lea eax, [ebp - 8]
cmp esi, eax
jne 0x45a83d
push dword [ebp - 0x224]
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x200
push ecx
call fcn.0045c96c
test eax, eax
js 0x45a8b4
lea esi, [ebp - 0x208]
cmp edi, ebx
jb 0x45a734
lea eax, [ebp - 0x208]
cmp esi, eax
je 0x45a8b2
sub esi, eax
mov dword [ebp - 0x21c], esi
cmp esi, dword [ebp - 0x218]
jbe 0x45a89c
mov esi, 0xc000042b
mov dword [ebp - 0x220], 0x414d7c
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x21c], 0x415090
mov dword [ebp - 0x218], 0x4f5
mov dword [ebp - 0x214], 0x4150a8
call fcn.0045a015
mov eax, esi
jmp 0x45a8b4
push dword [ebp - 0x224]
lea edx, [ebp - 0x21c]
push ecx
call fcn.0045c96c
test eax, eax
js 0x45a8b4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461687
leave
ret
Function at 0x460e67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x462040]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ecx, dword [0x462598]
mov esi, edx
test ecx, ecx
jne 0x460ed7
xor eax, eax
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
call fcn.00461319
xor edi, edi
cmp dword [esp + 0x28], edi
je 0x460ec8
push 0x10
push edi
push dword [esp + 0x38]
call dword [sym.imp.ntdll.dll_wcstoul]
and eax, 0xfffe
add esp, 0xc
or eax, 1
mov dword [0x462598], eax
lea ecx, [esp + 0x28]
call fcn.0041d2e7
mov ecx, dword [0x462598]
or dword [ebx + 8], ecx
lea eax, [esp + 0x34]
push esi
push eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.ntdll.dll_RtlCreateUnicodeStringFromAsciiz]
test al, al
je 0x460fc9
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
push eax
lea edx, [esp + 0x38]
mov dword [esp + 0x30], edi
mov esi, edi
call fcn.004392ab
cmp word [esp + 0x28], 0
je 0x460f2d
push 0x10
push edi
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_wcstoul]
add esp, 0xc
mov esi, eax
jmp 0x460fbd
lea eax, [esp + 0xc]
mov dword [esp + 0x24], edi
push eax
push 0x101
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], 0x18
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x20], 0x402738
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jne 0x460fa5
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], edi
push eax
push 0x14
lea eax, [esp + 0x48]
push eax
push 2
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x38]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
test eax, eax
js 0x460fa5
cmp dword [esp + 0x44], 4
jne 0x460fa5
cmp dword [esp + 0x48], 4
jne 0x460fa5
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x460fbd
cmp eax, 0xffffffff
je 0x460fbd
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ntdll.dll_NtClose]
or dword [ebx + 8], esi
lea ecx, [esp + 0x28]
call fcn.0041e0b5
lea ecx, [esp + 0x34]
call fcn.0041e0b5
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00461687
mov esp, ebp
pop ebp
ret
Function at 0x423d20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
mov dword [edi + 0x184cc], 0xb02ceb38
push edi
or ebp, 0xffffffff
jmp 0x423d4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423d40
mov eax, 1
add ebx, ebx
jne 0x423d63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423d58
jne 0x423d74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423d58
xor ecx, ecx
sub eax, 3
jb 0x423d88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423dfa
mov ebp, eax
add ebx, ebx
jne 0x423d93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423da0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423dc4
inc ecx
add ebx, ebx
jne 0x423db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423da5
jne 0x423dc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423da5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423de4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423dd5
jmp 0x423d46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423de4
add edi, ecx
jmp 0x423d46
pop esi
mov edi, esi
mov ecx, 0xa20
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423e02
cmp byte [edi], 9
jne 0x423e02
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 eax, ebx
loop 0x423e07
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423e76
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x235b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23640]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423e34
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23644]
or eax, eax
je 0x423e70
mov dword [ebx], eax
add ebx, 4
jmp 0x423e51
call dword [esi + 0x23648]
popal
jmp 0x4178f0
Function at 0x408810
Capabilities:
Reference http user-agent string

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
push esi
xor esi, esi
mov eax, dword [ebp + 0x14]
cmp eax, esi
jne 0x408825
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push ebx
push edi
push eax
mov eax, dword [ebp + 4]
push 0x2712
push eax
call fcn.00428ae0
mov cl, byte [esp + 0x1f]
mov edi, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_14_0_1_like_Mac_OS_X__AppleWebKit_605.1.15__KHTML__like_Gecko__Mobile_15E148_MicroMessenger_8.0.27_0x18001b34__NetType_4G_Language_zh_CN
mov byte [esp + 0x20], cl
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x408896
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
mov esi, str.Mozilla_5.0__iPhone__CPU_iPhone_OS_14_0_1_like_Mac_OS_X__AppleWebKit_605.1.15__KHTML__like_Gecko__Mobile_15E148_MicroMessenger_8.0.27_0x18001b34__NetType_4G_Language_zh_CN
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
xor esi, esi
mov byte [eax + ebx], 0
mov eax, dword [esp + 0x18]
pop edi
cmp eax, esi
pop ebx
jne 0x4088a5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [ebp + 4]
push eax
push 0x2722
push ecx
call fcn.00428ae0
mov edx, dword [ebp + 4]
add esp, 0xc
push 5
push 0x44
push edx
call fcn.00428ae0
mov eax, dword [ebp + 4]
add esp, 0xc
push 1
push 0x34
push eax
call fcn.00428ae0
mov ecx, dword [ebp + 4]
add esp, 0xc
push 1
push 0x63
push ecx
call fcn.00428ae0
mov edx, dword [ebp + 4]
add esp, 0xc
push esi
push 0x2f
push edx
call fcn.00428ae0
mov eax, dword [ebp + 4]
add esp, 0xc
push 0x408b80
push 0x4e2b
push eax
call fcn.00428ae0
mov ecx, dword [ebp + 4]
add esp, 0xc
push ebp
push 0x2711
push ecx
call fcn.00428ae0
mov edx, dword [ebp + 4]
add esp, 0xc
push esi
push 0x40
push edx
call fcn.00428ae0
mov eax, dword [ebp + 4]
add esp, 0xc
push esi
push 0x51
push eax
call fcn.00428ae0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp ecx, esi
pop esi
pop ebp
je 0x408964
mov al, byte [ecx - 1]
test al, al
je 0x40895a
cmp al, 0xff
je 0x40895a
dec al
mov byte [ecx - 1], al
add esp, 0x14
ret
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
add esp, 0x14
ret
Function at 0x40cfd0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push edi
push str.sklnsdhbs98r734imnok089
push str.C:UsersPublicDownloadskXaqjbjnZq8dl.dat
call fcn.00424490
mov edi, eax
add esp, 8
test edi, edi
jne 0x40cff7
pop edi
add esp, 0x12c
ret
mov eax, dword [esp + 0x134]
push eax
push edi
call fcn.00424570
add esp, 8
test eax, eax
je 0x40d01f
push edi
call fcn.004245b0
add esp, 4
xor eax, eax
pop edi
add esp, 0x12c
ret
lea ecx, [esp + 4]
push ecx
push 0xffffffffffffffff
push edi
call fcn.004244b0
add esp, 0xc
test eax, eax
je 0x40d046
push edi
call fcn.004245b0
add esp, 4
xor eax, eax
pop edi
add esp, 0x12c
ret
push ebx
mov ebx, dword [esp + 8]
push esi
xor esi, esi
test ebx, ebx
jle 0x40d072
lea edx, [esp + 0xc]
push edx
push esi
push edi
call fcn.004244b0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call fcn.00424550
add esp, 0x18
inc esi
cmp esi, ebx
jl 0x40d052
push edi
call fcn.004245b0
add esp, 4
push str.C:UsersPublicDownloadskXaqjbjnZq8dl.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x12c
ret

Function at 0x40d0a0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push edi
mov edi, dword [esi + 0xc]
mov ecx, dword [eax]
mov eax, dword [edx]
mov dword [esp + 0x10], edi
mov edi, dword [esi + 8]
mov dword [esp + 0x28], edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov dword [esp + 0x18], edi
mov edx, 0xf1bbcdc8
mov dword [esp + 0x14], esi
mov edi, 8
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x10]
mov esi, ecx
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [ecx + edx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
sub eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [eax + edx]
xor esi, ebx
add edx, 0x61c88647
sub ecx, esi
dec edi
jne 0x40d0dc
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov dword [ecx], eax
add esp, 0xc
ret

Function at 0x40d180
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
push esi
push edi
push 0x4990dc
push eax
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov esi, eax
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
push ebx
call sub.MFC42.DLL_operatornew
push esi
mov edi, eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [esp + 0x50]
push ecx
push ebx
push edi
call fcn.0040d140
mov edx, dword [esp + 0x64]
add esp, 0x48
push 0x498b68
push edx
call ebp
mov esi, eax
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
ret