joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3859fc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x385bdc
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x407]
push eax
call sub.user32.dll_GetClientRect
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
jne 0x385a59
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x407]
push eax
call sub.user32.dll_BeginPaint
mov ebx, eax
jmp 0x385a6c
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_WindowFromDC
test eax, eax
jne 0x385a6c
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x385abc
mov eax, dword [ebp - 4]
cmp dword [eax + 0xf9], 0
jne 0x385abc
push 0
call sub.user32.dll_GetDC
mov esi, eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push esi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x10], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
jmp 0x385acc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf9]
test eax, eax
je 0x385acc
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x385bcb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xf9], edx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x14
mov eax, dword [ebp - 4]
push eax
call fcn.00388b88
cmp dword [0x3ddc10], 0
je 0x385b0e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call dword [0x3ddc10]
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0xf
mov eax, dword [ebp - 4]
push eax
call fcn.00388b88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x43f]
test eax, eax
je 0x385b33
xor edx, edx
call fcn.00380b54
push 0
push ebx
call sub.gdi32.dll_SelectClipRgn
cmp ebx, dword [ebp - 0xc]
je 0x385b5f
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push 0
push 0
push ebx
call sub.gdi32.dll_BitBlt
cmp dword [ebp - 8], 0
jne 0x385b78
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x407]
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x385bd2
cmp dword [ebp - 0x10], 0
je 0x385bb7
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf9], edx
jmp 0x385bca
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x385bca
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xf9], edx
ret
Function at 0x386844
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x808], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x3868f7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x5c3], 0
jne 0x38688e
lea edx, [ebp - 0x808]
mov eax, ebx
call fcn.00386a30
mov edx, dword [ebp - 0x808]
mov eax, esi
call fcn.00355478
jmp 0x3868de
mov eax, dword [ebx + 0x407]
test eax, eax
je 0x3868de
cmp byte [ebx + 0x431], 0
jne 0x3868de
push eax
call sub.user32.dll_GetWindowTextLengthW
cmp eax, 0x400
jle 0x3868b3
mov eax, 0x400
test eax, eax
jle 0x3868de
inc eax
push eax
lea eax, [ebp - 0x802]
push eax
mov eax, dword [ebx + 0x407]
push eax
call sub.user32.dll_GetWindowTextW
mov eax, esi
lea edx, [ebp - 0x802]
mov ecx, 0x401
call fcn.0035545c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3868fe
lea eax, [ebp - 0x808]
call fcn.00354b0c
ret

Function at 0x386a30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x386aeb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x5c3], 0
je 0x386a6f
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00386844
mov eax, dword [ebp - 8]
mov edx, edi
call fcn.003869c8
jmp 0x386ad5
mov eax, dword [ebx + 0x407]
test eax, eax
je 0x386ac8
cmp byte [ebx + 0x431], 0
jne 0x386ac8
push eax
call sub.user32.dll_GetWindowTextLengthA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x386a95
xor esi, esi
jmp 0x386ab2
mov eax, dword [ebp - 4]
inc eax
call fcn.00352e80
mov esi, eax
mov eax, dword [ebp - 4]
inc eax
push eax
push esi
mov eax, dword [ebx + 0x407]
push eax
call sub.user32.dll_GetWindowTextA
mov eax, edi
mov edx, esi
call fcn.00354d04
test esi, esi
je 0x386ad5
mov eax, esi
call fcn.00352e9c
jmp 0x386ad5
mov eax, edi
mov edx, dword [ebx + 0x425]
call fcn.00354d04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x386af2
lea eax, [ebp - 8]
call fcn.003552b8
ret
Function at 0x39514c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x3951a8
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x395177
call fcn.0035f148
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00353070
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x3951a8
call fcn.0035f148
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x397514
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.00354f84
xor eax, eax
push ebp
push 0x397578
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
mov eax, dword [ebp + 8]
call fcn.00354f94
push eax
mov eax, esi
call fcn.00354f94
push eax
mov eax, ebx
call fcn.00354f94
push eax
push 0x397588
push edi
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x39757f
lea eax, [ebp + 8]
call fcn.00354b0c
ret

Function at 0x399374
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00354f84
xor eax, eax
push ebp
push 0x399427
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor edx, edx
push ebp
push 0x3993ff
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00359180
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.00354ba4
cmp dword [ebp - 4], 0
jne 0x3993d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x399409
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00354f94
push eax
push 0x39943c
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
setg byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x399409
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x39942e
lea eax, [ebp - 0xc]
call fcn.00354b0c
lea eax, [ebp - 4]
call fcn.00354b0c
ret

Function at 0x399650
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00354f84
xor eax, eax
push ebp
push 0x3996ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.0035353c
lea eax, [ebp - 0x44]
call fcn.00399fb4
xor eax, eax
push ebp
push 0x3996cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x44], 0x3c
lea eax, [ebp - 0x44]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00354f94
push eax
call sub.wininet.dll_InternetCrackUrlA
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3996d4
lea eax, [ebp - 0x44]
call fcn.0039a0c4
ret
Function at 0x3a26b8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x3a289a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x3a2872
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
call fcn.00397be0
call fcn.003989d8
call fcn.003d1d50
xor ecx, ecx
mov dl, 1
mov eax, dword [0x39e89c]
call fcn.003a19d4
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x3a2861
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00388f40
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], edi
cmp edi, 0x20
setne al
push eax
mov edx, dword [0x3d80e0]
mov edx, dword [edx]
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.003a1cf8
mov edx, dword [0x3d82c8]
mov edx, dword [edx]
mov eax, dword [ebp - 8]
call fcn.003a1c0c
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00354db0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.003a1b14
mov ebx, eax
test ebx, ebx
je 0x3a284b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x30]
mov cl, 7
call fcn.00388f80
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x3a2844
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00389900
call fcn.00380eac
mov ecx, eax
mov edx, dword [ebx + 0x58]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.0038cdf8
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x70]
call fcn.003677fc
lea eax, [ebp - 0x1c]
push eax
push esi
push 0
push 0
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.003a10ec
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp + 8]
mov dl, 1
mov eax, dword [0x3a2634]
call fcn.003a29b4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x3a2827
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a282e
mov eax, dword [ebp - 0xc]
call fcn.00353b84
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3a2868
mov eax, dword [ebp - 8]
call fcn.00353b84
ret
Function at 0x3a7ca4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x3a7cd2
mov eax, ebx
call fcn.003a8748
cmp dword [ebx + 0x3c], 0
je 0x3a7ccb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x3a7d43
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x3a7d35
cmp dword [ebx + 8], 0
je 0x3a7cf4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x3a7d06
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x3a7d35
cmp dword [ebx + 8], 0
je 0x3a7ce7
cmp eax, 3
je 0x3a7d19
dec eax
jne 0x3a7ce7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x3a7ce7
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x3a7ce7
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x3a7d61
cmp dword [ebx + 0x10], 0xcc
je 0x3a7d61
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.003a7d6c
pop ebx
ret
Function at 0x3caaf8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x605]
call fcn.003560a4
test eax, eax
jl 0x3cabb2
cmp byte [esi], 0xd
jne 0x3cab9a
mov edi, dword [ebx + 0x10]
cmp byte [edi + 0x48b], 0
je 0x3cab81
mov eax, edi
call fcn.00388980
push eax
mov eax, dword [ebx + 0x10]
call fcn.003885e0
dec eax
pop edx
cmp edx, eax
jne 0x3cab52
mov eax, ebx
call fcn.003cacb8
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.00388c44
jmp 0x3cabc1
mov eax, dword [ebx + 0x10]
call fcn.00388980
mov edi, eax
mov eax, dword [ebx + 0x10]
call fcn.003885e0
sub eax, 2
cmp edi, eax
jne 0x3cab77
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.00388c44
jmp 0x3cabc1
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.00388c44
push 0
push 0xd
mov eax, dword [0x3ddfec]
push eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x407]
push eax
call sub.user32.dll_SendMessageA
cmp byte [esi], 0x1b
jne 0x3cabb2
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x48b], 0
je 0x3cabb2
xor edx, edx
call fcn.00388c44
cmp byte [esi], 0x21
jae 0x3cabc1
mov eax, dword [ebx + 0x10]
mov dword [eax + 0x32], 3
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x3d3ad4
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
call fcn.003557b0
xor eax, eax
push ebp
push 0x3d3bac
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.0035353c
push ebp
call fcn.003d3a0c
pop ecx
xor eax, eax
push ebp
push 0x3d3b87
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x40]
call fcn.00392158
mov eax, dword [ebp - 0x48]
call fcn.00354f94
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x41], al
mov eax, ebx
mov edx, dword [ebp - 0x2c]
call fcn.00354d04
mov eax, esi
mov edx, dword [ebp - 0x10]
call fcn.00354d04
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00354d04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3d3b8e
push ebp
call fcn.003d3a94
pop ecx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
mov ecx, 0x7bf5080b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x7a1f0004
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402ada
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b4c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b25
cmp dword [ebp + 0x10], ebx
jne 0x402b53
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ada
test eax, eax
jne 0x402b37
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b0c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x402b4c

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f7d
mov ecx, dword [0x4247b8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41710c], eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040307b
cmp eax, edi
jl 0x403074
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
cmp dword [ebp - 4], esi
jne 0x403071
push dword [ebp + 8]
add dword [0x41710c], esi
call fcn.0040307b
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403074
cmp dword [ebp + 0x10], edi
jne 0x403040
cmp dword [ebp + 8], edi
jle 0x40306c
mov esi, 0x4130c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402ff0
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
cmp edi, dword [ebp - 4]
jne 0x403071
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40303c
cmp dword [ebp + 0x14], edi
jne 0x40303c
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41710c], eax
cmp dword [ebp + 8], 0
jg 0x402fe3
jmp 0x40306c
push 0xfffffffffffffffe
jmp 0x403073
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40304b
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409024]
call ebx
test eax, eax
je 0x403071
mov eax, dword [ebp - 4]
add dword [0x41710c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403074
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40307b
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, dword [0x41710c]
mov edi, eax
sub esi, dword [0x40b03c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403251
push dword [0x41f11c]
call fcn.0040328e
push ebp
push ebp
push dword [0x40b03c]
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [0x41f118], esi
mov dword [0x417108], ebp
mov eax, dword [0x417110]
mov ebx, 0x4000
sub eax, dword [0x41f11c]
cmp eax, ebx
jg 0x4030ee
mov ebx, eax
mov esi, 0x4130c8
push ebx
push esi
call fcn.0040325c
test eax, eax
je 0x40321c
add dword [0x41f11c], ebx
mov dword [0x40b058], esi
mov dword [0x40b05c], ebx
cmp dword [0x424768], ebp
je 0x40317f
cmp dword [0x424800], ebp
jne 0x40317f
cmp dword [esp + 0x10], ebp
je 0x40314c
mov eax, dword [0x41f118]
push ebp
sub eax, dword [0x41710c]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b03c]
mov dword [0x417108], eax
call fcn.00405ea3
jmp 0x40317f
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, edi
jbe 0x40317f
mov eax, dword [0x424764]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bab
push ebp
push 0x6f
push dword [0x424760]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b040
mov dword [0x40b060], 0x40b0c8
mov dword [0x40b064], 0x8000
call 0x405f64
test eax, eax
jl 0x403225
mov esi, dword [0x40b060]
mov eax, 0x40b0c8
sub esi, eax
je 0x4031e6
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403221
cmp esi, dword [esp + 0x14]
jne 0x403221
add dword [0x40b03c], esi
cmp dword [0x40b05c], ebp
jne 0x403114
jmp 0x4031f2
cmp dword [0x40b05c], ebp
jne 0x403225
cmp ebx, ebp
je 0x403225
mov eax, dword [0x41710c]
mov ecx, eax
sub ecx, dword [0x40b03c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030d8
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x40322a
or eax, 0xffffffff
jmp 0x403253
push 0xfffffffffffffffe
jmp 0x403227
push 0xfffffffffffffffd
pop eax
jmp 0x403253
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403251
mov eax, dword [0x41f118]
push ebp
push ebp
push 0x113
push esi
mov dword [0x417108], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4053ee
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422d68], 0x44
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x405412
test al, 0x10
jne 0x405415
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422d68
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x405440
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x5b6f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5cb9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x5b7002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.005badff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x5b7002
lea edx, [esp + 0x14]
push edx
push 0x5d1140
call fcn.005b26e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.005bb20b
push 0x10
call fcn.005bb1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x5b6fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005a71c0
jmp 0x5b6fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.005b6b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x5b6ff0
mov ecx, edi
call fcn.005a72c0
push edi
call fcn.005bb1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5b7021
inc ebx
cmp ebx, 0x20
jb 0x5b6f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret