joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490310
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2038
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], esi
test eax, eax
jne 0x490352
xor al, al
jmp 0x4904d5
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x49034b
call fcn.0048b650
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push esi
push 0x50b270
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call fcn.0048b5f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4904ca
test eax, eax
jne 0x4904a9
mov edi, dword [0x541974]
test edi, edi
jne 0x4903af
mov edi, 0x50b270
mov eax, dword [ebp - 0x30]
add eax, eax
mov edx, dword [esi + eax*8]
mov ecx, edx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4903d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004068e0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.00417a20
mov esi, dword [ebp - 0x40]
cmp esi, dword [ebx]
je 0x490419
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408620
test al, al
je 0x490447
lea eax, [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x4f7912
call fcn.00417d60
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.00417dc0
mov esi, dword [ebp - 0x48]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x490450
sub eax, edx
lea ecx, [esi + 0x28]
sar eax, 1
push eax
push edi
call fcn.004068e0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4904a6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49049c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4904f1
push edx
push ecx
call fcn.004a1b67
add esp, 8
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
push eax
push esi
push 0x50b270
push dword [ebp - 0x38]
push dword [ebp - 0x34]
call fcn.0048b5f0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x490398
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret
call fcn.004c43e9
int3
Function at 0x4906e0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f20d1
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x490880
mov dword [ebp - 4], eax
xor esi, esi
push 0x208
mov byte [ebp - 4], 1
call fcn.004c98ac
mov edi, eax
add esp, 4
mov dword [ebp - 0x26c], edi
test edi, edi
je 0x490871
push 0x208
call fcn.004c98ac
mov esi, eax
add esp, 4
mov dword [ebp - 0x270], esi
test esi, esi
je 0x490871
push 0x4f8bd8
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
je 0x490871
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [ebp + 0xc]
jmp 0x4907a0
cmp word [ebp - 0x234], 0x2e
je 0x490843
lea eax, [ebp - 0x234]
push eax
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x260], 0x10
je 0x4907d2
push ebx
push esi
call fcn.004906e0
add esp, 8
jmp 0x490843
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x490843
test eax, eax
jne 0x490843
lea ecx, [ebp - 0x264]
call fcn.004886c0
push esi
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 2
push str._s.bak
push eax
call fcn.00483970
add esp, 0xc
push 1
push dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x490834
push 4
push 0
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
call fcn.00481df0
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4907a0
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call fcn.004c98a7
push edi
call fcn.004c98a7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret
Function at 0x4908a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2108
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00483a50
mov ecx, eax
test ecx, ecx
je 0x4909bf
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x490982
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x490982
lea eax, [ebp - 0x48]
xor esi, esi
push eax
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
push dword [eax]
call fcn.004909d0
add esp, 8
test eax, eax
je 0x490941
mov eax, dword [ebp - 0x40]
mov esi, eax
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
mov edi, eax
shr esi, 0x10
shr edi, 0x10
movzx ebx, ax
push ebx
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push esi
push 0x4f8bc0
push eax
call fcn.00483970
mov eax, dword [ebp + 0x10]
add esp, 0x18
test eax, eax
je 0x490961
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49096d
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x490976
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x49097f
mov dword [eax], ebx
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
push esi
call fcn.00486140
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4909ab
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004836b0
int3
Function at 0x491030
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f21c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x491131
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x491131
cmp dword [ebp + 0x1c], 0
je 0x491131
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.004911f0
add esp, 8
test eax, eax
je 0x491113
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x491113
mov ecx, ebx
call fcn.0048ee00
mov ecx, eax
mov eax, 0x51eb851f
mul ecx
shr edx, 5
cmp edx, 3
je 0x4910ce
cmp edx, 4
je 0x491113
cmp edx, 5
je 0x491113
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4910de
lea eax, [ebp - 0x14]
push eax
call fcn.00490d50
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
push esi
call fcn.00491440
add esp, 0x1c
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.004858b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.004858b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491270
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2218
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x491428
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x491428
push 0x53f750
push eax
call fcn.004a1ea6
xor ebx, ebx
mov dword [ebp - 0x34], vtable.CxAutoArray_unsigned_char_.0
add esp, 8
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x4912d7
mov ebx, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
test esi, esi
je 0x4912ec
mov edi, dword [esi + 4]
sub edi, dword [esi]
jmp 0x4912ee
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
call fcn.0048e5b0
mov ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
jne 0x49130d
test eax, eax
je 0x49131a
test esi, esi
je 0x49131a
push esi
push eax
mov ecx, esi
call fcn.0048d830
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x10], 0
push ebx
call fcn.0048f160
test eax, eax
je 0x4913fe
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x491421
test esi, esi
je 0x49139c
mov eax, dword [esi + 4]
mov edx, dword [esi]
sub eax, edx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], ecx
add dword [ebp - 0x14], edi
adc eax, dword [ebp - 0x18]
test eax, eax
jb 0x491388
ja 0x491377
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jbe 0x491388
lea eax, [edi + ecx]
mov ecx, esi
push esi
push eax
call fcn.0048d830
mov edx, dword [esi]
mov ecx, dword [ebp - 0x10]
push ecx
lea eax, [edi + edx]
push ebx
push eax
call fcn.004c0b70
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x18]
add edi, ecx
adc eax, 0
mov dword [ebp - 0x18], eax
test edx, edx
je 0x4913c8
push ecx
push eax
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edx
add esp, 0x24
test eax, eax
je 0x4913fe
cmp dword [ebp + 0x20], 0xffffffff
je 0x4913dc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 0x20]
jae 0x4913fe
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x10], 0
push ebx
call fcn.0048f160
mov edx, dword [ebp + 0x14]
test eax, eax
jne 0x491345
xor esi, esi
test ebx, ebx
je 0x49140d
push ebx
call fcn.0049daf1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 1
jmp 0x491400
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491d10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2338
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push esi
push dword [ebp + 0xc]
push eax
call fcn.00491b20
add esp, 0xc
push dword [ebp - 0x10]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x491d75
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00486140
mov edi, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [edi], eax
jmp 0x491d82
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.00491710
add esp, 8
mov esi, dword [ebp - 0x10]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491d9d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x492380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x808], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test ebx, ebx
je 0x49250c
mov esi, dword [esi]
cmp dword [esi - 0xc], 0
je 0x49250c
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.004c10f0
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x810], 1
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
mov eax, dword [ebp - 0x808]
push dword [eax]
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x49250c
lea esi, [ebp - 0x804]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x492420
sub esi, ecx
sar esi, 1
jne 0x49244b
mov ecx, edi
call fcn.004837b0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
lea ebx, [ebp - 0x804]
sub ebx, edx
sar ebx, 1
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x808], eax
test esi, esi
js 0x49251f
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or ecx, eax
jge 0x492483
push esi
mov ecx, edi
call fcn.00483c70
mov edx, dword [edi]
cmp ebx, dword [ebp - 0x808]
ja 0x4924d3
mov eax, dword [edx - 8]
lea ecx, [esi + esi]
lea ebx, [edx + ebx*2]
test ecx, ecx
je 0x4924e7
test ebx, ebx
jne 0x4924ae
call fcn.004c79ed
mov dword [eax], 0x16
call fcn.004c43d9
jmp 0x4924e7
add eax, eax
cmp eax, ecx
jae 0x4924c6
call fcn.004c79ed
mov dword [eax], 0x22
call fcn.004c43d9
jmp 0x4924e7
push ecx
push ebx
push edx
call fcn.004c18f0
add esp, 0xc
jmp 0x4924e7
push esi
lea eax, [ebp - 0x804]
push eax
push dword [edx - 8]
push edx
call fcn.0048a030
add esp, 0x10
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x49251f
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [edi]
pop edi
mov word [eax + esi*2], cx
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1e09
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004836b0
int3
Function at 0x492570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2368
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x536364]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x492689
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x492689
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, eax
lea eax, [esi + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x4925da
cmp edx, dword [esi]
jne 0x4925da
lock inc dword [eax]
jmp 0x49260a
mov eax, dword [edx]
lea edi, [esi + 4]
push 2
push dword [edi]
mov ecx, edx
call dword [eax]
mov esi, eax
test esi, esi
je 0x49269d
mov eax, dword [edi]
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
mov ecx, dword [edi]
inc ecx
push ecx
push dword [ebp + 0x14]
push ecx
push eax
call fcn.0048a030
add esp, 0x10
add esi, 0x10
mov dword [ebp + 0x14], esi
mov edi, dword [esi - 0xc]
mov dword [ebp - 4], 0
test edi, edi
js 0x4926a2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or ecx, eax
jge 0x49263f
push edi
lea ecx, [ebp + 0x14]
call fcn.00483c70
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea eax, [edi + edi]
push eax
mov eax, dword [ebp + 8]
push esi
push 1
push ecx
push dword [eax]
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x492675
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00484050
push 0x80070057
call fcn.004836b0
int3
Function at 0x494130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2506
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x4941dc
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x4941dc
call fcn.00488cb0
mov edi, eax
jmp 0x4942fb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4941ff
call fcn.00488cb0
jmp 0x4942ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x49421d
call fcn.00488cb0
jmp 0x4942ee
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x49423e
mov edi, 0x8007000e
jmp 0x4942f0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x494334
jb 0x49425c
cmp eax, 0xffffffff
ja 0x494334
cmp eax, 0x400
jbe 0x494271
push eax
lea ecx, [ebp - 0x418]
call fcn.00493400
jmp 0x494297
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x494297
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4942ae
mov edi, 0x8007000e
jmp 0x4942f0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4942ce
call fcn.00488cb0
jmp 0x4942ee
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00493f90
mov edi, eax
test esi, esi
je 0x4942fb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x494314
lea ecx, [ebp - 0x418]
call fcn.00493760
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004836b0
int3
Function at 0x496760
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2790
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x536364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 0
push 0x53f4e0
call fcn.004c10f0
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.00483a50
mov ecx, eax
test ecx, ecx
je 0x496926
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push str.SodaMSOAddin.dll
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s
push eax
call fcn.00483970
add esp, 0xc
mov byte [ebp - 4], 2
call fcn.00483a50
mov ecx, eax
test ecx, ecx
je 0x496930
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push 0x4f7db4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004828f0
push reloc.gdiplus.dll_Ordinal_1
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00492380
mov edx, dword [ebp - 0x2c]
or esi, 0xffffffff
add esp, 0x10
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x496848
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x30]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49686c
push dword [ebp - 0x30]
push 0x104
push 0x53f4e0
call fcn.004c7a00
add esp, 0xc
jmp 0x4968d8
push 0
lea eax, [ebp - 0x28]
push 0x1a
push eax
call fcn.00484530
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 5
jb 0x496888
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004828f0
lea ecx, [ebp - 0x28]
call fcn.00406be0
push dword [ebp - 0x2c]
push 0x104
push 0x53f4e0
call fcn.004c7a00
add esp, 0xc
push str.SodaMSOAddin
push 0x53f4e0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4968d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4968f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x49690a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1e09
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004836b0
push 0x80004005
call fcn.004836b0
int3