joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413808
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.004040f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edi, edi
cmp eax, 0xffffffff
je 0x41382e
mov esi, dword [ebp - 4]
jmp 0x413888
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413883
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413883
lea eax, [ebp - 4]
push eax
call fcn.00413c0b
mov esi, dword [ebp - 4]
pop ecx
cmp dword [esi - 0xc], edi
je 0x413889
push esi
call fcn.00413808
pop ecx
test eax, eax
je 0x413889
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413886
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413886
jmp 0x413889
mov esi, dword [ebp - 4]
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.004023e0
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x413914
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
push edi
call fcn.00404190
lea ecx, [ebp - 8]
call fcn.00404190
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20219
push 0
push str.softwarekingsoft_antivirus
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4139ef
xor edi, edi
and dword [ebp - 0xc], edi
cmp dword [ebp - 4], edi
je 0x4139fe
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push str.ProgramPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 1
je 0x413984
cmp dword [ebp - 0x10], 2
jne 0x4139ef
lea ecx, [ebp - 8]
call fcn.004041c0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.ProgramPath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4139cc
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, dword [ebp - 0x14]
xor edi, edi
shr eax, 1
inc edi
mov word [ecx + eax*2], dx
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0040e311
test edi, edi
je 0x4139ef
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.004048f0
push dword [ebp + 8]
call fcn.00413b37
pop ecx
cmp dword [ebp - 4], 0
je 0x4139fe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
and dword [ebp - 4], 0
add ecx, 0xfffffff0
call fcn.004023e0
mov eax, dword [ebp + 8]
pop edi
leave
ret

Function at 0x413b19
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413b33
test al, 0x10
jne 0x413b33
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x413f38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
call fcn.00404190
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
cmp dword [ebp - 0x18], esi
je 0x413f6c
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
push str.SoftwareKingsoftKISCommon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x414056
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x18], esi
je 0x414056
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push str.InstallTime
push dword [ebp - 0x18]
call edi
cmp dword [ebp - 0x24], 1
je 0x413fbf
cmp dword [ebp - 0x24], 2
jne 0x414055
lea ecx, [ebp - 0x1c]
call fcn.004041c0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.InstallTime
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x414002
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp - 0x30]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040e311
test esi, esi
je 0x414055
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call fcn.00414462
pop ecx
pop ecx
test eax, eax
je 0x414055
lea ecx, [ebp - 0x40]
call fcn.0041159e
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x40]
call fcn.004115fe
lea ecx, [ebp - 0x40]
call fcn.00411de9
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
call fcn.004115f0
pop edi
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004023e0
cmp dword [ebp - 0x18], 0
pop esi
je 0x414071
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
mov edx, dword [ebp - 0x28]
call fcn.004b3004
leave
ret
Function at 0x4140d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
call fcn.00404190
cmp dword [ebp - 0x18], ebx
je 0x414105
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
lea eax, [ebp - 0x18]
push eax
push str.SoftwareKingsoftKISCommon
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x414204
mov esi, ebx
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x18], ebx
je 0x414204
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push str.InstallTime
push dword [ebp - 0x18]
call edi
xor eax, eax
inc eax
cmp dword [ebp - 0x24], eax
je 0x41415d
cmp dword [ebp - 0x24], 2
jne 0x414204
lea ecx, [ebp - 0x1c]
call fcn.004041c0
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], eax
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push str.InstallTime
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4141a0
mov eax, dword [ebp - 0x20]
xor edx, edx
mov ecx, dword [ebp - 0x28]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040e311
test esi, esi
je 0x414204
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x38]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.00414462
pop ecx
pop ecx
test eax, eax
je 0x414207
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x14]
cmp ax, word [ebp - 0x38]
jne 0x414207
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x36]
jne 0x414207
mov ax, word [ebp - 0xe]
cmp ax, word [ebp - 0x32]
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
jmp 0x414207
mov esi, dword [ebp - 0x1c]
lea ecx, [esi - 0x10]
call fcn.004023e0
cmp dword [ebp - 0x18], 0
pop edi
pop esi
je 0x414220
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret
Function at 0x42aa7f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
jne 0x42aac6
push dword [ebp + 8]
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x42aaa3
xor eax, eax
jmp 0x42aac9
push 0x3fe0
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x42aac3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x42aa9f
mov dword [esi + 4], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x42ab92
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x42abcc
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42abd4
add esi, dword [ebp + 8]
cmp dword [ebp + 0x10], esi
jne 0x42aba1
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc
mov eax, 0xe00c000b
jmp 0x42abce

Function at 0x42b6f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x42b72f
mov ebx, dword [ebp + 8]
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42b737
add esi, dword [ebp + 8]
cmp dword [ebp + 0x10], esi
jne 0x42b704
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0xc
mov eax, 0xe00c0009
jmp 0x42b731
Function at 0x42c393
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x30c]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x42c3ce
mov esi, dword [esi]
cmp dword [0x6b1cfc], 8
mov eax, 0x6b1ce8
push esi
cmovae eax, dword [0x6b1ce8]
push eax
push 0x613ad4
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.0041d30e
add esp, 0x14
mov dword [ebp - 0x310], edi
lea eax, [ebp - 0x310]
push eax
push 0x20219
push edi
lea eax, [ebp - 0x30c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42c42f
mov eax, 0xe00c0012
jmp 0x42c4d3
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x314], edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x318], 0xfe
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x314]
push eax
push edi
push 0x613ae0
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x42c4c0
cmp dword [ebp - 0x314], 1
jne 0x42c4c0
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
push str..Pipe_
call esi
pop ecx
push eax
push str..Pipe_
mov ecx, ebx
call fcn.004078d0
lea eax, [ebp - 0x104]
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x104]
mov ecx, ebx
push eax
call fcn.0040fb7a
jmp 0x42c4c5
mov edi, 0xe00c001f
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret 8

Function at 0x42c736
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x42c785
push ebx
mov ebx, dword [ebp + 8]
movzx edx, byte [ebx]
movzx ecx, si
mov eax, edx
shr ecx, 0xc
and edx, 0xf
shr eax, 4
xor ecx, eax
shl esi, 4
xor si, word [ecx*2 + 0x613918]
movzx ecx, si
mov eax, ecx
shl ecx, 4
shr eax, 0xc
xor eax, edx
xor cx, word [eax*2 + 0x613918]
inc ebx
movzx esi, cx
sub edi, 1
jne 0x42c748
pop ebx
pop edi
mov ax, si
pop esi
pop ebp
ret
Function at 0x42c78c
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x808], eax
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x42c82b
test edi, edi
je 0x42c82b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42c82b
test al, 0x10
jne 0x42c82b
push ebx
push 0x800
lea eax, [ebp - 0x804]
mov ebx, 0x80004005
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push esi
push 0x400
push eax
push 0
push edi
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x42c826
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.004078d0
xor ebx, ebx
mov eax, ebx
pop ebx
jmp 0x42c830
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b3004
leave
ret

Function at 0x42c9f0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42ca86
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42ca86
test al, 0x10
jne 0x42ca86
push edi
push 0x800
lea eax, [ebp - 0x804]
mov edi, 0x80004005
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push esi
push 0x400
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x42ca81
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x804]
mov ecx, ebx
push eax
call fcn.004078d0
push ebx
call fcn.0042c6c4
pop ecx
xor edi, edi
mov eax, edi
pop edi
jmp 0x42ca8b
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret
Function at 0x42ce73
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x208], eax
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x42cf12
test edi, edi
je 0x42cf12
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42cf12
test al, 0x10
jne 0x42cf12
push ebx
push 0x200
lea eax, [ebp - 0x204]
mov ebx, 0x80004005
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x204]
push esi
push 0x100
push eax
push 0
push edi
push str.SPCfg
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x42cf0d
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
call fcn.004078d0
xor ebx, ebx
mov eax, ebx
pop ebx
jmp 0x42cf17
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b3004
leave
ret

Function at 0x42d3e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x42d404
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x42d404
xor eax, eax
test edx, edx
je 0x42d404
xor byte [eax + ecx], 0x5a
inc eax
cmp eax, edx
jb 0x42d3fb
pop ebp
ret
Function at 0x42df63
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x58]
test esi, esi
jne 0x42df99
push 0x98
call fcn.004b2fb8
mov esi, eax
pop ecx
test esi, esi
je 0x42df8c
mov ecx, esi
call fcn.0042e14c
jmp 0x42df8e
xor esi, esi
mov dword [edi + 0x58], esi
test esi, esi
je 0x42e071
push 0x615224
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x42e071
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 0x5c]
test esi, esi
jne 0x42dfff
mov esi, 0xff
test eax, eax
jne 0x42dfd0
push esi
call fcn.004b2ff6
pop ecx
mov dword [edi + 0x5c], eax
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push 1
push eax
jmp 0x42dff4
mov ecx, dword [edi + 0x58]
push eax
push dword [edi + 0x5c]
call fcn.0042e861
push ebx
push 0xff
push 1
push dword [edi + 0x5c]
call esi
add esp, 0x10
test eax, eax
jne 0x42dfdd
jmp 0x42e059
test eax, eax
je 0x42e00e
push eax
call fcn.004b2fff
and dword [edi + 0x5c], 0
pop ecx
inc esi
push esi
call fcn.004b2ff6
push esi
push 0
push eax
mov dword [edi + 0x5c], eax
call sub.VCRUNTIME140.dll_memset
push ebx
push dword [ebp + 0xc]
push 1
push dword [edi + 0x5c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x20
mov dword [ebp + 8], eax
test eax, eax
je 0x42e059
cmp dword [ebp + 0x10], 0
je 0x42e04d
lea eax, [ebp + 8]
push eax
push dword [edi + 0x5c]
call dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 0x58]
push eax
push dword [edi + 0x5c]
call fcn.0042e861
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
mov ecx, dword [edi + 0x58]
lea esi, [edi + 4]
push esi
call fcn.0042e0c1
mov eax, esi
jmp 0x42e073
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x42e14c
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
mov dword [ecx], 0x67452301
push 0x40
lea esi, [ecx + 0x58]
mov dword [ecx + 0x14], eax
push eax
push esi
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret
Function at 0x42f110
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x64]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x58
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x64]
mov dword [ebp - 0x50], ebx
push esi
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.0042f06f
push 8
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042e923
mov edx, dword [ebp - 0x54]
push 0x38
pop ecx
push 0x78
shr edx, 3
and edx, 0x3f
pop eax
sub eax, edx
sub ecx, edx
cmp edx, 0x38
cmovb eax, ecx
push eax
lea eax, [ebp - 0x64]
push 0x6a8a20
push eax
call fcn.0042f06f
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0042f06f
push 0x10
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.0042e923
add esp, 0x48
lea eax, [ebp - 0x64]
push 0x10
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 8
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea eax, [ebp - 0x4c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004b3004
leave
ret

Function at 0x42f270
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 1
push eax
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
je 0x42f2c6
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x42f2c6
xor ecx, ecx
cmp dword [esi], ecx
jne 0x42f2c6
lea eax, [esi + 4]
push eax
push ecx
push esi
push 0x42f36c
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
xor ecx, ecx
mov dword [esi], eax
add esp, 0x18
test eax, eax
cmovne edi, ecx
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x42f565
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x42f5a1
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x42f5a1
push esi
mov esi, edx
xor eax, eax
shr esi, 2
test esi, esi
je 0x42f58e
xor dword [ecx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, esi
jb 0x42f582
shl eax, 2
pop esi
jmp 0x42f599
xor byte [eax + ecx], 0xd8
inc eax
cmp eax, edx
jb 0x42f594
xor eax, eax
pop ebp
ret
mov eax, 0x80004005
pop ebp
ret
Function at 0x42f5a8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
mov dword [ebp - 0x10], ebx
push esi
mov esi, ebx
test eax, eax
je 0x42f68b
xor ecx, ecx
cmp cx, word [eax]
je 0x42f68b
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42f68a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x42f683
push esi
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f683
cmp dword [ebp - 0xc], 0x706d742e
jne 0x42f683
add ebx, 0xfffffffc
lea eax, [ebx + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x42f683
mov eax, dword [ebp - 0x14]
push 0
push 0
push 4
push edi
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f683
push ebx
push esi
call fcn.0042f565
pop ecx
pop ecx
test eax, eax
jns 0x42f683
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret

Function at 0x42f8e8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
call fcn.0042f8ac
pop ecx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004023e0
mov eax, esi
pop esi
leave
ret