joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a1f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
push ebx
push esi
push 0x4c8358
push eax
mov esi, ecx
call fcn.0048b7b0
mov ebx, eax
test ebx, ebx
sete al
mov byte [esi + 0x1c2c], al
test al, al
jne 0x46a3df
push ebx
push 1
lea ecx, [esp + 0x18]
push 0x16
push ecx
call fcn.004b2cda
add esp, 0x10
cmp word [esp + 0x10], 0
jne 0x46a3d6
cmp word [esp + 0x12], 1
jne 0x46a3d6
push ebp
push edi
push 0
push 0
push ebx
call fcn.004b35d1
movzx edx, word [esp + 0x28]
dec edx
shl edx, 4
add edx, 0x16
push edx
call fcn.004b00f7
mov esi, eax
movzx eax, word [esp + 0x2c]
dec eax
lea ecx, [eax*8]
sub ecx, eax
lea edx, [ecx + ecx + 0x14]
push edx
call fcn.004b00f7
mov edi, eax
movzx eax, word [esp + 0x30]
dec eax
push ebx
shl eax, 4
push 1
add eax, 0x16
push eax
push esi
mov dword [esp + 0x38], edi
call fcn.004b2cda
mov ecx, dword [esi]
mov dword [edi], ecx
mov edx, dword [esi + 4]
mov dword [edi + 4], edx
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x10]
xor eax, eax
add esp, 0x24
mov dword [edi + 0x10], edx
mov dword [esp + 0x38], 0
cmp ax, word [esp + 0x1c]
jae 0x46a37b
lea eax, [edi + 0x12]
lea ebp, [esi + 0xe]
mov dword [esp + 0x10], eax
jmp 0x46a2e4
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [eax - 8], edx
mov ecx, dword [ebp]
mov dword [eax - 4], ecx
mov ecx, dword [esp + 0x38]
inc ecx
mov word [eax], cx
mov edi, dword [ebp]
push edi
call fcn.004b00f7
mov esi, eax
add esp, 4
test esi, esi
je 0x46a3c1
mov edx, dword [ebp + 4]
push 0
push edx
push ebx
call fcn.004b35d1
push ebx
push 1
push edi
push esi
call fcn.004b2cda
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add esp, 0x1c
push edi
push esi
inc eax
push 0x400
movzx eax, ax
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push esi
mov edi, eax
call fcn.004b01c1
add esp, 4
test edi, edi
je 0x46a3c1
mov eax, dword [esp + 0x38]
movzx edx, word [esp + 0x1c]
add dword [esp + 0x10], 0xe
inc eax
add ebp, 0x10
cmp eax, edx
mov dword [esp + 0x38], eax
jl 0x46a2e0
mov edi, dword [esp + 0x14]
push ebx
call fcn.004b2d6e
movzx eax, word [esp + 0x20]
dec eax
add esp, 4
lea ecx, [eax*8]
sub ecx, eax
movzx eax, word [esp + 0x3c]
lea edx, [ecx + ecx + 0x14]
mov ecx, dword [esp + 0x34]
push edx
push edi
push 0x400
push eax
push 0xe
push ecx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
pop edi
neg eax
pop ebp
sbb eax, eax
pop esi
neg eax
pop ebx
add esp, 0x20
ret 0xc
push ebx
call fcn.004b2d6e
add esp, 4
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
push ebx
call fcn.004b2d6e
add esp, 4
pop esi
xor al, al
pop ebx
add esp, 0x20
ret 0xc
Function at 0x46a3f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x4c8358
push eax
mov edi, ecx
call fcn.0048b7b0
mov esi, eax
test esi, esi
sete al
mov byte [edi + 0x1c2c], al
test al, al
jne 0x46a4ed
push esi
call fcn.004b3b8f
add esp, 4
cmp eax, 0x42
jne 0x46a4e4
push esi
call fcn.004b3b8f
add esp, 4
cmp eax, 0x4d
jne 0x46a4e4
push 0
push 2
push esi
call fcn.004b35d1
push esi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.004b2cda
mov eax, dword [esp + 0x2c]
sub eax, 0xe
push eax
mov dword [esp + 0x30], eax
call fcn.004b00f7
mov edi, eax
add esp, 0x20
test edi, edi
je 0x46a4e4
push 0
push 0xe
push esi
call fcn.004b35d1
mov edx, dword [esp + 0x1c]
push esi
push edx
push 1
push edi
call fcn.004b2cda
add esp, 0x1c
cmp eax, dword [esp + 0x10]
je 0x46a4a6
push edi
call fcn.004b01c1
push esi
call fcn.004b2d6e
add esp, 8
pop edi
xor al, al
pop esi
ret 0xc
push esi
call fcn.004b2d6e
mov eax, dword [esp + 0x14]
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0x10]
add esp, 4
push eax
push edi
push 0x400
push ecx
push 2
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push edi
mov esi, eax
call fcn.004b01c1
add esp, 4
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
ret 0xc
push esi
call fcn.004b2d6e
add esp, 4
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x46a560
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push edi
push 0x4c8358
push eax
mov edi, ecx
call fcn.0048b7b0
mov esi, eax
test esi, esi
sete al
mov byte [edi + 0x1c2c], al
test al, al
je 0x46a59f
mov al, 1
jmp 0x46a5e9
push esi
push 0x400
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004b2cda
push esi
mov edi, eax
call fcn.004b2d6e
lea ecx, [edi - 4]
add esp, 0x14
xor eax, eax
test ecx, ecx
jle 0x46a5e7
mov dl, 0x55
cmp byte [esp + eax + 8], dl
jne 0x46a5e2
cmp byte [esp + eax + 9], 0x50
jne 0x46a5e2
cmp byte [esp + eax + 0xa], 0x58
jne 0x46a5e2
cmp byte [esp + eax + 0xb], 0x30
je 0x46a59b
inc eax
cmp eax, ecx
jl 0x46a5c7
xor al, al
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004affec
add esp, 0x404
ret 4

Function at 0x46a610
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebx
push esi
push edi
mov edi, dword [esp + 0x2018]
push 0x4c8358
push eax
mov ebx, ecx
call fcn.0048b7b0
mov esi, eax
test esi, esi
sete al
mov byte [ebx + 0x1c2c], al
test al, al
je 0x46a65b
xor al, al
jmp 0x46a6a6
push esi
push 0x2000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004b2cda
add esp, 0x10
test eax, eax
je 0x46a69b
push edi
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
call fcn.004b29b8
push esi
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.004b2cda
add esp, 0x20
test eax, eax
jne 0x46a674
push esi
call fcn.004b2d6e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004affec
add esp, 0x2004
ret 8
Function at 0x46a6c0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x201c]
push 0x4c8358
push eax
mov dword [esp + 0x14], ecx
call fcn.0048b7b0
mov ebp, eax
test ebp, ebp
sete al
mov byte [esi + 0x1c2c], al
test al, al
je 0x46a711
xor eax, eax
jmp 0x46a85a
push ebx
push edi
push ebp
push 0x2000
lea edx, [esp + 0x20]
push 1
push edx
mov dword [esp + 0x20], 0
call fcn.004b2cda
mov ebx, eax
add esp, 0x10
cmp ebx, 0x28
jbe 0x46a81a
jmp 0x46a740
lea eax, [ebx - 0x28]
xor edi, edi
test eax, eax
jbe 0x46a7e5
lea esi, [esp + 0x1c]
cmp byte [esp + edi + 0x18], 0x2a
jne 0x46a77b
cmp byte [esp + edi + 0x19], 0x2a
jne 0x46a77b
push 0xc
lea eax, [esp + edi + 0x1e]
push str.messages
push eax
call fcn.004b18a7
add esp, 0xc
test eax, eax
je 0x46a827
mov eax, 0x2a
cmp word [esi - 4], ax
jne 0x46a7a9
cmp word [esi - 2], ax
jne 0x46a7a9
push 0xc
push 0x4ca4b8
push esi
call fcn.004b1e56
add esp, 0xc
test eax, eax
je 0x46a827
mov eax, 0x2a
mov ecx, 0xfeff
cmp word [esi - 4], cx
jne 0x46a7d6
cmp word [esi - 2], ax
jne 0x46a7d6
cmp word [esi], ax
jne 0x46a7d6
push 0xc
lea edx, [esi + 2]
push 0x4ca4b8
push edx
call fcn.004b1e56
add esp, 0xc
test eax, eax
je 0x46a827
inc edi
lea eax, [ebx - 0x28]
add esi, 2
cmp edi, eax
jb 0x46a751
mov eax, dword [esp + 0x10]
lea ebx, [eax + ebx - 0x28]
push 0
push ebx
push ebp
mov dword [esp + 0x1c], ebx
call fcn.004b35d1
push ebp
push 0x2000
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.004b2cda
mov ebx, eax
add esp, 0x1c
cmp ebx, 0x28
ja 0x46a740
push ebp
call fcn.004b2d6e
add esp, 4
xor eax, eax
jmp 0x46a858
mov edx, dword [esp + 0x10]
push 0
add edi, edx
push edi
push ebp
call fcn.004b35d1
mov eax, dword [esp + 0x2034]
mov ecx, dword [esp + 0x20]
push ebp
push eax
push 1
push ecx
call fcn.004b2cda
push ebp
mov esi, eax
call fcn.004b2d6e
add esp, 0x20
mov eax, esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2010]
pop esi
pop ebp
xor ecx, esp
call fcn.004affec
add esp, 0x200c
ret 0xc
Function at 0x46a880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
push edi
push 0x4ca5e8
push eax
mov esi, ecx
call fcn.0048b7b0
mov edi, eax
test edi, edi
sete al
mov byte [esi + 0x1c2c], al
test al, al
je 0x46a8c6
xor al, al
jmp 0x46a981
push ebx
push ebp
push edi
push 0x2000
lea eax, [esp + 0x18]
push 1
push eax
xor ebx, ebx
call fcn.004b2cda
mov ebp, eax
add esp, 0x10
cmp ebp, 0x20
jbe 0x46a947
lea eax, [ebp - 0x20]
xor esi, esi
test eax, eax
jle 0x46a91e
nop
cmp byte [esp + esi + 0x10], 0x61
jne 0x46a916
cmp byte [esp + esi + 0x11], 0x73
jne 0x46a916
push 0x14
lea ecx, [esp + esi + 0x16]
push str.Invoker_
push ecx
call fcn.004b18a7
add esp, 0xc
test eax, eax
je 0x46a954
inc esi
lea eax, [ebp - 0x20]
cmp esi, eax
jl 0x46a8f0
push 0
lea ebx, [ebx + ebp - 0x20]
push ebx
push edi
call fcn.004b35d1
push edi
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.004b2cda
mov ebp, eax
add esp, 0x1c
cmp ebp, 0x20
ja 0x46a8e6
push edi
call fcn.004b2d6e
add esp, 4
xor al, al
jmp 0x46a97f
push 0
add esi, ebx
push esi
push edi
call fcn.004b35d1
push edi
push 0x15
push 1
push str.requireAdministrator_
call fcn.004b29b8
cmp eax, 0x15
push edi
sete bl
call fcn.004b2d6e
add esp, 0x20
mov al, bl
pop ebp
pop ebx
mov ecx, dword [esp + 0x2008]
pop edi
pop esi
xor ecx, esp
call fcn.004affec
add esp, 0x2004
ret 4

Function at 0x46bde0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004b0000
mov eax, dword [0x4d98f0]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x4c8358
push eax
call fcn.00435dd0
mov esi, eax
mov dword [esp + 8], esi
cmp esi, ebx
jne 0x46be20
xor al, al
jmp 0x46beb0
push ebp
push edi
mov dword [esp + 0x14], ebx
push esi
push 0x2000
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004b2cda
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jle 0x46bea3
lea ebp, [edi - 0x20]
xor esi, esi
test ebp, ebp
jle 0x46be7b
jmp 0x46be50
cmp byte [esp + esi + 0x18], 0x72
jne 0x46be76
cmp byte [esp + esi + 0x19], 0x65
jne 0x46be76
push 0x14
lea ecx, [esp + esi + 0x1e]
push str.quireAdministrator_
push ecx
call fcn.004b18a7
add esp, 0xc
test eax, eax
je 0x46bec9
inc esi
cmp esi, ebp
jl 0x46be50
mov edx, dword [esp + 0x10]
push 0
lea ebx, [ebx + edi - 0x20]
push ebx
push edx
call fcn.004b35d1
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc eax
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x80
jb 0x46be26
push esi
call fcn.004b2d6e
add esp, 4
xor al, al
pop edi
pop ebp
mov ecx, dword [esp + 0x2010]
pop esi
pop ebx
xor ecx, esp
call fcn.004affec
add esp, 0x200c
ret 4
mov eax, dword [esp + 0x10]
push eax
call fcn.004b2d6e
add esp, 4
mov al, 1
jmp 0x46beae
Function at 0x473ba0
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 0x473bc5
xor edi, edi
push 0xf
call ebp
mov edx, dword [0x5072f0]
push 1
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x4d8bf4]
push edi
push eax
push edx
mov dword [esp + 0x34], edi
call ebx
push 0xf
mov dword [esi + 0x4d8c18], eax
call ebp
mov dword [esp + 0x18], edi
mov edi, dword [esi + 0x4d8bf8]
push 2
mov dword [esp + 0x20], eax
mov eax, dword [0x5072f0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [0x5072f0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x473c2b
movzx eax, word [eax + 0xe]
cmp eax, 8
je 0x473c33
mov dword [esp + 0x18], 0x800080
mov eax, dword [0x5072f0]
push 1
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call ebx
mov dword [esi + 0x4d8c1c], eax
add esi, 0x38
cmp esi, 0x460
jb 0x473bc3
push 0xf
mov dword [esp + 0x2c], 0xc0c0c0
call ebp
mov edx, dword [0x5072f0]
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 [0x507328], 0
je 0x473c94
push eax
call fcn.0048ad30
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475120
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x47513b
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.004604a0
test eax, eax
je 0x4752f3
mov eax, dword [0x5072ec]
mov ecx, dword [0x51b8cc]
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.0048b740
mov ebx, 0x10
mov byte [esp + 0x13], al
mov dword [esp + 0x14], ebx
test al, al
je 0x4751c2
push ebx
call fcn.0048b6a0
push 0x10
mov ebx, eax
call fcn.0048b6a0
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, 0x522fe0
call fcn.00472450
mov edi, eax
test edi, edi
jne 0x475207
mov edi, dword [esi + 0x18]
cmp byte [esp + 0x13], 0
je 0x475227
mov edx, dword [esp + 0x14]
push edx
push ebx
push edi
call fcn.0048ae20
mov edi, eax
push edi
mov ecx, 0x522fe0
call fcn.00472210
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 0x4d9050
push 1
push 0x444
push edx
call ebp
lea eax, [esp + 0x30]
push eax
push 2
mov ecx, esi
call fcn.004743f0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0x38
mov dword [esp + 0x34], 0x173
test eax, eax
jne 0x475282
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 0x4752c5
mov dword [esp + 0x5c], 0x28
mov eax, dword [0x521098]
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 0x4767d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x51a514]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x4e18b8]
mov edx, dword [0x51a51c]
mov dword [0x51a514], ecx
movzx ecx, cl
add ecx, dword [0x51a518]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x51a518], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4e18b8]
mov dword [0x51a51c], edx
ret 4
Function at 0x480620
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 0x4806a4
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 0x4806a3
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 0x480698
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 0x480644
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 0x481710
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.00481690
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 0x481776
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 0x481800
test ebx, ebx
je 0x481824
cmp dword [esi + 0x1c], 0
jne 0x481824
mov eax, dword [esi + 0x18]
test eax, eax
je 0x481824
push eax
mov ecx, esi
call fcn.00480e10
mov esi, eax
test esi, esi
je 0x481824
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.004b01c1
add esp, 4
pop esi
pop ebx
add esp, 0x10
ret 0x14
test eax, eax
je 0x481817
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 0x481824
mov ecx, esi
call fcn.00480620
pop esi
pop ebx
add esp, 0x10
ret 0x14
Function at 0x482800
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x482872
push ebx
push 0x5258e2
push str.Rar_CM
call fcn.0048b7e0
mov ebx, eax
test ebx, ebx
je 0x482871
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482824
sub eax, edx
sar eax, 1
push esi
mov esi, eax
mov eax, edi
lea edx, [eax + 2]
jmp 0x482840
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x482840
sub eax, edx
push ebx
sar eax, 1
push eax
push 2
push edi
call fcn.004b29b8
push ebx
call fcn.004b2d6e
add esp, 0x14
test esi, esi
pop esi
jbe 0x482871
mov dword [0x5260e4], 3
pop ebx
pop edi
ret 4

Function at 0x482880
Capabilities:
Get memory capacity

Disassembly:
mov eax, dword [0x53b4c4]
sub esp, 0x20
test eax, eax
jne 0x4828c8
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov eax, 0x400000
mov dword [0x53b4c4], eax
cmp ecx, 0x8000000
ja 0x4828b6
mov eax, 0x200000
mov dword [0x53b4c4], eax
cmp ecx, 0x4000000
ja 0x4828c8
mov eax, 0x100000
mov dword [0x53b4c4], eax
add esp, 0x20
ret
Function at 0x48a110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1a0
mov al, byte [esp + 0x1ac]
mov edx, dword [esp + 0x1a4]
push ebx
mov bl, byte [esp + 0x1ac]
movzx ecx, bl
push esi
mov byte [0x53b4ed], al
mov eax, dword [0x5072f0]
mov dword [esp + 0x58], ecx
mov esi, 0x34
push 1
mov ecx, 0x522fe0
mov dword [0x53b4d0], 0
mov dword [0x53b4cc], 0
mov dword [esp + 0x4c], str.GETARC
mov dword [esp + 0x58], 0x489350
mov dword [esp + 0x80], str.GETARCADV
mov dword [esp + 0x8c], 0x487f50
mov dword [esp + 0xb4], str.GETARCOPT
mov dword [esp + 0xc0], 0x4836a0
mov dword [esp + 0xe8], str.GETARCFILES
mov dword [esp + 0xf4], 0x483a90
mov dword [esp + 0x11c], str.GETARCBACKUP
mov dword [esp + 0x128], 0x484080
mov dword [esp + 0x150], str.GETARCTIME
mov dword [esp + 0x15c], 0x484320
mov dword [esp + 0x184], str.GETARCCMT
mov dword [esp + 0x190], 0x4849d0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x28a
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call fcn.00471750
cmp byte [esp + 0x1b4], 0
mov dword [esp + 0x18], eax
je 0x48a220
push 0x3f6
jmp 0x48a238
movzx ecx, word [0x526cec]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffd08
add ecx, 0x3de
push ecx
call fcn.00466860
mov ecx, 0x20
mov dword [esp + 0x1c], eax
mov eax, dword [0x5072f0]
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x148], eax
mov dword [esp + 0x17c], eax
push 7
mov dword [esp + 0x44], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0xac], ecx
mov dword [esp + 0xe0], ecx
mov dword [esp + 0x114], ecx
mov dword [esp + 0x148], ecx
mov dword [esp + 0x17c], ecx
mov eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x50730c
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x48], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x14c], esi
mov dword [esp + 0x180], esi
call fcn.00466570
test bl, bl
jne 0x48a322
lea edx, [esp + 8]
push edx
call dword [sym.imp.COMCTL32.dll_PropertySheetW]
test eax, eax
jle 0x48a31e
cmp word [0x529c92], 0
jne 0x48a322
cmp byte [esp + 0x1b4], bl
jne 0x48a322
xor bl, bl
jmp 0x48a324
mov bl, 1
push 7
lea eax, [esp + 0x40]
push eax
mov ecx, 0x50730c
call fcn.004655f0
pop esi
mov al, bl
mov byte [0x51b8fc], 0
pop ebx
add esp, 0x1a0
ret 0xc