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

Disassembly:
push 0x224
mov eax, 0x465614
call fcn.00464112
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.0045d8a0
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 0x40f77d
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 0x40f665
cmp esi, 2
je 0x40f77d
push 0x264
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x224]
call fcn.0040c3fa
xor edx, edx
mov ecx, 0x490320
mov dword [ebp - 4], edx
mov edx, str.RegOpenKeyEx_fail_error_code:
push esi
call fcn.004103ea
mov ecx, eax
call fcn.0040a2be
lea ecx, [ebp - 0x224]
call fcn.0040c599
xor eax, eax
jmp 0x40f780
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea esi, [edi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x40f6e4
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x40f6e4
xor eax, eax
mov ecx, 0x208
mov word [esi], ax
xor edx, edx
mov eax, edi
cmp word [eax], dx
je 0x40f6a0
add eax, 2
sub ecx, 1
jne 0x40f693
test ecx, ecx
je 0x40f6d3
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.0040d91f
mov ecx, dword [ebp - 0x224]
push edi
push ebx
call fcn.0040f5a9
test eax, eax
je 0x40f71d
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 0x40f685
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 0x40f77d
push 0x298
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x228]
call fcn.0040c3fa
push esi
mov edx, str.RegDeleteKey_fail_error_code
mov dword [ebp - 4], 1
mov ecx, 0x490320
call fcn.004103ea
mov ecx, eax
call fcn.0040a2be
lea ecx, [ebp - 0x228]
jmp 0x40f659
xor eax, eax
inc eax
call fcn.004640cd
ret 8
Function at 0x40f788
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x804
mov eax, 0x465659
call fcn.00464112
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.0045d8a0
and dword [ebp - 0x7fc], 0
lea ecx, [ebp - 0x80c]
add esp, 0xc
mov dword [ebp - 0x808], 0x7ce
push 0x2a7
push str.C:jenkinsworkspacezoomciWindows_releaseclient_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 0
call fcn.0040c3fa
and dword [ebp - 4], 0
mov edx, str.Start_ResetProtoShellOpenCmd...
mov ecx, 0x490320
call fcn.004103ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80c]
call fcn.0040c599
push esi
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x7f8]
call fcn.00410630
pop ecx
push 0
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040ff09
lea ecx, [ebp - 0x7f8]
mov esi, eax
call fcn.0040ac61
test esi, esi
je 0x40f946
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, 0x47a6bc
test eax, eax
jne 0x40f8c2
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 0x40f8c2
cmp dword [ebp - 0x7fc], 1
jne 0x40f8c2
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x7e0]
push eax
call fcn.004102f5
test eax, eax
jne 0x40f8c2
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 0x40f93f
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 0x40f93f
cmp dword [ebp - 0x7fc], 1
jne 0x40f93f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x7e0]
push eax
call fcn.004102f5
test eax, eax
jne 0x40f93f
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 0x40f95b
push dword [ebp - 0x800]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x804], 0
je 0x40f970
push dword [ebp - 0x804]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004640cd
ret 0x10
Function at 0x40ffd7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x48e880]
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 0x4100c6
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 0x410043
cmp dword [eax + 0x14], 8
jb 0x410024
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 0x4100c6
mov edi, dword [ebp - 0x7d8]
push 0x7d0
lea eax, [ebp - 0x7d4]
mov dword [ebp - 0x7dc], ebx
push ebx
push eax
call fcn.0045d8a0
add esp, 0xc
mov dword [ebp - 0x7e0], 0x7ce
cmp dword [esi + 0x14], 8
jb 0x410070
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 0x4100a4
push dword [ebp - 0x7d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4100c6
cmp dword [ebp - 0x7dc], 1
jne 0x4100c6
lea eax, [ebp - 0x7d4]
push eax
call fcn.0043cd78
pop ecx
test eax, eax
je 0x4100c6
xor eax, eax
jmp 0x4100c9
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00459996
leave
ret 0x14

Function at 0x410b53
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 0x47aef0
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410c0d
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x47af24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410bf1
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 0x47af2c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410bf1
cmp dword [ebp - 0xc], 1
je 0x410bd1
cmp dword [ebp - 0xc], 2
jne 0x410bf1
cmp dword [ebp - 4], esi
je 0x410bdf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x410bed
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x410c0f
cmp dword [ebp - 4], esi
je 0x410bff
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x410c0d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
leave
ret 0x10
Function at 0x410c15
Capabilities:
Create directory
Print debug messages

Disassembly:
push 0x14
mov eax, 0x4658ea
call fcn.004640de
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esi], ebx
je 0x410d07
cmp dword [edi], ebx
jne 0x410c52
push 0x24
call fcn.00459bd3
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00402745
mov dword [edi], eax
test eax, eax
je 0x410d07
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 0x410caa
push ecx
push dword [esi + 4]
push dword [esi]
push ecx
call fcn.00410b53
test al, al
je 0x410caa
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push eax
push 0x479323
push dword [esi]
call fcn.00402c28
test eax, eax
je 0x410caa
mov edi, dword [ebp - 0x20]
cmp edi, dword [ebp - 0x1c]
je 0x410ca7
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 0x410ce1
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push eax
call fcn.00402ffd
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x410ce3
cmp edi, dword [ebp - 0x1c]
je 0x410ce3
lea eax, [edi + 8]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.0043d264
add esp, 0xc
cmp byte [esi + 8], 0
je 0x410ce1
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov bl, 1
test edi, edi
je 0x410d03
mov eax, dword [ebp - 0x18]
mov ecx, 0x110
sub eax, edi
cdq
idiv ecx
imul ecx, eax, 0x110
push ecx
push edi
call fcn.004036dc
pop ecx
pop ecx
mov al, bl
jmp 0x410d09
xor al, al
call fcn.004640b8
ret 8
Function at 0x4113a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x48e880]
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.0045d8a0
add esp, 0xc
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x411417
push str.winsxsx86_microsoft.vc90.crt_
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0043d34b
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 0x411417
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x411419
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00459996
leave
ret

Function at 0x4114c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x48e880]
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.0045d8a0
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 0x41151e
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41153c
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x411540
sub eax, 1
je 0x411540
sub eax, 1
jne 0x41153c
cmp dword [ebp - 0x11c], 6
jb 0x411540
xor al, al
jmp 0x411542
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00459996
leave
ret 4

Function at 0x411b00
Capabilities:
Get common file path

Disassembly:
test ecx, ecx
je 0x411b19
push 1
push 2
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411b19
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x411ed0
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 0x411f12
push 0xf0000000
push 0x18
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x411f12
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 0x411f12
cmp dword [edi], ebx
je 0x411f12
mov bl, 1
jmp 0x411f18
push esi
call fcn.00411e93
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x411f21
Capabilities:
Hash data via wincrypt

Disassembly:
push 0x54
mov eax, 0x4659ef
call fcn.00464112
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 + 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.0045d8a0
add esp, 0xc
test edi, edi
je 0x411fb4
test ebx, ebx
je 0x411fb4
cmp dword [ebp + 0x14], 0
jle 0x411fb4
push 0
push dword [ebp + 0x14]
push ebx
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x411fb4
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 0x411fb4
lea edx, [ebp - 0x54]
add edx, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
push esi
call fcn.0041304a
pop ecx
mov eax, esi
call fcn.004640cd
ret 0x10

Function at 0x412240
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 0x412267
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cc60
jmp 0x41231c
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 0x412289
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41228b
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x412310
jg 0x4122a0
test esi, esi
je 0x412310
test ecx, ecx
jl 0x4122f3
jg 0x4122aa
test eax, eax
je 0x4122f3
cmp edi, ecx
jg 0x4122be
jl 0x4122b4
cmp esi, eax
jae 0x4122be
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.0045e1d0
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 0x412310
jg 0x4122f6
test esi, esi
je 0x412310
jmp 0x4122f6
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x412310
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.004413c7
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 0x412330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jg 0x412357
jl 0x41234e
test edi, edi
jne 0x412357
xor eax, eax
xor edx, edx
jmp 0x412457
cmp dword [ebx + 0x38], 0
je 0x41236c
push esi
push edi
push dword [ebp + 8]
call fcn.0040cd50
jmp 0x412457
mov eax, dword [ebx + 0x1c]
mov ecx, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4123bf
mov eax, dword [ebx + 0x2c]
cmp dword [eax], 0
jbe 0x4123bf
cmp dword [eax], edi
mov esi, edi
cmovb esi, dword [eax]
push esi
push ecx
push dword [ebp + 8]
call fcn.0045e1d0
mov eax, dword [ebx + 0x2c]
mov ecx, edi
mov edx, dword [ebp + 8]
sub ecx, esi
add edx, esi
mov dword [esp + 0x1c], ecx
add esp, 0xc
mov dword [esp + 0xc], edx
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x14], ecx
add dword [eax], esi
mov esi, dword [ebp + 0x10]
jmp 0x4123c6
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x41244a
mov ecx, ebx
call fcn.00412c1e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp eax, 0xfff
jbe 0x412422
mov ecx, dword [esp + 0xc]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call fcn.004417cf
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov edx, dword [esp + 0x10]
add ecx, eax
sub edx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
cmp eax, 0xfff
jne 0x41241e
cmp edx, eax
ja 0x4123e6
jmp 0x412426
sub edi, edx
jmp 0x412450
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
test eax, eax
je 0x41244e
push dword [ebx + 0x4c]
push edx
push 1
push dword [esp + 0x18]
call fcn.004417cf
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
jmp 0x41244e
mov ecx, dword [esp + 0x14]
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4126b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
or ebx, 0xffffffff
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x4126d3
xor eax, eax
jmp 0x4127a8
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x412702
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x412702
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 0x4127a7
cmp dword [edi + 0x4c], 0
je 0x4127a5
mov ecx, edi
call fcn.00412c1e
mov eax, dword [edi + 0x38]
mov cl, byte [ebp + 8]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x412733
push dword [edi + 0x4c]
push ecx
call fcn.00411b94
test al, al
pop ecx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x4127a5
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 [0x46b4a4]
mov ecx, dword [ebp - 0x2c]
call dword [esi + 0x1c]
test eax, eax
js 0x4127a5
cmp eax, 1
jle 0x412779
cmp eax, 3
jne 0x4127a5
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x412724
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x412796
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004413c7
add esp, 0x10
cmp esi, eax
jne 0x4127a5
lea eax, [ebp - 0x28]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
jne 0x4127a7
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00459996
leave
ret 4

Function at 0x412c6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x48e880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x412cdd
cmp byte [ebx + 0x3d], 0
je 0x412cdd
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x46b4a4]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x412d16
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 [0x46b4a4]
mov ecx, edi
call dword [esi + 0x20]
xor ecx, ecx
pop edi
sub eax, ecx
je 0x412ced
sub eax, 1
je 0x412cf0
dec eax
sub eax, 1
jne 0x412d16
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00459996
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x412d0d
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.004413c7
add esp, 0x10
cmp esi, eax
jne 0x412d16
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x412cdf
xor al, al
jmp 0x412cdf
Function at 0x41697a
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0xc], 0x67452301
mov byte [ecx + 0x5c], al
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0xefcdab89
mov dword [ecx + 0x14], 0x98badcfe
mov dword [ecx + 0x18], 0x10325476
ret

Function at 0x41ab56
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
mov esi, dword [edi]
test esi, esi
je 0x41abac
and dword [edi], 0
mov edx, 0x400000
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x41abb3
test ecx, ecx
je 0x41abac
mov ecx, dword [ebp - 8]
mov edx, 0x400000
test esi, esi
jne 0x41ab74
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41abae

Function at 0x41abbb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 8], ecx
mov esi, dword [edi]
test esi, esi
je 0x41ac11
and dword [edi], 0
mov edx, 0x400000
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
cmp esi, edx
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x41ac18
test ecx, ecx
je 0x41ac11
mov ecx, dword [ebp - 8]
mov edx, 0x400000
test esi, esi
jne 0x41abd9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ac13

Function at 0x41b1b2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x41b224
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x41b1c1
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x41b1c1
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret