joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a11c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x49a138
cmp dword [esi + 4], 0
je 0x49a165
test byte [ebx + 0x55], 1
jne 0x49a157
mov eax, ebx
call fcn.00498d74
test eax, eax
jne 0x49a157
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x49a275
mov edx, esi
mov eax, ebx
call fcn.00499c3c
jmp 0x49a275
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49a26e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0049beec
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004968fc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0049a11c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0049beec
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a275
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a0798
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e74e4]
cmp byte [eax + 0xc], 0
je 0x4a0905
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a08fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e8824], 0
jne 0x4a07ec
push 0x4a090c
call sub.kernel32.dll_GetModuleHandleA
mov ebx, eax
push 0x4a0914
push ebx
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e8824], eax
cmp dword [0x4e3750], 0
jne 0x4a08e7
push 0x4a0924
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4e3750], eax
cmp dword [0x4e3750], 0
je 0x4a08e7
push 0x4a0930
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e8828], eax
push 0x4a0940
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e882c], eax
push 0x4a0954
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e8830], eax
push 0x4a096c
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e8834], eax
push 0x4a0984
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e8838], eax
push 0x4a0998
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e883c], eax
push 0x4a09b0
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e8840], eax
push 0x4a09c8
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e8844], eax
push 0x4a09e4
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e8848], eax
push 0x4a09f0
mov eax, dword [0x4e3750]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x4e884c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0905
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4aa720
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aa7f8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e8860], 0
jne 0x4aa7dc
lea eax, [ebp - 4]
mov edx, 0x4aa810
call fcn.004515b8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004519d0
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4aa7dc
mov eax, ebx
call fcn.0044f454
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4aa7d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4aa7bf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4aa820
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4aa7bf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4e8860], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa7dc
mov eax, dword [ebp - 0xc]
call fcn.0044f474
ret
mov ebx, dword [0x4e8860]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa7ff
lea eax, [ebp - 4]
call fcn.00451520
ret

Function at 0x4c5104
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 1
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c5176
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4c514a
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.00451710
jmp 0x4c5151
mov eax, ebx
call fcn.00451520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c517d
cmp dword [ebp - 8], 0
je 0x4c516d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4c5184
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4c5226
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x4c51f9
mov edx, ebx
mov eax, dword [0x47544c]
call fcn.004797b8
test al, al
je 0x4c51e9
movzx eax, bx
push eax
call sub.user32.dll_GetClipboardData
mov esi, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.004796c8
call fcn.00451048
jmp 0x4c522d
movzx eax, bx
push eax
call sub.user32.dll_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x4c51b4
mov ecx, dword [0x4e78fc]
mov dl, 1
mov eax, dword [0x43d0f0]
call fcn.00441d48
call fcn.00450f9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c522d
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4c5234
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4c528c
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
mov esi, eax
push esi
mov ecx, ebx
mov dx, 2
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5293
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4c529c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x4c52f1
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.user32.dll_GetClipboardData
mov ebx, eax
push 9
call sub.user32.dll_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c52f8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x4c5368
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4c53dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004c5040
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0047978c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4c53c7
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c53e4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4c53ec
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x4c5461
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004c5040
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x60]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x4c544b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5468
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x4cec74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
test eax, eax
je 0x4cecd6
call fcn.004cec24
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004c99dc
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004c99dc
pop ecx
push eax
push edi
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ced54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4e5864], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4cee2e
cmp dword [0x4e5860], 0
jne 0x4cee2e
cmp dword [0x4e5a44], 0
je 0x4cede8
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004ceb24
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4cedce
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004ceb24
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4cedce
lea ebx, [ebp - 0x84]
jmp 0x4cedcf
inc ebx
call fcn.004ced10
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.user32.dll_MessageBoxA
jmp 0x4cee69
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4e5868
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004c99dc
pop ecx
push eax
push esi
push ebx
call sub.kernel32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4e586b
push ebx
call sub.kernel32.dll_WriteFile
jmp 0x4cee69
cmp dword [0x4e5860], 0
je 0x4cee48
cmp dword [0x4e5860], 0xffffffff
je 0x4cee69
push esi
call dword [0x4e5860]
pop ecx
mov eax, dword [0x4e5864]
test eax, eax
je 0x4cee69
cmp dword [0x4e5864], 0xffffffff
je 0x4cee69
cmp byte [eax], 0
je 0x4cee69
push esi
push eax
call fcn.004cec74
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402770
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4050f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405131
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403230
jmp 0x40513a
mov eax, ebx
mov edx, esi
call fcn.004031e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405144
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405165
mov al, byte [esp]
jmp 0x405167
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4068b4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4068fc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406850
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406903
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x406b04
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406b92
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406b4f
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403230
jmp 0x406b7c
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406b63
lea eax, [ebp - 4]
call fcn.00403150
jmp 0x406b72
lea edx, [ebp - 4]
call fcn.004069c8
test ebx, ebx
je 0x406b72
dec ebx
jmp 0x406b54
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406b99
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x406ba0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404ccc
add esp, 0x104
pop ebx
ret
Function at 0x406ce8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406e09
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406df3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406d41
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406df3
cmp dword [ebp - 0xc], 0
jne 0x406d56
mov eax, dword [ebp - 4]
call fcn.00403150
mov bl, 1
jmp 0x406df3
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403230
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.004033d8
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406d0d
test eax, eax
jne 0x406df3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406d9d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406df3
jmp 0x406d9d
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406db0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406d9a
cmp dword [ebp - 8], 7
jne 0x406dbf
cmp dword [ebp - 0xc], 0
je 0x406dbf
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004034a8
cmp dword [ebp - 8], 7
jne 0x406de6
cmp dword [ebp - 0xc], 0
je 0x406de6
lea eax, [ebp - 0x10]
call fcn.004033d8
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031a0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e10
lea eax, [ebp - 0x10]
call fcn.00403150
ret

Function at 0x407744
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c558
mov eax, esi
mov edx, 8
test al, 1
je 0x407760
shr eax, 1
xor eax, 0xedb88320
jmp 0x407762
shr eax, 1
dec edx
jne 0x407753
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40774c
pop esi
ret

Function at 0x407778
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c554], 0
jne 0x40779b
call fcn.00407744
push 1
push 0x40c554
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4077c6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c558]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4077a1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408d54
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408d08
test al, al
jne 0x408d75
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408dc1
xor eax, eax
push ebp
push 0x408db1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004033cc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408db8
lea eax, [ebp - 0xc]
call fcn.00408d44
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4090c8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4091b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406bcc
mov edx, dword [ebp - 8]
mov ecx, 0x4091d0
xor eax, eax
call fcn.00408fbc
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409185
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x4090e8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408b94
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404b80
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00407144
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408b64
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x40454c
call fcn.0040577c
call fcn.00402e88
jmp 0x4090e8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004031e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091be
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403170
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403170
ret

Function at 0x4091e0
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40b07c], 2
jne 0x409247
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x409202
xor eax, eax
jmp 0x409256
lea eax, [esp + 8]
push eax
push 0x40925c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x409247
xor eax, eax
jmp 0x409256
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x409270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4092ca
inc esi
xor edi, edi
cmp edi, 1
jne 0x409296
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4092a4
cmp edi, 1
jle 0x4092a4
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408d54
test eax, eax
jne 0x4092ca
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x4092ca
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x4092ca
inc edi
dec esi
jne 0x409286
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40955c
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x40cca0], 0
je 0x4095a5
mov edi, dword [0x40cdd8]
dec edi
test edi, edi
jl 0x4095a5
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cdd4]
mov edx, dword [edx + eax]
mov eax, dword [0x40cca0]
call fcn.00404b2c
test eax, eax
jne 0x4095a1
mov eax, esi
call fcn.00409510
jmp 0x40966a
inc esi
dec edi
jne 0x409577
mov al, byte [0x40cdc0]
sub al, 1
jb 0x4095b2
je 0x4095bb
jmp 0x4095c4
call fcn.00406ee4
mov ebp, eax
jmp 0x4095c6
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x4095c6
xor ebp, ebp
test bp, bp
je 0x409663
mov edi, dword [0x40cdd8]
dec edi
test edi, edi
jl 0x409612
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cdd4]
lea ebx, [edx + eax]
movzx eax, bp
cmp eax, dword [ebx + 0x28]
jne 0x40960e
cmp dword [ebx + 0x2c], 0
je 0x409605
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x40960e
mov eax, esi
call fcn.00409510
jmp 0x40966a
inc esi
dec edi
jne 0x4095dd
mov edi, dword [0x40cdd8]
dec edi
test edi, edi
jl 0x409663
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cdd4]
lea ebx, [edx + eax]
mov eax, dword [ebx + 0x28]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40965f
cmp dword [ebx + 0x2c], 0
je 0x409656
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x40965f
mov eax, esi
call fcn.00409510
jmp 0x40966a
inc esi
dec edi
jne 0x409620
xor eax, eax
call fcn.00409510
pop ebp
pop edi
pop esi
pop ebx
ret