joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484780
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x30a0]
mov eax, 0x30a0
call fcn.0051dcc0
push 0xffffffffffffffff
push 0x53d0d5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x572844]
xor eax, ebp
mov dword [ebp + 0x309c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x30a8]
lea ecx, [ebp]
mov dword [ebp - 0x18], esi
call fcn.00481580
mov dword [ebp - 4], 0
lea ecx, [ebp]
push 1
push esi
call fcn.00481d40
test al, al
je 0x4848cd
lea ecx, [ebp]
call fcn.00481c30
push 0x10000
mov dword [ebp - 0x28], 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x10000
call fcn.00525bbb
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x48483c
mov ecx, 0x5b68fc
call fcn.0047b030
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x10000
mov byte [ebp - 4], 1
push 0x10000
push 0
push ebx
call fcn.005201d0
xor esi, esi
add esp, 0xc
xor edi, edi
cmp dword [ebp - 0x10], esi
jl 0x484893
jg 0x484870
cmp dword [ebp - 0x14], esi
jbe 0x484893
lea ebx, [ebx]
push 0x10000
push ebx
lea ecx, [ebp]
call fcn.004827f0
add esi, 0x10000
adc edi, 0
cmp edi, dword [ebp - 0x10]
jl 0x484870
jg 0x484893
cmp esi, dword [ebp - 0x14]
jb 0x484870
lea ecx, [ebp]
call fcn.00481cb0
push 0
push 0
push 0
lea ecx, [ebp]
call fcn.00482360
lea ecx, [ebp]
call fcn.00482690
lea ecx, [ebp]
call fcn.00481800
mov byte [ebp - 4], 0
test ebx, ebx
je 0x4848ca
push ebx
call fcn.00525b95
add esp, 4
mov esi, dword [ebp - 0x18]
push 0x832
lea eax, [ebp + 0x1038]
push eax
push esi
call fcn.004840b0
test al, al
je 0x48492b
lea eax, [ebp + 0x1038]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x484927
push 0x800
lea eax, [ebp + 0x209c]
push eax
lea eax, [ebp + 0x1038]
push eax
call fcn.00494c80
test al, al
je 0x484927
lea eax, [ebp + 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
jne 0x484967
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test eax, eax
jne 0x484963
push 0x800
lea eax, [ebp + 0x209c]
push eax
push esi
call fcn.00494c80
test al, al
je 0x484963
lea eax, [ebp + 0x209c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
test bl, bl
je 0x484969
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004815d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x309c]
xor ecx, ebp
call fcn.0051dca8
lea esp, [ebp + 0x30a0]
pop ebp
ret 4
Function at 0x485520
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x1268]
push edi
mov edi, dword [esp + 0x1264]
push eax
cmp edi, 0xffffffff
jne 0x4855cc
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4855f1
push 0x800
lea eax, [esp + 0x260]
push eax
push ebx
call fcn.00494c80
test al, al
je 0x48559d
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4855f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4855bf
cmp eax, 3
je 0x4855bf
cmp eax, 0x12
je 0x4855bf
mov al, 1
mov byte [esi + 0x1044], al
jmp 0x4856bc
xor al, al
mov byte [esi + 0x1044], al
jmp 0x4856bc
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4855f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne cl
or eax, 0xffffffff
mov byte [esi + 0x1044], cl
jmp 0x4856be
push 0x800
push ebx
push esi
call fcn.004b0360
push 0x800
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00495960
mov ecx, dword [esp + 0x28]
xor eax, eax
add eax, dword [esp + 0x2c]
mov dword [esi + 0x1000], eax
mov eax, dword [esp + 0xc]
adc ecx, 0
mov dword [esi + 0x1008], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1004], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x102c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1034], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1038], eax
lea eax, [esp + 0x20]
mov dword [esi + 0x103c], ecx
lea ecx, [esi + 0x1010]
push eax
call fcn.004b2010
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x1018]
call fcn.004b2010
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x1020]
call fcn.004b2010
test dword [esp + 0xc], 0x400
je 0x4856b4
cmp dword [esp + 0x30], 0xa0000003
jne 0x4856b4
mov al, 1
jmp 0x4856b6
xor al, al
mov byte [esi + 0x100e], al
mov eax, edi
mov ecx, dword [esp + 0x125c]
pop edi
mov dword [esi + 0x1040], 0
pop esi
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1254
ret 0xc

Function at 0x487e30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x114], eax
cmp byte [0x5b6914], 0
jne 0x487ec0
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x487e9f
jne 0x487e7c
cmp dword [esp + 0xc], 0x55f0
jb 0x487e7c
call fcn.00487ef0
test al, al
je 0x487e9f
xor al, al
mov byte [0x5b6914], 1
mov byte [0x5b6915], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0051dca8
add esp, 0x118
ret
mov al, 1
mov byte [0x5b6915], al
mov byte [0x5b6914], al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0051dca8
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
mov al, byte [0x5b6915]
xor ecx, esp
call fcn.0051dca8
add esp, 0x118
ret
Function at 0x48a1c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
cmp dword [edi + 0x104], 0
mov eax, dword [edi + 0x612c]
mov dword [edi + 0x614c], eax
mov eax, dword [edi + 0x6250]
jne 0x48a262
cmp eax, 0xc
mov eax, dword [esp + 0x54]
jb 0x48a20c
cmp eax, 0x20000
jb 0x48a20c
push 1
push eax
push dword [esp + 0x58]
call fcn.0048a400
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
mov esi, dword [esp + 0x50]
lea ebx, [esi + eax]
cmp esi, ebx
je 0x48a3f2
jmp 0x48a220
mov eax, dword [edi + 0xd0]
push 0xa10
push 0x5dcb0000
push dword [eax + esi + 4]
push dword [eax + esi]
call fcn.0051dec0
mov eax, dword [edi + 0xe0]
shr edx, 0xe
mov ecx, dword [eax + edx*4]
mov dword [eax + edx*4], esi
mov eax, dword [edi + 0xe4]
mov dword [eax + esi*4], ecx
inc esi
cmp esi, ebx
jne 0x48a220
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
mov ecx, dword [esp + 0x54]
cmp eax, 2
jb 0x48a2dd
cmp ecx, 0x100
jb 0x48a2dd
cmp eax, 8
jae 0x48a2c6
mov eax, dword [esp + 0x50]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x6144]
push 0x48a830
mov dword [esp + 0x2c], edi
call fcn.004b1280
mov ecx, dword [edi + 0x6144]
lea eax, [esp + 0x24]
push eax
push 0x48a7a0
call fcn.004b1280
mov ecx, dword [edi + 0x6144]
call fcn.004b1470
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
push 0
push ecx
push dword [esp + 0x58]
mov ecx, edi
call fcn.0048a400
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
mov ebx, dword [esp + 0x50]
mov eax, dword [edi + 0x6148]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
lea eax, [ebx + ecx]
mov dword [esp + 0x20], eax
cmp ebx, eax
je 0x48a3f2
push ebp
nop
mov ecx, dword [edi + 0xd0]
add ecx, ebx
movzx eax, byte [ecx]
movzx esi, byte [ecx + 1]
movzx ebx, byte [ecx + 2]
movzx ebp, byte [ecx + 3]
imul eax, eax, 0x2773
movzx edx, byte [ecx + 4]
xor esi, eax
imul eax, esi, 0x2773
and esi, 0x3fff
add esi, dword [edi + 0xd4]
xor ebx, eax
imul eax, ebx, 0x2773
and ebx, 0x3ffff
xor ebp, eax
imul eax, ebp, 0x2773
and ebp, 0x3ffff
xor edx, eax
mov al, byte [esi]
and edx, dword [edi + 0xec]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0xd8]
mov dword [esp + 0x20], edx
movzx edi, word [eax + ebx*2]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xdc]
mov ecx, dword [eax + ebp*4]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xe0]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x18]
mov byte [esi], al
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xd8]
mov esi, dword [esp + 0x18]
mov word [eax + ebx*2], si
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0xdc]
mov dword [eax + ebp*4], ebx
mov eax, dword [esi + 0xe0]
mov esi, dword [esp + 0x20]
mov dword [eax + esi*4], ebx
mov esi, dword [esp + 0x1c]
mov al, byte [esp + 0x13]
mov word [esi + 1], di
mov edi, dword [esp + 0x14]
mov dword [esi + 3], ecx
mov byte [esi], al
add esi, 7
mov dword [esp + 0x1c], esi
mov eax, dword [edi + 0xe4]
mov dword [eax + ebx*4], edx
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x24]
jne 0x48a300
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret 8
Function at 0x4946b0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
call fcn.004c38e0
test al, al
jne 0x4946c2
add esp, 8
ret 0xc
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov edi, dword [esp + 0x18]
xor eax, eax
xor bl, bl
mov word [edi], ax
lea eax, [esp + 0xc]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x49473a
push edi
push dword [esp + 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x49473a
cmp word [edi], 0
je 0x49473a
mov esi, dword [esp + 0x1c]
push esi
push edi
call fcn.00493970
push esi
push 0x545f9c
push edi
call fcn.004b0300
push edi
call fcn.004837b0
mov bl, al
test bl, bl
jne 0x49473a
cmp byte [esp + 0x20], al
je 0x49473a
push 0
push 0
push edi
call fcn.00483d20
test eax, eax
sete bl
mov eax, dword [esp + 0x10]
push dword [esp + 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
pop edi
pop esi
mov al, bl
pop ebx
add esp, 8
ret 0xc
Function at 0x4949d0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0xc
xor eax, eax
push ebp
push edi
mov edi, dword [esp + 0x18]
mov word [edi], ax
lea eax, [esp + 8]
push eax
push 1
push 0
push 0x55225c
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [esp + 0x1c]
test eax, eax
jne 0x494a29
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
push eax
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.AppData
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [edi], 0
je 0x494a3d
push edi
call fcn.004837b0
test al, al
jne 0x494b4b
call fcn.004c38e0
test al, al
je 0x494ad7
push ebx
push esi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
xor eax, eax
xor bl, bl
mov word [edi], ax
lea eax, [esp + 0x14]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x494ab9
push edi
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x494ab9
cmp word [edi], 0
je 0x494ab9
push ebp
push edi
call fcn.00493970
push ebp
push 0x545f9c
push edi
call fcn.004b0300
push edi
call fcn.004837b0
mov bl, al
test bl, bl
jne 0x494ab9
cmp byte [esp + 0x28], al
je 0x494ab9
push 0
push 0
push edi
call fcn.00483d20
test eax, eax
sete bl
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x541740]
call esi
pop esi
test bl, bl
pop ebx
jne 0x494b4b
push ebp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494ae6
sub ecx, edx
sar ecx, 1
lea eax, [ecx - 1]
test eax, eax
js 0x494b15
lea ecx, [edi + eax*2]
nop
movzx edx, word [ecx]
cmp edx, 0x5c
je 0x494b27
cmp edx, 0x2f
je 0x494b27
sub ecx, 2
sub eax, 1
jns 0x494b00
cmp word [edi], 0
je 0x494b2c
cmp word [edi + 2], 0x3a
jne 0x494b2c
lea ecx, [edi + 4]
jmp 0x494b3c
add ecx, 2
jmp 0x494b2e
mov ecx, edi
lea eax, [edi + 4]
cmp ecx, eax
jb 0x494b46
cmp word [edi + 2], 0x3a
jne 0x494b43
lea eax, [edi + 8]
cmp ecx, eax
jb 0x494b46
sub ecx, 2
xor eax, eax
mov word [ecx], ax
pop edi
pop ebp
add esp, 0xc
ret 0xc
Function at 0x494c80
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
mov ebx, dword [esp + 0x1010]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1018]
movzx eax, word [edi]
test ax, ax
je 0x494e84
push eax
call fcn.004b0110
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x494cc1
movzx eax, word [edi]
lea ebp, [edi + 2]
sub esi, ecx
sar esi, 1
cmp eax, 0x5c
jne 0x494ce1
cmp word [ebp], ax
je 0x494d14
push eax
call fcn.004b0110
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x494dab
cmp word [ebp], 0x3a
jne 0x494dab
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x494d14
cmp eax, 0x2f
jne 0x494dab
movzx eax, word [edi]
push eax
call fcn.004b0110
movzx eax, ax
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x494d5d
cmp word [ebp], 0x3a
jne 0x494d5d
lea eax, [esi + 4]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x494e84
push esi
push 0x542b0c
push ebx
call fcn.004b0360
push esi
push edi
push ebx
call fcn.004b0300
mov al, 1
jmp 0x494e86
cmp word [edi], 0x5c
jne 0x494e84
cmp word [ebp], 0x5c
jne 0x494e84
lea eax, [esi + 6]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x494e84
push esi
push 0x542b0c
push ebx
call fcn.004b0360
push esi
push 0x552324
push ebx
call fcn.004b0300
push esi
push ebp
push ebx
call fcn.004b0300
mov al, 1
jmp 0x494e86
lea eax, [esp + 0x10]
push eax
push 0x7ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x494e84
cmp eax, 0x7ff
ja 0x494e84
movzx eax, word [edi]
cmp eax, 0x5c
je 0x494e4b
cmp eax, 0x2f
je 0x494e4b
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.00493970
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494df1
sub ecx, edx
lea eax, [esi + 4]
mov esi, dword [esp + 0x1020]
sar ecx, 1
add eax, ecx
cmp esi, eax
jbe 0x494e84
push esi
push 0x542b0c
push ebx
call fcn.004b0360
push esi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004b0300
cmp word [edi], 0x2e
jne 0x494e3f
movzx eax, word [ebp]
push eax
call fcn.00495020
test al, al
je 0x494e3f
add edi, 4
push esi
push edi
push ebx
call fcn.004b0300
mov al, 1
jmp 0x494e86
lea eax, [esi + 6]
mov esi, dword [esp + 0x1020]
cmp esi, eax
jbe 0x494e84
push esi
push 0x542b0c
push ebx
call fcn.004b0360
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push esi
push eax
push ebx
call fcn.004b0300
push esi
push edi
push ebx
call fcn.004b0300
mov al, 1
jmp 0x494e86
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051dca8
add esp, 0x1004
ret 0xc
Function at 0x499830
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, 1
push esi
mov esi, dword [esp + 0xc]
xor cl, cl
cmp esi, eax
jbe 0x49984c
xor cl, byte [eax + edx]
inc eax
cmp eax, esi
jb 0x499844
cmp cl, byte [edx]
jne 0x49988d
push esi
push edx
push 0xffffffffffffffff
call fcn.004761b0
xor edx, edx
not eax
xor ecx, ecx
nop
cmp dword [ecx + 0x5701ac], eax
jne 0x499870
cmp dword [ecx + 0x5701a8], esi
je 0x49987d
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x499860
pop esi
ret 0xc
lea eax, [edx + edx*2]
mov ecx, dword [eax*4 + 0x5701b0]
mov eax, dword [esp + 0x10]
mov dword [eax], ecx
pop esi
ret 0xc

Function at 0x49b910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53db3f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x572844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp + 8]
mov edx, 0x1c
mov dword [esi + 0x1c], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x24], 0
mov eax, dword [eax + 0x94f8]
mov dword [esi + 0x40], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0051de7f
xor edx, edx
mov dword [esi + 0x44], eax
add esp, 4
cmp dword [esi + 0x40], edx
jbe 0x49b9db
xor ecx, ecx
lea esp, [esp]
mov eax, dword [esi + 0x44]
lea ecx, [ecx + 0x1c]
inc edx
mov dword [ecx + eax - 0x1c], esi
mov eax, dword [esi + 0x44]
mov dword [eax + ecx - 0x18], 0
cmp edx, dword [esi + 0x40]
jb 0x49b9c0
cmp byte [ebp + 0xc], 0
je 0x49b9ea
mov dword [esi + 0x3c], 0
jmp 0x49ba33
push 0x338
call fcn.0051da6d
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x49ba0e
push dword [esi + 0x40]
mov ecx, eax
call fcn.004b10e0
jmp 0x49ba10
xor eax, eax
mov byte [ebp - 4], 0
push 0x4000010
mov dword [esi + 0x3c], eax
call fcn.0051de7f
mov ecx, eax
mov dword [esi + 0x1c], eax
neg ecx
add esp, 4
and ecx, 0xf
add ecx, eax
mov dword [esi + 0x20], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4a90a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x41c
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
push edi
mov edi, dword [esp + 0x428]
mov dword [esp + 0x14], ecx
mov dword [eax], 0x28
cmp byte [ecx + 0x64], 0
mov dword [esp + 0x18], eax
je 0x4a90de
or dword [eax + 4], 0x800
cmp dword [ecx + 0x2c], 0
jbe 0x4a92c6
mov eax, dword [esp + 0x42c]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a92c6
push ebx
push ebp
add edi, 0x14
push esi
mov eax, dword [edi - 8]
push 5
push eax
push dword [0x5b6818]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x5b6818]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [0x5b6818]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
call fcn.00525bb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a914d
mov dword [edi], eax
jmp 0x4a929a
push ebx
push ebp
push esi
call fcn.0051f6b0
movzx ebp, word [esi + 2]
lea eax, [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x14], 0
mov ecx, 0x5b6880
mov dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
call fcn.004a80f0
mov edx, dword [esp + 0x14]
test al, al
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
je 0x4a91df
mov ebx, esi
cmp ebp, 0xffff
jne 0x4a91a5
lea ebx, [esi + 8]
movsx ecx, word [ebx + 0xe]
mov eax, 0x51eb851f
imul ecx, edx
imul ecx
movsx ecx, word [ebx + 0x10]
imul ecx, dword [esp + 0x10]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebx + 0xe], ax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov word [ebx + 0x10], ax
xor edx, edx
cmp ebp, 0xffff
mov ebp, 0xffff
sete dl
lea edx, [edx*8 + 0x12]
add edx, esi
cmp word [edx], bp
jne 0x4a9204
mov ecx, 2
jmp 0x4a9220
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9210
sub ecx, ebx
sar ecx, 1
inc ecx
cmp word [edx + ecx*2], bp
lea ebx, [edx + ecx*2]
jne 0x4a9230
mov ebp, 2
jmp 0x4a9247
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9235
sub eax, edx
sar eax, 1
lea ebp, [eax + 1]
push 0x200
lea eax, [esp + 0x2c]
mov ecx, 0x5b6880
push eax
push str.CAPTION
push dword [esp + 0x24]
call fcn.004a81a0
test al, al
lea eax, [esp + 0x28]
jne 0x4a926f
lea eax, [ebx + ebp*2]
push eax
call fcn.005264ec
add esp, 4
mov dword [edi], eax
cmp dword [esp + 0x14], 0x64
jne 0x4a9293
cmp dword [esp + 0x10], 0x64
jne 0x4a9293
push esi
call fcn.00525b95
add esp, 4
jmp 0x4a929a
or dword [edi - 0x10], 1
mov dword [edi - 8], esi
cmp dword [edi], 0
je 0x4a92a3
or dword [edi - 0x10], 8
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x64], 0
je 0x4a92b5
mov eax, dword [esp + 0x24]
or dword [eax + 4], 0x10
add edi, 0x38
sub dword [esp + 0x1c], 1
jne 0x4a9101
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x41c]
pop edi
xor ecx, esp
call fcn.0051dca8
add esp, 0x41c
ret 0xc
Function at 0x4a9a40
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x200c], eax
push esi
mov esi, dword [esp + 0x2018]
push edi
mov edi, dword [esp + 0x2020]
cmp edi, esi
je 0x4a9a7a
push dword [esp + 0x2024]
push esi
push edi
call fcn.004b0360
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a9b4f
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9aa0
sub ecx, edx
mov eax, 0x7ff
sar ecx, 1
sub eax, ecx
add eax, eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.LanguageFolder
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a9b45
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x800
push eax
lea eax, [esp + 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x800
lea eax, [esp + 0x18]
push eax
call fcn.00493970
push 0x800
push esi
call fcn.00495850
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004b0300
lea eax, [esp + 0x14]
push eax
call fcn.004837b0
test al, al
je 0x4a9b45
push dword [esp + 0x2024]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004b0360
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
add esp, 0x2010
ret 0xc

Function at 0x4a9b70
Capabilities:
Check os version

Disassembly:
mov eax, 0x1120
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x111c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1130]
cmp byte [esi], 0
je 0x4a9bb1
push dword [0x5b6818]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x5b681c]
mov dword [0x5b6818], eax
mov byte [esi], 0
lea eax, [esp + 0x124]
push 0x800
test edi, edi
je 0x4a9bca
push edi
push eax
call fcn.004b0360
jmp 0x4a9bd3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x800
push str.rarlng.dll
lea eax, [esp + 0x12c]
push eax
call fcn.00495960
push 0x800
lea eax, [esp + 0x128]
push eax
push eax
call fcn.004a9a40
lea eax, [esp + 8]
mov dword [esp + 8], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x18], 2
jne 0x4a9c3f
cmp dword [esp + 0xc], 5
ja 0x4a9c2b
jne 0x4a9c3f
cmp word [esp + 0x11c], 2
jb 0x4a9c3f
push 2
push 0
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4a9c4d
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x5b6818], eax
pop edi
setne al
mov byte [esi], al
test al, al
mov eax, dword [esp + 0x1128]
pop esi
mov dword [0x5b681c], eax
jne 0x4a9c70
mov dword [0x5b6818], eax
mov ecx, dword [esp + 0x111c]
xor ecx, esp
call fcn.0051dca8
add esp, 0x1120
ret 8