joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436bd4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x44e108]
cmp byte [eax + 0xc], 0
je 0x436d41
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x436d3a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x44fb50], 0
jne 0x436c28
push 0x436d48
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x436d50
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb50], eax
cmp dword [0x44da88], 0
jne 0x436d23
push 0x436d60
call sub.kernel32.dll_LoadLibraryA
mov dword [0x44da88], eax
cmp dword [0x44da88], 0
je 0x436d23
push 0x436d6c
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb54], eax
push 0x436d7c
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb58], eax
push 0x436d90
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb5c], eax
push 0x436da8
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb60], eax
push 0x436dc0
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb64], eax
push 0x436dd4
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb68], eax
push 0x436dec
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb6c], eax
push 0x436e04
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb70], eax
push 0x436e20
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb74], eax
push 0x436e2c
mov eax, dword [0x44da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x44fb78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436d41
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43abcc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404420
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ac1b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404690
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442330
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442380]
test si, 4
je 0x442344
or bl, 1
test si, 8
je 0x44234e
or bl, 4
test si, 1
je 0x442358
or bl, 8
test si, 2
je 0x442362
or bl, 0x10
test si, 0x10
je 0x44236c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44237b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x448424
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4483c3
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4483e1
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x44843f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x448426
or byte [eax + ecx], 1
or byte [ecx], al
cmp dword [ebp + 8], ebx
je 0x44842f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x448439
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x44841b
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4483a5
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x44848c
dec eax
je 0x448483
sub eax, 3
je 0x44847a
mov dword [ebp - 4], 0x40
jmp 0x4484a9
mov dword [ebp - 4], 4
jmp 0x44848f
mov dword [ebp - 4], 0x20
jmp 0x44848f
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4484db
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x44845b
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00447cec
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4499e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
and byte [ebp - 0x7ac], 0
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
Function at 0x44a0d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44fb9c]
cmp dword [eax + 0x30], 0
je 0x44a17a
cmp dword [ebx + 0x94], 0
jne 0x44a174
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a060
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a174
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a13a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a174
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413d8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a149
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44acdc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ad11
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404510
jmp 0x44ad1e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404474
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44bbec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44bc2d
mov eax, esi
call fcn.0043273c
test al, al
je 0x44bc2d
mov eax, dword [ebx + 0x84]
call fcn.004324dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44bc2d
push 0
mov eax, dword [ebx + 0x84]
call fcn.004324dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44cb8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x20
call fcn.00402fa8
mov eax, 0x44fbd0
mov edx, dword [ebp - 4]
call fcn.00404474
lea eax, [ebp - 0x129]
mov dword [ebp - 0x1c], eax
mov eax, esi
call fcn.004048e0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x41
cmp byte [ebp + 0xc], 1
jne 0x44cbe2
or dword [ebp - 0x14], 0x4000
test bl, bl
jne 0x44cbed
or dword [ebp - 0x14], 0x200
xor eax, eax
push ebp
push 0x44cc12
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
push eax
push 0x11
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44cc1c
mov eax, dword [0x44dfac]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 4], 0
je 0x44cc36
mov dword [ebp - 0x10], 0x44cb58
lea eax, [ebp - 0x24]
push eax
call sub.shell32.dll_SHBrowseForFolderA
mov ebx, eax
test ebx, ebx
je 0x44cc7c
lea eax, [ebp - 0x129]
push eax
push ebx
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x44cc6b
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x129]
mov ecx, 0x105
call fcn.00404690
jmp 0x44cc73
mov eax, dword [ebp + 8]
call fcn.00404420
mov eax, ebx
call fcn.00406cac
jmp 0x44cc84
mov eax, dword [ebp + 8]
call fcn.00404420
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409ac0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4a22d0]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.0040bfa0
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.00409160
mov eax, dword [0x4a56c8]
test eax, eax
je 0x409b29
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x409cab
test byte [0x4a36cc], 2
je 0x409b49
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x409b4e
cmp dword [ebx], 2
jl 0x409b89
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
call fcn.0047095c
add eax, 0x40
push eax
push 1
push esi
push edi
call fcn.00470d81
call fcn.0047095c
add eax, 0x40
push eax
call fcn.00470aeb
lea edi, [ebx + 8]
add esp, 0x14
lea esi, [ebx + 0xc]
test byte [0x4a36cc], 1
je 0x409c28
xor edx, edx
xor ecx, ecx
call fcn.00409510
cmp dword [0x4a56cc], 0
jne 0x409bb8
push 0xffffffffffffffff
push dword [0x4a56b8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x409bc4
push dword [0x4a56bc]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00409680
test al, al
je 0x409c05
push 2
push 0
push 0
push dword [0x4a56d0]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x4a56d0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x4a56cc], 0
jne 0x409c1c
push dword [0x4a56b8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x409c28
push dword [0x4a56bc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx], 3
jne 0x409cab
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x409c5c
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0046e2d0
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00425d60
add esp, 4
cmp dword [0x4a56c4], 0
je 0x409ca1
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00409160
lea eax, [esp + 0x28]
push eax
call dword [0x4a56c4]
add esp, 4
cmp dword [esp + 0x3c], 0x10
jb 0x409cab
push dword [esp + 0x28]
call fcn.0046d967
add esp, 4
jmp 0x409cab
cmp byte [0x4a5798], 0
jne 0x409cf8
int3
cmp dword [esp + 0x24], 0x10
jb 0x409cbe
push dword [esp + 0x10]
call fcn.0046d967
add esp, 4
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00406d90
push esi
mov dword [esi], 0x49c420
call fcn.0046d6c2
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
push 1
call fcn.004721c7
int3
Function at 0x40cf40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x4a22d0]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x40cf7f
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x40cf99
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x40d000
lea ecx, [esp + 0x28]
call fcn.0041efa0
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0040de20
add esp, 8
test al, al
je 0x40cfe9
cmp byte [esp + 0x30], bl
je 0x40cfe9
cmp dword [esi + 0x14], 8
jb 0x40cfc9
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x40cff3
mov eax, dword [esi]
jmp 0x40cff5
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40cf83
xor eax, eax
push 0x208
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.0046eac0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40d022
mov esi, dword [esi]
lea ecx, [esp + 0x50]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d026
mov word [esp + 0x24], ax
xorps xmm0, xmm0
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
movq qword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x10], eax
mov eax, 0x414
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
test bl, bl
jne 0x40d07b
mov eax, 0x1494
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x40cf69
test eax, eax
je 0x40d0bc
cmp eax, 2
je 0x40d0bc
cmp eax, 0x402
je 0x40d0bc
cmp eax, 0x7c
je 0x40d0bc
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
pop ebx
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
Function at 0x40d5f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40d5fe
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x40d610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40d61e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d632
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x40d640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x4a22d0]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x40d74d
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x40d692
xor ecx, ecx
jmp 0x40d6af
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d6a0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.004054f0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x40d6ca
mov ecx, dword [eax]
jmp 0x40d6cc
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004054f0
lea ecx, [esp + 8]
call fcn.00406320
lea eax, [esp + 8]
cmp esi, eax
je 0x40d6fa
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407bd0
cmp dword [esp + 0x1c], 8
jb 0x40d70d
push dword [esp + 8]
call fcn.0046d967
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x34], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x40d737
push dword [esp + 0x20]
call fcn.0046d967
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
Function at 0x40d770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40d81b
cmp word [ebp - 0x210], 0
je 0x40d81b
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x40d7df
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004054f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
jmp 0x40d7f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d7f0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.004054f0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 0x218], 0
call fcn.0040d640
add esp, 4
mov ecx, esi
test al, al
je 0x40d871
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00407bd0
jmp 0x40d888
sub esp, 8
mov eax, esp
mov dword [eax], 0x49c520
mov dword [eax + 4], 3
call fcn.004054f0
cmp dword [ebp - 0x214], 8
jb 0x40d89f
push dword [ebp - 0x228]
call fcn.0046d967
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
Function at 0x40d950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x460
mov eax, dword [0x4a22d0]
xor eax, esp
mov dword [esp + 0x45c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [eax + 0x14], 8
mov dword [esp + 0xc], 0
jb 0x40d982
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push 0
push 0x49c528
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40d9af
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [esp + 0x254]
push eax
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x40da54
test eax, eax
je 0x40da54
xor ecx, ecx
mov dword [esp + 0x24], 7
push eax
lea eax, [esp + 0x254]
mov word [esp + 0x14], cx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.004085c0
sub esp, 8
lea eax, [esp + 0x18]
cmp dword [esp + 0x2c], 8
mov ecx, esp
cmovae eax, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x30]
call fcn.004054f0
cmp esi, eax
je 0x40da34
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407bd0
cmp dword [esp + 0x3c], 8
jb 0x40da47
push dword [esp + 0x28]
call fcn.0046d967
add esp, 4
cmp dword [esp + 0x24], 8
jb 0x40dab0
push dword [esp + 0x10]
jmp 0x40daa8
sub esp, 8
lea eax, [esp + 0x48]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x48], 0
jne 0x40da6b
xor ecx, ecx
jmp 0x40da81
lea ecx, [esp + 0x48]
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40da72
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x30]
call fcn.004054f0
cmp esi, eax
je 0x40da9d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407bd0
cmp dword [esp + 0x3c], 8
jb 0x40dab0
push dword [esp + 0x28]
call fcn.0046d967
add esp, 4
mov ecx, dword [esp + 0x464]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
Function at 0x40dad0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x4a22d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [esp + 0x10], eax
xor eax, eax
push edi
mov dword [esp + 0xc], ecx
xor edi, edi
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
jmp 0x40db20
xor eax, eax
mov dword [esp + 0x38], 7
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00407bd0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [esp + 0x54]
call fcn.0041b420
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00407b00
cmp dword [esp + 0x68], 8
jb 0x40db7a
push dword [esp + 0x54]
call fcn.0046d967
add esp, 4
cmp dword [esp + 0x38], 8
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x34]
cmovae ecx, dword [esp + 0x24]
lea eax, [ecx + eax*2]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
test eax, eax
je 0x40dba0
sub eax, ecx
sar eax, 1
push 0x5f
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.0040e5e0
mov edi, edi
lea ecx, [esp + 0x18]
call fcn.0042b4f0
cmp dword [esp + 0x1c], 0xffffffff
ja 0x40dbb0
mov edx, dword [esp + 0x18]
jb 0x40dbce
cmp edx, 0xffff7fff
ja 0x40dbb0
and edx, 0x7fff
lea ecx, [esp + 0x54]
call fcn.0041b420
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00407b00
cmp dword [esp + 0x68], 8
jb 0x40dc02
push dword [esp + 0x54]
call fcn.0046d967
add esp, 4
sub esp, 8
lea eax, [esp + 0x2c]
cmp dword [esp + 0x40], 8
mov ecx, esp
cmovae eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 4], eax
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x18]
push eax
call fcn.00405ea0
lea ecx, [esp + 0x3c]
cmp ecx, eax
je 0x40dc3e
push 0xffffffffffffffff
push 0
push eax
call fcn.00407bd0
cmp dword [esp + 0x68], 8
jb 0x40dc51
push dword [esp + 0x54]
call fcn.0046d967
add esp, 4
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
push 0
cmovae eax, dword [esp + 0x40]
push eax
call ebx
test eax, eax
jne 0x40dc8d
cmp dword [esp + 0x38], 8
jb 0x40dc7b
push dword [esp + 0x24]
call fcn.0046d967
add esp, 4
mov ecx, dword [esp + 0xc]
inc edi
cmp edi, 0x32
jl 0x40db20
xor bl, bl
jmp 0x40dcba
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x40dca5
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00407bd0
cmp dword [esp + 0x38], 8
jb 0x40dcb8
push dword [esp + 0x24]
call fcn.0046d967
add esp, 4
mov bl, 1
cmp dword [esp + 0x50], 8
jb 0x40dccd
push dword [esp + 0x3c]
call fcn.0046d967
add esp, 4
mov ecx, dword [esp + 0x6c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret