joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b699
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x224
mov eax, 0x4727ce
call fcn.00470dac
mov dword [ebp - 0x224], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x208
push esi
push eax
call fcn.00469380
add esp, 0xc
mov dword [ebp - 0x21c], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x230], xmm0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x40b86d
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x40b755
cmp esi, 2
je 0x40b86d
push 0x275
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x224]
call fcn.0040808d
xor edx, edx
mov ecx, 0x49f450
mov dword [ebp - 4], edx
mov edx, str.RegOpenKeyEx_fail_error_code:
push esi
call fcn.0040c787
mov ecx, eax
call fcn.00406182
lea ecx, [ebp - 0x224]
call fcn.0040822b
xor eax, eax
jmp 0x40b870
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea esi, [edi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x40b7d4
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x40b7d4
xor eax, eax
mov ecx, 0x208
mov word [esi], ax
xor edx, edx
mov eax, edi
cmp word [eax], dx
je 0x40b790
add eax, 2
sub ecx, 1
jne 0x40b783
test ecx, ecx
je 0x40b7c3
mov edx, ecx
lea eax, [ebp - 0x218]
push ecx
neg edx
push eax
sbb edx, edx
lea eax, [ecx - 0x208]
and edx, eax
mov eax, 0x208
add edx, eax
sub eax, ecx
push ecx
add eax, eax
neg ecx
sbb ecx, ecx
and ecx, eax
add ecx, edi
call fcn.00409754
mov ecx, dword [ebp - 0x224]
push edi
push ebx
call fcn.0040b699
test eax, eax
je 0x40b80d
xor ecx, ecx
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x230]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push ecx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40b775
xor eax, eax
mov word [esi - 2], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x40b86d
push 0x2a9
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x228]
call fcn.0040808d
push esi
mov edx, str.RegDeleteKey_fail_error_code
mov dword [ebp - 4], 1
mov ecx, 0x49f450
call fcn.0040c787
mov ecx, eax
call fcn.00406182
lea ecx, [ebp - 0x228]
jmp 0x40b749
xor eax, eax
inc eax
call fcn.00470d5b
ret 8
Function at 0x40b878
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x804
mov eax, 0x472813
call fcn.00470dac
mov dword [ebp - 0x810], ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push 0x7d0
push eax
mov dword [ebp - 0x800], eax
mov dword [ebp - 0x804], eax
lea eax, [ebp - 0x7e0]
push eax
call fcn.00469380
and dword [ebp - 0x7fc], 0
lea ecx, [ebp - 0x80c]
add esp, 0xc
mov dword [ebp - 0x808], 0x7ce
push 0x2b8
push str.c:jenkinsworkspaceClientClientWindows_releasewin_common_srcinstallerIncludePBXProtocolInstaller.cpp
push 0
call fcn.0040808d
and dword [ebp - 4], 0
mov edx, str.Start_ResetProtoShellOpenCmd...
mov ecx, 0x49f450
call fcn.0040c787
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80c]
call fcn.0040822b
push esi
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x7f8]
call fcn.004077a4
pop ecx
push 0
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040c0bc
lea ecx, [ebp - 0x7f8]
mov esi, eax
call fcn.004042cc
test esi, esi
je 0x40ba36
lea eax, [ebp - 0x800]
xor ebx, ebx
push eax
push 0x2001f
push ebx
push str.DefaultIcon
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x4863a4
test eax, eax
jne 0x40b9b2
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x7fc]
push eax
push ebx
push edi
push dword [ebp - 0x800]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b9b2
cmp dword [ebp - 0x7fc], 1
jne 0x40b9b2
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x7e0]
push eax
call fcn.0040c692
test eax, eax
jne 0x40b9b2
push edi
push dword [ebp - 0x800]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x804]
push eax
push 0x2001f
push ebx
push str.shellopencommand
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ba2f
lea eax, [ebp - 0x808]
mov dword [ebp - 0x7fc], ebx
push eax
lea eax, [ebp - 0x7e0]
mov dword [ebp - 0x808], 0x7ce
push eax
lea eax, [ebp - 0x7fc]
push eax
push ebx
push edi
push dword [ebp - 0x804]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ba2f
cmp dword [ebp - 0x7fc], 1
jne 0x40ba2f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x7e0]
push eax
call fcn.0040c692
test eax, eax
jne 0x40ba2f
push edi
push dword [ebp - 0x804]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x800], 0
je 0x40ba4b
push dword [ebp - 0x800]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x804], 0
je 0x40ba60
push dword [ebp - 0x804]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00470d5b
ret 0x10
Function at 0x40c1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [ecx + 0x7c], ebx
jne 0x40c29f
cmp dword [ebp + 0x18], ebx
mov ecx, 0x20119
mov edx, 0x20019
mov dword [ebp - 0x7d8], ebx
cmove ecx, edx
cmp dword [eax + 0x10], ebx
je 0x40c21c
cmp dword [eax + 0x14], 8
jb 0x40c1fd
mov eax, dword [eax]
lea edx, [ebp - 0x7d8]
push edx
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c29f
mov edi, dword [ebp - 0x7d8]
push 0x7d0
lea eax, [ebp - 0x7d4]
mov dword [ebp - 0x7dc], ebx
push ebx
push eax
call fcn.00469380
add esp, 0xc
mov dword [ebp - 0x7e0], 0x7ce
cmp dword [esi + 0x14], 8
jb 0x40c249
mov esi, dword [esi]
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x7d4]
push eax
lea eax, [ebp - 0x7dc]
push eax
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp dword [ebp - 0x7d8], ebx
je 0x40c27d
push dword [ebp - 0x7d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40c29f
cmp dword [ebp - 0x7dc], 1
jne 0x40c29f
lea eax, [ebp - 0x7d4]
push eax
call fcn.0044c8a9
pop ecx
test eax, eax
je 0x40c29f
xor eax, eax
jmp 0x40c2a2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465436
leave
ret 0x14

Function at 0x40ceb7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov edi, 0x20019
mov dword [ebp - 4], esi
push edi
push esi
push 0x486c5c
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cf71
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x486c90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cf55
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push esi
push 0x486c98
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cf55
cmp dword [ebp - 0xc], 1
je 0x40cf35
cmp dword [ebp - 0xc], 2
jne 0x40cf55
cmp dword [ebp - 4], esi
je 0x40cf43
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x40cf51
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40cf73
cmp dword [ebp - 4], esi
je 0x40cf63
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x40cf71
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
leave
ret 0x10
Function at 0x40cf79
Capabilities:
Create directory
Print debug messages

Disassembly:
push 0x14
mov eax, 0x472ac4
call fcn.00470d79
mov edi, ecx
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esi], ebx
je 0x40d08b
cmp dword [edi], ebx
jne 0x40cfb3
push 0x34
call fcn.00465444
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00444e50
mov dword [edi], eax
test eax, eax
je 0x40d08b
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
cmp byte [esi + 9], 0
jne 0x40d009
push ecx
push dword [esi + 4]
push dword [esi]
push ecx
call fcn.0040ceb7
test al, al
je 0x40d009
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push ebx
push eax
push 0x48487b
push dword [esi]
call fcn.00445f20
test eax, eax
je 0x40d009
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
je 0x40d009
push str._CPluginImpHelper::GetInstallPath__Get_Install_Path:
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40d040
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push eax
call fcn.00446460
test eax, eax
je 0x40d042
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x1c]
je 0x40d045
lea eax, [ecx + 8]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.0044d3e5
add esp, 0xc
cmp byte [esi + 8], 0
je 0x40d040
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov bl, 1
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40d087
mov eax, dword [ebp - 0x18]
mov esi, 0x11c
sub eax, ecx
mov dword [ebp - 0x14], ecx
cdq
idiv esi
imul eax, eax, 0x11c
mov dword [ebp - 0x10], eax
cmp eax, 0x1000
jb 0x40d07e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040149b
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.00465474
pop ecx
pop ecx
mov al, bl
jmp 0x40d08d
xor al, al
call fcn.00470d47
ret 8
Function at 0x40d7dc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.00469380
add esp, 0xc
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40d852
push str.winsxsx86_microsoft.vc90.crt_
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0044d4cb
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40d852
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x40d854
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00465436
leave
ret

Function at 0x40d8fb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.00469380
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop esi
test eax, eax
jne 0x40d959
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d977
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x40d97b
sub eax, 1
je 0x40d97b
sub eax, 1
jne 0x40d977
cmp dword [ebp - 0x11c], 6
jb 0x40d97b
xor al, al
jmp 0x40d97d
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00465436
leave
ret 4

Function at 0x40de9d
Capabilities:
Get common file path

Disassembly:
test ecx, ecx
je 0x40deb7
push ecx
xor eax, eax
push eax
push eax
push 2
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40deb7
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x40e745
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
test esi, esi
je 0x40e787
push 0xf0000000
push 0x18
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40e787
lea edi, [esi + 4]
push edi
push ebx
push ebx
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40e787
cmp dword [edi], ebx
je 0x40e787
mov bl, 1
jmp 0x40e78d
push esi
call fcn.0040e709
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x40e796
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x54
mov eax, 0x472cb3
call fcn.00470dac
mov esi, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
push 0x40
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x5c], 1
push eax
call fcn.00469380
add esp, 0xc
test edi, edi
je 0x40e82b
test ebx, ebx
je 0x40e82b
cmp dword [ebp + 0x14], 0
jle 0x40e82b
push 0
push dword [ebp + 0x14]
push ebx
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40e82b
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x40
push eax
lea eax, [ebp - 0x54]
push eax
push 2
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40e82b
lea edx, [ebp - 0x54]
add edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
push esi
call fcn.0040f994
pop ecx
mov eax, esi
call fcn.00470d5b
ret 0x10
Function at 0x40ead0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40eaf7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408920
jmp 0x40ebac
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40eb19
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40eb1b
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40eba0
jg 0x40eb30
test esi, esi
je 0x40eba0
test ecx, ecx
jl 0x40eb83
jg 0x40eb3a
test eax, eax
je 0x40eb83
cmp edi, ecx
jg 0x40eb4e
jl 0x40eb44
cmp esi, eax
jae 0x40eb4e
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00468dd0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x40eba0
jg 0x40eb86
test esi, esi
je 0x40eba0
jmp 0x40eb86
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x40eba0
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0044dd39
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ebc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40ebeb
jl 0x40ebe2
test edi, edi
jne 0x40ebeb
xor eax, eax
xor edx, edx
jmp 0x40ecb0
cmp dword [esi + 0x38], 0
je 0x40ec00
push eax
push edi
push dword [ebp + 8]
call fcn.00408a10
jmp 0x40ecb0
mov eax, dword [esi + 0x1c]
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ec44
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x40ec44
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.00468dd0
mov ecx, dword [esp + 0x20]
add ebx, esi
mov dword [esp + 0x1c], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x40ec4b
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x40eca6
mov ecx, esi
call fcn.0040f596
mov edx, dword [esp + 0x10]
mov ecx, ebx
jmp 0x40ec86
push dword [esi + 0x4c]
push eax
push 1
push edx
call fcn.0044e32f
mov edx, dword [esp + 0x20]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x10], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x40ecb9
mov eax, 0xfff
cmp ebx, eax
ja 0x40ec62
test ecx, ecx
je 0x40eca6
push dword [esi + 0x4c]
push ebx
push 1
push edx
call fcn.0044e32f
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub edi, ebx
jmp 0x40eca8
Function at 0x40ef40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x40ef63
xor eax, eax
jmp 0x40f03a
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ef92
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x40ef92
mov eax, dword [ebp + 8]
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x40f039
cmp dword [edi + 0x4c], 0
je 0x40f037
mov ecx, edi
call fcn.0040f596
mov eax, dword [edi + 0x38]
mov cl, byte [ebp + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x40efc3
push dword [edi + 0x4c]
push ecx
call fcn.0040dff4
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x40f037
mov byte [ebp - 0x28], cl
mov esi, dword [eax]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x4784fc]
mov ecx, dword [ebp - 0x2c]
call dword [esi + 0x1c]
sub eax, 0
je 0x40f00b
sub eax, 1
je 0x40f00b
dec eax
sub eax, 1
jne 0x40f037
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40efb4
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40f028
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0044dd39
add esp, 0x10
cmp esi, eax
jne 0x40f037
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jne 0x40f039
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00465436
leave
ret 4

Function at 0x40f5e4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x40f655
cmp byte [ebx + 0x3d], 0
je 0x40f655
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4784fc]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x40f68e
push edi
mov edi, dword [ebx + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov esi, dword [edi]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x4784fc]
mov ecx, edi
call dword [esi + 0x20]
xor ecx, ecx
pop edi
sub eax, ecx
je 0x40f665
sub eax, 1
je 0x40f668
dec eax
sub eax, 1
jne 0x40f68e
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00465436
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40f685
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.0044dd39
add esp, 0x10
cmp esi, eax
jne 0x40f68e
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x40f657
xor al, al
jmp 0x40f657
Function at 0x41112e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13e0
call fcn.004662a0
mov eax, dword [0x49d874]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.00468692
or dword [ebp - 0x50], 0xffffffff
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x13d0], ecx
inc edx
mov esi, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [ebp + edx*4 - 0x13d0], ecx
inc edx
cmp edx, esi
jb 0x411164
or dword [ebp - 0x13d8], 0xffffffff
lea eax, [ebp - 0x13d4]
push 0x8b75
lea ecx, [ebp - 0x13e0]
mov dword [ebp - 0x13d4], esi
mov dword [ebp - 0x13e0], eax
mov dword [ebp - 0x13dc], 0x20
call fcn.004113c3
add eax, 0x8000012c
cmp eax, 0x80000000
push 0x18
pop esi
lea ecx, [eax - 0x80000000]
lea edx, [eax - 0x80000000]
cmovae edx, ecx
mov ecx, 0xe10
mov eax, edx
cdq
idiv ecx
mov ecx, edx
cdq
idiv esi
mov ebx, edx
test ebx, ebx
js 0x4111e8
cmp ebx, 0xc
jle 0x4111eb
push 0xc
pop ebx
mov eax, ecx
push 0x3c
cdq
pop ecx
idiv ecx
mov esi, eax
test esi, esi
js 0x4111fd
cmp esi, ecx
jle 0x411200
push 5
pop esi
push 0x40
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00469380
push esi
push ebx
push str.2024_01_01T_02d:_02d:00
lea eax, [ebp - 0x4c]
push 0x40
push eax
call fcn.00401344
add esp, 0x20
push dword [edi]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor esi, esi
lea eax, [ebp - 0x4c]
push esi
push esi
push 0xffffffffffffffff
push eax
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
test esi, esi
je 0x411272
push ebx
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x411272
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [edi], 0
jmp 0x41128b
mov dword [edi], esi
test esi, esi
je 0x41128b
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465436
leave
ret 4
push 0x8007000e
call fcn.0040fe26
int3

Function at 0x411439
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x411481
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x411449
jmp 0x41148e
cmp dword [esi], 0x4e0
jb 0x41148e
call fcn.004114c8
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret
Function at 0x4114c8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4114da
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x41151f
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret