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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4fd7e9
dec al
je 0x4fd824
dec al
je 0x4fd869
dec al
je 0x4fd8d2
jmp 0x4fd95c
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4fd95c
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4fd7f9
jmp 0x4fd95c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fd95c
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4fd834
jmp 0x4fd95c
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fd95c
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4fd898
xor ebp, ebp
jmp 0x4fd8a8
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4fd8b1
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4fd879
jmp 0x4fd95c
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4fd95c
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4fd92b
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004fa888
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4fd8e6
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5017c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069d4
xor eax, eax
push ebp
push 0x5018e6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406a40
push 0xa
mov eax, dword [ebp - 8]
call fcn.00406a78
push eax
mov eax, dword [0x544c40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x5018c3
push ebx
mov eax, dword [0x544c40]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
push ebx
mov eax, dword [0x544c40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
xor edx, edx
push ebp
push 0x5018a6
push dword fs:[edx]
mov dword fs:[edx], esp
test ebx, ebx
je 0x50189c
push edi
push 0
call sub.kernel32.dll_GlobalAlloc
mov esi, eax
push esi
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
mov ecx, edi
call fcn.00404438
lea eax, [ebp - 0xc]
call fcn.00409758
push eax
push 0
push esi
call sub.ole32.dll_CreateStreamOnHGlobal
push 0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4b1ee4]
call fcn.004b2178
mov dword [ebp - 0x10], eax
push esi
call sub.kernel32.dll_GlobalUnlock
lea eax, [ebp - 0xc]
call fcn.00409758
push ebx
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5018c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5018ed
lea eax, [ebp - 0xc]
call fcn.00409758
lea eax, [ebp - 8]
mov edx, 2
call fcn.004069e4
ret
Function at 0x5019c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
test dl, dl
je 0x5019e0
add esp, 0xfffffff0
call fcn.00405414
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x501b53
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00404eb8
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, 0x114
call fcn.004048ac
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x114
mov eax, dword [ebp - 4]
add eax, 4
push eax
call sub.kernel32.dll_GetVersionExW
mov dword [ebp - 0xc], 0x43
xor eax, eax
push ebp
push 0x501b21
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
movzx edx, word [ebp - 0xc]
call fcn.00406b58
lea eax, [ebp - 0x10]
mov edx, 0x501b88
call fcn.00406e00
mov eax, dword [ebp - 0x10]
call fcn.00406a78
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x501b17
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.00408160
add eax, 2
push eax
mov eax, dword [ebp - 4]
add eax, 0x118
mov ecx, 1
mov edx, dword [0x5016f0]
call fcn.00408320
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.00408160
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x118]
lea eax, [edx + eax*8]
push eax
lea eax, [ebp - 0x14]
movzx edx, word [ebp - 0xc]
call fcn.00406b58
mov edx, dword [ebp - 0x14]
mov ecx, 0x501b88
pop eax
call fcn.00406ec0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
call fcn.00408160
add eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x118]
lea eax, [edx + eax*8 + 4]
push eax
lea eax, [ebp - 0x18]
movzx edx, word [ebp - 0xc]
call fcn.00406b58
lea eax, [ebp - 0x18]
mov edx, 0x501b88
call fcn.00406e00
mov eax, dword [ebp - 0x18]
call fcn.00406a78
push eax
call sub.kernel32.dll_GetDriveTypeW
pop edx
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x501b2b
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x5b
jne 0x501a2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501b5a
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004069e4
ret
Function at 0x50285c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40c19c]
call fcn.0040767c
xor eax, eax
push ebp
push 0x5029a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x540364], 0
jne 0x5028b0
mov ecx, dword [0x54106c]
mov dl, 1
mov eax, dword [0x40dc54]
call fcn.004171a4
call fcn.004059b8
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004048ac
mov eax, ebx
call fcn.00406870
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x5029b4
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00409758
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x5028f7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x50294c
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x502945
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00406c54
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00406bec
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.004118fc
test eax, eax
jne 0x502945
mov ebx, 0x15
jmp 0x502951
mov ebx, 0x10
jmp 0x502951
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x540364]
call fcn.005026c8
mov eax, dword [ebp - 4]
call fcn.005026c8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00409770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5029ad
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004069e4
lea eax, [ebp - 0xc]
mov edx, dword [0x40c19c]
call fcn.00407754
ret

Function at 0x507598
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.00506fd0
test byte [ebx + 0x2a5], 4
jne 0x50762d
mov edx, esp
mov eax, ebx
call fcn.004822d0
push esp
mov eax, ebx
call fcn.0048b31c
push eax
push 0
mov eax, ebx
test eax, eax
je 0x5075cd
sub eax, 0xfffffd14
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x280]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x294], 0
jne 0x5075fe
mov ecx, dword [0x541398]
mov dl, 1
mov eax, dword [0x5020d4]
call fcn.004171a4
call fcn.004059b8
mov eax, ebx
call fcn.00507bb4
cmp byte [ebx + 0x59], 0
jne 0x507634
mov eax, ebx
call fcn.0048b580
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x507634
push 0
mov eax, ebx
call fcn.0048b580
push eax
call sub.user32.dll_ShowWindow
jmp 0x507634
mov eax, ebx
call fcn.00487430
add esp, 0x10
pop ebx
ret
Function at 0x50d224
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 - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x50d28b
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthW
mov ebx, eax
lea edi, [ebx + 1]
mov edx, edi
lea eax, [ebp - 4]
call fcn.00406d68
push edi
mov eax, dword [ebp - 4]
call fcn.00406a78
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004069ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50d292
lea eax, [ebp - 4]
call fcn.004069dc
ret

Function at 0x51249c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x512526
xor edx, edx
push ebp
push 0x512507
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x512526
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x516ca0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x516cce
mov eax, ebx
call fcn.00517754
cmp dword [ebx + 0x40], 0
je 0x516cc7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x516d3f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x516d31
cmp dword [ebx + 8], 0
je 0x516cf0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x516d02
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x516d31
cmp dword [ebx + 8], 0
je 0x516ce3
cmp eax, 3
je 0x516d15
dec eax
jne 0x516ce3
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 0x516ce3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x516ce3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x516d5d
cmp dword [ebx + 0x14], 0xcc
je 0x516d5d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00516d68
pop ebx
ret

Function at 0x527510
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069d4
mov eax, dword [ebp - 8]
call fcn.004069d4
mov eax, dword [ebp - 0xc]
call fcn.004069d4
xor eax, eax
push ebp
push 0x52763f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00406a78
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.00406a78
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.00469ba0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00406a78
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x527624
xor eax, eax
push ebp
push 0x52761d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x5275fd
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x527601
xor eax, eax
jmp 0x527603
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527624
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527646
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004069e4
ret
Function at 0x527650
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004069d4
mov eax, dword [ebp - 8]
call fcn.004069d4
mov eax, dword [ebp - 0xc]
call fcn.004069d4
mov eax, dword [ebp + 0xc]
call fcn.004069d4
xor eax, eax
push ebp
push 0x5277ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.00406a78
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x5277d0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00406a78
push eax
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x527797
xor edx, edx
push ebp
push 0x527790
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.00406a78
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406a78
push eax
movzx eax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectW
test eax, eax
je 0x527779
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x527770
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionW
test eax, eax
jne 0x527774
xor eax, eax
jmp 0x527776
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527797
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5277c1
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004069e4
lea eax, [ebp + 0xc]
call fcn.004069dc
ret
Function at 0x5277e0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x5278a8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x5278ac
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x5278a8
call sub.wininet.dll_InternetOpenW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x52789f
xor eax, eax
push ebp
push 0x527898
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionW
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionW
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52789f
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x527be4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor edx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x527e0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 0x105
mov eax, dword [ebp - 0x24]
call fcn.00404280
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x527c65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
je 0x527c4f
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00406b98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527c6c
mov eax, dword [ebp - 0x14]
call fcn.0040429c
ret

Function at 0x52943c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov bl, 2
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x14
call fcn.004048ac
push 0x14
lea eax, [ebp - 0x14]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
je 0x529477
cmp word [ebp - 0x14], 0x31
jne 0x529475
mov bl, 1
jmp 0x529477
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52ad08
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0048b900
test al, al
je 0x52adc7
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 8], eax
jmp 0x52ada5
cmp word [esi + 0x67a], 0
je 0x52ad59
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x67c]
call dword [esi + 0x678]
movzx eax, byte [esi + 0x670]
or al, byte [ebp - 9]
jne 0x52ad7c
cmp dword [ebp - 4], 0
jbe 0x52ad78
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x52ad7c
xor ebx, ebx
jmp 0x52ad7e
mov bl, 1
test bl, bl
jne 0x52adc7
mov eax, dword [0x541574]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x52adc7
mov eax, dword [0x541574]
mov eax, dword [eax]
call fcn.004afc7c
push 1
call sub.kernel32.dll_Sleep_2
test esi, esi
je 0x52adc7
cmp byte [esi + 0x610], 0
jne 0x52adc7
mov edx, 0xfffffdf3
mov eax, esi
call fcn.005079b8
cmp eax, 4
jne 0x52ad36
mov byte [esi + 0x670], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101f817
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1046080]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x101f8a8
lea eax, [ebp - 0x40c]
push 0x100
push eax
call fcn.0101f905
and word [ebp - 0x20c], 0
add esp, 0x10
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x40c]
push eax
push SysReAllocString
mov dword [ebp - 0x410], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x101f898
cmp word [ebp - 0x20c], ax
je 0x101f898
push 0x20013
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.WINMM.dll_PlaySoundW
mov ecx, dword [ebp - 4]
call fcn.01001aff
leave
ret 4

Function at 0x101f982
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov esi, ecx
jne 0x101f9ab
mov eax, dword [esi + 0x2bc]
mov eax, dword [eax + 0x28c]
and eax, 0xf
mov ecx, dword [esi + 0x2bc]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add ecx, 8
push ecx
push eax
push 0x421
push dword [esi + 0x20]
call ebx
mov eax, dword [esi + 0x2bc]
test byte [eax + 0x28c], 0x10
jne 0x101f9f6
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
sub eax, dword [ebp + 0xc]
cmp eax, 0x1388
jb 0x101f9f6
call edi
push 0x101fa98
mov dword [ebp - 4], eax
call fcn.0101f817
mov ecx, esi
call fcn.010074b4
mov ecx, 0x10460f8
call fcn.0101f76a
push 0xb
pop ecx
xor eax, eax
mov dword [0x1046118], 1
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x2bc]
add eax, 0x88
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x439
push dword [esi + 0x20]
mov dword [ebp - 0x34], 0x30
call ebx
xor edi, edi
inc edi
push 0
mov ecx, esi
mov dword [esi + 0x2c4], edi
call fcn.0101f69e
lea eax, [ebp - 0x34]
push eax
push edi
push 0x411
push dword [esi + 0x20]
call ebx
lea eax, [esi + 0x2b8]
push eax
mov eax, dword [esi + 0x2bc]
push dword [eax + 0x288]
mov ecx, esi
push 0x43e
push 2
call fcn.01007584
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1021355
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x1046080]
or dword [ebp + 0x1c], 4
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x614], edi
mov word [ebp - 0x20c], bx
jne 0x10252e6
mov dword [ebp - 0x610], ebx
cmp esi, ebx
je 0x1025317
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1025317
cmp word [ebp - 0x20c], bx
je 0x10213e5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
cmp eax, 0xffffffff
je 0x10213e5
push eax
call dword [sym.imp.SHELL32.dll_DriveType]
cmp eax, 2
je 0x1025302
cmp eax, 5
je 0x1025302
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1025317
cmp dword [ebp + 0x14], ebx
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x100
jne 0x102532d
xor eax, eax
cmp dword [ebp + 0x18], eax
jne 0x102534b
push dword [ebp + 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x610]
push dword [ebp - 0x614]
call dword [sym.imp.SHELL32.dll_Ordinal_61]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01001aff
leave
ret 0x18
movzx eax, word [ebp + 0xc]
push eax
push dword [0x10460dc]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x610], eax
jmp 0x1021393
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10213e5
push ebx
push 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x10213fa
push edi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 0x14]
push dword [0x10460dc]
call esi
lea ebx, [ebp - 0x40c]
jmp 0x102140e
push edi
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0x18]
push dword [0x10460dc]
call esi
lea eax, [ebp - 0x60c]
jmp 0x1021419