joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407473
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x25c
mov eax, 0x45c9cd
call fcn.004412e0
xor ebx, ebx
push ebx
push 0xf
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x258]
push ecx
push eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 0x22c
call sub.KERNEL32.dll_Process32FirstW
cmp eax, ebx
je 0x4075be
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0xc], eax
mov dword [ebp - 0x268], eax
jbe 0x4074c7
call fcn.0043c274
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
jbe 0x4074d4
call fcn.0043c274
lea edi, [ebp + 8]
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x260], esi
cmp edi, ebx
je 0x4074ee
lea eax, [ebp + 8]
cmp edi, eax
je 0x4074f3
call fcn.0043c274
mov eax, dword [ebp - 0x260]
cmp eax, dword [ebp - 0x268]
je 0x4075a4
lea esi, [ebp - 0x264]
call fcn.00407a8a
lea esi, [ebp - 0x2c]
call fcn.0040346d
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x407528
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0043af95
test eax, eax
pop ecx
pop ecx
jne 0x407571
push 0x46b1e0
lea eax, [ebp - 0x2c]
call fcn.0040790e
test eax, eax
je 0x407571
push dword [ebp - 0x250]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x407571
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040380e
cmp edi, ebx
jne 0x407588
call fcn.0043c274
mov eax, dword [ebp - 0x260]
cmp eax, dword [edi + 8]
jb 0x407598
call fcn.0043c274
add dword [ebp - 0x260], 0x1c
jmp 0x4074e3
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4074b4
cmp dword [ebp - 0x25c], ebx
je 0x4075d2
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp + 8]
call fcn.00407c41
call fcn.00441363
ret

Function at 0x4075e0
Capabilities:
Delete directory
Delete file

Disassembly:
push 4
mov eax, 0x45d1c0
call fcn.00441277
mov dword [ebp - 4], 1
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x10]
call fcn.00406449
mov byte [ebp - 4], 2
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x407611
lea eax, [ebp + 0x10]
mov edi, dword [ebp + 8]
push eax
push edi
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.00403c8e
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407692
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x407692
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x40764c
lea eax, [ebp + 0x10]
push eax
push str.file_deleting_failed__s
call fcn.00409842
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UNINSTALL::_Deleting_failed_for_error_code__d
call fcn.00409842
pop ecx
pop ecx
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.00401109
lea ecx, [edi - 0x10]
call fcn.00401109
push 0
push 1
lea esi, [ebp + 0xc]
call fcn.0040380e
mov al, bl
call fcn.0044134f
ret
mov bl, 1
jmp 0x40766e
Function at 0x4085f2
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
push esi
mov esi, ecx
test esi, esi
mov ebx, eax
jne 0x408603
xor eax, eax
jmp 0x40872c
test ebx, ebx
jge 0x408624
push esi
call fcn.0043b5a0
pop ecx
mov ebx, eax
jmp 0x408622
movzx eax, byte [esi]
push eax
call fcn.0043c4ba
test eax, eax
pop ecx
je 0x408626
inc esi
dec ebx
test ebx, ebx
jg 0x408612
push edi
lea edi, [esi + ebx - 1]
jmp 0x40863d
movzx eax, byte [edi]
push eax
call fcn.0043c4ba
test eax, eax
pop ecx
je 0x408641
dec edi
dec ebx
cmp edi, esi
jae 0x40862d
mov eax, ebx
and eax, 0x80000003
jns 0x40864f
dec eax
or eax, 0xfffffffc
inc eax
jne 0x40872f
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, eax, 3
inc eax
cmp eax, dword [esp + 0x14]
jg 0x40872f
test ebx, ebx
mov edi, dword [esp + 0x10]
jle 0x408725
or eax, 0xffffffff
mov cl, byte [esi]
sub ebx, 4
cmp cl, 0x80
jae 0x40872b
movzx ecx, cl
movsx ecx, byte [ecx + 0x469f20]
inc esi
cmp ecx, eax
je 0x40872b
mov dl, byte [esi]
cmp dl, 0x80
jae 0x40872b
movzx edx, dl
movsx edx, byte [edx + 0x469f20]
inc esi
cmp edx, eax
je 0x40872b
mov eax, edx
sar eax, 4
shl cl, 2
and al, 3
or al, cl
mov byte [edi], al
mov cl, byte [esi]
inc edi
cmp cl, 0x3d
jne 0x4086d3
cmp byte [esi + 1], cl
je 0x408725
cmp cl, 0x80
jae 0x40872f
movzx eax, cl
movsx ecx, byte [eax + 0x469f20]
inc esi
cmp ecx, 0xffffffff
je 0x40872f
mov eax, ecx
sar eax, 2
shl dl, 4
and al, 0xf
or al, dl
mov byte [edi], al
mov dl, byte [esi]
inc edi
cmp dl, 0x3d
je 0x408725
cmp dl, 0x80
jae 0x40872f
movzx eax, dl
movsx edx, byte [eax + 0x469f20]
or eax, 0xffffffff
inc esi
cmp edx, eax
je 0x40872f
shl cl, 6
or cl, dl
mov byte [edi], cl
inc edi
test ebx, ebx
jg 0x40867d
mov eax, edi
sub eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret
or eax, 0xffffffff
jmp 0x40872b
Function at 0x408734
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, ecx
test esi, esi
mov ecx, dword [esp + 8]
push edi
mov edi, eax
jne 0x408749
xor eax, eax
jmp 0x408800
push ebx
lea eax, [edi + 2]
cdq
push 3
pop ebx
idiv ebx
lea eax, [eax*4 + 1]
cmp dword [esp + 0x14], eax
jge 0x4087cf
or eax, 0xffffffff
jmp 0x4087ff
mov al, byte [esi]
movzx edx, al
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
and al, 3
dec edi
mov byte [ecx], dl
shl al, 4
inc ecx
test edi, edi
mov dl, al
jle 0x4087d5
mov al, byte [esi]
movzx ebx, al
movzx edx, dl
shr ebx, 4
or ebx, edx
mov dl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
and al, 0xf
dec edi
mov byte [ecx], dl
shl al, 2
inc ecx
test edi, edi
mov dl, al
jle 0x4087e6
mov al, byte [esi]
movzx eax, al
mov ebx, eax
movzx edx, dl
shr ebx, 6
or ebx, edx
mov dl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx], dl
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
dec edi
inc ecx
mov byte [ecx], al
inc ecx
test edi, edi
jg 0x408768
jmp 0x4087f6
movzx eax, dl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
jmp 0x4087f1
movzx eax, dl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, ecx
sub eax, dword [esp + 0x10]
mov byte [ecx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x408ae1
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x10
mov eax, 0x45cf3e
call fcn.00441277
lea eax, [ebp - 0x10]
push 0x1c
push eax
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x18]
call fcn.00416aea
pop ecx
pop ecx
xor esi, esi
push str.VirtualStoreProgramData_
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00403855
push str.ZohoMeeting
lea ecx, [ebp - 0x10]
call fcn.00403855
push str.log_
lea ecx, [ebp - 0x10]
call fcn.00403855
mov eax, dword [0x48946c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00403a90
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, esi
jne 0x408b5d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, esi
call fcn.0044134f
ret
push 0x489464
lea ecx, [ebp - 0x14]
call fcn.0040359e
mov byte [ebp - 4], 1
mov eax, dword [0x48946c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
call fcn.00403a90
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.0040359e
push ecx
mov dword [ebp - 0x1c], esp
mov ecx, esp
push 0x48946c
mov byte [ebp - 4], 2
call fcn.0040359e
mov byte [ebp - 4], 1
call fcn.00416b52
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401109
xor esi, esi
inc esi
jmp 0x408b4a
Function at 0x4095cc
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45cf0b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4849a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
push 0x467314
lea ecx, [esp + 0x14]
call fcn.00403310
xor esi, esi
push edi
mov dword [esp + 0x3c], esi
call fcn.00417365
test al, al
pop ecx
je 0x40963c
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0043aad2
cmp eax, esi
pop ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
jle 0x4097d1
lea esi, [ebx - 4]
add ebx, 0xfffffff8
push 4
mov dword [esp + 0x1c], ebx
pop ebx
test edi, edi
je 0x4097d1
movzx eax, word [edi]
cmp ax, 0x25
je 0x40968c
movzx eax, ax
push eax
push 0x46b4b4
lea eax, [esp + 0x18]
push eax
call fcn.00403c8e
add esp, 0xc
jmp 0x4097b0
lea eax, [edi + 2]
movzx ecx, word [eax]
sub ecx, 0x63
je 0x409789
dec ecx
je 0x409771
dec ecx
dec ecx
je 0x409757
sub ecx, 6
je 0x409734
sub ecx, 7
je 0x409703
dec ecx
dec ecx
je 0x4096eb
sub ecx, 3
je 0x4096d6
push 0x25
call fcn.0043d3d0
movzx eax, word [edi]
push eax
push 0x46b4b4
jmp 0x4097a3
inc dword [esp + 0x14]
add dword [esp + 0x18], ebx
add esi, ebx
push dword [esi]
mov edi, eax
push 0x46b924
jmp 0x40967a
inc dword [esp + 0x14]
add dword [esp + 0x18], ebx
add esi, ebx
push dword [esi]
mov edi, eax
push 0x46b914
jmp 0x40967a
inc dword [esp + 0x14]
add dword [esp + 0x18], ebx
mov edi, eax
add esi, ebx
mov eax, dword [esi]
push 2
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
test eax, eax
jne 0x4097bd
push dword [esp + 0x1c]
push 0x46b8bc
jmp 0x40967a
inc dword [esp + 0x14]
mov edi, eax
lea eax, [edi + 2]
cmp word [eax], 0x64
jne 0x4097bd
add dword [esp + 0x18], ebx
add esi, ebx
push dword [esi]
mov edi, eax
push 0x46b92c
jmp 0x40967a
add dword [esp + 0x18], 8
inc dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
fld qword [eax]
add esi, 8
fstp qword [esp + 0x24]
jmp 0x409795
inc dword [esp + 0x14]
add dword [esp + 0x18], ebx
add esi, ebx
push dword [esi]
mov edi, eax
push 0x468594
jmp 0x40967a
inc dword [esp + 0x14]
add dword [esp + 0x18], ebx
mov edi, eax
add esi, ebx
fld qword [esp + 0x24]
push ecx
push ecx
fstp qword [esp]
push 0x46b91c
lea eax, [esp + 0x1c]
push eax
call fcn.00403c8e
add esp, 0x10
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.00403609
inc edi
inc edi
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
jl 0x409660
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax - 0xc]
jmp 0x40961b
Function at 0x40b781
Capabilities:
Get session user name

Disassembly:
push ebp
sub esp, 0x190
lea ebp, [esp - 4]
mov eax, dword [0x4849a0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0xc
mov eax, 0x45ceb8
call fcn.00441277
xor esi, esi
push 0x18e
mov dword [ebp - 4], esi
lea eax, [ebp + 2]
push esi
mov dword [ebp - 0x14], esi
push eax
mov dword [ebp - 0x18], edi
mov word [ebp], si
call fcn.0043d8e0
add esp, 0xc
push 0x467314
mov ecx, edi
call fcn.00403310
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.00403855
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0043a2d7
add ebp, 0x194
leave
ret

Function at 0x40b821
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x78
mov eax, 0x45ce77
call fcn.004412e0
xor esi, esi
mov dword [ebp - 4], esi
push str.IE_Version:
mov ecx, edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], esi
call fcn.00403310
xor eax, eax
lea ecx, [ebp - 0x78]
push ecx
inc eax
push eax
push esi
push str.SoftwareMicrosoftInternet_Explorer
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b8a0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push str.Version
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b897
lea eax, [ebp - 0x74]
push eax
push edi
call fcn.004033ec
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00441363
ret
Function at 0x40c734
Capabilities:
Create http request

Disassembly:
push 0x34
mov eax, 0x45db3b
call fcn.00441277
xor esi, esi
push esi
push esi
push esi
push esi
push dword [0x489474]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, esi
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], eax
jne 0x40c779
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Internet_Open_error_:__d
call fcn.00409842
pop ecx
pop ecx
xor eax, eax
jmp 0x40c923
xor edi, edi
push 2
inc edi
cmp dword [ebp + 0xc], 0xffffffff
mov ebx, 0x1f4
pop esi
jne 0x40c805
push str.Connection_type_is_proxy
call fcn.00409842
pop ecx
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x10]
call fcn.00406449
and dword [ebp - 4], 0
push dword [0x489484]
mov ecx, 0x489480
call fcn.00403453
push eax
lea eax, [ebp - 0x10]
push str._s:_d
push eax
call fcn.00403c8e
push ebx
call fcn.0041e84a
add esp, 0x14
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004036cd
push eax
push dword [ebp - 0x14]
call fcn.0043b05d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
call fcn.00401109
cmp dword [ebp + 0xc], edi
jne 0x40c82a
push 0
mov ecx, 0x4894bc
mov dword [ebp - 0x40], 4
call fcn.004036cd
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 4
cmp dword [ebp + 0xc], 3
jne 0x40c8a4
push str.Connection_type_is_proxy
call fcn.00409842
pop ecx
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x10]
call fcn.00406449
mov dword [ebp - 4], edi
push dword [0x4894b0]
mov ecx, 0x4894a8
call fcn.00403453
push eax
lea eax, [ebp - 0x10]
push str._s:_d
push eax
call fcn.00403c8e
push ebx
call fcn.0041e84a
add esp, 0x14
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004036cd
push eax
push ebx
call fcn.0043b05d
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], esi
call fcn.00401109
xor ebx, ebx
cmp dword [ebp + 0xc], edi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
je 0x40c8c7
cmp dword [ebp + 0xc], 3
jne 0x40c91a
push str.Setting_IE_option
call fcn.00409842
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
pop ecx
push 0x14
lea eax, [ebp - 0x28]
push eax
push 0x4b
push dword [edi + 0xa0]
call esi
test eax, eax
jne 0x40c902
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_Option_Failed_:__d
call fcn.00409842
pop ecx
pop ecx
push ebx
push ebx
push 0x27
push dword [edi + 0xa0]
call esi
push ebx
push ebx
push 0x25
push dword [edi + 0xa0]
call esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xa0]
call fcn.0044134f
ret 8
Function at 0x40f312
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.Stoping_services
mov byte [edi + 0x32c], 1
call fcn.00409842
mov ecx, esp
mov dword [ebp - 4], esp
push str.Zoho_Assist_Remote_Support
call fcn.00403310
push 0x86
call fcn.00417ac5
push str.Closing_tray_exe
call fcn.00409842
add esp, 0xc
push 0x1f5
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push str.Zoho_Assist
mov esi, 0x467314
call fcn.00403310
call fcn.00417f90
pop ecx
pop ecx
xor eax, eax
push eax
push eax
push edi
push 0x40ffea
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
leave
ret

Function at 0x410b99
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f1e4
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4849a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0041cd0c
xor esi, esi
mov dword [esp + 0x38], esi
call fcn.0041cd3c
lea eax, [esp + 0x10]
push eax
call fcn.004187ed
mov byte [esp + 0x38], 1
cmp dword [0x489350], 1
jl 0x410c1d
push ecx
mov eax, esp
mov dword [esp + 0x10], esp
push eax
call fcn.0041d613
call fcn.00404ef1
cmp eax, 2
jne 0x410c1d
push ecx
mov eax, esp
mov dword [esp + 0x10], esp
push eax
call fcn.0041d613
lea ecx, [esp + 0x14]
call fcn.0041864f
push esi
push esi
push dword [ebp + 8]
push 0x410413
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea esi, [esp + 0x10]
call fcn.00406136
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x410c57
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x45f1b9
call fcn.00441277
lea eax, [ebp - 0x10]
push eax
call fcn.0041cd0c
xor esi, esi
mov dword [ebp - 4], esi
call fcn.0041cd3c
cmp dword [0x489350], 1
jl 0x410c93
push esi
push esi
push dword [ebp + 8]
push 0x410413
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x410ca6
push str.failed_to_update_URS:__URS_count_is_less_than_zero.
call fcn.004098d8
pop ecx
push dword [ebp + 8]
call fcn.004101bd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401109
call fcn.0044134f
ret 4
Function at 0x414a9b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x414aa6
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x414b58
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
sub eax, 8
dec edi
jne 0x414abd
pop edi
test eax, eax
je 0x414b71
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x469aa8]
inc ecx
dec eax
jne 0x414b5c
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x414b78
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x469aa8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x469aa8]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x415274
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4152a4
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41529f
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4152cc
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4152b5
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0043daf0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x415ede
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x415f57
cmp dword [esi + 4], 0xffffffff
jne 0x415f57
lea edi, [esi + 0x240]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.0043aad2
movzx eax, word [esi + eax*2 + 0x23e]
cmp ax, 0x5c
pop ecx
je 0x415f27
cmp ax, 0x2f
je 0x415f27
push 0x46a764
push edi
call fcn.0043b033
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0041516a
test eax, eax
pop ecx
pop ecx
jne 0x415f3e
mov eax, dword [ebp + 8]
jmp 0x415f5c
push eax
call fcn.004154e4
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x415f5c
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x4163cd
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4849a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test cx, cx
push ebx
mov ebx, dword [ebp + 8]
je 0x416478
push esi
push edi
mov edi, eax
mov edx, eax
movzx ecx, cx
cmp cx, 0x2f
je 0x416408
cmp cx, 0x5c
jne 0x41640a
mov edi, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x4163fc
cmp edi, eax
mov esi, edi
je 0x41644a
sub esi, eax
sar esi, 1
add esi, esi
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0043daf0
and word [ebp + esi - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004163cd
add esp, 0x14
lea esi, [edi + 2]
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0043b05d
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0043b033
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043a2d7
leave
ret