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

Disassembly:
push ecx
push esi
push 0x4b1948
push eax
call fcn.0049f968
mov esi, eax
add esp, 8
test esi, esi
je 0x45f463
push esi
call fcn.004a17cd
add esp, 4
cmp eax, 0x42
jne 0x45f45a
push esi
call fcn.004a17cd
add esp, 4
cmp eax, 0x4d
jne 0x45f45a
push edi
push 0
push 2
push esi
call fcn.0049fec5
push esi
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.0049fc19
mov eax, dword [esp + 0x24]
sub eax, 0xe
push eax
mov dword [esp + 0x28], eax
call fcn.0049e19f
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x45f3e3
push esi
call fcn.0049f646
add esp, 4
pop edi
xor al, al
pop esi
pop ecx
ret 8
push 0
push 0xe
push esi
call fcn.0049fec5
mov edx, dword [esp + 0x14]
push esi
push edx
push 1
push edi
call fcn.0049fc19
add esp, 0x1c
cmp eax, dword [esp + 8]
je 0x45f41b
push edi
call fcn.0049de1d
push esi
call fcn.0049f646
add esp, 8
pop edi
xor al, al
pop esi
pop ecx
ret 8
push esi
call fcn.0049f646
mov eax, dword [esp + 0xc]
movzx ecx, word [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
push eax
push edi
push 0x400
push ecx
push 2
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edi
mov esi, eax
call fcn.0049de1d
add esp, 4
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
pop ecx
ret 8
push esi
call fcn.0049f646
add esp, 4
xor al, al
pop esi
pop ecx
ret 8

Function at 0x45f4d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push 0x4b1948
push eax
call fcn.0049f968
mov esi, eax
add esp, 8
test esi, esi
jne 0x45f51a
mov al, 1
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x404
ret 4
push edi
push esi
push 0x400
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0049fc19
push esi
mov edi, eax
call fcn.0049f646
lea ecx, [edi - 4]
add esp, 0x14
xor eax, eax
pop edi
test ecx, ecx
jle 0x45f564
mov dl, 0x55
cmp byte [esp + eax + 4], dl
jne 0x45f55f
cmp byte [esp + eax + 5], 0x50
jne 0x45f55f
cmp byte [esp + eax + 6], 0x58
jne 0x45f55f
cmp byte [esp + eax + 7], 0x30
je 0x45f500
inc eax
cmp eax, ecx
jl 0x45f544
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
xor al, al
call fcn.0049e0c6
add esp, 0x404
ret 4

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

Disassembly:
mov eax, 0x2004
call fcn.0049e650
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push esi
push 0x4b1948
push eax
call fcn.0049f968
mov esi, eax
add esp, 8
test esi, esi
jne 0x45f5ce
xor al, al
pop esi
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x2004
ret 4
push esi
push 0x2000
lea eax, [esp + 0xc]
push 1
push eax
call fcn.0049fc19
add esp, 0x10
test eax, eax
je 0x45f60e
push edi
push eax
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.0049f822
push esi
push 0x2000
lea edx, [esp + 0x1c]
push 1
push edx
call fcn.0049fc19
add esp, 0x20
test eax, eax
jne 0x45f5e7
push esi
call fcn.0049f646
mov ecx, dword [esp + 0x2008]
add esp, 4
pop esi
xor ecx, esp
mov al, 1
call fcn.0049e0c6
add esp, 0x2004
ret 4
Function at 0x45f640
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2008
call fcn.0049e650
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x200c]
push edi
push 0x4b1948
push eax
mov dword [esp + 0xc], ecx
call fcn.0049f968
mov edi, eax
add esp, 8
test edi, edi
jne 0x45f690
pop edi
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x2008
ret 8
push ebx
push ebp
push esi
push edi
push 0x2000
lea edx, [esp + 0x1c]
push 1
push edx
xor ebx, ebx
call fcn.0049fc19
mov ebp, eax
add esp, 0x10
cmp ebp, 0x20
jbe 0x45f717
lea eax, [ebp - 0x20]
xor esi, esi
test eax, eax
jbe 0x45f6ee
lea ebx, [ebx]
cmp byte [esp + esi + 0x14], 0x2a
jne 0x45f6e6
cmp byte [esp + esi + 0x15], 0x2a
jne 0x45f6e6
push 0xc
lea eax, [esp + esi + 0x1a]
push str.messages
push eax
call fcn.0049f25f
add esp, 0xc
test eax, eax
je 0x45f724
inc esi
lea eax, [ebp - 0x20]
cmp esi, eax
jb 0x45f6c0
push 0
lea ebx, [ebx + ebp - 0x20]
push ebx
push edi
call fcn.0049fec5
push edi
push 0x2000
lea ecx, [esp + 0x28]
push 1
push ecx
call fcn.0049fc19
mov ebp, eax
add esp, 0x1c
cmp ebp, 0x20
ja 0x45f6b1
push edi
call fcn.0049f646
add esp, 4
xor eax, eax
jmp 0x45f751
push 0
add esi, ebx
push esi
push edi
call fcn.0049fec5
mov edx, dword [esp + 0x202c]
mov eax, dword [esp + 0x1c]
push edi
push edx
push 1
push eax
call fcn.0049fc19
push edi
mov esi, eax
call fcn.0049f646
add esp, 0x20
mov eax, esi
mov ecx, dword [esp + 0x2014]
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
call fcn.0049e0c6
add esp, 0x2008
ret 8

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

Disassembly:
mov eax, 0x2004
call fcn.0049e650
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebp
push 0x4b3bf4
push eax
call fcn.0049f968
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x45f7be
xor al, al
pop ebp
mov ecx, dword [esp + 0x2000]
xor ecx, esp
call fcn.0049e0c6
add esp, 0x2004
ret 4
push ebx
push esi
push edi
push ebp
push 0x2000
lea eax, [esp + 0x18]
push 1
push eax
xor ebx, ebx
call fcn.0049fc19
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jbe 0x45f847
nop
lea eax, [edi - 0x20]
xor esi, esi
test eax, eax
jle 0x45f81e
lea esp, [esp]
cmp byte [esp + esi + 0x10], 0x61
jne 0x45f816
cmp byte [esp + esi + 0x11], 0x73
jne 0x45f816
push 0x14
lea ecx, [esp + esi + 0x16]
push str.Invoker_
push ecx
call fcn.0049f25f
add esp, 0xc
test eax, eax
je 0x45f854
inc esi
lea eax, [edi - 0x20]
cmp esi, eax
jl 0x45f7f0
push 0
lea ebx, [ebx + edi - 0x20]
push ebx
push ebp
call fcn.0049fec5
push ebp
push 0x2000
lea edx, [esp + 0x24]
push 1
push edx
call fcn.0049fc19
mov edi, eax
add esp, 0x1c
cmp edi, 0x20
ja 0x45f7e0
push ebp
call fcn.0049f646
add esp, 4
xor al, al
jmp 0x45f87f
push 0
add esi, ebx
push esi
push ebp
call fcn.0049fec5
push ebp
push 0x15
push 1
push str.requireAdministrator_
call fcn.0049f822
cmp eax, 0x15
push ebp
sete bl
call fcn.0049f646
add esp, 0x20
mov al, bl
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.0049e0c6
add esp, 0x2004
ret 4
Function at 0x460760
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.0049e650
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x4b1948
push ecx
push eax
call fcn.00430040
mov esi, eax
mov dword [esp + 8], esi
cmp esi, ebx
jne 0x4607a1
xor al, al
jmp 0x460833
push ebp
push edi
mov dword [esp + 0x14], ebx
jmp 0x4607b0
push esi
push 0x2000
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0049fc19
mov edi, eax
add esp, 0x10
cmp edi, 0x20
jle 0x460826
lea ebp, [edi - 0x20]
xor esi, esi
test ebp, ebp
jle 0x460800
cmp byte [esp + esi + 0x18], 0x72
jne 0x4607fb
cmp byte [esp + esi + 0x19], 0x65
jne 0x4607fb
push 0x14
lea ecx, [esp + esi + 0x1e]
push str.quireAdministrator_
push ecx
call fcn.0049f25f
add esp, 0xc
test eax, eax
je 0x46084c
inc esi
cmp esi, ebp
jl 0x4607d5
mov edx, dword [esp + 0x10]
push 0
lea ebx, [ebx + edi - 0x20]
push ebx
push edx
call fcn.0049fec5
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
inc eax
add esp, 0xc
mov dword [esp + 0x14], eax
cmp eax, 0x40
jb 0x4607b0
push esi
call fcn.0049f646
add esp, 4
xor al, al
pop edi
pop ebp
mov ecx, dword [esp + 0x2010]
pop esi
pop ebx
xor ecx, esp
call fcn.0049e0c6
add esp, 0x200c
ret 4
mov eax, dword [esp + 0x10]
push eax
call fcn.0049f646
add esp, 4
mov al, 1
jmp 0x460831
Function at 0x463d20
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
ret 4
Function at 0x464400
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 0x465b30
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 0x465b83
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
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 0x467730
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x2c
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
cmp edi, 0xa8
jne 0x467787
push 1
push str.Settings
call fcn.0041e350
test eax, eax
je 0x46777d
mov eax, dword [0x4dc1c8]
mov ecx, dword [0x4c9360]
add esi, 0x51c
push esi
push 0x467380
push eax
push str.ORGTHEMES
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov dword [esi], 0
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret 4
cmp edi, 0xa9
jne 0x4677b7
push 1
push 0x4b1914
push 0
push 0x4f7
call fcn.0045b8f0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret 4
mov edx, dword [0x4dc1c8]
push ebx
push 4
push edx
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
push 5
push eax
call ebx
mov ebx, eax
cmp edi, 0xaa
jne 0x4677f0
mov dword [esi + 0x114], 0xffffffff
push 0x4b1914
jmp 0x467858
lea eax, [edi - 0x3e8]
cmp eax, 0x7f
ja 0x4678a0
push 0x2c
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.0049e680
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0
push edi
push ebx
mov dword [esp + 0x1c], 0x2c
mov dword [esp + 0x20], 0x20
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
test eax, eax
je 0x4678a0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x10c]
jae 0x4678a0
mov dword [esi + 0x114], eax
imul eax, eax, 0x584
add eax, dword [esi + 0x108]
push eax
call fcn.0044d530
push eax
push str.ActivePath
push str.InterfaceThemes
call fcn.00456260
mov eax, dword [esi + 0x518]
push ebp
mov ebp, dword [sym.imp.USER32.dll_CheckMenuItem]
cmp eax, 0xffffffff
je 0x46787f
push 0
push eax
push ebx
call ebp
push 8
push edi
push ebx
call ebp
push 0
mov ecx, esi
mov dword [esi + 0x518], edi
call fcn.00466e90
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x2c
ret 4
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x2c
ret 4
Function at 0x468cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push str.COMCTL32.DLL
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], 0x700
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x468d4c
push str.InitCommonControlsEx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x468d45
lea ecx, [esp + 0x20]
push ecx
call eax
test eax, eax
setne dl
mov byte [ebx + 0x18], dl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [sym.imp.COMCTL32.dll_CreateMappedBitmap]
xor esi, esi
jmp 0x468d62
xor edi, edi
push 0xf
call ebp
mov edx, dword [0x4c9360]
push 1
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x4bf5c4]
push edi
push eax
push edx
mov dword [esp + 0x3c], edi
call ebx
push 0xf
mov dword [esi + 0x4bf5e8], eax
call ebp
mov dword [esp + 0x18], edi
mov edi, dword [esi + 0x4bf5c8]
push 2
mov dword [esp + 0x20], eax
mov eax, dword [0x4c9360]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x4c9360]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468dc8
movzx eax, word [eax + 0xe]
cmp eax, 8
je 0x468dd0
mov dword [esp + 0x18], 0x800080
mov eax, dword [0x4c9360]
push 1
lea edx, [esp + 0x1c]
push edx
push 0
push edi
push eax
call ebx
mov dword [esi + 0x4bf5ec], eax
add esi, 0x38
cmp esi, 0x460
jb 0x468d60
push 0xf
mov dword [esp + 0x34], 0xc0c0c0
call ebp
mov edx, dword [0x4c9360]
push 1
lea ecx, [esp + 0x34]
push ecx
push 0
push 0x67
push edx
mov dword [esp + 0x48], eax
call ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x1c], eax
cmp byte [0x4c938c], 0
je 0x468e31
push eax
call fcn.0047dc60
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4698c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x4698db
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.00456400
test eax, eax
je 0x469a93
mov eax, dword [0x4c935c]
mov ecx, dword [0x4dc1c8]
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_CreateWindowExA]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x14
push 0x41e
push eax
mov dword [esi + 4], eax
call ebp
call fcn.0047e960
mov ebx, 0x10
mov byte [esp + 0x13], al
mov dword [esp + 0x14], ebx
test al, al
je 0x469962
push ebx
call fcn.0047e8c0
push 0x10
mov ebx, eax
call fcn.0047e8c0
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, 0x4e2970
call fcn.00467270
mov edi, eax
test edi, edi
jne 0x4699a7
mov edi, dword [esi + 0x1c]
cmp byte [esp + 0x13], 0
je 0x4699c7
mov edx, dword [esp + 0x14]
push edx
push ebx
push edi
call fcn.0047dd50
mov edi, eax
push edi
mov ecx, 0x4e2970
call fcn.00467060
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 0x4bfa20
push 1
push 0x414
push edx
call ebp
lea eax, [esp + 0x30]
push eax
push 2
mov ecx, esi
call fcn.00468b20
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], 0x38
mov dword [esp + 0x34], 0x173
test eax, eax
jne 0x469a22
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 0x469a65
mov dword [esp + 0x5c], 0x28
mov eax, dword [0x4dfee0]
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 0x401
push eax
mov dword [esp + 0x68], ecx
call ebp
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x70
ret
Function at 0x46ca10
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x4db5d8]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x4c6a28]
mov edx, dword [0x4db5e0]
mov dword [0x4db5d8], ecx
movzx ecx, cl
add ecx, dword [0x4db5dc]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x4db5dc], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x4c6a28]
mov dword [0x4db5e0], edx
ret 4

Function at 0x46ca70
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x4db5d8], eax
mov dword [0x4db5dc], edx
mov dword [0x4db5e0], esi
mov cl, byte [edi]
test cl, cl
je 0x46caf0
lea esp, [esp]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4c6a28]
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 + 0x4c6a28]
mov dword [0x4db5d8], eax
mov dword [0x4db5dc], edx
mov dword [0x4db5e0], esi
mov cl, byte [edi]
test cl, cl
jne 0x46caa0
pop edi
pop esi
ret 4
Function at 0x470340
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.00470130
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 0x470380
movzx ebx, byte [eax + 1]
mov dword [ebp], eax
add ecx, ebx
add ebp, 4
sub edi, 1
jne 0x470380
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 0x4703e6
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 0x470463
movzx ecx, byte [edx + 1]
cmp ecx, eax
jg 0x470410
lea ebx, [ebx]
mov edx, dword [edi + 4]
movzx ebx, byte [edx + 1]
add edi, 4
add ecx, ebx
cmp ecx, eax
jle 0x470400
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 0x470449
add byte [edi + 3], 0xff
jne 0x470449
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.004700f0
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 0x470483
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 0x476b60
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x476bb0
push esi
push 0x4e42c0
push str.Rar_CMXXXXXX
call fcn.0047eb20
mov esi, eax
test esi, esi
je 0x476baf
cmp byte [esp + 0x10], 0
je 0x476b8e
push edi
push edi
call dword [sym.imp.USER32.dll_CharToOemA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x476b93
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.0049f822
push esi
call fcn.0049f646
add esp, 0x14
pop esi
pop edi
ret 8

Function at 0x476bc0
Capabilities:
Get memory capacity

Disassembly:
mov eax, dword [0x4f631c]
sub esp, 0x20
test eax, eax
jne 0x476c08
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [esp + 8]
mov eax, 0x400000
mov dword [0x4f631c], eax
cmp ecx, 0x8000000
ja 0x476bf6
mov eax, 0x200000
mov dword [0x4f631c], eax
cmp ecx, 0x4000000
ja 0x476c08
mov eax, 0x100000
mov dword [0x4f631c], eax
add esp, 0x20
ret

Function at 0x476ed0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
sub esp, 0xe04
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0xe00], eax
push ebx
push ebp
mov ebp, dword [esp + 0xe10]
push edi
call fcn.0044d530
cmp byte [0x4f61c0], 0
push 0x3a
push eax
je 0x476f0b
mov ecx, 0x4f60c0
call fcn.0046ddf0
jmp 0x476f13
call fcn.0049dd30
add esp, 8
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x476f48
cmp byte [0x4f6320], 0
jne 0x476f48
push 0x31
push 0x65
call fcn.0045b8f0
push eax
push 0x528
call fcn.0045b8f0
push eax
push ebp
call ebx
cmp eax, 1
jne 0x476f60
mov byte [0x4f6320], al
cmp byte [0x4f61c0], 0
push 0x5c
push edi
je 0x476f67
mov ecx, 0x4f60c0
call fcn.0046de50
jmp 0x476f6f
xor al, al
jmp 0x47703c
call fcn.0049ddf0
add esp, 8
test eax, eax
je 0x477059
cmp eax, edi
je 0x477059
cmp byte [eax - 1], 0x3a
je 0x477059
push esi
lea esi, [esp + 0x40c]
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x476f95
sub eax, edi
mov byte [esp + eax + 0x40c], dl
push 0x400
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0xc]
push edx
mov byte [esp + 0x40f], 0
call esi
cmp eax, 0xffffffff
jne 0x477039
lea ebx, [ebx]
push 0x14d
call fcn.0045b8f0
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x814]
push str.__s__n_s
push ecx
call fcn.0049e0d5
add esp, 0x10
push 0x34
push 0x65
call fcn.0045b8f0
push eax
lea edx, [esp + 0x814]
push edx
push ebp
call ebx
cmp eax, 6
jne 0x477055
push 0
push 0
lea eax, [esp + 0x14]
push eax
call fcn.004301a0
lea ecx, [esp + 0xc]
push ecx
call esi
cmp eax, 0xffffffff
je 0x476fe0
mov al, 1
pop esi
mov ecx, dword [esp + 0xe08]
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e0c6
add esp, 0xe04
ret 4
xor al, al
jmp 0x47703b
mov al, 1
jmp 0x47703c
Function at 0x47a380
Capabilities:
Write file on windows

Disassembly:
cmp byte [0x4e42c0], 0
jne 0x47a3ce
push edi
mov edi, dword [0x4f6300]
test edi, edi
je 0x47a3cd
push esi
push 0x4e42c0
push str.Rar_CMXXXXXX
call fcn.0047eb20
mov esi, eax
test esi, esi
je 0x47a3cc
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47a3b0
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.0049f822
push esi
call fcn.0049f646
add esp, 0x14
pop esi
pop edi
ret

Function at 0x47b000
Capabilities:
Write file on windows

Disassembly:
push 1
call fcn.0047af60
jmp fcn.0047a380

Function at 0x47b010
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x254
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [esp + 0x25c]
push esi
push edi
mov edi, dword [esp + 0x268]
xor esi, esi
push esi
lea eax, [esp + 0x10]
push str.Profiles_d
push eax
mov byte [edi], 0
call fcn.0049e0d5
add esp, 0xc
push 0x200
push 0x4b1914
lea ecx, [esp + 0x64]
push ecx
push str.Name
lea edx, [esp + 0x1c]
push edx
call fcn.004563a0
cmp byte [esp + 0x5c], 0
je 0x47b12f
lea eax, [esp + 0x5c]
push eax
push ebx
call fcn.00464e20
test eax, eax
je 0x47b0c0
inc esi
push esi
lea ecx, [esp + 0x10]
push str.Profiles_d
push ecx
call fcn.0049e0d5
add esp, 0xc
push 0x200
push 0x4b1914
lea edx, [esp + 0x64]
push edx
push str.Name
lea eax, [esp + 0x1c]
push eax
call fcn.004563a0
cmp byte [esp + 0x5c], 0
jne 0x47b076
jmp 0x47b12f
push 0
push 1
push esi
call fcn.00479850
push 0
push str.ImmExec
lea ecx, [esp + 0x14]
push ecx
call fcn.00456400
test eax, eax
setne al
mov byte [edi], al
test al, al
je 0x47b12f
cmp byte [0x4e42c0], 0
jne 0x47b12f
mov edi, dword [0x4f6300]
test edi, edi
je 0x47b12f
push 0x4e42c0
push str.Rar_CMXXXXXX
call fcn.0047eb20
mov esi, eax
test esi, esi
je 0x47b12f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47b113
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.0049f822
push esi
call fcn.0049f646
add esp, 0x14
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049e0c6
add esp, 0x254
ret 8