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

Disassembly:
mov eax, 0x45fd45
call fcn.00436808
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 0x413ec0
jne 0x413ebb
cmp dword [ebp - 0xf4], 1
jae 0x413ec0
mov byte [ebp - 0xd], bl
jmp 0x413ec4
mov byte [ebp - 0xd], 1
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x41405d
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 0x414057
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
push 0x47f4bc
push 1
push ebx
push 0x47f58c
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x414046
mov dword [ebp - 0x14], ebx
push str.rootcimv2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0040b111
mov eax, dword [eax]
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x413f34
mov edx, dword [eax]
jmp 0x413f36
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 0x413f69
call fcn.00409f54
cmp edi, ebx
pop edi
jl 0x414036
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.00413ba9
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x68]
push eax
push 3
mov byte [ebp - 4], 3
call fcn.004135a8
mov ecx, dword [ebp - 0x1c]
push ebx
lea eax, [ebp - 0x4c]
push eax
call fcn.00413d46
cmp dword [eax + 0x14], ebx
push ebx
push 1
lea ecx, [ebp - 0x4c]
sete byte [ebp - 0xd]
call fcn.0040117c
cmp byte [ebp - 0xd], bl
je 0x41402b
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.00413ba9
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.004135a8
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040117c
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.0040117c
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov byte [ebp - 4], bl
je 0x414046
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x414057
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 0x41528a
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 0x4152a9
xor eax, eax
jmp 0x4152cb
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 0x4152d1
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.00437540
test eax, eax
pop ecx
pop ecx
je 0x4152f5
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x18]
jb 0x4152ce
jmp 0x4152c7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
jmp 0x4152c9

Function at 0x415304
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 0x415322
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 0x4153b6
jmp 0x415346
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 [0x491e08], 0
jne 0x415370
cmp byte [eax], 0xb8
jne 0x4153aa
cmp byte [eax + 9], 0xcd
jne 0x4153aa
cmp byte [eax + 0xa], 0x2e
jmp 0x41539a
cmp dword [0x491e08], 1
jne 0x4153aa
cmp byte [eax], 0xb8
jne 0x4153aa
cmp byte [eax + 5], 0xba
jne 0x4153aa
cmp byte [eax + 6], 0
jne 0x4153aa
cmp byte [eax + 7], 3
jne 0x4153aa
cmp byte [eax + 8], 0xfe
jne 0x4153aa
cmp byte [eax + 9], 0x7f
jne 0x4153aa
mov eax, dword [eax + 1]
cmp eax, dword [ebp + 0x10]
jae 0x4153aa
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 0x415343
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4153be
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 [0x491e04], eax
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x491e00], eax
call esi
push str.RtlFreeUnicodeString
push edi
mov dword [0x491dfc], eax
call esi
push str.NtOpenSection
push edi
mov dword [0x491df8], eax
call esi
push str.NtMapViewOfSection
push edi
mov dword [0x491df4], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x491df0], eax
call esi
push str.ZwQuerySystemInformation
push edi
mov dword [0x491dec], eax
call esi
xor ecx, ecx
cmp dword [0x491e04], ecx
pop edi
mov dword [0x491de8], eax
pop esi
je 0x41547f
cmp dword [0x491e00], ecx
je 0x41547f
cmp dword [0x491dfc], ecx
je 0x41547f
cmp dword [0x491df8], ecx
je 0x41547f
cmp dword [0x491df4], ecx
je 0x41547f
cmp dword [0x491df0], ecx
je 0x41547f
cmp dword [0x491dec], ecx
je 0x41547f
cmp eax, ecx
je 0x41547f
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x4158ec
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45fece
call fcn.00436808
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.004011e9
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004158b0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4161ef
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 0x416251
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 0x41624f
cmp esi, ebx
je 0x416248
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x416260
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

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

Disassembly:
mov eax, 0x45ff77
call fcn.00436808
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.00401160
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 0x416314
push eax
lea ecx, [ebp - 0x28]
call fcn.00401575
jmp 0x416350
push edi
mov edi, 0x104
push edi
push eax
call fcn.004161ef
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x130]
jne 0x41633f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x416342
lea eax, [ebp - 0x130]
push eax
jmp 0x416347
push 0x476c34
lea ecx, [ebp - 0x28]
call fcn.00401575
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00404ec1
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x416577
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 0x4165a0
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4918f0]
inc edx
dec esi
jne 0x416588
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8
Function at 0x416700
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x46004a
call fcn.00436808
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.00401160
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], esi
jb 0x41673c
mov eax, dword [eax + 4]
jmp 0x41673f
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 0x416773
mov eax, dword [eax + 4]
jmp 0x416776
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 0x4167a8
mov dword [ebp - 0x1c], str.Unable_to_get_the_value_from_the_registry
push 0x4855dc
lea eax, [ebp - 0x1c]
jmp 0x41682a
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401575
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.00404ec1
push esi
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040117c
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.00436f3d
int3

Function at 0x416836
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x46005c
call fcn.00436808
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.00401160
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], edi
jb 0x41686d
mov eax, dword [eax + 4]
jmp 0x416870
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 0x4168a2
mov eax, dword [eax + 4]
jmp 0x4168a5
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 0x4168cd
push 0x470898
jmp 0x4168d4
lea eax, [ebp - 0x134]
push eax
call fcn.00401575
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00404ec1
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.0040117c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x41690b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x46006e
call fcn.00436808
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.00416668
test al, al
je 0x4169be
cmp dword [esi + 0x3c], 0x10
jb 0x416943
mov esi, dword [esi + 0x28]
jmp 0x416946
add esi, 0x28
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x416954
mov eax, dword [eax + 4]
jmp 0x416957
add eax, 4
push esi
push 0xff
lea ecx, [ebp - 0x154]
push ecx
push 0x470898
push eax
push str.SKUInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x154]
push eax
call fcn.00436830
test eax, eax
pop ecx
jle 0x4169a9
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x154]
push eax
call fcn.004015b0
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 0x4855dc
lea eax, [ebp - 0x14]
jmp 0x416a03
mov dword [ebp - 0x18], str._file_not_found:_SKUInfo.ini
push 0x4855dc
lea eax, [ebp - 0x18]
jmp 0x416a03
push eax
call fcn.00436f3d
int3
Function at 0x4193b3
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 0x419416
xor eax, eax
jmp 0x419508
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.0043790b
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 0x4194ea
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 0x4194a6
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jle 0x4194a6
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
jle 0x4194a6
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jg 0x4194fa
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.0043790b
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 0x41946b
cmp dword [ebp - 0x18], ebx
jne 0x4194ee
xor eax, eax
jmp 0x419507
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 0x41987f
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 0x4198a8
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x491e80]
inc edx
dec esi
jne 0x419890
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x4199c2
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 0x419984
cmp dword [esi + 0x40], 0
je 0x4199c0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x419976
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4199b5
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 0x419aef
Capabilities:
Clear file content

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
push 0
push esi
mov edi, ecx
call fcn.00436f80
and dword [esi + 4], 0
add esp, 0xc
mov dword [esi], 1
mov dword [esi + 8], 0x14
call fcn.004385a3
mov edx, esi
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00419a07
test al, al
je 0x419b31
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
pop edi
pop esi
ret

Function at 0x419b51
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0x10
push esi
push edi
jb 0x419b61
mov eax, dword [ebx + 0x24]
jmp 0x419b64
lea eax, [ebx + 0x24]
push 0
mov edi, 0x80
push edi
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x419bb4
cmp dword [ebx + 0x38], 0x10
jb 0x419b9b
mov ecx, dword [ebx + 0x24]
jmp 0x419b9e
lea ecx, [ebx + 0x24]
push edi
push 2
push 3
mov edx, 0xc0000000
call fcn.0041f967
mov esi, eax
cmp esi, 0xffffffff
jne 0x419bb9
or eax, 0xffffffff
jmp 0x419bd5
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.004199c6
test al, al
jne 0x419bd3
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00419aef
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x419bdb
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.00419b51
mov esi, eax
cmp esi, 0xffffffff
je 0x419ccf
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x419cb6
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x419caa
sub eax, edi
mov edi, eax
push edi
call fcn.0045357b
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x419c90
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 0x419c90
cmp dword [ebp - 4], edi
jne 0x419c90
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.00419a07
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 0x419c9a
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00419aef
cmp dword [ebp + 0xc], ebx
je 0x419cc3
push dword [ebp + 0xc]
call fcn.00453576
pop ecx
jmp 0x419cc3
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00419aef
jmp 0x419cc3
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00419a07
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 0x41aaa3
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.00407c01
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.00436f80
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 0x41aafb
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.004368c0
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 0x41ab16
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x41ab36
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.004198ae
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x41adce
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.0041a3db
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.0040117c
and dword [ebp - 4], 0
call fcn.0041b388
test al, al
je 0x41ae1d
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0041ab48
test al, al
je 0x41ae71
cmp dword [ebp - 4], 0
jne 0x41ae26
cmp byte [esi + 0x85], 0
jne 0x41ae71
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x41ae3a
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x41ae71
cmp byte [esi + 0x84], 0
je 0x41ae71
cmp dword [ebp - 4], 0
je 0x41ae51
mov eax, dword [esi + 0x88]
jmp 0x41ae57
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41ae71
cmp byte [esi + 0x84], 0
jne 0x41adfb
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x41ae8d
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