joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438a47
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push 0x1c
push 0x4dbd50
call fcn.004a56e0
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
call fcn.004389ed
mov dword [esi + 0x34], ebx
lea ebx, [esi + 0x1c]
push 5
pop edi
mov dword [ebx], edi
xor edx, edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [esi]
add ecx, edx
lea edx, [ebp - 0x24]
call fcn.0043813b
pop ecx
test al, al
je 0x438ba3
mov edx, dword [ebp - 0x24]
add edx, dword [esi + 0x34]
mov dword [esi + 0x34], edx
mov eax, dword [ebp - 0x28]
add dword [ebx], eax
cmp dword [ebx], 0x14
jge 0x438ba3
cmp edx, edi
jl 0x438a75
push edx
push dword [esi]
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
lea eax, [esi + 8]
add esp, 8
push ebx
push eax
mov edx, dword [esi + 0x34]
mov ecx, dword [esi]
call fcn.00438207
add esp, 0xc
test al, al
je 0x438ba3
mov ecx, dword [esi]
cmp byte [ecx], 0xe9
jne 0x438b03
mov eax, dword [ecx + 1]
add ecx, 5
add ecx, eax
lea eax, [esi + 0xd]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov byte [esi + 8], 0xe9
push 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 9]
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [ebx]
sub ecx, eax
sub ecx, esi
sub ecx, 8
mov dword [ebp - 0x1c], ecx
mov byte [eax + esi + 8], 0xe9
push 4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx]
add eax, 9
add eax, esi
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
add dword [ebx], edi
lea eax, [ebp - 0x20]
push eax
push 0x40
push dword [esi + 0x34]
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x438b91
and dword [ebp - 4], 0
mov eax, dword [esi]
mov byte [eax], 0xe9
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sub eax, edi
mov dword [ebp - 0x1c], eax
push 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ecx + 1]
push eax
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
mov dword [ebp - 0x2c], edi
mov ecx, dword [esi + 0x34]
mov eax, dword [esi]
cmp edi, ecx
jge 0x438b7f
mov byte [eax + edi], 0x90
inc edi
jmp 0x438b6c
lea edx, [ebp - 0x20]
push edx
push dword [ebp - 0x20]
push ecx
push eax
call ebx
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x438ba5
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x438d3e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x438d8a
lea eax, [ebp - 4]
push eax
push 0x40
push dword [esi + 0x34]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x438d8a
push dword [esi + 0x34]
lea eax, [esi + 0x20]
push eax
push dword [esi]
call dword [sym.imp.VCRUNTIME140.dll_memcpy]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [esi + 0x34]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4394b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
mov edi, ecx
lea eax, [ebp - 0x210]
push 0
mov dword [ebp - 0x214], edi
mov esi, edx
push eax
mov dword [ebp - 0x214], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push esi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, edi
test eax, eax
js 0x439511
lea eax, [ebp - 0x210]
push eax
jmp 0x439516
push 0x4c2554
call fcn.0040d6dc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004a439a
leave
ret

Function at 0x43952b
Capabilities:
Get common file path

