joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52f934
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
mov edi, eax
cmp byte [edi + 0x222], 0
je 0x52f95b
mov ecx, edi
mov dl, 1
mov eax, dword [0x52e710]
call fcn.0052e774
mov dword [edi + 0x294], eax
jmp 0x52fa64
xor ebx, ebx
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
cmp byte [edi + 0x22b], 0
je 0x52f99c
mov al, byte [edi + 0x22a]
xor edx, edx
mov dl, al
cmp dx, word [edi + 0x226]
jbe 0x52f991
mov edx, eax
sub dl, byte [edi + 0x226]
mov eax, edi
call fcn.0052eee4
jmp 0x52f9d2
xor edx, edx
mov eax, edi
call fcn.0052eee4
jmp 0x52f9d2
movzx edx, word [edi + 0x226]
mov ecx, 0x64
sub ecx, edx
mov al, byte [edi + 0x22a]
xor edx, edx
mov dl, al
cmp ecx, edx
jle 0x52f9c9
mov edx, eax
add dl, byte [edi + 0x226]
mov eax, edi
call fcn.0052eee4
jmp 0x52f9d2
mov dl, 0x64
mov eax, edi
call fcn.0052eee4
cmp byte [edi + 0x22b], 0
je 0x52f9e4
cmp byte [edi + 0x22a], 0
je 0x52f9f6
cmp byte [edi + 0x22b], 0
jne 0x52fa01
cmp byte [edi + 0x22a], 0x64
jne 0x52fa01
mov bl, byte [edi + 0x224]
xor bl, 1
jmp 0x52fa31
mov eax, dword [0x5646b4]
mov eax, dword [eax]
call fcn.0047b92c
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
movzx edx, word [edi + 0x228]
cmp eax, edx
ja 0x52fa31
cmp byte [edi + 0x224], 0
jne 0x52fa31
cmp byte [edi + 0x2a0], 0
je 0x52fa01
test bl, bl
jne 0x52fa4b
cmp byte [edi + 0x224], 0
jne 0x52fa4b
cmp byte [edi + 0x2a0], 0
je 0x52f95d
cmp byte [edi + 0x2a0], 0
jne 0x52fa5d
cmp byte [edi + 0x224], 0
jne 0x52fa64
mov eax, edi
call fcn.0052fd58
pop edi
pop esi
pop ebx
ret

Function at 0x5321fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53229c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004052b8
mov eax, dword [ebp - 4]
call fcn.00405534
test eax, eax
jle 0x532272
mov dword [ebp - 8], eax
mov ebx, 1
mov eax, edi
call fcn.0040578c
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [edi]
movzx eax, byte [eax + ebx - 1]
add si, ax
imul ax, si, 0x7ab8
add ax, 0x6a2f
mov esi, eax
inc ebx
dec dword [ebp - 8]
jne 0x53223d
lea edx, [ebp - 0xc]
mov eax, dword [edi]
call fcn.00520ea0
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.004052b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5322a3
lea eax, [ebp - 0xc]
call fcn.00405264
ret
Function at 0x539d1c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x539d9f
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x539d82
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00539cc8
mov eax, dword [ebp - 0xc]
call fcn.00405734
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539d89
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x53a590
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x53a598
push ebx
push esi
push edi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x53a77a
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp - 1]
call fcn.00403400
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0x41
jb 0x53a74a
cmp byte [ebp - 1], 0x5a
ja 0x53a74a
lea eax, [ebp - 0x14]
mov dl, byte [ebp - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
call fcn.004038e4
mov edx, 0x53a788
lea eax, [ebp - 0x18]
mov cl, 2
call fcn.004038b4
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.004054d8
mov eax, dword [ebp - 0xc]
call fcn.00405734
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x53a74a
lea eax, [ebp - 0x1c]
call fcn.00499be8
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 8]
mov edx, 0x53a794
call fcn.0040d6dc
mov eax, dword [ebp - 8]
call fcn.0040d5b8
test al, al
jne 0x53a61a
push 0x53a7a4
push 0x53a7ac
mov ecx, dword [0x565668]
mov dl, 1
mov eax, dword [0x41f1ac]
call fcn.00424634
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x53a68c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00424430
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a693
mov eax, dword [ebp - 0x10]
call fcn.004043f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a781
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405288
lea eax, [ebp - 0x1c]
call fcn.00405264
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405288
ret

Function at 0x53a85c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
xor eax, eax
push ebp
push 0x53a8fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5641d8]
cmp byte [eax], 0
je 0x53a8ac
mov eax, dword [ebp + 8]
mov al, byte [eax - 5]
call fcn.004976f8
push eax
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00405c10
push eax
push 0x53a908
mov eax, dword [0x5646b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteW
jmp 0x53a8e8
mov eax, dword [ebp + 8]
mov al, byte [eax - 5]
call fcn.004976f8
push eax
push 0
push 0
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
call fcn.004054fc
mov eax, dword [ebp - 4]
call fcn.00405734
push eax
push 0x53a914
mov eax, dword [0x5646b4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a905
lea eax, [ebp - 4]
call fcn.00405264
ret
Function at 0x53ae6c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00405fd0
lea eax, [ebp + 0x14]
call fcn.00405fd0
lea eax, [ebp + 0x10]
call fcn.00405fd0
lea eax, [ebp + 0xc]
call fcn.00405fd0
xor eax, eax
push ebp
push 0x53af90
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x53aec1
mov eax, esi
call fcn.00461bb0
mov ebx, eax
mov eax, dword [0x5641d8]
cmp byte [eax], 0
je 0x53aef8
push edi
mov eax, dword [ebp + 0xc]
call fcn.00405c10
push eax
mov eax, dword [ebp + 0x10]
call fcn.00405c10
push eax
mov eax, dword [ebp + 0x14]
call fcn.00405c10
push eax
mov eax, dword [ebp - 4]
call fcn.00405c10
push eax
push ebx
call sub.shell32.dll_ShellExecuteW
jmp 0x53af4f
push edi
lea eax, [ebp - 8]
mov edx, dword [ebp + 0xc]
call fcn.004054fc
mov eax, dword [ebp - 8]
call fcn.00405734
push eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0x10]
call fcn.004054fc
mov eax, dword [ebp - 0xc]
call fcn.00405734
push eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp + 0x14]
call fcn.004054fc
mov eax, dword [ebp - 0x10]
call fcn.00405734
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004054fc
mov eax, dword [ebp - 0x14]
call fcn.00405734
push eax
push ebx
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jg 0x53af60
mov ecx, eax
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0053ac98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53af97
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00405288
lea eax, [ebp - 4]
call fcn.004059bc
lea eax, [ebp + 0xc]
mov edx, 3
call fcn.004059d4
ret
Function at 0x5577e8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov byte [ebp - 1], dl
push eax
mov al, byte [ebp - 1]
push eax
mov al, byte [ebp + 8]
push eax
mov ecx, dword [0x5646b4]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x556d2c]
call fcn.00557040
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x55788a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004782f0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x88]
mov eax, dword [0x5646b4]
mov eax, dword [eax]
call fcn.0047b5b0
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x557857
mov eax, dword [0x5646b4]
mov eax, dword [eax]
call fcn.0047b92c
mov eax, dword [ebp - 8]
cmp byte [eax + 0x2fa], 0
jne 0x557874
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
imul edx, esi, 0x3e8
cmp eax, edx
jl 0x55784b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557891
mov eax, dword [ebp - 8]
call fcn.004043f8
ret

Function at 0x5591cc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x55933b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x564044], 0
mov eax, dword [0x5641d8]
cmp byte [eax], 0
je 0x55922d
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x14]
mov eax, dword [0x564444]
mov eax, dword [eax]
call fcn.0048fe7c
mov eax, dword [ebp - 0x14]
call fcn.00405c10
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
jmp 0x55925e
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x18]
mov eax, dword [0x5646b4]
mov eax, dword [eax]
call fcn.0047c1a8
mov eax, dword [ebp - 0x18]
call fcn.00405734
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x55931d
push 2
push 0
push 0xfffffffffffffff6
push ebx
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0xf]
xor ecx, ecx
mov edx, 0xb
call fcn.00403a38
push 0
lea eax, [ebp - 4]
push eax
push 0xa
lea eax, [ebp - 0xf]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov edx, 0x559348
lea eax, [ebp - 0xf]
call fcn.0040da24
test eax, eax
jne 0x5592cd
push 2
push 0
push 0xfffffffffffffff2
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x564048
push ebx
call sub.kernel32.dll_ReadFile_1
mov byte [0x564044], 1
jmp 0x559317
mov edx, 0x559354
lea eax, [ebp - 0xf]
call fcn.0040da24
test eax, eax
jne 0x559317
push 2
push 0
push 0xfffffffffffffff2
push ebx
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x564048
push ebx
call sub.kernel32.dll_ReadFile_1
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
sub eax, dword [0x564048]
mov dword [0x564048], eax
mov byte [0x564044], 1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x559342
lea eax, [ebp - 0x18]
call fcn.00405264
lea eax, [ebp - 0x14]
call fcn.004059bc
ret
Function at 0x403bc3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x4ba030]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], edx
jne 0x403d4f
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x110
push 2
pop edx
jne 0x403c6a
push ecx
push ecx
mov dword [esi + 0x98], edi
call fcn.00403db1
mov dword [ebx], eax
cmp dword [esi + 0x98], 0
jne 0x403c8f
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402fbb
add esp, 0xc
test eax, eax
jne 0x403c8f
cmp dword [ebp + 0xc], 0x111
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], eax
jne 0x403cf8
cmp di, word [ebp + 0x10]
jne 0x403d22
push edi
push dword [esi + 4]
mov dword [esi + 0x50], edi
call dword [sym.imp.USER32.dll_EndDialog]
and dword [ebx], 0
jmp 0x403d1c
cmp dword [ebp + 0xc], 0x111
jne 0x403c1d
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov ecx, eax
cmp dx, ax
jne 0x403c96
push edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor edi, edi
inc edi
mov dword [ebx], edi
mov eax, edi
jmp 0x403d51
cmp di, cx
jne 0x403cde
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00428be0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x80]
call fcn.00402452
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x403c8d
push 0x4d
pop eax
cmp ax, cx
jne 0x403c1d
sub esp, 0x10
mov ecx, esi
call fcn.00404209
mov dword [ebx], eax
jmp 0x403c8f
cmp dword [ebp + 0xc], 0x10
jne 0x403d05
push 2
jmp 0x403c56
cmp dword [ebp + 0xc], 0x110
jne 0x403d22
push ecx
push ecx
mov ecx, esi
mov dword [esi + 0x50], edi
call fcn.00402eae
mov dword [ebx], eax
cmp dword [esi + 0x50], 0
jne 0x403d3c
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402fbb
add esp, 0xc
test eax, eax
je 0x403d48
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
jmp 0x403c8f
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00426ca5
mov esp, ebp
pop ebp
ret 0x18

Function at 0x408047
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x48c6da
call fcn.004277be
mov esi, ecx
push 4
xor ebx, ebx
call fcn.00426ce4
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], edx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x408727
push ebx
push ebx
call fcn.0043994e
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x40808e
mov eax, esi
call fcn.0042778c
ret 4
push 6
mov dword [edi], ebx
call fcn.0042583d
int3
Function at 0x408f85
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x408fa8
cmp word [ecx], bx
je 0x408fa8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408fa8
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x409065
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4ba030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x4a9904
push eax
call fcn.004074f9
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409113
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409113
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x409113
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x409113
lea eax, [esi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x4090f3
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x4090e9
mov edx, dword [ebx]
xor ecx, ecx
mov dword [ebx + 0x10], eax
mov byte [edx + eax], cl
jmp 0x4090ff
sub eax, dword [ebx + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.004098b5
push ecx
mov ecx, ebx
call fcn.0040744d
push esi
push edi
call fcn.0040237c
xor ecx, ecx
inc ecx
jmp 0x409115
xor ecx, ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426ca5
leave
ret

Function at 0x409126
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x48c863
call fcn.00427827
mov esi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00426f6a
pop ecx
mov edi, eax
xor eax, eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4091aa
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4a9828
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4091aa
mov ax, word [ecx + 0xa]
mov word [esi], ax
mov ax, word [ecx + 8]
mov word [esi + 2], ax
mov ax, word [ecx + 0xe]
mov word [esi + 4], ax
mov ax, word [ecx + 0xc]
mov word [esi + 6], ax
xor esi, esi
inc esi
test edi, edi
je 0x4091c3
push edi
call fcn.00426f65
pop ecx
jmp 0x4091c3
mov eax, esi
call fcn.0042778c
ret
Function at 0x4091d0
Capabilities:
Get common file path

Disassembly:
push 0x854
mov eax, 0x48c89b
call fcn.004277f1
mov ebx, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00428be0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x840]
call fcn.00401cb7
and dword [ebp - 4], 0
lea edi, [ebp - 0x828]
xor eax, eax
stosd dword es:[edi], eax
push 7
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x814], ecx
mov word [ebp - 0x828], ax
push 8
mov byte [ebp - 4], 1
pop edi
cmp ecx, edi
lea eax, [ebp - 0x828]
push 0xa
cmovae eax, dword [ebp - 0x828]
lea edx, [ebp - 0x828]
and dword [ebp - 0x818], 0
xor ecx, ecx
mov word [eax], cx
pop ecx
call fcn.0040abc8
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00409bd2
pop ecx
cmp dword [eax + 0x14], edi
jb 0x40928d
mov eax, dword [eax]
push 0
push eax
call fcn.00439319
pop ecx
pop ecx
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.004015ac
test esi, esi
jne 0x4092b0
mov ecx, dword [ebp - 0x814]
jmp 0x409244
lea eax, [ebp - 0x828]
push eax
lea edx, [ebp - 0x840]
lea ecx, [ebp - 0x858]
call fcn.00409bd2
pop ecx
push eax
mov ecx, ebx
call fcn.00401c80
lea ecx, [ebp - 0x858]
call fcn.004015ac
cmp dword [ebx + 0x14], edi
jb 0x4092e3
mov ebx, dword [ebx]
mov eax, dword [ebp - 0x814]
cmp eax, edi
jb 0x409337
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x860], ecx
cmp eax, 0x1000
jb 0x40932e
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x860]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x85c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x860]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
and dword [ebp - 0x818], 0
lea ecx, [ebp - 0x840]
xor eax, eax
mov dword [ebp - 0x814], 7
mov word [ebp - 0x828], ax
call fcn.004015ac
mov eax, ebx
call fcn.004277a0
ret
Function at 0x409364
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x844
mov eax, 0x48c909
call fcn.004277f1
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x844], ebx
call fcn.0040617a
mov edx, str.JaqKKLKJSDKTn9NPjHsGku6Tny6RJL6TSDpRjHcSkm6NJLrSoarRj1IJXuMOcLbSSL_RrabSkuMRau6T
lea ecx, [ebp - 0x840]
call fcn.0040ccb6
mov edx, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x828]
call fcn.0040aab4
cmp dword [eax + 0x14], 8
jb 0x4093b1
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x828]
call fcn.004015ac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00402427
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00428be0
add esp, 0xc
mov dword [ebp - 0x848], 0x400
cmp dword [ebp - 0x844], 0
je 0x4094bb
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x850]
push eax
push ebx
push str.TEMP
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4094af
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00402452
push ebx
push dword [0x4e4b8c]
mov ecx, esi
call fcn.00407f8d
mov edi, eax
cmp edi, 0xffffffff
je 0x4094af
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x4094af
push dword [0x4e4b8c]
call fcn.0043b904
pop ecx
lea edx, [ebp - 0x810]
mov ecx, eax
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x84c]
jne 0x40948b
sub edx, ebx
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.0040990f
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004277a0
ret
Function at 0x4095f1
Capabilities:
Create directory
Get common file path

Disassembly:
push 0x870
mov eax, 0x48c99e
call fcn.004277f1
mov esi, ecx
mov dword [ebp - 0x874], esi
push 0x800
xor ebx, ebx
mov dword [ebp - 0x874], esi
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.00428be0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00401cb7
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x858]
cmp dword [ebp - 0x844], 8
mov eax, dword [ebp - 0x848]
cmovae ecx, dword [ebp - 0x858]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40967e
push 0x4a9828
lea ecx, [ebp - 0x858]
call fcn.00402067
xor eax, eax
lea edi, [ebp - 0x840]
stosd dword es:[edi], eax
push 7
pop edx
mov ecx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x82c], ecx
mov word [ebp - 0x840], ax
lea edi, [ebp - 0x828]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x814], edx
mov word [ebp - 0x828], ax
push 8
mov byte [ebp - 4], 2
pop edi
cmp ecx, edi
mov dword [ebp - 0x830], ebx
lea eax, [ebp - 0x840]
cmovae eax, dword [ebp - 0x840]
lea edx, [ebp - 0x840]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x828]
cmp dword [ebp - 0x814], edi
mov dword [ebp - 0x818], ebx
cmovae eax, dword [ebp - 0x828]
mov word [eax], cx
mov ecx, edi
call fcn.0040abc8
push eax
lea edx, [ebp - 0x858]
lea ecx, [ebp - 0x870]
call fcn.00409bd2
pop ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.00401c80
lea ecx, [ebp - 0x870]
call fcn.004015ac
cmp dword [ebp - 0x814], edi
lea ecx, [ebp - 0x828]
cmovae ecx, dword [ebp - 0x828]
call fcn.00408fac
test al, al
je 0x409752
mov ecx, dword [ebp - 0x82c]
jmp 0x4096be
cmp dword [ebp - 0x814], edi
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
push eax
call fcn.0043a7d7
pop ecx
lea eax, [ebp - 0x828]
mov ecx, esi
push eax
call fcn.00401f77
mov eax, dword [ebp - 0x814]
cmp eax, edi
jb 0x4097ce
mov ecx, dword [ebp - 0x828]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x874], ecx
cmp eax, 0x1000
jb 0x4097c5
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x878]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x874]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x818], ebx
mov word [ebp - 0x828], ax
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], 7
cmp eax, edi
jb 0x40983b
mov ecx, dword [ebp - 0x840]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x874], eax
mov dword [ebp - 0x878], ecx
cmp eax, 0x1000
jb 0x409832
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x878]
push eax
call fcn.0040155c
mov eax, dword [ebp - 0x874]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x878]
push eax
push ecx
call fcn.00426cb3
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x830], ebx
lea ecx, [ebp - 0x858]
mov dword [ebp - 0x82c], 7
mov word [ebp - 0x840], ax
call fcn.004015ac
mov eax, esi
call fcn.004277a0
ret