joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f990
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x49f9d3
cmp eax, 0x40
je 0x49f9c5
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x49fa18
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x49ff3a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b48e8
push 0x49ff34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4c935c], 0xffffffff
or dword [0x4c9360], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4c5310]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4c530c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4c9358], eax
call fcn.004a007d
cmp dword [0x4c2650], 0
jne 0x49ffbd
push 0x4a007a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004a0068
push 0x4c20dc
push 0x4c20d8
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4c5308]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4c5304]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x4c20d4
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0043c27c
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4a0090
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4a00c1
call fcn.004a0320
test eax, eax
je 0x4a00c1
mov edx, 1
lea ecx, [esp]
call fcn.004a0300
mov eax, dword [esp + 8]
shr eax, 0x19
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 0x19
and eax, 1
add esp, 0x10
ret

Function at 0x4a0110
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push 0x11
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4a0162
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4a0162
call fcn.004a0320
test eax, eax
je 0x4a0162
mov edx, 1
lea ecx, [esp]
call fcn.004a0300
mov eax, dword [esp + 8]
and eax, 0x18000000
cmp eax, 0x18000000
jne 0x4a0162
xor ecx, ecx
xgetbv
and eax, 6
cmp al, 6
sete cl
mov eax, ecx
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x4a01c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4a01f2
call fcn.004a0320
cmp eax, 7
jb 0x4a01f2
mov edx, 7
lea ecx, [esp]
call fcn.004a0300
mov eax, dword [esp + 4]
shr eax, 0x1d
and eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x4a0200
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4a0231
call fcn.004a0320
test eax, eax
je 0x4a0231
mov edx, 1
lea ecx, [esp]
call fcn.004a0300
mov eax, dword [esp + 0xc]
shr eax, 0x1a
and eax, 1
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x4a0240
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4a0271
call fcn.004a0320
test eax, eax
je 0x4a0271
mov edx, 1
lea ecx, [esp]
call fcn.004a0300
mov eax, dword [esp + 8]
shr eax, 0x13
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 0x13
and eax, 1
add esp, 0x10
ret

Function at 0x4a0280
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x4a02b1
call fcn.004a0320
test eax, eax
je 0x4a02b1
mov edx, 1
lea ecx, [esp]
call fcn.004a0300
mov eax, dword [esp + 8]
shr eax, 9
and eax, 1
add esp, 0x10
ret
xor eax, eax
shr eax, 9
and eax, 1
add esp, 0x10
ret
Function at 0x4a0900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x38], edx
mov ebp, ecx
lea ecx, [ecx]
mov edi, dword [ebp + 0x10]
cmp edi, 3
jae 0x4a0924
mov ecx, ebp
call fcn.004a29a0
jmp 0x4a0aa8
mov ecx, dword [ebp]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
xor edx, dword [ebp + eax*4 + 0x60]
mov eax, dword [ebp + 0x24]
movzx ecx, dx
mov ebx, dword [eax + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 4]
mov dword [ecx], eax
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edx
lea edx, [edx + eax*8]
mov eax, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
lea esi, [edx + 4]
sub eax, ecx
mov dword [esp + 0x18], esi
cmp ecx, dword [esp + 0x20]
sbb ecx, ecx
and ecx, eax
mov dword [esp + 0x34], ecx
cmp ecx, ebx
mov ecx, dword [esp + 0x10]
jae 0x4a0a83
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
sub esi, ebx
cmp dword [esp + 0x3c], esi
sbb eax, eax
and eax, dword [esp + 0x24]
sub eax, esi
neg esi
add eax, dword [esp + 0x3c]
add ecx, esi
mov dword [esp + 0x44], ecx
lea edx, [edx + eax*8]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
cmp eax, edx
jb 0x4a09eb
mov eax, edx
mov edx, dword [esp + 0x10]
mov cl, byte [eax + ecx]
cmp cl, byte [eax + edx]
mov edx, dword [esp + 0x1c]
jne 0x4a0a2e
inc eax
cmp eax, edi
je 0x4a0a17
mov edx, dword [esp + 0x10]
add edx, eax
mov cl, byte [edx + esi]
cmp cl, byte [edx]
jne 0x4a0a2a
inc eax
inc edx
cmp eax, edi
jne 0x4a0a06
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 4]
mov dword [ecx], eax
jmp 0x4a0a8f
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
mov cl, byte [eax + ecx]
cmp cl, byte [eax + esi]
jae 0x4a0a57
mov ecx, dword [esp + 0x14]
add edx, 4
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], eax
mov dword [ecx], ebx
mov ebx, dword [edx]
jmp 0x4a0a6d
mov ecx, dword [esp + 0x18]
mov esi, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
mov dword [ecx], ebx
mov ebx, dword [edx]
mov edx, dword [esp + 0x14]
sub dword [esp + 0x30], 1
je 0x4a0a83
cmp dword [esp + 0x34], ebx
jae 0x4a0a83
mov ecx, dword [esp + 0x10]
jmp 0x4a09b4
mov dword [edx], 0
mov dword [esi], 0
mov eax, dword [ebp + 4]
inc dword [ebp + 0x14]
inc eax
inc dword [ebp]
mov dword [ebp + 4], eax
cmp eax, dword [ebp + 8]
jne 0x4a0aa8
mov ecx, ebp
call fcn.004a2260
sub dword [esp + 0x38], 1
jne 0x4a0910
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x4a17b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
push ebx
mov ebx, ecx
push edi
mov edi, edx
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
cmp eax, 3
jae 0x4a17d2
call fcn.004a29a0
mov eax, edi
pop edi
pop ebx
add esp, 0x28
ret
mov ecx, dword [ebx]
push ebp
push esi
mov dword [esp + 0x10], 2
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
xor edx, dword [ebx + eax*4 + 0x60]
mov eax, dword [ebx + 0x24]
movzx ecx, dx
mov ebp, dword [eax + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx]
mov esi, dword [ebx + 0x18]
mov edx, dword [ebx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov dword [ecx + eax*4], ebp
mov ecx, dword [esp + 0x14]
test ebp, ebp
je 0x4a18e6
sub edx, ebp
cmp edx, esi
jae 0x4a18e6
cmp eax, edx
sbb eax, eax
and eax, esi
mov esi, dword [esp + 0x1c]
sub eax, edx
add eax, dword [esp + 0x18]
mov eax, dword [esi + eax*4]
mov esi, edx
mov dword [esp + 0x2c], eax
neg esi
mov eax, dword [esp + 0x10]
lea ebp, [esi + ecx]
mov al, byte [ecx + eax]
mov ecx, dword [esp + 0x10]
cmp al, byte [ecx + ebp]
mov ecx, dword [esp + 0x14]
jne 0x4a18bb
mov eax, ecx
mov cl, byte [ecx]
cmp cl, byte [ebp]
jne 0x4a18a0
inc eax
cmp eax, dword [esp + 0x28]
je 0x4a18d7
mov cl, byte [eax]
cmp cl, byte [eax + esi]
je 0x4a1892
mov ecx, dword [esp + 0x14]
sub eax, ecx
cmp dword [esp + 0x10], eax
jae 0x4a18bb
mov dword [edi], eax
mov dword [esp + 0x10], eax
lea eax, [edx - 1]
mov dword [edi + 4], eax
add edi, 8
sub dword [esp + 0x20], 1
je 0x4a18e6
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
jmp 0x4a1845
mov eax, dword [esp + 0x24]
mov dword [edi], eax
lea eax, [edx - 1]
mov dword [edi + 4], eax
add edi, 8
mov ecx, dword [ebx + 4]
inc dword [ebx + 0x14]
inc ecx
inc dword [ebx]
pop esi
mov dword [ebx + 4], ecx
pop ebp
cmp ecx, dword [ebx + 8]
jne 0x4a1900
mov ecx, ebx
call fcn.004a2260
mov eax, edi
pop edi
pop ebx
add esp, 0x28
ret
Function at 0x4a1910
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [esp + 0x14], esi
nop
cmp dword [esi + 0x10], 3
jae 0x4a1930
mov ecx, esi
call fcn.004a29a0
dec ebx
jmp 0x4a19ae
mov eax, dword [esi + 8]
mov ebp, ebx
mov edi, dword [esi + 4]
sub eax, edi
cmp ebx, eax
jbe 0x4a1940
mov ebp, eax
mov ecx, dword [esi + 0x14]
sub ebx, ebp
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], ebx
lea ebx, [eax + ecx*4]
lea eax, [ecx + ebp]
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], ecx
mov edi, edi
movzx ecx, byte [eax + 2]
lea edx, [eax + 1]
movzx eax, byte [eax]
lea ebx, [ebx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx]
xor ecx, dword [esi + eax*4 + 0x60]
mov esi, dword [esp + 0x10]
movzx eax, cx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + eax*4]
mov dword [esi + eax*4], edi
inc edi
mov esi, dword [esp + 0x14]
mov eax, edx
mov dword [ebx - 4], ecx
sub ebp, 1
jne 0x4a1960
mov ebx, dword [esp + 0x18]
mov dword [esi], eax
mov dword [esi + 4], edi
cmp edi, dword [esi + 8]
jne 0x4a19ae
mov ecx, esi
call fcn.004a2260
test ebx, ebx
jne 0x4a1920
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

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

Disassembly:
push esi
mov dword [ecx], 0
lea esi, [ecx + 0x60]
mov dword [ecx + 0x34], 0
xor edx, edx
mov word [ecx + 0x1e], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x468], 0xffffffff
mov dword [ecx + 0x46c], 0xffffffff
mov dword [ecx + 0x30], 0x20
mov byte [ecx + 0x1d], 1
mov dword [ecx + 0x48], 4
mov word [ecx + 0x58], 2
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x4a2353
pop esi
ret
Function at 0x4011b0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
push esi
push str.Kernel32.dll
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x401212
push str.GetNativeSystemInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401207
lea ecx, [esp + 8]
push ecx
call eax
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x40121d
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp + 8]
pop esi
pop ebx
test eax, eax
je 0x401248
cmp eax, 6
je 0x40123f
xor ecx, ecx
cmp eax, 9
setne cl
dec ecx
and ecx, 4
mov eax, ecx
add esp, 0x24
ret
mov eax, 2
add esp, 0x24
ret
mov eax, 8
add esp, 0x24
ret

Function at 0x401260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftNET_Framework_SetupNDP_v2.0.50727
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4012e1
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push str.Install
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4012cb
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
cmp dword [esp + 8], eax
je 0x4012e3
mov al, bl
pop ebx
add esp, 0x10
ret
Function at 0x401370
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x38
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push edi
push str.kernel32.dll
mov dword [esp + 0x10], 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetUserDefaultUILanguage
push esi
call edi
test eax, eax
je 0x4013d1
call eax
movzx eax, ax
mov dword [esp + 0xc], eax
movzx eax, ax
call fcn.004012f0
push str.GetSystemDefaultUILanguage
push esi
call edi
call eax
movzx eax, ax
mov dword [esp + 0xc], eax
jmp 0x4014a9
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x401478
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4014b1
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x2c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40146b
cmp dword [esp + 0x1c], 1
jne 0x40146b
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push 0x54667c
push eax
call fcn.004f55c1
add esp, 0xc
cmp eax, 1
jne 0x40146b
mov eax, dword [esp + 0x18]
movzx ecx, ax
movzx eax, ax
mov dword [esp + 0xc], ecx
call fcn.004012f0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4014b1
push str.ntdll.dll
call ebx
test eax, eax
je 0x4014b1
lea ecx, [esp + 0xc]
push ecx
push 0x401510
push 1
push 0x10
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov eax, dword [esp + 0xc]
test ax, ax
je 0x4014b1
movzx eax, ax
call fcn.004012f0
mov eax, dword [0x56b848]
cmp eax, 0xa
pop edi
pop esi
pop ebx
jge 0x4014e4
mov dword [eax*4 + 0x56b820], 0x800
inc eax
mov dword [0x56b848], eax
mov ax, word [0x56b820]
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004f53ca
add esp, 0x38
ret
mov ecx, dword [esp + 0x34]
mov ax, word [0x56b820]
xor ecx, esp
mov dword [0x56b844], 0x800
mov dword [0x56b848], 0xa
call fcn.004f53ca
add esp, 0x38
ret

Function at 0x4015e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4015f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401634
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401630
lea ebx, [ebx]
cmp esi, eax
jae 0x401634
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401620
cmp esi, eax
jb 0x40163a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
push 0x56b618
push 0x104
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x401f94
call fcn.00402870
call fcn.00402930
test eax, eax
jne 0x401faf
push 0x66
call fcn.004027e0
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00401260
test al, al
je 0x401fc1
call fcn.00401000
test al, al
jne 0x401fd3
push 0x65
call fcn.004027e0
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.urDrive_
xor bl, bl
xor esi, esi
call fcn.004023d0
add esp, 4
test eax, eax
je 0x401fed
mov esi, 1
push str.urNew_
call fcn.004023d0
add esp, 4
test eax, eax
je 0x402001
xor esi, 2
push str.urOld_
call fcn.004023d0
add esp, 4
test eax, eax
je 0x402015
xor esi, 4
lea eax, [esi - 1]
cmp eax, 6
ja case.default.0x402021
jmp dword [eax*4 + 0x402104]
call fcn.004021e0
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x68
jmp 0x4020ea
call fcn.00402370
test eax, eax
je 0x402082
push str.urDrive_
mov esi, str.urOld_
call fcn.00402760
add esp, 4
call fcn.00402270
mov ecx, str.urOld_
call fcn.00402450
call fcn.00402290
call fcn.004021e0
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str.urNew_
call fcn.00402450
call fcn.004021e0
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.urOld_
mov esi, str.urDrive_
call fcn.00402760
add esp, 4
call fcn.004021e0
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, str.urNew_
call fcn.00402450
mov ecx, str.urOld_
call fcn.00402450
call fcn.004021e0
movzx eax, bl
neg eax
sbb eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x67
call fcn.004027e0
mov bl, 1
add esp, 4
movzx eax, bl
neg eax
pop esi
sbb eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4021e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x248
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x244], eax
push str.urDriveurDrive.exe
push 0x56b618
push str._s_s
lea eax, [esp + 0x48]
push 0x104
push eax
call fcn.004f584c
xor eax, eax
add esp, 0x14
lea edx, [esp]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004f53ca
add esp, 0x248
ret
Function at 0x402290
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x26c
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x264], eax
push esi
push edi
push str.urDriveAutoUpdate.exe
push 0x56b618
push str._s_s
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.004f584c
push 0x44
xor esi, esi
lea ecx, [esp + 0x30]
push esi
push ecx
call fcn.004f6b30
add esp, 0x20
xor eax, eax
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push str._final
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40232f
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 1
jmp 0x402334
call fcn.00402870
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov ecx, dword [esp + 0x26c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.004f53ca
add esp, 0x26c
ret

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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x208], eax
push str.urNewupdate.flg
push 0x56b618
push str._s_s
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.004f584c
add esp, 0x14
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x208]
xor edx, edx
cmp eax, 0xffffffff
setne dl
xor ecx, esp
mov eax, edx
call fcn.004f53ca
add esp, 0x20c
ret

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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x563fe8]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push eax
push 0x56b618
push str._s_s
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.004f584c
add esp, 0x14
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40242e
xor eax, eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004f53ca
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
shr eax, 4
xor ecx, esp
and eax, 1
call fcn.004f53ca
add esp, 0x20c
ret