joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f193
Capabilities:
Check os version
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
mov eax, 0x457918
call fcn.00430898
sub esp, 0xf0
push ebx
lea eax, [ebp - 0xfc]
push eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xfc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ebx, ebx
cmp dword [ebp - 0xf8], 5
ja 0x40f1d9
jne 0x40f1d4
cmp dword [ebp - 0xf4], 1
jae 0x40f1d9
mov byte [ebp - 0xd], bl
jmp 0x40f1dd
mov byte [ebp - 0xd], 1
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x40f376
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jl 0x40f370
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push 0x475acc
push 1
push ebx
push 0x475b9c
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40f35f
mov dword [ebp - 0x14], ebx
push str.rootcimv2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00408e69
mov eax, dword [eax]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x40f24d
mov edx, dword [eax]
jmp 0x40f24f
xor edx, edx
push edi
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx]
lea eax, [ebp - 0x14]
push eax
mov al, byte [ebp - 0xd]
neg al
push ebx
push ebx
sbb eax, eax
and eax, 0x80
push eax
push ebx
push ebx
push ebx
push edx
push ecx
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
mov edi, eax
mov byte [ebp - 4], 1
je 0x40f282
call fcn.00407bb9
cmp edi, ebx
pop edi
jl 0x40f34f
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov eax, str.SerialNumber
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
push 3
lea eax, [ebp - 0x30]
push eax
push str.SELECT__FROM_Win32_BIOS
push dword [ebp - 0x14]
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x2c], str.Caption
mov dword [ebp - 0x28], str.Manufacturer
mov dword [ebp - 0x20], str.Model
call fcn.0040eec2
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
push eax
push 3
mov byte [ebp - 4], 3
call fcn.0040e8a4
mov ecx, dword [ebp - 0x1c]
push ebx
lea eax, [ebp - 0x4c]
push eax
call fcn.0040f05f
cmp dword [eax + 0x14], ebx
push ebx
push 1
lea ecx, [ebp - 0x4c]
sete byte [ebp - 0xd]
call fcn.00401df9
cmp byte [ebp - 0xd], bl
je 0x40f344
push 2
lea eax, [ebp - 0x24]
push eax
push str.SELECT__FROM_Win32_PhysicalMedia
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.0040eec2
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.0040e8a4
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401df9
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.00401df9
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x40f35f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x40f370
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
xor al, al
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41053b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
cmp word [eax + 0x18], 0x10b
je 0x41055a
xor eax, eax
jmp 0x41057c
mov eax, dword [esi + 0x24]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add eax, ecx
add ebx, ecx
add edi, ecx
cmp dword [esi + 0x18], 0
mov dword [ebp - 8], eax
ja 0x410582
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
push dword [ebp + 0xc]
add eax, ecx
push eax
call fcn.00430270
test eax, eax
pop ecx
pop ecx
je 0x4105a6
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x41057f
jmp 0x410578
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
jmp 0x41057a

Function at 0x4105b5
Capabilities:
Check for software breakpoints
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
add eax, edx
mov ecx, dword [eax + 0x78]
add ecx, edx
cmp word [eax + 0x18], 0x10b
je 0x4105d3
xor eax, eax
leave
ret
mov eax, dword [ecx + 0x20]
push ebx
push esi
mov esi, dword [ecx + 0x1c]
push edi
mov edi, dword [ecx + 0x24]
xor ebx, ebx
add eax, edx
add esi, edx
add edi, edx
cmp dword [ecx + 0x18], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jbe 0x410667
jmp 0x4105f7
mov eax, dword [ebp - 8]
mov edx, dword [eax + ebx*4]
movzx eax, word [edi + ebx*2]
mov eax, dword [esi + eax*4]
add edx, dword [ebp + 8]
add eax, dword [ebp + 8]
cmp dword [0x4856f8], 0
jne 0x410621
cmp byte [eax], 0xb8
jne 0x41065b
cmp byte [eax + 9], 0xcd
jne 0x41065b
cmp byte [eax + 0xa], 0x2e
jmp 0x41064b
cmp dword [0x4856f8], 1
jne 0x41065b
cmp byte [eax], 0xb8
jne 0x41065b
cmp byte [eax + 5], 0xba
jne 0x41065b
cmp byte [eax + 6], 0
jne 0x41065b
cmp byte [eax + 7], 3
jne 0x41065b
cmp byte [eax + 8], 0xfe
jne 0x41065b
cmp byte [eax + 9], 0x7f
jne 0x41065b
mov eax, dword [eax + 1]
cmp eax, dword [ebp + 0x10]
jae 0x41065b
mov ebx, dword [ebp + 0xc]
mov dword [ebx + eax*4], edx
mov ebx, dword [ebp - 4]
inc ebx
cmp ebx, dword [ecx + 0x18]
mov dword [ebp - 4], ebx
jb 0x4105f4
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x41066f
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.RtlAnsiStringToUnicodeString
push edi
call esi
push str.RtlInitAnsiString
push edi
mov dword [0x4856f4], eax
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x4856f0], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [0x4856ec], eax
call esi
push str.NtOpenSection
push edi
mov dword [0x4856e8], eax
call esi
push str.NtMapViewOfSection
push edi
mov dword [0x4856e4], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x4856e0], eax
call esi
push str.ZwQuerySystemInformation
push edi
mov dword [0x4856dc], eax
call esi
xor ecx, ecx
cmp dword [0x4856f4], ecx
pop edi
mov dword [0x4856d8], eax
pop esi
je 0x410730
cmp dword [0x4856f0], ecx
je 0x410730
cmp dword [0x4856ec], ecx
je 0x410730
cmp dword [0x4856e8], ecx
je 0x410730
cmp dword [0x4856e4], ecx
je 0x410730
cmp dword [0x4856e0], ecx
je 0x410730
cmp dword [0x4856dc], ecx
je 0x410730
cmp eax, ecx
je 0x410730
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x410c80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x457aa1
call fcn.00430898
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
lea ecx, [esi + 0x30]
call fcn.00402166
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00410c44
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4114bb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41151d
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41151b
cmp esi, ebx
je 0x411514
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x41152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x41165d
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x457b38
call fcn.00430898
sub esp, 0x124
push esi
xor esi, esi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401da9
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
lea eax, [ebp - 0x130]
je 0x4116ad
push eax
lea ecx, [ebp - 0x28]
call fcn.00404af7
jmp 0x4116e9
push edi
mov edi, 0x104
push edi
push eax
call fcn.004114bb
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x130]
jne 0x4116d8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4116db
lea eax, [ebp - 0x130]
push eax
jmp 0x4116e0
push 0x46d580
lea ecx, [ebp - 0x28]
call fcn.00404af7
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00404852
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401df9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x411910
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x411939
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4851e0]
inc edx
dec esi
jne 0x411921
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8
Function at 0x411b25
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x457c1d
call fcn.00430898
sub esp, 0x164
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.00401da9
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], esi
jb 0x411b61
mov eax, dword [eax + 4]
jmp 0x411b64
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], bl
mov dword [ebp + 0xc], 0xff
mov dword [ebp - 0x18], ebx
jb 0x411b98
mov eax, dword [eax + 4]
jmp 0x411b9b
add eax, 4
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x411bcd
mov dword [ebp - 0x1c], str.Unable_to_get_the_value_from_the_registry
push 0x47b080
lea eax, [ebp - 0x1c]
jmp 0x411c4f
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x38]
call fcn.00404af7
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.00404852
push esi
push ebx
lea ecx, [ebp - 0x38]
call fcn.00401df9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push eax
call fcn.00430a64
int3

Function at 0x411c5b
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x457c2f
call fcn.00430898
sub esp, 0x128
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
call fcn.00401da9
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], edi
jb 0x411c92
mov eax, dword [eax + 4]
jmp 0x411c95
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 0x10], 1
jb 0x411cc7
mov eax, dword [eax + 4]
jmp 0x411cca
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea ecx, [ebp - 0x34]
je 0x411cf2
push 0x467fb5
jmp 0x411cf9
lea eax, [ebp - 0x134]
push eax
call fcn.00404af7
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00404852
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.00401df9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x411d30
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x457c41
call fcn.00430898
sub esp, 0x148
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.00411a30
test al, al
je 0x411de3
cmp dword [esi + 0x3c], 0x10
jb 0x411d68
mov esi, dword [esi + 0x28]
jmp 0x411d6b
add esi, 0x28
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x411d79
mov eax, dword [eax + 4]
jmp 0x411d7c
add eax, 4
push esi
push 0xff
lea ecx, [ebp - 0x154]
push ecx
push 0x467fb5
push eax
push str.SKUInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x154]
push eax
call fcn.0042f710
test eax, eax
pop ecx
jle 0x411dce
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x154]
push eax
call fcn.00404d2a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], str.Unable_to_get_the_value_from_the_ini_file
push 0x47b080
lea eax, [ebp - 0x14]
jmp 0x411e28
mov dword [ebp - 0x18], str._file_not_found:_SKUInfo.ini
push 0x47b080
lea eax, [ebp - 0x18]
jmp 0x411e28
push eax
call fcn.00430a64
int3
Function at 0x41470b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push edi
push 0x41
pop ecx
xor ebx, ebx
push 0x41
xor eax, eax
mov byte [ebp - 0x230], bl
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x128], bl
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareWildTangentCDA_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41476e
xor eax, eax
jmp 0x414860
push esi
push 5
pop eax
push ebx
push ebx
push eax
push ebx
mov dword [ebp - 0x10], eax
mov edi, str.FileName_d_d_d_d
lea eax, [ebp - 0x128]
push edi
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.00430b62
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
jne 0x414842
push dword [ebp - 4]
inc dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push 9
pop eax
cmp dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x4147fe
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jle 0x4147fe
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
jle 0x4147fe
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jg 0x414852
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push eax
call fcn.00430b62
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
je 0x4147c3
cmp dword [ebp - 0x18], ebx
jne 0x414846
xor eax, eax
jmp 0x41485f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x414bd7
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x414c00
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x485770]
inc edx
dec esi
jne 0x414be8
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x414cab
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x414d1a
push ebx
push edi
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
jmp 0x414cdc
cmp dword [esi + 0x40], 0
je 0x414d18
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x414cce
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x414d0d
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret 4

Function at 0x414e47
Capabilities:
Clear file content

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
push 0
push esi
mov edi, ecx
call fcn.0042fe20
and dword [esi + 4], 0
add esp, 0xc
mov dword [esi], 1
mov dword [esi + 8], 0x14
call fcn.004313b2
mov edx, esi
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00414d5f
test al, al
je 0x414e89
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
pop edi
pop esi
ret
Function at 0x414ea9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ecx + 0x38], 0x10
mov dword [ebp - 0xc], ecx
jb 0x414ebd
mov eax, dword [ecx + 0x24]
jmp 0x414ec0
lea eax, [ecx + 0x24]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
mov ebx, 0x80
push ebx
push 3
push 0
push 3
mov edi, 0xc0000000
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x414f81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x414f7c
and dword [ebp - 8], 0
push 0xc
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0042fe20
and dword [ebp - 0x10], 0
add esp, 0xc
push 0x1fffff
push 0
mov edx, str.EVERYONE
lea ecx, [ebp - 8]
mov dword [ebp - 0x18], 0xc
call fcn.0041960a
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x38], 0x10
mov dword [ebp - 0x14], eax
jb 0x414f3f
mov ecx, dword [ecx + 0x24]
jmp 0x414f42
add ecx, 0x24
push 0
push ebx
neg eax
push 2
sbb eax, eax
lea edx, [ebp - 0x18]
and eax, edx
push eax
push 3
push edi
push ecx
call esi
cmp dword [ebp - 0x14], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], eax
je 0x414f6b
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 8], 0
je 0x414f76
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0xffffffff
jne 0x414f81
or eax, 0xffffffff
jmp 0x414f9e
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00414d1e
test al, al
jne 0x414f9b
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00414e47
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414fa5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00414ea9
mov esi, eax
cmp esi, 0xffffffff
je 0x415099
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x415080
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x415074
sub eax, edi
mov edi, eax
push edi
call fcn.004477fd
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x41505a
push ebx
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41505a
cmp dword [ebp - 4], edi
jne 0x41505a
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.00414d5f
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x415064
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00414e47
cmp dword [ebp + 0xc], ebx
je 0x41508d
push dword [ebp + 0xc]
call fcn.004477f8
pop ecx
jmp 0x41508d
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00414e47
jmp 0x41508d
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00414d5f
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x415e3d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
push 0
mov dword [ebp - 4], ecx
add ebx, 0x15
push ebx
mov ecx, esi
call fcn.004059f2
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.0042fe20
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push 0x14
pop edx
mov dword [esi + 4], edx
mov dword [esi], ebx
mov al, byte [eax + 0x60]
mov byte [esi + 0x10], al
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [ebp + 8], eax
jb 0x415e95
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 4]
add eax, edx
inc ecx
push ecx
push dword [ebp + 0xc]
push eax
call fcn.0042f7a0
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dl, byte [esi + 0x10]
lea eax, [ecx + eax + 0x14]
xor byte [eax], dl
inc ecx
cmp ecx, dword [edi + 0x14]
jbe 0x415eb0
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x415ed0
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.00414c06
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x416168
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00415775
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00401df9
and dword [ebp - 4], 0
call fcn.00416711
test al, al
je 0x4161b7
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00415ee2
test al, al
je 0x41620b
cmp dword [ebp - 4], 0
jne 0x4161c0
cmp byte [esi + 0x85], 0
jne 0x41620b
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x4161d4
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x41620b
cmp byte [esi + 0x84], 0
je 0x41620b
cmp dword [ebp - 4], 0
je 0x4161eb
mov eax, dword [esi + 0x88]
jmp 0x4161f1
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41620b
cmp byte [esi + 0x84], 0
jne 0x416195
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x416227
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret