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

Disassembly:
push 0x224
mov eax, 0x46293c
call fcn.00461432
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.0045a980
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 0x40f5cd
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 0x40f4b5
cmp esi, 2
je 0x40f5cd
push 0x264
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x224]
call fcn.0040c17a
xor edx, edx
mov ecx, 0x48b250
mov dword [ebp - 4], edx
mov edx, str.RegOpenKeyEx_fail_error_code:
push esi
call fcn.004102a0
mov ecx, eax
call fcn.00409fbf
lea ecx, [ebp - 0x224]
call fcn.0040c319
xor eax, eax
jmp 0x40f5d0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
lea esi, [edi + eax*2]
pop eax
cmp word [esi - 2], ax
je 0x40f534
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
jmp 0x40f534
xor eax, eax
mov ecx, 0x208
mov word [esi], ax
xor edx, edx
mov eax, edi
cmp word [eax], dx
je 0x40f4f0
add eax, 2
sub ecx, 1
jne 0x40f4e3
test ecx, ecx
je 0x40f523
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.0040d60f
mov ecx, dword [ebp - 0x224]
push edi
push ebx
call fcn.0040f3f9
test eax, eax
je 0x40f56d
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 0x40f4d5
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 0x40f5cd
push 0x298
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 2
lea ecx, [ebp - 0x228]
call fcn.0040c17a
push esi
mov edx, str.RegDeleteKey_fail_error_code
mov dword [ebp - 4], 1
mov ecx, 0x48b250
call fcn.004102a0
mov ecx, eax
call fcn.00409fbf
lea ecx, [ebp - 0x228]
jmp 0x40f4a9
xor eax, eax
inc eax
call fcn.004613ed
ret 8
Function at 0x40f5d8
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x804
mov eax, 0x462981
call fcn.00461432
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.0045a980
and dword [ebp - 0x7fc], 0
lea ecx, [ebp - 0x80c]
add esp, 0xc
mov dword [ebp - 0x808], 0x7ce
push 0x2a7
push str.C:zoomcodeEP_2017Client_srcinstallwindowsIncludePBXProtocolInstaller.cpp
push 0
call fcn.0040c17a
and dword [ebp - 4], 0
mov edx, str.Start_ResetProtoShellOpenCmd...
mov ecx, 0x48b250
call fcn.004102a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80c]
call fcn.0040c319
push esi
mov edx, str.SoftwareClasses_
lea ecx, [ebp - 0x7f8]
call fcn.004104e6
pop ecx
push 0
push edi
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.0040fd8c
lea ecx, [ebp - 0x7f8]
mov esi, eax
call fcn.0040a991
test esi, esi
je 0x40f796
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, 0x4764dc
test eax, eax
jne 0x40f712
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 0x40f712
cmp dword [ebp - 0x7fc], 1
jne 0x40f712
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x7e0]
push eax
call fcn.00410178
test eax, eax
jne 0x40f712
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 0x40f78f
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 0x40f78f
cmp dword [ebp - 0x7fc], 1
jne 0x40f78f
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x7e0]
push eax
call fcn.00410178
test eax, eax
jne 0x40f78f
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 0x40f7ab
push dword [ebp - 0x800]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x804], 0
je 0x40f7c0
push dword [ebp - 0x804]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004613ed
ret 0x10
Function at 0x40fe5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e0
mov eax, dword [0x489870]
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 0x40ff49
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 0x40fec6
cmp dword [eax + 0x14], 8
jb 0x40fea7
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 0x40ff49
mov edi, dword [ebp - 0x7d8]
push 0x7d0
lea eax, [ebp - 0x7d4]
mov dword [ebp - 0x7dc], ebx
push ebx
push eax
call fcn.0045a980
add esp, 0xc
mov dword [ebp - 0x7e0], 0x7ce
cmp dword [esi + 0x14], 8
jb 0x40fef3
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 0x40ff27
push dword [ebp - 0x7d8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ff49
cmp dword [ebp - 0x7dc], 1
jne 0x40ff49
lea eax, [ebp - 0x7d4]
push eax
call fcn.00439835
pop ecx
test eax, eax
je 0x40ff49
xor eax, eax
jmp 0x40ff4c
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455de6
leave
ret 0x14

Function at 0x410a13
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 0x476cf8
push SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410acd
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x476d2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410ab1
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 0x476d34
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x410ab1
cmp dword [ebp - 0xc], 1
je 0x410a91
cmp dword [ebp - 0xc], 2
jne 0x410ab1
cmp dword [ebp - 4], esi
je 0x410a9f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x410aad
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x410acf
cmp dword [ebp - 4], esi
je 0x410abf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x410acd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
leave
ret 0x10
Function at 0x410ad5
Capabilities:
Create directory
Print debug messages

Disassembly:
push 0x14
mov eax, 0x462c12
call fcn.004613fe
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [esi], ebx
je 0x410bc7
cmp dword [edi], ebx
jne 0x410b12
push 0x24
call fcn.0045601e
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00402215
mov dword [edi], eax
test eax, eax
je 0x410bc7
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 0x410b6a
push ecx
push dword [esi + 4]
push dword [esi]
push ecx
call fcn.00410a13
test al, al
je 0x410b6a
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push eax
push 0x475173
push dword [esi]
call fcn.004026f8
test eax, eax
je 0x410b6a
mov edi, dword [ebp - 0x20]
cmp edi, dword [ebp - 0x1c]
je 0x410b67
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 0x410ba1
mov edi, dword [ebp - 0x10]
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push eax
call fcn.00402acc
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x410ba3
cmp edi, dword [ebp - 0x1c]
je 0x410ba3
lea eax, [edi + 8]
push eax
push dword [esi + 4]
push dword [esi]
call fcn.00439d3a
add esp, 0xc
cmp byte [esi + 8], 0
je 0x410ba1
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov bl, 1
test edi, edi
je 0x410bc3
mov eax, dword [ebp - 0x18]
mov ecx, pe_nt_image_headers32
sub eax, edi
cdq
idiv ecx
imul ecx, eax, 0x110
push ecx
push edi
call fcn.004031ab
pop ecx
pop ecx
mov al, bl
jmp 0x410bc9
xor al, al
call fcn.004613d8
ret 8
Function at 0x411261
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x489870]
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.0045a980
add esp, 0xc
lea eax, [ebp - 0x110]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4112d7
push str.winsxsx86_microsoft.vc90.crt_
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.00439e2b
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 0x4112d7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
jmp 0x4112d9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00455de6
leave
ret

Function at 0x411380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x489870]
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.0045a980
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 0x4113de
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4113fc
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x411400
sub eax, 1
je 0x411400
sub eax, 1
jne 0x4113fc
cmp dword [ebp - 0x11c], 6
jb 0x411400
xor al, al
jmp 0x411402
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00455de6
leave
ret 4

Function at 0x4119c0
Capabilities:
Get common file path

Disassembly:
test ecx, ecx
je 0x4119d9
push 1
push 2
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4119d9
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x4156ca
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 0x415dfd
Capabilities:
Create directory

Disassembly:
push 4
mov eax, 0x46351e
call fcn.004613fe
xor esi, esi
lea ecx, [ebp + 8]
push esi
mov dword [ebp - 4], esi
call fcn.0041e9b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415e69
push 0xa3
push str.C:zoomcodeEP_2017Client_srcinstallwindowsNoMSIInstaller7zPackageHepler.cpp
push 2
lea ecx, [ebp - 0x10]
call fcn.0040c17a
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0041e9b0
mov edx, str.C7zWrap::CreateDir____create_directory_failed__directory_is:
mov ecx, 0x48b250
mov esi, eax
call fcn.0040b4dd
mov edx, esi
mov ecx, eax
call fcn.0040b4dd
lea ecx, [ebp - 0x10]
call fcn.0040c319
mov esi, 0x2778
lea ecx, [ebp + 8]
call fcn.0041e913
mov eax, esi
call fcn.004613d8
ret 0x108
Function at 0x415f4d
Capabilities:
Set file attributes

Disassembly:
push 0x10
mov eax, 0x463592
call fcn.004613fe
mov esi, ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
xor edi, edi
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.0041e9b0
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0041983b
test eax, eax
je 0x415fc8
push 0xc2
push str.C:zoomcodeEP_2017Client_srcinstallwindowsNoMSIInstaller7zPackageHepler.cpp
push 2
lea ecx, [ebp - 0x10]
call fcn.0040c17a
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041e9b0
mov edx, str.C7zWrap::OutFile____open_dest_file_failed__filename_is:
mov ecx, 0x48b250
mov esi, eax
call fcn.0040b4dd
mov edx, esi
mov ecx, eax
call fcn.0040b4dd
lea ecx, [ebp - 0x10]
call fcn.0040c319
mov edi, 0x2779
jmp 0x4160f5
mov eax, dword [esi + 0x2e4]
lea ecx, [ebp - 0x18]
mov edx, dword [esi + 0x2e8]
add edx, dword [esi + 0x2d8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.004198cb
pop ecx
test eax, eax
jne 0x4160ae
mov eax, dword [ebp - 0x14]
cmp eax, dword [esi + 0x2e4]
jne 0x4160ae
lea ecx, [ebp - 0x18]
call fcn.00419844
test eax, eax
je 0x416059
push 0xcd
push str.C:zoomcodeEP_2017Client_srcinstallwindowsNoMSIInstaller7zPackageHepler.cpp
push 2
lea ecx, [ebp - 0x10]
call fcn.0040c17a
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.0041e9b0
mov edx, str.C7zWrap::OutFile____close_dest_file_failed__filename_is:
mov ecx, 0x48b250
mov esi, eax
call fcn.0040b4dd
mov edx, esi
mov ecx, eax
call fcn.0040b4dd
lea ecx, [ebp - 0x10]
call fcn.0040c319
mov edi, 0x277b
jmp 0x4160f5
mov ebx, dword [esi + 0x29c]
test ebx, ebx
je 0x4160f5
mov eax, dword [ebp - 0x10]
mov edx, 0x80
mov ecx, eax
shr eax, 3
and ecx, 7
sar edx, cl
test byte [eax + ebx], dl
je 0x4160f5
mov eax, dword [esi + 0x2a0]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4]
mov ecx, edx
and ecx, 0x7fff
mov eax, edx
and eax, 0xf0000000
cmove ecx, edx
push ecx
lea ecx, [ebp + 0xc]
call fcn.0041e9b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x4160f5
push 0xc8
push str.C:zoomcodeEP_2017Client_srcinstallwindowsNoMSIInstaller7zPackageHepler.cpp
push 2
lea ecx, [ebp - 0x10]
call fcn.0040c17a
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0041e9b0
mov edx, str.C7zWrap::OutFile____write_dest_file_failed__filename_is:
mov ecx, 0x48b250
mov esi, eax
call fcn.0040b4dd
mov edx, esi
mov ecx, eax
call fcn.0040b4dd
lea ecx, [ebp - 0x10]
call fcn.0040c319
mov edi, 0x277a
lea ecx, [ebp + 0xc]
call fcn.0041e913
mov eax, edi
call fcn.004613d8
ret 0x10c

Function at 0x418a48
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x418a50
mov dword [ecx*4 + 0x48c5e0], edx
inc ecx
cmp ecx, 0x100
jb 0x418a4b
mov edx, 0x400
mov ecx, dword [edx + 0x48c1e0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x48c5e0]
mov dword [edx + 0x48c5e0], ecx
add edx, 4
cmp edx, 0x2000
jb 0x418a7a
mov dword [0x48c5cc], 0x418ad0
call fcn.0041a2b8
mov ecx, dword [0x48c5cc]
test eax, eax
mov edx, 0x418b70
cmove ecx, edx
mov dword [0x48c5cc], ecx
pop esi
ret
Function at 0x419866
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 0x4198bc
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 0x4198c3
test ecx, ecx
je 0x4198bc
mov ecx, dword [ebp - 8]
mov edx, 0x400000
test esi, esi
jne 0x419884
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4198be

Function at 0x4198cb
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 0x419921
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 0x419928
test ecx, ecx
je 0x419921
mov ecx, dword [ebp - 8]
mov edx, 0x400000
test esi, esi
jne 0x4198e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419923

Function at 0x419ec2
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 0x419f34
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x419ed1
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 0x419ed1
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x419fe3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41a005
xor eax, eax
jmp 0x41a103
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x41a025
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41a022
inc edi
cmp edi, edx
jb 0x41a015
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x41a0f1
cmp ecx, 2
jbe 0x41a0b0
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x41a0e0
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41a090
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x41a08e
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x41a0e6
shr esi, cl
test esi, esi
je 0x41a03e
cmp esi, 4
ja 0x41a0d5
cmp esi, 3
je 0x41a0d5
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x41a03e
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x41a00e
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x41a00e
xor eax, eax
shr esi, cl
cmp ecx, 2
pop edi
cmova esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop esi
pop ebx
leave
ret

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

Disassembly:
push 8
mov eax, 0x4635fe
call fcn.004613fe
mov ebx, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ce03
test al, 0x10
jbe 0x41ce03
xor eax, eax
jmp 0x41ce7b
push ebx
lea ecx, [ebp - 0x14]
call fcn.0041c968
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
push edi
call fcn.00439835
pop ecx
push 0x5c
pop edx
cmp eax, 1
jle 0x41ce30
cmp word [edi + eax*2 - 2], dx
jne 0x41ce30
xor ecx, ecx
mov word [edi + eax*2 - 2], cx
push edx
push edi
call fcn.0045bd83
pop ecx
pop ecx
test eax, eax
jne 0x41ce42
push 0xf
pop esi
jmp 0x41ce72
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.0041cde1
mov esi, eax
test esi, esi
jne 0x41ce72
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41ce70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x41ce72
xor esi, esi
push edi
call fcn.0041d7e0
pop ecx
mov eax, esi
call fcn.004613d8
ret
Function at 0x41d1fb
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0xac], eax
je 0x41d22c
xor esi, esi
mov dword [edi + 0x88], 0x3f3
mov dword [edi + 0x8c], esi
xor eax, eax
mov dword [edi + 0x90], esi
jmp 0x41d37d
mov eax, dword [0x48b8e0]
push ebx
lea ebx, [edi + 0x70]
cmp eax, 0xffffffff
je 0x41d253
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d253
xor esi, esi
mov dword [ebx + 0x18], 0x3f4
mov dword [ebx + 0x1c], esi
jmp 0x41d26d
xor ecx, ecx
mov edx, edi
inc ecx
call fcn.0041d79b
test eax, eax
jne 0x41d275
xor esi, esi
mov dword [ebx + 0x1c], 0xe
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x20], esi
jmp 0x41d330
mov ecx, ebx
call fcn.0041cb57
xor esi, esi
cmp dword [edi + 0x94], esi
jne 0x41d330
cmp dword [edi + 0xb0], esi
jne 0x41d334
call fcn.0041cfcb
push str.FDICreate
push eax
mov dword [edi + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICopy
push dword [edi + 0xb0]
mov dword [edi + 0xb4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDIIsCabinet
push dword [edi + 0xb0]
mov dword [edi + 0xb8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDIDestroy
push dword [edi + 0xb0]
mov dword [edi + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0xc0], eax
cmp dword [edi + 0xb4], esi
je 0x41d314
cmp dword [edi + 0xb8], esi
je 0x41d314
cmp dword [edi + 0xbc], esi
je 0x41d314
test eax, eax
jne 0x41d334
mov dword [edi + 0xb0], esi
mov dword [edi + 0x88], 0x3e8
mov dword [edi + 0x8c], esi
mov dword [edi + 0x90], esi
xor eax, eax
jmp 0x41d37c
mov esi, dword [edi + 0xb4]
mov ecx, esi
push ebx
push 1
push 0x41d8f0
push fcn.0041d8c0
push 0x41d890
push 0x41d860
push 0x41d7f0
push fcn.0041d7e0
push fcn.0041d7d0
call dword [0x467454]
call esi
xor ecx, ecx
mov dword [edi + 0x94], eax
add esp, 0x24
test eax, eax
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret