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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x554ae4]
cmp byte [eax + 0xc], 0
je 0x4410e9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4410e2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x558544], 0
jne 0x440fd0
push 0x4410f0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4410f8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x558544], eax
cmp dword [0x45a574], 0
jne 0x4410cb
push 0x441108
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45a574], eax
cmp dword [0x45a574], 0
je 0x4410cb
push 0x441114
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x558548], eax
push 0x441124
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55854c], eax
push 0x441138
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x558550], eax
push 0x441150
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x558554], eax
push 0x441168
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x558558], eax
push 0x44117c
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55855c], eax
push 0x441194
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x558560], eax
push 0x4411ac
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x558564], eax
push 0x4411c8
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x558568], eax
push 0x4411d4
mov eax, dword [0x45a574]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x55856c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4410e9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446730
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x446784]
test si, 4
je 0x446745
or bl, 1
test si, 8
je 0x44674f
or bl, 4
test si, 1
je 0x446759
or bl, 8
test si, 2
je 0x446763
or bl, 0x10
test si, 0x10
je 0x44676d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44677c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x446788
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4467c4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4467a2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4467b1
or bl, 4
test esi, 0x20000000
je 0x4467bc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44de78
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44de8a
add esp, 0xfffffff0
call fcn.00403b5c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a094
mov eax, dword [0x554790]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e21c
mov eax, dword [0x55479c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e228
mov eax, ebx
call fcn.0044e234
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.00403820
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.00403820
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.00403820
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.00403820
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.00403820
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, 0x449ccc
push eax
push 0
push 0
mov eax, dword [0x5548f4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dc10]
call fcn.0041f130
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dc10]
call fcn.0041f130
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dc10]
call fcn.0041f130
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e664
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e534
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e534
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e534
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44dfc7
call fcn.00403bb4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e318
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 0x44e4c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e4a4
mov dl, 1
mov eax, dword [0x4120f4]
call fcn.00403820
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404664
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e493
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.004412d8
test al, al
je 0x44e486
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, 0x44e4d4
lea eax, [ebp - 0x254]
call fcn.0040917c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e486
xor eax, eax
push ebp
push 0x44e47f
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 0x44e50c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e468
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048d4
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 0x44e468
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e486
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e389
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415e5c
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 0x44e4ca
lea eax, [ebp - 0x260]
call fcn.00404664
ret

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

Disassembly:
push ecx
mov eax, dword [0x55857c]
cmp byte [eax + 0xad], 0
jne 0x44eead
cmp dword [0x558594], 0
jne 0x44ee6e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44edf8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x558594], eax
cmp dword [0x558590], 0
jne 0x44ee89
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x558590], eax
cmp dword [0x558598], 0
jne 0x44eead
push esp
push 0
push 0
push 0x44ed9c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x558598], eax
pop edx
ret
Function at 0x44f080
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f097
add esp, 0xfffffff0
call fcn.00403b5c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a094
mov eax, dword [0x5548dc]
cmp word [eax + 2], 0
jne 0x44f0bf
mov eax, dword [0x5548dc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450b30
mov eax, dword [0x554988]
cmp word [eax + 2], 0
jne 0x44f0d9
mov eax, dword [0x554988]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450d3c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.00403820
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.00403820
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411cd0]
call fcn.00403820
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 [0x41e3ec]
call fcn.0042429c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x44f290
mov eax, dword [0x5547f8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424670
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4513fc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5547f8]
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.0040c88c
test eax, eax
je 0x44f1e0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b34
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c8c0
test eax, eax
je 0x44f1f4
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.004048d4
mov byte [ebx + 0xd4], 0
push ebx
push 0x450690
call fcn.0041b210
mov dword [ebx + 0xc8], eax
mov eax, dword [0x5546f0]
cmp byte [eax], 0
jne 0x44f245
mov eax, ebx
call fcn.0044f3d4
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.004515d8
mov eax, ebx
call fcn.00452138
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f285
call fcn.00403bb4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f654
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x55857c]
cmp dword [eax + 0x30], 0
je 0x44f6fe
cmp dword [ebx + 0x94], 0
jne 0x44f6f8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f5e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f6f8
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 0x44f6be
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f6f8
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.00414104
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f6cd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450418
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45044d
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.00404754
jmp 0x45045a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004046b8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4517bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45182a
mov eax, esi
call fcn.0043c194
test al, al
je 0x45182a
mov eax, dword [ebx + 0x84]
call fcn.0043be98
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45182a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45181e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043be98
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004343dc
jmp 0x45182a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004515f8
pop esi
pop ebx
ret
Function at 0x4045e0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403960
add esp, 4
test eax, eax
je 0x40465f
mov dword [ebp - 8], 0xffffffff
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404627
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x404669
push 0x400
mov ecx, dword [ebp - 4]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call fcn.00404580
test eax, eax
jle 0x404650
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
jmp 0x404669
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esp, ebp
pop ebp
ret 4

Function at 0x404670
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403960
add esp, 4
test eax, eax
je 0x4046f3
mov dword [ebp - 8], 0
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4046b7
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x404701
push 0x400
mov ecx, dword [ebp - 4]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call fcn.00404580
test eax, eax
jle 0x4046e4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
jmp 0x404701
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret 8

Function at 0x404710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403960
add esp, 4
test eax, eax
je 0x40478f
mov dword [ebp - 8], 0
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404757
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x404799
push 0x400
mov ecx, dword [ebp - 4]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call fcn.00404580
test eax, eax
jle 0x404780
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
jmp 0x404799
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esp, ebp
pop ebp
ret 4
Function at 0x4047a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4047de
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x404843
mov eax, dword [ebp - 4]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jbe 0x40482c
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
push 0
push 0
call fcn.00404520
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40482c
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x404a10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403960
add esp, 4
test eax, eax
je 0x404a93
mov dword [ebp - 8], 0
push 0x800
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404a57
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x404aa1
push 0x400
mov ecx, dword [ebp - 4]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call fcn.00404580
test eax, eax
jle 0x404a84
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
jmp 0x404aa1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esp, ebp
pop ebp
ret 8
Function at 0x405000
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4050d7
cmp dword [ebp + 0xc], 0
je 0x4050d7
mov eax, dword [ebp + 8]
push eax
call fcn.00403960
add esp, 4
test eax, eax
jne 0x405045
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00403960
add esp, 4
test eax, eax
je 0x4050d7
mov dword [ebp - 8], 0
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40506f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x4050e9
push 0x400
mov edx, dword [ebp - 4]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call fcn.00404580
test eax, eax
jle 0x4050c8
push 0x400
mov ecx, dword [ebp - 4]
add ecx, 0x800
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.00404580
test eax, eax
jle 0x4050c8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x800
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
jmp 0x4050e9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4050f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x4051c7
cmp dword [ebp + 0xc], 0
je 0x4051c7
mov eax, dword [ebp + 8]
push eax
call fcn.00403960
add esp, 4
test eax, eax
jne 0x405135
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00403960
add esp, 4
test eax, eax
je 0x4051c7
mov dword [ebp - 8], 0
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40515f
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
jmp 0x4051d9
push 0x400
mov edx, dword [ebp - 4]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call fcn.00404580
test eax, eax
jle 0x4051b8
push 0x400
mov ecx, dword [ebp - 4]
add ecx, 0x800
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.00404580
test eax, eax
jle 0x4051b8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x800
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
jmp 0x4051d9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4059a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
cmp dword [0x41a1b8], 0
jne 0x405a3d
push str.GlobalSeP_Is_Vista_Semaphore
push 0
push 0x1f0003
call fcn.00404ab0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4059e6
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41a1b4], 1
jmp 0x405a33
push 0x94
push 0
lea ecx, [ebp - 0xa0]
push ecx
call fcn.004098a0
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea edx, [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405a33
cmp dword [ebp - 0x9c], 6
je 0x405a29
cmp dword [ebp - 0x9c], 0xa
jne 0x405a33
mov dword [0x41a1b4], 1
mov dword [0x41a1b8], 1
mov eax, dword [0x41a1b4]
mov esp, ebp
pop ebp
ret
Function at 0x405bf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x405d7d
cmp dword [ebp + 8], 0xffffffff
je 0x405d7d
push 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x405d7d
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x405d7d
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
jne 0x405d7d
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x78]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x405d7d
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 8]
je 0x405d7d
cmp dword [ebp + 0xc], 0x10000
jae 0x405d23
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 8]
je 0x405d21
mov dword [ebp - 0x10], 0
jmp 0x405ced
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x405d21
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
cmp edx, dword [ebp + 0xc]
jne 0x405d1f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0xc], ecx
jmp 0x405d21
jmp 0x405ce4
jmp 0x405d7d
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 8]
je 0x405d7d
mov dword [ebp - 0x10], 0
jmp 0x405d3d
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x18]
jae 0x405d7d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x405d7b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
jmp 0x405d7d
jmp 0x405d34
cmp dword [ebp - 0xc], 0
jne 0x405d96
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
jmp 0x405d9c
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret