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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x468da8]
cmp byte [eax + 0xc], 0
je 0x44cfad
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44cfa6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46dc8c], 0
jne 0x44ce94
push 0x44cfb4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44cfbc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dc8c], eax
cmp dword [0x468634], 0
jne 0x44cf8f
push 0x44cfcc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x468634], eax
cmp dword [0x468634], 0
je 0x44cf8f
push 0x44cfd8
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dc90], eax
push 0x44cfe8
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dc94], eax
push 0x44cffc
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dc98], eax
push 0x44d014
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dc9c], eax
push 0x44d02c
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dca0], eax
push 0x44d040
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dca4], eax
push 0x44d058
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dca8], eax
push 0x44d070
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dcac], eax
push 0x44d08c
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dcb0], eax
push 0x44d098
mov eax, dword [0x468634]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46dcb4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cfad
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x452ff8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x453019
test edi, 0x40000
je 0x453033
test bl, bl
jne 0x4530b4
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4530b4
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x453066
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x45307b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x45308a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x45309b
cmp byte [esp + 2], 0
je 0x4530b4
cmp byte [esp + 2], 0
je 0x4530ac
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4530b4
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x453358
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x45337e
mov eax, esp
push eax
push 0x453320
call sub.user32.dll_EnumWindows
jmp 0x453391
mov eax, esp
push eax
push 0x453300
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x45341c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453470]
test si, 4
je 0x453431
or bl, 1
test si, 8
je 0x45343b
or bl, 4
test si, 1
je 0x453445
or bl, 8
test si, 2
je 0x45344f
or bl, 0x10
test si, 0x10
je 0x453459
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453468
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453474
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4534b0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45348e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45349d
or bl, 4
test esi, 0x20000000
je 0x4534a8
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45b51c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b52e
add esp, 0xfffffff0
call fcn.004042e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e764
mov eax, dword [0x4689b8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b8c0
mov eax, dword [0x4689c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b8cc
mov eax, ebx
call fcn.0045b8d8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416354]
call fcn.00403f94
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416354]
call fcn.00403f94
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416354]
call fcn.00403f94
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416354]
call fcn.00403f94
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416354]
call fcn.00403f94
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x456d80
push eax
push 0
push 0
mov eax, dword [0x468b5c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4224f0]
call fcn.00423d44
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4224f0]
call fcn.00423d44
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4224f0]
call fcn.00423d44
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045bd50
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bc20
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bc20
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bc20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b66b
call fcn.00404340
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45ba04
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bbaf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bb90
mov dl, 1
mov eax, dword [0x416778]
call fcn.00403f94
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404df0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45bb7f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044d19c
test al, al
je 0x45bb72
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45bbc0
lea eax, [ebp - 0x254]
call fcn.0040a3b0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bb72
xor eax, eax
push ebp
push 0x45bb6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45bbf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bb54
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405060
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45bb54
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405060
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb72
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45ba75
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041a4d8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bbb6
lea eax, [ebp - 0x260]
call fcn.00404df0
ret

Function at 0x45c528
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46dcd0]
cmp byte [eax + 0xad], 0
jne 0x45c599
cmp dword [0x46dcec], 0
jne 0x45c55a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c4e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46dcec], eax
cmp dword [0x46dce8], 0
jne 0x45c575
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46dce8], eax
cmp dword [0x46dcf0], 0
jne 0x45c599
push esp
push 0
push 0
push 0x45c488
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46dcf0], eax
pop edx
ret
Function at 0x45c7c8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c7df
add esp, 0xfffffff0
call fcn.004042e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e764
mov eax, dword [0x468b44]
cmp word [eax + 2], 0
jne 0x45c807
mov eax, dword [0x468b44]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e4b8
mov eax, dword [0x468c18]
cmp word [eax + 2], 0
jne 0x45c821
mov eax, dword [0x468c18]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e6c4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416354]
call fcn.00403f94
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416354]
call fcn.00403f94
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416354]
call fcn.00403f94
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x423000]
call fcn.0042a6a8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45c9d8
mov eax, dword [0x468a2c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042aa7c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ed98
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x468a2c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040dcec
test eax, eax
je 0x45c928
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409d68
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dd20
test eax, eax
je 0x45c93c
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405060
mov byte [ebx + 0xd4], 0
push ebx
push 0x45df44
call fcn.0041f8e0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4688e8]
cmp byte [eax], 0
jne 0x45c98d
mov eax, ebx
call fcn.0045cb1c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045efac
mov eax, ebx
call fcn.0045fb10
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c9cd
call fcn.00404340
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cd9c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45ce3b
cmp dword [ebx + 0x94], 0
jne 0x45ce35
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45cd24
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ce35
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 0x45cdfb
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ce35
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.00418780
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ce0a
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d054
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x46dcd0]
cmp dword [eax + 0x30], 0
je 0x45d1b1
test bl, bl
jne 0x45d102
cmp dword [esi + 0x9c], 0
jne 0x45d0f7
mov eax, esi
call fcn.0045f98c
push eax
push 0x45cf80
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45d0c8
mov eax, dword [0x46dcd0]
call fcn.0046006c
test al, al
je 0x45d0c8
mov eax, dword [0x46dcf4]
call fcn.00406090
mov edi, eax
cmp edi, 0
jl 0x45d0c8
push 0
mov eax, dword [0x46dcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45d0b2
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45d0f7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00418780
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45d0d7
inc dword [esi + 0x9c]
jmp 0x45d1b1
cmp dword [esi + 0x9c], 0
jle 0x45d1b1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45d1b1
cmp dword [esi + 0x44], 0
je 0x45d15d
mov eax, dword [0x46dcd0]
call fcn.0046006c
test al, al
je 0x45d15d
mov eax, dword [0x46dcf4]
call fcn.00406090
mov edi, eax
cmp edi, 0
jl 0x45d15d
push 5
mov eax, dword [0x46dcf4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45d147
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45d18c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00418780
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45d16c
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x46dcf4
mov ecx, 1
mov edx, dword [0x45cf60]
call fcn.00406244
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45dc98
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45dd02
mov eax, ebx
call fcn.0046006c
test al, al
jne 0x45dd02
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.00404ee0
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45dcef
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45dd0f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e44
jmp 0x45dd0f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404e44
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45f190
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45f1fe
mov eax, esi
call fcn.00447e80
test al, al
je 0x45f1fe
mov eax, dword [ebx + 0x84]
call fcn.00447b0c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45f1fe
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45f1f2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447b0c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043f950
jmp 0x45f1fe
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045efcc
pop esi
pop ebx
ret

Function at 0x461364
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4613a2
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
jmp 0x4613f3
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x4613d6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x4613d6
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
movzx eax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402907
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402916
pop dword [ebp - 0x2c]
mov eax, 0xea40d3c8
sub eax, 0xea00aab2
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x99a76a4f
sub dword [ebp - 0x3c], 0x4b552504
mov dword [ebp - 0x38], 0xd13ce55d
sub dword [ebp - 0x38], 0x9f099918
mov dword [ebp - 0x34], 0x17d46c8
add dword [ebp - 0x34], 0x4acefd66
mov dword [ebp - 0x30], 0x93d489b0
sub dword [ebp - 0x30], 0x93d489b0
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xc0059c05
sub eax, 0xbfc52be9
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x9bded39a
add dword [ebp - 0x3c], 0xd89395bc
mov dword [ebp - 0x38], 0x816be80c
sub dword [ebp - 0x38], 0x3fff8697
mov dword [ebp - 0x34], 0xb594604f
add dword [ebp - 0x34], 0xaddb0c1d
mov dword [ebp - 0x30], 0x377be00d
sub dword [ebp - 0x30], 0x377be00d
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x103bbafc
sub eax, 0xffb4adc
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab30
push 0
call eax
mov ecx, 0xdb2f5d5f
sub ecx, 0xdb2f0989
mov ebx, eax
mov edx, 0x32c3f45
add edx, 0xfd1488bb
add edx, dword [ebp - 0x2c]
mov edi, 0xca211df2
add edi, 0x2e0ef4d5
add dword [ebp - 0x20], esi
mov esi, dword [edx]
add dword [ebp - 0x14], edi
sub esi, edi
add dword [ebp - 0x28], 0xfaaae08
mov dword [ebx], esi
xor dword [ebp - 4], 0x1ccbb12a
add ebx, 0x7233f87e
sub ebx, 0x7233f87a
add edx, 0xa6b397c9
add edx, 0x594c683b
loop 0x402a38
add eax, 0x71dbf877
add eax, 0x8e2549b4
xor ebx, ebx
add ebx, eax
add eax, 0x49e4fc0
sub eax, 0x49e4fbb
mov ecx, 0x84d6d148
sub ecx, 0x8496d148
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x404635
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4069e0
call fcn.004054fb
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x404654
mov al, 1
jmp 0x40471d
test esi, esi
je 0x40471b
xor ebx, ebx
cmp word [esi], bx
je 0x40471b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40471b
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40471b
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00402907
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x40470f
lea eax, [ebp - 0x28]
push eax
call fcn.00402907
pop ecx
test al, al
jne 0x40470f
cmp dword [ebp - 0x18], esi
jbe 0x40470f
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40470f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x40470f
push 0x407620
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401788
mov al, bl
jmp 0x40471d
xor al, al
call fcn.004054b6
ret
Function at 0x10004540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078b8a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100a6204]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
lea eax, [edi + 0x50]
mov dword [edi], 0x10084258
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
lea esi, [edi + 4]
push 0
push 0
push esi
mov dword [ebp - 0x10], 1
call fcn.10003dc0
mov dword [ebp - 4], 2
mov eax, dword [edi]
push 8
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], esi
lea eax, [ecx - 0x50]
mov dword [ecx + edi - 4], eax
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.10048f93
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100045f8
push 1
call fcn.1002ae18
add esp, 4
mov dword [ebx + 4], eax
jmp 0x100045fa
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov byte [ebp - 4], 3
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret