joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fcbd0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebp
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [esp + 0x3c]
mov edi, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x14], edi
push eax
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
push ebx
mov ebp, eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x24]
mov edi, eax
mov esi, dword [esp + 0x28]
mov ecx, edx
push 0xcc0020
push esi
neg ecx
push ecx
push 0
lea ecx, [edx - 1]
push ecx
push dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x30]
push edx
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_StretchBlt]
push 0xcc0020
push 0
push 0
push esi
push dword [esp + 0x38]
push dword [esp + 0x38]
push 0
push 0
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x4fcfb0
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push str.Policy
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004cd020
push 1
push str.Shutdown
push str.Policy
test al, al
je 0x4fcfdc
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004cf2e0
jmp 0x4fcfe1
call fcn.004cf550
test eax, eax
je 0x4fd052
cmp byte [0x5d2826], 0
jne 0x4fd052
cmp byte [0x5b02dc], 0
jne 0x4fd052
lea eax, [esp + 3]
mov byte [esp + 3], 1
push eax
push 0x4fc350
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esp + 3], 0
je 0x4fd052
push esi
mov esi, dword [esp + 0xc]
cmp esi, 5
jne 0x4fd041
mov eax, dword [0x5923dc]
test eax, eax
je 0x4fd051
cmp dword [0x5933ec], 0
jne 0x4fd051
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ecx
ret 4
push esi
call fcn.00508cf0
test al, al
je 0x4fd051
push esi
call fcn.004bdc20
pop esi
pop ecx
ret 4
Function at 0x4fd5a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push eax
push 0x56dac0
push 1
push 0
push 0x56dae0
xor bl, bl
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4fd6ea
mov ecx, dword [esp + 4]
push esi
mov eax, dword [ecx]
mov esi, dword [eax]
lea eax, [esp + 0xc]
push eax
push 0x56db80
push ecx
mov ecx, esi
call dword [0x55670c]
call esi
test eax, eax
js 0x4fd6d5
cmp byte [esp + 0x14], bl
je 0x4fd60c
mov eax, dword [esp + 0xc]
push 2
push dword [esp + 0x20]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x55670c]
call esi
mov eax, dword [esp + 8]
push dword [esp + 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x55670c]
call esi
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4fd641
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x55670c]
call esi
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x28]
push 0
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
test edx, edx
jne 0x4fd65d
push 0x557718
jmp 0x4fd65e
push edx
push eax
call dword [0x55670c]
call esi
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4fd684
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x55670c]
call esi
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4fd6a1
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x55670c]
call esi
mov ecx, dword [esp + 0xc]
push 1
push dword [esp + 0x20]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x55670c]
call esi
test eax, eax
js 0x4fd6c1
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x55670c]
call esi
mov ecx, dword [esp + 8]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x55670c]
call esi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 0x1c

Function at 0x4fda50
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
ret 8
Function at 0x4fda70
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1018
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1014], eax
push esi
mov esi, dword [esp + 0x1020]
push edi
mov edi, dword [esp + 0x1028]
push esi
call fcn.004a2410
test al, al
je 0x4fdb0f
movzx eax, word [esi]
push eax
push 0x56aeb4
lea eax, [esp + 0x10]
push 0xa
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 0x1c]
push 0x800
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4fdaf6
cmp eax, 0x800
jae 0x4fdaf6
cmp word [esp + 0x1c], 0x25
je 0x4fdaf6
push dword [esp + 0x102c]
lea eax, [esp + 0x20]
push eax
push edi
call fcn.004bd090
jmp 0x4fdb0f
movzx eax, word [esi]
push eax
push str._c:_
push dword [esp + 0x1034]
push edi
call fcn.00404ce0
add esp, 0x10
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x1018
ret 0xc
Function at 0x4fdc70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553607
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x58bb30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x56860c
push dword [ebp + 8]
push dword [0x5d2758]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4fde08
push esi
push dword [0x5d2758]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4fde08
push esi
push dword [0x5d2758]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4fde08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4fde08
push edi
push 2
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4fddf1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4fddea
push edi
push esi
push eax
call fcn.00531230
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4fdde3
mov esi, dword [ebp - 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4fdd8d
mov dword [edi], 0x56aea4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [edi], 0x56aeac
mov dword [ebp - 0x14], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4fdd8f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x55670c]
call esi
test edi, edi
je 0x4fdde3
mov eax, dword [edi + 8]
mov dword [edi + 8], 0
test eax, eax
jne 0x4fddd1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0xffffff
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.004fdb30
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x55670c]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4fe490
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x18
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
push esi
call fcn.004a2410
test al, al
je 0x4fe4d1
movzx eax, word [esi]
push eax
push 0x56aec8
lea eax, [esp + 0xc]
push 0xa
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x18
ret 4
Function at 0x4fe4f0
Capabilities:
Set current directory

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x4fe525
push dword [esp + 8]
push 0x627
call fcn.004b68d0
push eax
call fcn.00502bd0
add esp, 8
mov ecx, 0x5d281c
call fcn.00487dd0
mov al, bl
pop ebx
ret 4
Function at 0x501710
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x404
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x414]
lea eax, [esp + 0xc]
push 0x200
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [0x5f8aa0], 0
mov ebx, 0x200
je 0x5017a0
push ebx
push 0x55c224
lea eax, [esp + 0x14]
push eax
call fcn.004bd030
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x501767
push 0x5f8aa0
sub esi, ecx
push 0x5aa
sar esi, 1
call fcn.004b68d0
push eax
mov eax, ebx
sub eax, esi
push 0x567c2c
push eax
lea eax, [esp + 0x1c]
lea eax, [eax + esi*2]
push eax
call fcn.00404ce0
add esp, 0x14
cmp byte [0x5f8a51], 0
je 0x5017f8
push 0x200
push 0x55c224
lea eax, [esp + 0x14]
push eax
call fcn.004bd030
lea esi, [esp + 0xc]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5017c4
push dword [esp + 0x418]
sub esi, ecx
push 0x2fd
sar esi, 1
call fcn.004b68d0
push eax
sub ebx, esi
lea eax, [esp + 0x14]
lea eax, [eax + esi*2]
push ebx
push eax
call fcn.00404ce0
add esp, 0x10
push 0x80
lea eax, [esp + 0x10]
push eax
call fcn.004d8220
push 0x80
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 0x18]
push eax
call fcn.004bd090
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x404
ret 8

Function at 0x501fc0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x1404
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1400], eax
mov eax, dword [esp + 0x1408]
push esi
mov esi, dword [esp + 0x1410]
push edi
push eax
push dword [0x5933e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
lea eax, [esp + 8]
push 0xa00
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 8]
mov ecx, esi
mov edi, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x502036
test ax, ax
je 0x502032
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x502036
add ecx, 4
add edx, 4
test ax, ax
jne 0x502010
xor eax, eax
jmp 0x50203b
sbb eax, eax
or eax, 1
test eax, eax
je 0x502047
push esi
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esp + 0x1408]
pop edi
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x1404
ret 8
Function at 0x502060
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553741
mov eax, dword fs:[0]
push eax
sub esp, 0x7c0
mov eax, dword [0x58bb30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5933e8], 0
je 0x502250
mov eax, dword fs:[0x2c]
mov ecx, dword [0x6345f8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5fa014]
cmp eax, dword [ecx + 4]
jg 0x50226a
push 0x64
mov ecx, 0x5fa010
call fcn.004630a0
test al, al
jne 0x5020d5
mov byte [0x5f8a50], 1
jmp 0x502250
push 0x200
lea eax, [ebp - 0x410]
mov byte [0x5f8a50], 0
push eax
push dword [0x5933e8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [0x5f544c]
cmp eax, 0xa
je 0x5021d6
cmp eax, 9
je 0x5021d6
mov edx, 0x5f7450
lea ecx, [ebp - 0x410]
mov si, word [ecx]
cmp si, word [edx]
jne 0x50213c
test si, si
je 0x502138
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x50213c
add ecx, 4
add edx, 4
test si, si
jne 0x502116
xor ecx, ecx
jmp 0x502141
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x5021d6
push 0x5f7450
push dword [0x5933e8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x5f544c]
cmp eax, 3
jne 0x5021ef
cmp dword [0x5f5448], 0
je 0x5021db
push 0x3ac
lea eax, [ebp - 0x7bc]
push 0
push eax
call fcn.00531c60
mov eax, dword [0x5933e8]
add esp, 0xc
mov dword [ebp - 0x7c8], eax
lea eax, [ebp - 0x7cc]
mov dword [ebp - 0x7cc], 0x3bc
mov dword [ebp - 0x7c4], 0x7b
push dword [0x5f8b04]
mov dword [ebp - 0x7c0], 4
push eax
call fcn.00501710
lea eax, [ebp - 0x7cc]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov eax, dword [0x5f544c]
cmp eax, 3
jne 0x5021ef
push 0x5f8550
push 0x9d
call fcn.00501fc0
mov eax, dword [0x5f544c]
test eax, eax
je 0x502202
cmp eax, 1
je 0x502202
cmp eax, 2
je 0x502202
cmp eax, 0xa
jne 0x502244
push 0x5f8550
push 0x9d
call fcn.00501fc0
push 0x5f5450
call fcn.004a2d90
push eax
push 0x9c
push dword [0x5933e8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x9c
push dword [0x5933e8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.004d84b0
push dword [0x5933e8]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f708
mov esp, ebp
pop ebp
ret
push 0x5fa014
call fcn.0052ffcb
add esp, 4
cmp dword [0x5fa014], 0xffffffff
jne 0x5020b9
mov dword [ebp - 4], 0
mov dword [0x5fa010], 0
mov dword [ebp - 4], 0xffffffff
push 0x5fa014
call fcn.0052ff80
add esp, 4
jmp 0x5020b9
Function at 0x506b90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x2008
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x2004], eax
cmp byte [esp + 0x2024], 0
push ebx
mov ebx, dword [esp + 0x201c]
push ebp
mov ebp, dword [esp + 0x2018]
push esi
mov esi, dword [esp + 0x2020]
push edi
mov edi, dword [esp + 0x201c]
je 0x506c2d
push 0x800
push esi
push edi
push str.DefFolder
push str.Extraction
call fcn.004cf7c0
cmp word [edi], 0
jne 0x506bf8
push ebp
push esi
push edi
call fcn.004bd090
jmp 0x506c2d
push 0x800
lea eax, [esp + 0x1018]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x506c28
cmp eax, 0x800
jae 0x506c28
push ebp
lea eax, [esp + 0x1018]
push eax
push edi
call fcn.004bd090
jmp 0x506c2d
xor eax, eax
mov word [edi], ax
movzx eax, word [edi]
mov ecx, eax
mov dword [esp + 0x10], ecx
test ax, ax
jne 0x506c47
push ebp
push edi
mov ecx, 0x5c5810
call fcn.0045ca50
push ebp
push edi
call fcn.004a0eb0
push 0x800
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.004bd090
mov ax, word [esp + 0x14]
xor ebx, ebx
test ax, ax
je 0x506caf
xor ecx, ecx
movzx edx, ax
lea esi, [esp + 0x14]
lea ebp, [ebx + 0x5f]
cmp dx, 0x25
jne 0x506c94
lea eax, [esp + 0x16]
add eax, ecx
push 0x25
push eax
call fcn.00530cd5
add esp, 8
test eax, eax
je 0x506c94
mov word [esi], bp
inc ebx
lea esi, [esp + 0x14]
lea ecx, [ebx + ebx]
add esi, ecx
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x506c76
mov ebp, dword [esp + 0x2020]
lea eax, [esp + 0x14]
push eax
call fcn.004a1db0
mov esi, eax
test esi, esi
je 0x506d4a
lea eax, [esp + 0x14]
cmp esi, eax
jbe 0x506d4a
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
call fcn.004a1db0
mov ebx, eax
test ebx, ebx
je 0x506d29
lea eax, [esp + 0x14]
cmp ebx, eax
jbe 0x506d29
cmp byte [esp + 0x2030], 0
je 0x506d15
cmp word [esi + 2], 0
je 0x506d15
movzx eax, word [esi + 4]
push eax
call fcn.004bcc60
test al, al
jne 0x506d15
movzx eax, word [esi - 2]
push eax
call fcn.004bcc60
test al, al
jne 0x506d24
push str..tar
push ebx
call fcn.004c1160
test eax, eax
jne 0x506d29
xor eax, eax
mov word [ebx], ax
sub esi, 2
lea eax, [esp + 0x14]
cmp esi, eax
jbe 0x506d4a
cmp word [esi], 0x2e
jne 0x506d4a
xor eax, eax
mov word [esi], ax
sub esi, 2
lea eax, [esp + 0x14]
cmp esi, eax
ja 0x506d34
push 0x800
lea eax, [esp + 0x18]
push eax
call fcn.004a2d90
push eax
push 0x5fe880
call fcn.004bd090
push 0x5fe880
call fcn.004fcf60
push 0
push 0x5fe880
call fcn.004a2ac0
cmp byte [esp + 0x202c], 0
jne 0x506d8c
cmp word [esp + 0x10], 0
je 0x506db3
push 1
push str.AppendName
push str.Extraction
call fcn.004cf550
test eax, eax
je 0x506db3
push ebp
lea eax, [esp + 0x18]
push eax
call fcn.004a2d90
push eax
push edi
call fcn.004bd030
push edi
call fcn.004fcf60
push 0
push edi
call fcn.004a2ac0
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x2008
ret 0x1c
Function at 0x506de0
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1008
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x1004], eax
mov eax, dword [esp + 0x100c]
lea ecx, [esp]
push 0x800
push ecx
push eax
mov ecx, 0x5c5810
call fcn.0045d540
push 0x802
lea eax, [esp + 4]
push eax
call fcn.004a0eb0
push 0x802
push 0x557b90
lea eax, [esp + 8]
push eax
call fcn.004bd030
push 1
push 0x557718
push 0
lea eax, [esp + 0xc]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.0052f708
add esp, 0x1008
ret 4

Function at 0x507df0
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
mov eax, 0x325c
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x3258], eax
cmp byte [esp + 0x3264], 0
push ebx
mov bh, byte [esp + 0x3264]
mov dword [0x5933fc], 1
je 0x507f5e
push edi
push 0
push 0x800
lea eax, [esp + 0x1268]
push eax
call fcn.004fc5c0
push 0x800
lea eax, [esp + 0x1264]
push eax
call fcn.004a0eb0
lea eax, [esp + 0x1260]
push eax
push str._sRar_
lea eax, [esp + 0x2268]
push 0x800
push eax
call fcn.00404ce0
add esp, 0x10
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x507f56
push esi
jmp 0x507ea0
cmp dword [0x5933fc], 1
jne 0x507f55
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1264]
sub esi, dword [esp + 0x1c]
push 0x800
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.004bd090
push 0x800
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.004bd030
test byte [esp + 0x14], 0x10
je 0x507f34
push 6
lea eax, [esp + 0x44]
push str.Rar_DI
push eax
call fcn.00538b7d
add esp, 0xc
test eax, eax
lea eax, [esp + 0x264]
sete bl
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x507f41
cmp esi, 8
jb 0x507f21
test bh, bh
je 0x507f25
test bl, bl
je 0x507f41
lea eax, [esp + 0x264]
push eax
call fcn.004fbd60
jmp 0x507f41
lea eax, [esp + 0x264]
push eax
call fcn.004fbc90
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x507ea0
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
test bh, bh
pop ebx
jne 0x507ffc
call fcn.0047ebe0
test al, al
je 0x507ffc
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
call fcn.0047ebf0
test al, al
je 0x507f94
mov byte [esp], 1
jmp 0x507ff4
push 0xfff
push 0
lea eax, [esp + 0x1260]
push eax
push str.rarkey
push 0x557718
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004cf380
test eax, eax
jne 0x507fe1
push 0x1000
push eax
lea eax, [esp + 0x1260]
push eax
push str.rarkey
push 0x557718
call fcn.004cf5f0
test eax, eax
jne 0x507fe1
mov byte [esp], al
jmp 0x507ff4
push 1
push eax
lea eax, [esp + 0x1260]
push eax
call fcn.0047e290
mov byte [esp], al
push dword [esp]
call fcn.0047ee30
mov ecx, dword [esp + 0x3258]
xor ecx, esp
mov dword [0x5933fc], 0
call fcn.0052f708
add esp, 0x325c
ret 8
Function at 0x50ffe0
Capabilities:
Copy file

Disassembly:
mov eax, 0x2008
call fcn.0052f720
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x2004], eax
push esi
push edi
mov edi, dword [esp + 0x2014]
call fcn.0047ebe0
test al, al
je 0x510041
cmp byte [0x5aaf54], 0
jne 0x510041
push 0x5f0
call fcn.004b68d0
push 0x5f1
mov esi, eax
call fcn.004b68d0
push 0x24
push esi
push eax
push dword [0x5923dc]
call fcn.004fdf00
cmp eax, 6
jne 0x510183
push 0x800
lea eax, [esp + 0x1010]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarreg.key
lea eax, [esp + 0x1014]
push eax
call fcn.004a2ea0
push 0
lea eax, [esp + 0x1010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 1
mov esi, eax
lea eax, [esp + 0x10]
push 0x800
push eax
call fcn.004a1f20
push 0x800
lea eax, [esp + 0x10]
push eax
call fcn.004a0eb0
push 0x800
push str.rarreg.key
lea eax, [esp + 0x14]
push eax
call fcn.004bd030
lea eax, [esp + 0xc]
test esi, esi
je 0x5100c4
push eax
call fcn.004906b0
jmp 0x5100e5
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x800
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1014]
push eax
call fcn.004bd090
push dword [0x5923dc]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [0x5923dc]
call dword [sym.imp.USER32.dll_FlashWindow]
push 1
lea eax, [esp + 0x1010]
push eax
call fcn.0047ea10
mov byte [esp + 8], al
push dword [esp + 8]
call fcn.0047ee30
push 0
push dword [0x5923dc]
call dword [sym.imp.USER32.dll_FlashWindow]
mov ecx, 0x5c5810
call fcn.00461060
call fcn.0047ebe0
test al, al
je 0x510163
push 0x368
call fcn.004b68d0
push 0x367
mov esi, eax
call fcn.004b68d0
push 0x40
push esi
push eax
push dword [0x5923dc]
call fcn.004fdf00
jmp 0x510183
lea eax, [esp + 0x100c]
push eax
call fcn.004906b0
push 0x366
call fcn.004b68d0
push eax
call fcn.00502bd0
add esp, 4
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
xor ecx, esp
call fcn.0052f708
add esp, 0x2008
ret 4