Disassembly:
push 0x21c
mov eax, 0x4ad05d
call fcn.004a76a9
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
xor edi, edi
mov dword [ebp - 0x220], edi
call fcn.0040d765
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x220], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4395c7
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea eax, [ebp - 0x21c]
push eax
call edi
pop ecx
test eax, eax
je 0x4395c7
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x21c]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.0040d7bf
mov eax, esi
call fcn.004a7658
ret
Function at 0x439792
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push 8
mov eax, 0x4ad11a
call fcn.004a7676
mov edi, edx
mov ebx, ecx
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4397f3
inc esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4397d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4398ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4398ed
lea eax, [ebp - 0x10]
push eax
push 0x4b8d40
push 1
push esi
push 0x4bc4c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x439828
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43981f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 5
jmp 0x4397dd
mov eax, dword [ebp - 0x10]
push dword [ebx + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x10]
push dword [ebx + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
push dword [ebx + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
push dword [ebx + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x10]
push esi
push dword [ebx + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x4b98f0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x439897
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x43988b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 7
jmp 0x4397dd
mov eax, dword [ebp - 0x14]
push 1
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jns 0x4398c5
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4398b9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 9
jmp 0x4397dd
xor esi, esi
inc esi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4398d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4398ed
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
call fcn.004a7644
ret
Function at 0x43c2b5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x43c35f
push ebx
push 1
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, 0x104
test eax, eax
jne 0x43c32f
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x43c35e
push str.All_UsersApplication_Data
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
mov edx, edi
lea ecx, [ebp - 0x20c]
call fcn.0043c624
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, ebx
jae 0x43c35e
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
pop ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a439a
leave
ret 0xc

Function at 0x43c83d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp dword [ebx + 4], 0
jne 0x43c861
push 0x3b
push str.......includekgetuuid_regkeyex.cpp
push str.m_hKey
call esi
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x43c878
push 0x3c
push str.......includekgetuuid_regkeyex.cpp
push str.pszKey
call esi
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x43c88f
push 0x3d
push str.......includekgetuuid_regkeyex.cpp
push str.pszData
call esi
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
lea eax, [eax*2 + 1]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43c999
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x214], eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
push edi
cmp dword [ebx + 4], 0
mov edi, dword [ebp + 8]
jne 0x43c9da
push 0x64
push str.......includekgetuuid_regkeyex.cpp
push str.m_hKey
call esi
add esp, 0xc
test edi, edi
jne 0x43c9ef
push 0x65
push str.......includekgetuuid_regkeyex.cpp
push str.pszKey
call esi
add esp, 0xc
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43ca41
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040d7bf
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a439a
leave
ret 8
Function at 0x43caad
Capabilities:
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
push edi
mov edi, ecx
jne 0x43cad6
push 0x83
push str.......includekgetuuid_regkeyex.cpp
push str.pszSubKey___0
call esi
add esp, 0xc
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x43caf1
push 0x84
push str.......includekgetuuid_regkeyex.cpp
push str.hKey___0
call esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43cb31
push 0x91
push str.......includekgetuuid_regkeyex.cpp
push 0x4c175c
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
push dword [ebp - 4]
call esi
push ebx
call esi
jmp 0x43cc00
cmp dword [ebp + 0x10], 0
je 0x43cb78
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
push ebx
call esi
test edi, edi
je 0x43cc2a
push 0xa0
push str.......includekgetuuid_regkeyex.cpp
push 0x4c175c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
jmp 0x43cc00
xor ecx, ecx
mov dword [ebp + 0x10], ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x43cbf7
cmp dword [ebp + 0x10], eax
jbe 0x43cc0c
mov eax, dword [ebp + 8]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a43ad
pop ecx
mov ecx, dword [ebp + 8]
mov esi, eax
inc ecx
push ecx
push esi
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x43cc09
push eax
push esi
push dword [ebp - 4]
mov ecx, edi
call fcn.0043caad
push esi
test eax, eax
je 0x43cbf1
call fcn.004a43a8
cmp dword [ebp + 0x10], 0
pop ecx
jbe 0x43cc0c
xor ecx, ecx
jmp 0x43cb7d
call fcn.004a43a8
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push esi
jmp 0x43cbf1
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ebx
mov esi, eax
call edi
test esi, esi
jne 0x43cc00
xor eax, eax
inc eax
jmp 0x43cc02
Function at 0x43ce49
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0x20019
xor esi, esi
push esi
push dword [0x4f0398]
mov dword [ebp - 8], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43cec9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.LogLevel
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43cebb
mov eax, dword [ebp - 8]
cmp eax, 5
jae 0x43ceb1
push 3
pop ecx
cmp eax, ecx
cmovg eax, ecx
mov dword [0x4ea5e8], eax
jmp 0x43cebb
mov dword [0x4ea5e8], 1
cmp dword [ebp - 4], esi
je 0x43cec9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
leave
ret
Function at 0x43cf15
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x418], esi
xor edi, edi
mov dword [ebp - 0x418], esi
cmp dword [0x4ea600], edi
je 0x43cf59
push 0x4ea5f0
mov dword [esi], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.0043b7c5
jmp 0x43d0b4
push ebx
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword fs:[0x2c]
add esp, 0x18
mov dword [ebp - 0x418], edi
mov ecx, dword [eax]
mov eax, dword [0x4f07a0]
cmp eax, dword [ecx + 4]
jg 0x43d0c4
cmp dword [0x4edac0], edi
jne 0x43d09f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x43d09f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push str.log_
push eax
call ebx
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43d008
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43d09f
lea eax, [ebp - 0x418]
xor ecx, ecx
push eax
lea edx, [ebp - 0x414]
call fcn.0043cedb
pop ecx
test al, al
je 0x43d09f
push dword [ebp - 0x418]
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push dword [ebp - 0x418]
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x418]
mov ecx, 0x400000
push eax
lea edx, [ebp - 0x414]
call fcn.0043cedb
pop ecx
test al, al
je 0x43d09f
lea eax, [ebp - 0x20c]
mov ecx, 0x4edab0
push eax
call fcn.0040dc67
cmp dword [ebp - 0x418], edi
je 0x43d090
push 0x4c3ac8
mov ecx, 0x4edab0
call fcn.004374d4
push dword [ebp - 0x418]
mov ecx, 0x4edab0
call fcn.004374d4
push str..log
mov ecx, 0x4edab0
call fcn.004374d4
mov dword [esi], edi
mov ecx, esi
mov dword [esi + 0x10], edi
push 0x4edab0
mov dword [esi + 0x14], edi
call fcn.0043b7c5
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a439a
leave
ret
mov ebx, 0x4f07a0
push ebx
call fcn.004a4556
cmp dword [0x4f07a0], 0xffffffff
pop ecx
jne 0x43cf9d
push 0x4b5e26
call fcn.004a49b9
push ebx
call fcn.004a450c
pop ecx
pop ecx
jmp 0x43cf9d
Function at 0x43d47b
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x4ad8b9
call fcn.004a76a9
mov esi, ecx
cmp byte [0x4f010c], 0
je 0x43d499
mov al, 1
jmp 0x43d525
call fcn.0043ce49
call fcn.0043d116
push 0xffffffffffffffff
push dword [0x4f0448]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0043d463
cmp dword [0x4f0444], edi
jne 0x43d4dc
push 0x18
call fcn.004a43b6
pop ecx
mov dword [0x4f0444], eax
mov dword [eax], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 7
lea ecx, [ebp - 0x28]
call fcn.0043cf15
mov ecx, dword [0x4f0444]
push eax
call fcn.0043e554
lea ecx, [ebp - 0x28]
call fcn.0040dc21
cmp dword [esi], edi
jne 0x43d510
mov eax, dword [0x4f0444]
cmp dword [eax + 0x14], 8
jb 0x43d509
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0043d3cd
push dword [0x4f0448]
mov bl, al
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
call fcn.004a7658
ret
Function at 0x43d88a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ada31
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, 0x4c2424
lea ecx, [esi + 8]
call fcn.0043ea8e
lea eax, [ebp - 0x440]
push eax
lea ecx, [esi + 0xc]
call fcn.0043e71b
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
lea ecx, [ebp - 0x90]
cmovae eax, dword [ebp - 0x440]
push 0xfde9
mov dword [ebp - 0x94], ecx
lea ecx, [ebp - 0x94]
push eax
call fcn.00412bfa
mov ecx, dword [ebp - 0x94]
xor ebx, ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], 0xf
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43d928
sub ecx, edx
push ecx
push dword [ebp - 0x94]
lea ecx, [ebp - 0x428]
call fcn.0042e586
lea eax, [ebp - 0x90]
cmp dword [ebp - 0x94], eax
je 0x43d95e
push dword [ebp - 0x94]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea ecx, [ebp - 0x440]
call fcn.0040dc21
call fcn.0043d116
push 0xffffffffffffffff
push dword [0x4f0448]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.0043d3cd
test al, al
je 0x43d9c4
push 2
push ebx
push ebx
push dword [0x4f0440]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebp - 0x444]
push ebx
push ecx
push dword [ebp - 0x418]
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
push dword [0x4f0440]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x4f0448]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi], 4
je 0x43da4e
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x43da20
mov ecx, dword [ebp - 0x428]
inc eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], ecx
cmp eax, 0x1000
jb 0x43da17
lea edx, [ebp - 0x448]
lea ecx, [ebp - 0x444]
call fcn.0040aab2
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x444]
push eax
push ecx
call fcn.004a43e6
pop ecx
pop ecx
push dword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 8]
call fcn.0043d6af
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a439a
leave
ret
lea ecx, [ebp - 0x428]
call fcn.0040b1b6
mov edx, 0x400
cmp eax, edx
mov ecx, edx
cmovb ecx, eax
push ecx
lea ecx, [ebp - 0x428]
call fcn.0042e4b3
push eax
push edx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
add esp, 0x10
call 0x43ced1
int3
Function at 0x43f55e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ea00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 8], bl
mov dword [ebp - 0x10], ebx
push esi
mov esi, ebx
test ecx, ecx
je 0x43f63b
xor eax, eax
cmp ax, word [ecx]
je 0x43f63b
push edi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43f63a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x43f633
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 0x43f633
cmp dword [ebp - 0xc], 0x706d742e
jne 0x43f633
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 0x43f633
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 0x43f633
mov edx, ebx
mov ecx, esi
call fcn.0043f73c
test eax, eax
jns 0x43f633
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.004a439a
leave
ret

Function at 0x43f73c
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x43f76e
test edx, edx
je 0x43f76e
push esi
mov esi, edx
xor eax, eax
shr esi, 2
test esi, esi
je 0x43f75c
xor dword [ecx + eax*4], 0xd8d8d8d8
inc eax
cmp eax, esi
jb 0x43f750
shl eax, 2
pop esi
jmp 0x43f767
xor byte [eax + ecx], 0xd8
inc eax
cmp eax, edx
jb 0x43f762
xor eax, eax
ret
mov eax, 0x80004005
ret
Function at 0x43f9cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x43f9e5
mov eax, dword [ebp - 4]
jmp 0x43fabf
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x43fa9a
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c0210]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c0210]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c0210]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c0210]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c0210]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4c0210]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4c0210]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4c0210]
dec ebp
jne 0x43fa04
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x43fab6
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4c0210]
dec ecx
jne 0x43faa4
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret