joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dd30
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret 4

Function at 0x47df00
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret 4
Function at 0x47e460
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x13c]
mov ecx, dword [esi + 0x20]
push edi
lea eax, [esi + 0x2c]
push 0
mov dword [esp + 0x14], eax
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x24]
push 8
push eax
push ecx
call fcn.004c13d0
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov byte [edi + esi + 0x2c], 0x80
inc edi
mov ebp, eax
mov ebx, edx
cmp edi, 0x38
je 0x47e4ba
and edi, 0x3f
jne 0x47e4ac
push esi
call fcn.0047df50
mov edx, dword [esp + 0x10]
mov byte [edx + edi], 0
inc edi
cmp edi, 0x38
jne 0x47e4a1
mov eax, ebx
shr eax, 0x18
mov byte [edi + esi + 0x2c], al
shld ebx, ebp, 8
shl ebp, 8
mov ecx, ebx
mov edx, ecx
shr edx, 0x18
mov byte [edi + esi + 0x2d], dl
mov eax, ebp
shld ecx, eax, 8
shl eax, 8
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
mov byte [edi + esi + 0x2e], dl
shl eax, 8
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
shl eax, 8
mov byte [edi + esi + 0x2f], dl
mov edx, ecx
shld ecx, eax, 8
shr edx, 0x18
shl eax, 8
mov byte [edi + esi + 0x30], dl
mov edx, ecx
shld ecx, eax, 8
shl eax, 8
mov dword [esp + 0x14], eax
mov eax, ecx
shr edx, 0x18
shr eax, 0x18
shr ecx, 0x10
push esi
mov byte [edi + esi + 0x31], dl
mov byte [edi + esi + 0x32], al
mov byte [edi + esi + 0x33], cl
call fcn.0047df50
mov edi, dword [esp + 0x144]
xor ebp, ebp
xor eax, eax
mov edx, eax
and edx, 3
mov ecx, 3
sub ecx, edx
add ecx, ecx
mov edx, eax
shr edx, 2
mov edx, dword [esi + edx*4]
add ecx, ecx
add ecx, ecx
shr edx, cl
inc eax
mov byte [eax + edi - 1], dl
cmp eax, 0x20
jb 0x47e543
push 0x20
lea eax, [esp + 0x20]
push eax
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
call fcn.004784d0
push 0x100
lea ecx, [esp + 0x40]
push ecx
call fcn.004784d0
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
jmp fcn.004784d0

Function at 0x47fa60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebp
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x47fac7
push esi
push edi
lea edi, [eax + 1]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0c57
mov esi, eax
add esp, 4
test esi, esi
je 0x47fac5
push edi
push esi
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esp + 0x18]
push 0
push 0
push eax
push esi
call fcn.0047f8d0
push esi
call fcn.004c172a
add esp, 4
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x47fba0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47fbf3
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x80000000
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x4819d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
mov edi, ecx
cmp ebp, 0xa8
jne 0x481a29
push 1
push str.Settings
call fcn.00426580
test eax, eax
je 0x481a1e
mov eax, dword [0x535584]
mov ecx, dword [0x51f7e4]
lea esi, [edi + 0x1088]
push esi
push 0x481600
push eax
push str.ORGTHEMES
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [esi], 0
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x30
ret 4
cmp ebp, 0xa9
jne 0x481a5a
push 1
push 0x4d79fc
push 0
push 0x4f9
call fcn.004750b0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x30
ret 4
mov eax, dword [0x535584]
test eax, eax
jne 0x481a67
xor esi, esi
jmp 0x481a90
push eax
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
jne 0x481a76
xor esi, esi
jmp 0x481a90
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
push 4
push eax
call esi
test eax, eax
jne 0x481a89
xor esi, esi
jmp 0x481a90
push 5
push eax
call esi
mov esi, eax
cmp ebp, 0xaa
jne 0x481aa9
mov dword [edi + 0x80], 0xffffffff
push 0x4d79fc
jmp 0x481b0b
lea edx, [ebp - 0x3e8]
cmp edx, 0x7f
ja 0x481b51
push 0x30
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004c16b0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0
push ebp
push esi
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x20
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x481b51
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0x74]
jae 0x481b51
mov dword [edi + 0x80], eax
imul eax, eax, 0x1304
add eax, dword [edi + 0x70]
push eax
call fcn.00460330
push eax
push str.ActivePath
push str.InterfaceThemes
call fcn.0046c4f0
mov eax, dword [edi + 0x1084]
push ebx
mov ebx, dword [sym.imp.USER32.dll_CheckMenuItem]
cmp eax, 0xffffffff
je 0x481b32
push 0
push eax
push esi
call ebx
push 8
push ebp
push esi
call ebx
mov ecx, edi
mov dword [edi + 0x1084], ebp
call fcn.00481060
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x30
ret 4
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x30
ret 4
Function at 0x481ee0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
mov dword [esi], eax
cmp eax, 0x20
jbe 0x481ef7
mov dword [esi], 0x20
jmp 0x481f01
test eax, eax
jne 0x481f01
mov dword [esi], 1
push 0
push 0x20
push 0
push 0
mov byte [esi + 0x190], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 1
push 1
push 0
mov dword [esi + 0x194], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x198], eax
lea eax, [esi + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [esi + 0x194], 0
je 0x481f4f
cmp dword [esi + 0x198], 0
jne 0x481f6d
push str._nThread_pool_initialization_failed.
push 0x51f7e8
call fcn.00433a90
add esp, 8
push 2
mov ecx, 0x51f7e8
call fcn.00433740
xor ebx, ebx
cmp dword [esi], ebx
jbe 0x481fde
push ebp
push edi
lea ebp, [esi + 4]
lea ecx, [esp + 0x14]
push ecx
push 0
push esi
push 0x481e90
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x481fc0
push str.CreateThread_failed
push 0x51f7e8
call fcn.00433a90
add esp, 8
mov ecx, 0x51f7e8
call fcn.00433750
push 2
mov ecx, 0x51f7e8
call fcn.00433740
mov dword [ebp], edi
mov eax, dword [0x56b138]
test eax, eax
je 0x481fd4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebx
add ebp, 4
cmp ebx, dword [esi]
jb 0x481f78
pop edi
pop ebp
xor eax, eax
mov dword [esi + 0x188], eax
mov dword [esi + 0x18c], eax
mov dword [esi + 0x84], eax
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x483000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
xor esi, esi
jmp 0x483025
xor edi, edi
push 0xf
call ebp
mov edx, dword [0x51f7e4]
push 1
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x4eac24]
push edi
push eax
push edx
mov dword [esp + 0x34], edi
call ebx
push 0xf
mov dword [esi + 0x4eac48], eax
call ebp
mov dword [esp + 0x18], edi
mov edi, dword [esi + 0x4eac28]
push 2
mov dword [esp + 0x20], eax
mov eax, dword [0x51f7e4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x51f7e4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48308b
movzx eax, word [eax + 0xe]
cmp eax, 8
je 0x483093
mov dword [esp + 0x18], 0x800080
mov eax, dword [0x51f7e4]
push 1
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call ebx
mov dword [esi + 0x4eac4c], eax
add esi, 0x38
cmp esi, 0x460
jb 0x483023
push 0xf
mov dword [esp + 0x2c], 0xc0c0c0
call ebp
mov edx, dword [0x51f7e4]
push 1
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x67
push edx
mov dword [esp + 0x40], eax
call ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x18], eax
cmp byte [0x51f824], 0
je 0x4830f4
push eax
call fcn.0049e040
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x484580
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x48459b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.0046c5f0
test eax, eax
je 0x484753
mov eax, dword [0x51f7e0]
mov ecx, dword [0x535584]
push ebx
push ebp
push edi
push 0
push eax
push 0xd
push ecx
push 0
push 0
push 0
push 0
push 0x56000944
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x14
push 0x41e
push eax
mov dword [esi + 4], eax
call ebp
call fcn.0049e9f0
mov ebx, 0x10
mov byte [esp + 0x13], al
mov dword [esp + 0x14], ebx
test al, al
je 0x484622
push ebx
call fcn.0049e950
push 0x10
mov ebx, eax
call fcn.0049e950
mov dword [esp + 0x14], eax
movzx edi, word [esp + 0x14]
mov eax, dword [esi + 4]
movzx edx, bx
shl edi, 0x10
or edi, edx
push edi
push 0
push 0x41f
push eax
call ebp
mov ecx, dword [esi + 4]
push edi
push 0
push 0x420
push ecx
call ebp
push 0
push 0xf
push str.FolderUp.bmp
mov ecx, 0x544890
call fcn.004814e0
mov edi, eax
test edi, edi
jne 0x484667
mov edi, dword [esi + 0x18]
cmp byte [esp + 0x13], 0
je 0x484687
mov edx, dword [esp + 0x14]
push edx
push ebx
push edi
call fcn.0049e130
mov edi, eax
push edi
mov ecx, 0x544890
call fcn.004812b0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x18]
push eax
push 1
push 0x413
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
call ebp
mov edx, dword [esi + 4]
push 0x4eb080
push 1
push 0x444
push edx
call ebp
lea eax, [esp + 0x30]
push eax
push 2
mov ecx, esi
call fcn.00483850
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0x38
mov dword [esp + 0x34], 0x173
test eax, eax
jne 0x4846e2
mov eax, 1
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
or eax, 4
push 0x12
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x68], 2
mov dword [esp + 0x58], 0
call edi
push 0xf
mov dword [esp + 0x40], eax
call edi
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x40], eax
jne 0x484725
mov dword [esp + 0x5c], 0x28
mov eax, dword [0x53fdb8]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x30]
push edx
push 0xffffffffffffffff
push 0x40a
push eax
mov dword [esp + 0x68], ecx
call ebp
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x70
ret

Function at 0x485c30
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x5331cc]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x56c150]
mov edx, dword [0x5331d4]
mov dword [0x5331cc], ecx
movzx ecx, cl
add ecx, dword [0x5331d0]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x5331d0], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x56c150]
mov dword [0x5331d4], edx
ret 4
Function at 0x485c90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
push 0x56c150
call fcn.00427c40
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x5331cc], eax
mov dword [0x5331d0], edx
mov dword [0x5331d4], esi
mov cl, byte [edi]
test cl, cl
je 0x485d20
jmp 0x485cd0
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x56c150]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x56c150]
mov dword [0x5331cc], eax
mov dword [0x5331d0], edx
mov dword [0x5331d4], esi
mov cl, byte [edi]
test cl, cl
jne 0x485cd0
pop edi
pop esi
ret 4
Function at 0x4894c0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
mov esi, dword [esp + 0x418]
push edi
mov ebx, ecx
movzx edi, word [ebx]
sub edi, dword [esi + 0x654]
mov dword [esp + 0x14], ebx
push edi
push esi
call fcn.004892b0
mov dl, byte [esi + 0xa6c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, 6
lea ebp, [esp + 0x18]
xor ecx, ecx
lea ecx, [ecx]
movzx ebx, byte [eax + 6]
add eax, 6
cmp byte [ebx + esi + 0x66c], dl
je 0x489500
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x489500
add dword [esi + 0x4a84], ecx
mov eax, dword [esi + 0x4a78]
xor edx, edx
div dword [esi + 0x4a84]
xor edx, edx
mov edi, eax
mov eax, dword [esi + 0x4a74]
sub eax, dword [esi + 0x4a70]
mov dword [esi + 0x4a78], edi
div edi
mov ebx, dword [esi + 0x4a84]
cmp eax, ebx
jl 0x489566
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x408
ret 4
cmp eax, ecx
mov edx, dword [esp + 0x18]
lea edi, [esp + 0x18]
jge 0x4895e3
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x489590
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x489580
mov edi, dword [esp + 0x10]
mov dword [esi + 0x4a80], ecx
movzx eax, byte [edx + 1]
sub ecx, eax
mov dword [esi + 0x4a7c], ecx
mov cl, byte [edi + 2]
cmp cl, 7
jae 0x4895c9
add byte [edi + 3], 0xff
jne 0x4895c9
mov ax, word [edi]
add ax, ax
mov word [edi], ax
mov al, 3
shl al, cl
inc cl
mov byte [edi + 2], cl
mov byte [edi + 3], al
mov ecx, dword [esp + 0x14]
push edx
push esi
call fcn.00489270
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4
mov edi, dword [esp + 0x14]
mov dword [esi + 0x4a7c], ecx
mov dword [esi + 0x4a80], ebx
movzx ecx, word [edi]
sub ecx, dword [esi + 0x654]
lea eax, [esp + 0x18]
sub eax, 4
mov edx, dword [eax + 4]
movzx edx, byte [edx]
mov bl, byte [esi + 0xa6c]
add eax, 4
sub ecx, 1
mov byte [edx + esi + 0x66c], bl
jne 0x489603
mov cx, word [esi + 0x4a84]
mov eax, dword [esp + 0x10]
add word [eax], cx
movzx edx, word [edi]
pop edi
mov dword [esi + 0x654], edx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x408
ret 4

Function at 0x48d2a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d51ee
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x4eb984]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov byte [esp + 0x10], 1
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
mov byte [esp + 0x10], 2
mov dword [eax + 0x10], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x14], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret
Function at 0x493500
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov ebx, ecx
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x2710
ja 0x493584
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [ecx + 0xe0]
call eax
cmp dword [esp + 0x10], 4
je 0x493583
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x493578
lea edx, [esp + 0x24]
push edx
call ebp
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
call esi
sub eax, edi
cmp eax, 0x2710
jbe 0x493524
pop ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0
lea edx, [esp + 0x14]
push edx
mov eax, 3
mov word [esp + 0x18], ax
mov eax, dword [ebx + 0xc]
push 2
mov dword [esp + 0x24], 0x96
mov ecx, dword [eax]
push 0x3f
push eax
mov eax, dword [ecx + 0xd8]
call eax
pop edi
pop esi
pop ebx
add esp, 0x30
ret

Function at 0x494600
Capabilities:
Hide graphical window

Disassembly:
mov al, byte [esp + 0x14]
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push 0
mov esi, ecx
push ebx
mov byte [esi + 0x29], al
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00494580
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
push ebx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea edx, [esp + 0xc]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x494666
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 8]
push ebp
push edi
mov edi, dword [esp + 0x18]
push esi
mov ebp, eax
sub edi, eax
mov eax, dword [esi]
push eax
push 0
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
sub ecx, eax
push ecx
push edi
push eax
push ebp
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp dword [esi + 0xc], 0
pop edi
mov dword [esi + 4], eax
pop ebp
jne 0x4946f0
test ebx, ebx
je 0x494714
cmp dword [esi + 0x1c], 0
jne 0x494714
mov eax, dword [esi + 0x18]
test eax, eax
je 0x494714
push eax
mov ecx, esi
call fcn.00493d00
mov esi, eax
test esi, esi
je 0x494714
push 5
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004c1404
add esp, 4
pop esi
pop ebx
add esp, 0x10
ret 0x14
test eax, eax
je 0x494707
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x24], 0x64
jbe 0x494714
mov ecx, esi
call fcn.00493500
pop esi
pop ebx
add esp, 0x10
ret 0x14
Function at 0x495630
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x4956a9
push ebx
push 0x800
push 0x54894e
push str.Rar_CM
call fcn.0049ea90
mov ebx, eax
test ebx, ebx
je 0x4956a8
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495660
sub eax, edx
sar eax, 1
push esi
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x495677
sub eax, edx
push ebx
sar eax, 1
push eax
push 2
push edi
call fcn.004c3690
push ebx
call fcn.004c34b2
add esp, 0x14
test esi, esi
pop esi
jbe 0x4956a8
mov dword [0x549950], 3
pop ebx
pop edi
ret 4

Function at 0x4959a0
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov eax, 0x5408
call fcn.004c0c80
mov eax, dword [0x4eb984]
xor eax, esp
mov dword [esp + 0x5404], eax
push edi
push ebx
call fcn.00460330
push 0x3a
push eax
call fcn.004c2207
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
add esp, 8
test eax, eax
je 0x495a03
cmp byte [0x56c7a0], 0
jne 0x495a03
push 0x31
push 0x65
call fcn.004750b0
push eax
push 0x528
call fcn.004750b0
push eax
push esi
call edi
cmp eax, 1
jne 0x495b7e
mov byte [0x56c7a0], al
lea edx, [esp + 0x1008]
mov eax, ebx
sub edx, ebx
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x495a10
lea eax, [esp + 0x1008]
push eax
call fcn.00460620
push 0x800
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1010]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [esp + 8]
xor eax, eax
push ecx
mov word [esp + 0x100a], ax
call fcn.00460330
cmp word [eax], 0
je 0x495ad2
lea edx, [esp + 8]
push edx
call fcn.0043ca60
test al, al
jne 0x495ad2
lea esp, [esp]
push 0x14d
call fcn.004750b0
push eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x4010]
push str.__s__n_s
push ecx
mov edx, 0xa00
call fcn.00495190
add esp, 0x10
push 0x34
push 0x65
call fcn.004750b0
push eax
lea edx, [esp + 0x4010]
push edx
push esi
call edi
cmp eax, 6
jne 0x495b7e
push 0
lea eax, [esp + 0xc]
push eax
call fcn.0043d140
lea ecx, [esp + 8]
push ecx
call fcn.0043ca60
test al, al
je 0x495a70
call fcn.0044b030
cmp eax, 0x501
jb 0x495b96
push 0x800
lea edx, [esp + 0x200c]
push edx
push ebx
mov ecx, 0x53fdc8
call fcn.0044bbf0
push 0x800
lea eax, [esp + 0x300c]
push eax
lea ecx, [esp + 0x2010]
push ecx
call fcn.00460c70
push 0
push 0
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3024]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x495b96
test dword [esp + 4], 0x80000
je 0x495b96
lea ecx, [esp + 0x3008]
push ecx
push 0x65e
call fcn.004750b0
push eax
lea edx, [esp + 0x4010]
push edx
mov edx, 0xa00
call fcn.00495190
add esp, 0xc
push 0x30
push 0x65
call fcn.004750b0
push eax
lea eax, [esp + 0x4010]
push eax
push esi
call edi
xor al, al
pop edi
mov ecx, dword [esp + 0x5404]
xor ecx, esp
call fcn.004c0c62
add esp, 0x5408
ret
mov ecx, dword [esp + 0x5408]
pop edi
xor ecx, esp
mov al, 1
call fcn.004c0c62
add esp, 0x5408
ret