joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ce0
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 0x407cf9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407d34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407d30
lea ebx, [ebx]
cmp esi, eax
jae 0x407d34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407d20
cmp esi, eax
jb 0x407d3a
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 0x408120
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x435222
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x444d08]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.0040d2e3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408160
push 0x80004005
call fcn.00405150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
test bl, bl
je 0x40818d
mov esi, dword [0x44a320]
push 0x44a6fc
jmp 0x408198
mov esi, dword [0x44a31c]
push 0x44a6f8
call fcn.00404d80
test esi, esi
je 0x4081aa
mov edx, dword [esi]
mov eax, dword [edx + 0x4c]
mov ecx, esi
call eax
push 0x10
mov edi, 0x8041
call fcn.0040d29e
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x20], 1
test eax, eax
je 0x4081d1
mov ecx, eax
call fcn.00412c25
mov esi, eax
jmp 0x4081d3
xor esi, esi
mov byte [esp + 0x20], 0
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4081ec
mov edi, 0x9041
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
push 0
push edi
push ebp
mov ecx, esi
call eax
mov edx, dword [esi]
mov ecx, esi
test eax, eax
jne 0x40825b
mov eax, dword [edx + 4]
push 1
call eax
test bl, bl
je 0x408218
mov dword [0x44a320], 0
jmp 0x408222
mov dword [0x44a31c], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, dword [edx + 0x28]
push 2
push 0
push 0
call eax
test bl, bl
je 0x408272
mov dword [0x44a320], esi
jmp 0x408278
mov dword [0x44a31c], esi
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40829c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x413f55
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x444d08]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x413fed
push 0x43877c
push 4
push eax
call fcn.0041cd0c
push eax
call fcn.00407d90
add esp, 0x10
push ebx
push edi
call fcn.0041cedc
mov edi, dword [eax]
call fcn.0041cedc
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0041aa78
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0041cedc
cmp dword [eax], ebx
je 0x414004
call fcn.0041cedc
push dword [eax]
call fcn.0040d4e7
pop ecx
jmp 0x41400b
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x413f98
jmp 0x414092
call fcn.0041cedc
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x41408e
cmp dword [ebp - 0x234], esi
jae 0x41408e
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0041cf50
add esp, 0xc
push 0x4384dc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41407d
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41407d
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41407d
push ebx
push ebx
push esi
jmp 0x414086
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x414090
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041a25b
leave
ret

