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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x10014657
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1001d800]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10014657
test cl, 0x48
je 0x100144ee
cmp byte [eax + 5], 0xa
je 0x100144ee
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10014540
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x10014528
call fcn.1000fa8b
mov dword [eax], 9
call fcn.1000fa94
mov dword [eax], esi
jmp 0x10014538
cmp eax, 0x6d
je 0x10014657
push eax
call fcn.1000fa9d
pop ecx
or eax, 0xffffffff
jmp 0x10014659
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x10014652
test eax, eax
je 0x10014567
cmp byte [ebx], 0xa
jne 0x10014567
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x10014570
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1001464c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1001463c
cmp al, 0xd
je 0x100145a2
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1001462e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x100145bc
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x100145b7
add dword [ebp + 0x10], 2
jmp 0x10014610
mov dword [ebp + 0x10], eax
jmp 0x1001462a
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100145e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1001462a
cmp dword [ebp - 0xc], 0
je 0x1001462a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10014605
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10014610
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1001462d
cmp ebx, dword [ebp + 0xc]
jne 0x10014615
cmp byte [ebp - 1], 0xa
jne 0x10014615
mov byte [ebx], 0xa
jmp 0x1001462d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10012b2b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1001462e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10014586
jmp 0x1001464c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1001464c
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x10014659
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015672
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001d49c], ebx
push esi
push edi
jne 0x100156f2
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001572d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1001d49c], eax
je 0x1001572d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1001d4a0], eax
call esi
cmp dword [0x1001d270], 2
mov dword [0x1001d4a4], eax
jne 0x100156f2
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001d4ac], eax
je 0x100156f2
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1001d4a8], eax
mov eax, dword [0x1001d4a8]
test eax, eax
je 0x10015737
call eax
test eax, eax
je 0x1001571e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001d4ac]
test eax, eax
je 0x1001571e
test byte [ebp - 8], 1
jne 0x10015737
cmp dword [0x1001d27c], 4
jb 0x10015731
or byte [ebp + 0x12], 0x20
jmp 0x10015756
xor eax, eax
jmp 0x10015766
or byte [ebp + 0x12], 4
jmp 0x10015756
mov eax, dword [0x1001d4a0]
test eax, eax
je 0x10015756
call eax
mov ebx, eax
test ebx, ebx
je 0x10015756
mov eax, dword [0x1001d4a4]
test eax, eax
je 0x10015756
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001d49c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100160a2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.1000b9c0
mov eax, dword [0x1001b854]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.10012b2b
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x100161d5
push 2
push esi
push dword [ebp + 8]
call fcn.10012b2b
add esp, 0xc
cmp eax, ebx
je 0x100161d5
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x10016175
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.10010950
push 0x8000
push dword [ebp + 8]
call fcn.10016ce1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1001612b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.10012c4a
add esp, 0xc
cmp eax, 0xffffffff
je 0x1001614b
sub edi, eax
test edi, edi
jg 0x10016123
jmp 0x10016163
call fcn.1000fa94
cmp dword [eax], 5
jne 0x10016160
call fcn.1000fa8b
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.10016ce1
pop ecx
pop ecx
jmp 0x100161bd
jge 0x100161bd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10012b2b
push dword [ebp + 8]
call fcn.100140ad
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x100161bd
call fcn.1000fa8b
mov dword [eax], 0xd
call fcn.1000fa94
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.10012b2b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x100161d7
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.10012fe9
leave
ret
Function at 0x4a117c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401feb
mov eax, dword [0x624d90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406b45
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a11be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a131a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406cd0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x62a0b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004037a6
mov ecx, dword [esi*4 + 0x62a0b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a1313
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1313
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1313
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004037a6
add esp, 0x14
test edx, edx
jl 0x4a1313
jg 0x4a1289
test eax, eax
jb 0x4a1313
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1313
jl 0x4a12a3
cmp dword [ebp - 0x1008], eax
ja 0x4a1313
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a12c1
test ebx, ebx
je 0x4a12fa
cmp ecx, edi
jae 0x4a12fa
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a12db
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a12e7
cmp byte [ecx + 1], 0xa
jne 0x4a12e7
inc ecx
jmp 0x4a12e7
movzx eax, al
movsx eax, byte [eax + 0x6258e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a12c1
cmp edx, ebx
jne 0x4a12c1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1318
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040354e
leave
ret
Function at 0x4a6a41
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x624d90]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a6a8c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a6f03
test al, al
jne 0x4a6a86
sub edx, 2
cmp edx, edi
jne 0x4a6a6c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a6aae
lea eax, [edi + 2]
cmp edx, eax
je 0x4a6aae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a663a
add esp, 0x10
jmp 0x4a6ba8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a6f03
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a6af1
push dword [ebp - 0x25c]
jmp 0x4a6a9e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a6b2e
cmp word [ebp - 0x226], 0
je 0x4a6b4f
cmp word [ebp - 0x226], ax
jne 0x4a6b2e
cmp word [ebp - 0x224], 0
je 0x4a6b4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a663a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a6b9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a6b08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a6b83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a6ba8
push 0x4a6022
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00406091
add esp, 0x10
jmp 0x4a6b78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040354e
leave
ret
Function at 0x4b2323
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x62a0b0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b2363
cmp byte [ebx], 0xa
jne 0x4b2363
or byte [eax + edi + 0x28], 4
jmp 0x4b2368
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b2466
mov al, byte [edx]
cmp al, 0x1a
je 0x4b2448
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b2397
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b23bc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b23c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4b2379
jmp 0x4b2466
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b2443
cmp dword [ebp - 0xc], 0
je 0x4b2443
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x62a0b0]
test byte [eax + edi + 0x28], 0x48
je 0x4b241d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b2408
mov byte [esi], dl
jmp 0x4b2419
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x62a0b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b2466
cmp byte [ebp - 1], 0xa
jne 0x4b242c
cmp esi, ebx
jne 0x4b242c
mov byte [esi], 0xa
jmp 0x4b2465
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401ac8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b2466
mov byte [esi], 0xd
jmp 0x4b2465
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x62a0b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b2462
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b2466
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b24c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x62a0b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b2505
cmp word [esi], dx
jne 0x4b2505
or byte [edi + eax + 0x28], 4
jmp 0x4b250a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4b265d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4b263d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b254c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b2582
cmp eax, edx
jae 0x4b258e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4b2524
jmp 0x4b265d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b2639
cmp dword [ebp - 0x14], 0
je 0x4b2639
mov eax, dword [ebx*4 + 0x62a0b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b2611
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b25da
mov word [esi], cx
jmp 0x4b260d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x62a0b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x62a0b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x62a0b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b265d
pop ebx
cmp word [ebp - 4], bx
jne 0x4b2622
cmp esi, dword [ebp + 0xc]
jne 0x4b2622
mov word [esi], bx
jmp 0x4b265a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401ac8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b265d
push 0xd
jmp 0x4b2656
mov ecx, dword [ebx*4 + 0x62a0b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b2654
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b265d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c040
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40c0f5
mov edi, dword [esp + 0x14]
xor ebx, ebx
mov ebp, dword [sym.imp.USER32.dll_ReleaseDC]
nop dword [eax]
push 0
push 0
call ebp
add byte [edi + ebx], 0x31
push 0
push 0
call ebp
add byte [edi + ebx], 0x37
push 0
push 0
call ebp
add byte [edi + ebx], 0xaf
push 0
push 0
call ebp
xor byte [edi + ebx], 0x9e
push 0
push 0
call ebp
add byte [edi + ebx], 0xb0
push 0
push 0
call ebp
add byte [edi + ebx], 0x84
push 0
push 0
call ebp
add byte [edi + ebx], 0x11
push 0
push 0
call ebp
xor byte [edi + ebx], 0x10
push 0
push 0
call ebp
add byte [edi + ebx], 0x50
push 0
push 0
call ebp
add byte [edi + ebx], 0xfc
push 0
push 0
call ebp
xor byte [edi + ebx], 0x47
push 0
push 0
call ebp
add byte [edi + ebx], 0xa
push 0
push 0
call ebp
xor byte [edi + ebx], 0xd2
push 0
push 0
call ebp
add byte [edi + ebx], 0x2d
inc ebx
cmp esi, ebx
jne 0x40c060
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402cc5
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40c100
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0x10]
cmp dword [eax + 0x14], 0x10
mov ebx, eax
jb 0x40c118
mov ebx, dword [eax]
mov esi, dword [esp + 0x40]
xor esi, edi
cmp edi, 4
jae 0x40c127
mov ecx, edi
jmp 0x40c195
mov dword [esp + 0x24], edi
shr edi, 2
xor ebp, ebp
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
movups xmmword [esp], xmm0
mov dword [esp + 0x20], 0
call dword [sym.imp.GDI32.dll_ArcTo]
sub esp, 0x24
mov dword [esp + 4], str.Z81xbyuAua
mov dword [esp], 0x4d4860
call fcn.00402d5b
mov dword [esp], eax
call fcn.004060eb
imul eax, dword [ebx + ebp*4], 0x5bd1e991
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul eax, ecx, 0x5bd1e991
imul esi, esi, 0x5bd1e991
xor esi, eax
inc ebp
cmp edi, ebp
jne 0x40c130
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x10]
mov edi, dword [esp + 0x24]
and edi, 0xfffffffc
and ecx, 3
xor eax, eax
cmp ecx, 1
je 0x40c1be
cmp ecx, 2
je 0x40c1b4
cmp ecx, 3
jne 0x40c1cc
movsx eax, byte [ebx + edi + 2]
shl eax, 0x10
movsx ecx, byte [ebx + edi + 1]
shl ecx, 8
xor eax, ecx
movsx ecx, byte [ebx + edi]
xor ecx, eax
imul eax, ecx, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4035bc
Capabilities:
Terminate process

Disassembly:
jmp 0x453cc3
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x453cd4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058c1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x406800
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47947b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046e3ae
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406882
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046c2c0
mov eax, dword [eax]
push 0x495c38
push eax
call fcn.0045efc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046e639
test bl, bl
je 0x406882
push 0x495c38
lea ecx, [esp + 0xc]
call fcn.0046e9c9
push 0x495c44
lea ecx, [esp + 0xc]
call fcn.0046e9c9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4068be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046e639
jmp 0x406989
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x406942
lea edx, [esp + 0x7c]
push 0x495c40
push edx
call fcn.0045efc4
add esp, 8
test eax, eax
je 0x406942
lea eax, [esp + 0x7c]
push 0x495c3c
push eax
call fcn.0045efc4
add esp, 8
test eax, eax
je 0x406942
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4068d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046e639
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x407190
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4071f2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x407200
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4794fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49f5c0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x407338
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x407266
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046e639
xor eax, eax
jmp 0x4073af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046e776
push esi
lea ecx, [esp + 0xc]
call fcn.0046ea05
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40738d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00407190
test eax, eax
jne 0x40738d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.00407190
test eax, eax
jne 0x40738d
lea eax, [esp + 0x14]
push 0x495c54
push eax
call fcn.00460060
mov esi, eax
add esp, 8
test esi, esi
jne 0x40736c
lea ecx, [esp + 0x14]
push 0x495c50
push ecx
call fcn.0045ffe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40736c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40736f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046e726
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40727e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046e639
xor eax, eax
jmp 0x4073af
mov byte [esi], 0
push 0x495c4c
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046e639
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4