Function at 0x41a25b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444d08]
jne 0x41a265
repz ret
jmp fcn.0041f3eb
Function at 0x42e228
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004219f9
and dword [ebp - 4], 0
cmp dword [0x448f74], 0
mov ebx, eax
jne 0x42e2d9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42e38a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42e38a
push eax
call fcn.00421987
mov dword [esp], 0x43b7ac
push edi
mov dword [0x448f74], eax
call esi
push eax
call fcn.00421987
mov dword [esp], 0x43b798
push edi
mov dword [0x448f78], eax
call esi
push eax
call fcn.00421987
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x448f7c], eax
call esi
push eax
call fcn.00421987
pop ecx
mov dword [0x448f84], eax
test eax, eax
je 0x42e2d9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421987
pop ecx
mov dword [0x448f80], eax
mov eax, dword [0x448f80]
cmp eax, ebx
je 0x42e331
cmp dword [0x448f84], ebx
je 0x42e331
push eax
call fcn.00421a02
push dword [0x448f84]
mov esi, eax
call fcn.00421a02
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42e331
test edi, edi
je 0x42e331
call esi
test eax, eax
je 0x42e328
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e328
test byte [ebp - 0xc], 1
jne 0x42e331
or dword [ebp + 0x10], 0x200000
jmp 0x42e36a
mov eax, dword [0x448f78]
cmp eax, ebx
je 0x42e36a
push eax
call fcn.00421a02
pop ecx
test eax, eax
je 0x42e36a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42e36a
mov eax, dword [0x448f7c]
cmp eax, ebx
je 0x42e36a
push eax
call fcn.00421a02
pop ecx
test eax, eax
je 0x42e36a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448f74]
call fcn.00421a02
pop ecx
test eax, eax
je 0x42e38a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e38c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4025e9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x402609
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x402615
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x40261e
cmp byte [ebx], 0
jne 0x402625
xor eax, eax
jmp 0x4026df
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x40268c
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402657
cmp dword [ebp - 4], 0
je 0x402657
cmp dword [ebp - 8], 0
jne 0x402657
cmp dword [ebp + 0x10], 0
je 0x402652
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x40268b
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402669
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x402676
and eax, 0xff
cmp eax, 0xd
jne 0x402691
inc ebx
jmp 0x402691
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x40268b
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x402691
inc esi
cmp byte [ebx], 0
jne 0x40262e
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4026dd
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x4026dd
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.004101f4
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4026e7
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.00410164
cmp eax, 0x3f6
jae 0x402929
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.004100dc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402734
lea edx, [ebx + 1]
jmp 0x402736
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x40278d
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x402760
jmp 0x402759
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402759
mov byte [ebx + eax], 0x20
jmp 0x402760
inc eax
cmp byte [ebx + eax], 0
jne 0x402749
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x402775
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x40278c
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x402783
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x402793
inc eax
cmp byte [ebx + eax], 0
jne 0x40273d
cmp byte [0x415d0a], 0
je 0x4027a3
mov dword [ebp - 0x2c], 0x415d0a
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.004063d0
mov esi, eax
test esi, esi
je 0x4027cf
mov edx, str..inf
mov eax, esi
call fcn.00410260
test eax, eax
jne 0x4027cf
mov dword [ebp - 0x34], str.Install
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.004070e8
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x4027f9
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.004071b4
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402838
cmp byte [ebp - 2], 0
jne 0x402838
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.004101e0
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.004102a8
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.004070e8
test al, al
je 0x402929
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402868
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402929
xor ebx, ebx
cmp byte [0x415900], 0
jne 0x402881
cmp byte [ebp - 1], 0
je 0x4028ca
cmp dword [0x41618c], 0
je 0x402899
push dword [0x41618c]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40289d
xor eax, eax
jmp 0x4028a2
mov eax, 1
test eax, eax
je 0x4028b5
push 0
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.0040292f
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4028e6
mov edx, str..exe
mov eax, esi
call fcn.00410260
test eax, eax
je 0x402918
cmp byte [0x415900], 0
je 0x402901
cmp byte [ebp - 1], 0
jne 0x402901
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402918
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x402912
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402929
push 1
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40295f
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x415044], 0
jne 0x4029fb
lea eax, [ebp - 0x400]
call fcn.00406094
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.00410284
test eax, eax
jne 0x4029fb
push 0x415248
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x400]
call fcn.00410164
mov byte [ebp + eax - 0x3ff], 0
lea eax, [ebp - 0x420]
mov ecx, 0x1e
xor edx, edx
call fcn.004100dc
mov dword [ebp - 0x41c], 3
mov word [ebp - 0x410], 0x14
lea eax, [ebp - 0x400]
mov dword [ebp - 0x418], eax
lea edx, [ebp - 0x420]
push edx
call sub.SHELL32.DLL_SHFileOperationA
mov esp, ebp
pop ebp
ret

Function at 0x402afa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, eax
cmp byte [0x415908], 0
je 0x402b75
cmp byte [0x416e44], 0
je 0x402b75
lea edx, [ebp - 0x408]
mov eax, 0x416e44
call fcn.00402abf
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x402b75
mov eax, ebx
call fcn.00410164
inc eax
lea edx, [ebp - 0x408]
push eax
push ebx
push 1
push 0
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b7a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
mov ebx, eax
cmp byte [0x415908], 0
je 0x402bf7
lea edx, [ebp - 0x40c]
mov eax, ebx
call fcn.00402abf
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402bf7
mov dword [ebp - 8], 0x400
lea eax, [ebp - 8]
lea edx, [ebp - 0x80c]
push eax
push edx
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x40c]
push ecx
push 0
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402bef
lea edx, [ebp - 0x80c]
mov eax, ebx
call fcn.004101e0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402cbc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x402e30
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x415850
push 1
push 0
push 0x415860
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402f2f
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x402e93
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x402ea5
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.004101e0
lea eax, [ebp - 0x40c]
call fcn.004064d8
cmp byte [ebp - 0x40c], 0
je 0x402ed6
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x415880
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402f26
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402f1d
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
push eax
call sub.SHELL32.DLL_SHGetMalloc
lea edx, [ebp - 8]
push edx
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [ebp - 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4030a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x41618c]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x415018], 0
jne 0x403103
mov eax, dword [0x417244]
call fcn.00404734
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x415099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x415018], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [ebp - 0x3c], 0x3c
lea edx, [ebp - 0x3c]
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
mov byte [ebp - 0x23], 0
mov dword [ebp - 0x38], 1
test bl, bl
je 0x403158
and dword [ebp - 0x34], 0xbfffffff
or dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 0xa0
or dword [ebp - 0x38], 0x40000000
lea ecx, [ebp - 0x3c]
push ecx
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
test bl, bl
je 0x4031ac
or dword [ebp - 0x34], 0x40000000
and dword [ebp - 0x34], 0xfffffffe
lea eax, [ebp - 0x3c]
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push 0x4150c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403b60
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push 0
call sub.OLE32.DLL_OleInitialize
mov eax, 0x41b9c8
call fcn.00410ab8
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x403b95
mov eax, ebx
call fcn.00403d14
push ebx
push str.sfxcmd
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0x400
push 0x416a3c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x416a3c
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x41b9c0], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x416e3c], eax
push 0x65
push dword [0x41b9c0]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x416e40], eax
lea eax, [ebp - 8]
call fcn.00405a54
mov edx, 0x416a3c
mov eax, 0x41b9ac
call fcn.0040504c
lea eax, [ebp - 0x20]
call fcn.004045a0
lea eax, [ebp - 0x38]
call fcn.004045a0
push 0
push 0x40118b
lea edx, [ebp - 0x20]
push 0
mov dword [0x417244], edx
lea ecx, [ebp - 0x38]
push str.STARTDLG
push ebx
mov dword [0x417248], ecx
call sub.USER32.DLL_DialogBoxParamA
xor eax, eax
xor edx, edx
mov dword [0x41618c], eax
mov dword [0x417248], edx
mov dword [0x417244], edx
mov edx, 2
lea eax, [ebp - 0x38]
call fcn.004045c4
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004045c4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405ad0
cmp byte [0x415900], 0
je 0x403c79
call fcn.0040295f
mov eax, 0x4169ac
mov ecx, 0x80
xor edx, edx
call fcn.004100dc
cmp dword [0x415054], 0
jle 0x403c9d
mov eax, dword [0x415048]
call fcn.00410060
push dword [0x416e3c]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x416e40], 0
je 0x403cbc
push dword [0x416e40]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x41b9a0], 0
jne 0x403cdd
cmp dword [0x416194], 0
je 0x403cdd
mov eax, 0x41b9a0
mov edx, 0xff
call fcn.0040d074
mov dword [0x416194], 2
cmp dword [0x41505c], 0
je 0x403cfa
mov eax, dword [0x41505c]
call fcn.0040292f
call sub.OLE32.DLL_OleUninitialize
push dword [0x41b9a0]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403ebc
Capabilities:
Hide graphical window

Disassembly:
mov dword [0x41619c], 1
cmp dword [0x41618c], 0
je 0x403ee7
mov eax, 0x7d
call fcn.00402c00
push eax
push 1
push dword [0x41618c]
call sub.USER32.DLL_SetDlgItemTextA
xor edx, edx
mov dword [0x4161a0], edx
mov dword [0x4161a4], 1
cmp dword [0x41618c], 0
je 0x403f45
push 1
push dword [0x41618c]
call sub.USER32.DLL_ShowWindow
cmp dword [0x415054], 0
jne 0x403f3c
cmp byte [0x415018], 0
jne 0x403f3c
push 0
push 1
push 0x111
push dword [0x41618c]
call sub.USER32.DLL_SendMessageA
jmp 0x403f3c
call fcn.00402c7c
cmp dword [0x416194], 2
jne 0x403f37
cmp byte [0x415900], 0
je 0x403f53
call fcn.0040295f
ret
Function at 0x4045ec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x404611
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.0040474c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
cmp dword [ebx + 4], 0
je 0x404658
push dword [ebx + 4]
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
add eax, 0xfffffffe
push eax
push dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
inc edx
push edx
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov dword [ebx + 4], eax
cmp dword [ebx + 4], 0
je 0x4046ab
push 5
push dword [ebx + 4]
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x404729
cmp dword [ebx + 4], 0
je 0x4046c4
push dword [ebx + 4]
call sub.USER32.DLL_DestroyWindow
xor ecx, ecx
mov dword [ebx + 4], ecx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.00410164
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0041004c
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.004101e0
mov edx, edi
mov eax, ebx
call fcn.00404d90
test al, al
jne 0x404705
mov edx, edi
mov eax, ebx
call fcn.00404dc8
mov edx, edi
mov eax, ebx
call fcn.00404c00
mov ebx, eax
mov eax, edi
call fcn.00410060
test ebx, ebx
je 0x404729
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.00410060
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4